From 4c8a448335c79bdf57fa79e565a10e6d9fa45d16 Mon Sep 17 00:00:00 2001 From: IOhacker <46640258+IOhacker@users.noreply.github.com> Date: Mon, 22 Dec 2025 20:43:11 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20openMF/w?= =?UTF-8?q?eb-app@12d00ca7841f1201f3f67fd98abb161f7c6eaaf3=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...s => account-transfers.module-BYH7T3AF.js} | 2 +- browser/assets/translations/cs-CS.json | 1 + browser/assets/translations/de-DE.json | 1 + browser/assets/translations/en-US.json | 1 + browser/assets/translations/es-CL.json | 1 + browser/assets/translations/es-MX.json | 1 + browser/assets/translations/fr-FR.json | 1 + browser/assets/translations/it-IT.json | 1 + browser/assets/translations/ko-KO.json | 1 + browser/assets/translations/lt-LT.json | 1 + browser/assets/translations/lv-LV.json | 1 + browser/assets/translations/ne-NE.json | 1 + browser/assets/translations/pt-PT.json | 1 + browser/assets/translations/sw-SW.json | 1 + .../{chunk-PVX767FT.js => chunk-AIIL3QLG.js} | 2 +- .../{chunk-FHWYEHGD.js => chunk-DZIULWL5.js} | 2 +- .../{chunk-24R2X6HR.js => chunk-MTXV3AZ2.js} | 178 +++++++++--------- .../{chunk-3PHNJT7K.js => chunk-NJTLAUS7.js} | 2 +- .../{chunk-G63A5RIG.js => chunk-RPHEO6YW.js} | 2 +- .../{chunk-JYAHZ2XX.js => chunk-TR4JWVAF.js} | 2 +- .../{chunk-LQ5TCC6V.js => chunk-YNN44IR6.js} | 2 +- ...QYGQ.js => collaterals.module-7IQT6HRT.js} | 2 +- ...Z.js => fixed-deposits.module-PQ33HOCK.js} | 4 +- browser/index.html | 2 +- ...e-3CU5NU4S.js => loans.module-GHSYSBBB.js} | 4 +- browser/main.js | 4 +- ... => recurring-deposits.module-AYKF23UQ.js} | 2 +- ...NVUDJ6BQ.js => savings.module-7RWCJ6VZ.js} | 4 +- ...-OWTP5I4O.js => shares.module-QULUHDBV.js} | 2 +- 29 files changed, 121 insertions(+), 108 deletions(-) rename browser/{account-transfers.module-XUJ6S2O7.js => account-transfers.module-BYH7T3AF.js} (99%) rename browser/{chunk-PVX767FT.js => chunk-AIIL3QLG.js} (89%) rename browser/{chunk-FHWYEHGD.js => chunk-DZIULWL5.js} (97%) rename browser/{chunk-24R2X6HR.js => chunk-MTXV3AZ2.js} (69%) rename browser/{chunk-3PHNJT7K.js => chunk-NJTLAUS7.js} (97%) rename browser/{chunk-G63A5RIG.js => chunk-RPHEO6YW.js} (91%) rename browser/{chunk-JYAHZ2XX.js => chunk-TR4JWVAF.js} (81%) rename browser/{chunk-LQ5TCC6V.js => chunk-YNN44IR6.js} (99%) rename browser/{collaterals.module-XJE6QYGQ.js => collaterals.module-7IQT6HRT.js} (99%) rename browser/{fixed-deposits.module-5IEOXBZZ.js => fixed-deposits.module-PQ33HOCK.js} (99%) rename browser/{loans.module-3CU5NU4S.js => loans.module-GHSYSBBB.js} (99%) rename browser/{recurring-deposits.module-HZHXUGE6.js => recurring-deposits.module-AYKF23UQ.js} (99%) rename browser/{savings.module-NVUDJ6BQ.js => savings.module-7RWCJ6VZ.js} (99%) rename browser/{shares.module-OWTP5I4O.js => shares.module-QULUHDBV.js} (99%) diff --git a/browser/account-transfers.module-XUJ6S2O7.js b/browser/account-transfers.module-BYH7T3AF.js similarity index 99% rename from browser/account-transfers.module-XUJ6S2O7.js rename to browser/account-transfers.module-BYH7T3AF.js index 9f8781818..afa830be4 100644 --- a/browser/account-transfers.module-XUJ6S2O7.js +++ b/browser/account-transfers.module-BYH7T3AF.js @@ -1 +1 @@ -import{a as B}from"./chunk-FHWYEHGD.js";import{$a as he,$f as Ve,Cc as Ee,Cd as X,Da as P,Dd as st,Ea as N,Eb as q,Ed as we,Ee as Ne,Fe as qe,G,Ga as w,Gd as ct,H as qt,Hd as Z,Ia as x,Id as Lt,Ja as h,Jd as tt,K as T,Kd as mt,L as b,Lc as V,Lg as Ue,M as S,Md as pt,Na as Dt,Nc as De,Oa as At,Od as Oe,Pa as Mt,Pd as dt,Qa as M,Qd as ut,Rd as ft,Re as yt,Sc as xt,Tc as Y,Td as Ct,Ua as r,Va as c,Vd as Q,Wa as u,Xa as g,Xc as J,Ya as Ie,Yc as I,Yd as _t,Zc as K,_ as se,_a as Te,_c as it,ab as xe,ae as Pe,bb as Rt,bd as Bt,bg as Re,ca as e,cd as Ae,cg as Le,dd as nt,dg as He,eb as U,ed as bt,ee as vt,fb as et,fd as Me,gc as H,gd as at,hb as o,ib as l,if as Ht,ja as O,jb as kt,jc as ht,jd as rt,jf as $t,ka as Vt,kc as W,kf as Ut,ld as ke,mc as ce,md as ot,mf as Gt,na as y,nf as jt,od as Be,pb as be,pf as zt,qb as Se,qc as j,qd as St,qf as Qt,qg as $e,ra as _,rd as Fe,sa as v,sd as R,sf as Wt,ta as E,td as $,tf as Yt,ua as D,va as A,vf as Jt,wa as d,wd as z,xa as n,ya as i,yd as lt,yf as Ft,za as C,zb as ye}from"./chunk-24R2X6HR.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-DZIULWL5.js";import{$a as he,$f as Ve,Cc as Ee,Cd as X,Da as P,Dd as st,Ea as N,Eb as q,Ed as we,Ee as Ne,Fe as qe,G,Ga as w,Gd as ct,H as qt,Hd as Z,Ia as x,Id as Lt,Ja as h,Jd as tt,K as T,Kd as mt,L as b,Lc as V,Lg as Ue,M as S,Md as pt,Na as Dt,Nc as De,Oa as At,Od as Oe,Pa as Mt,Pd as dt,Qa as M,Qd as ut,Rd as ft,Re as yt,Sc as xt,Tc as Y,Td as Ct,Ua as r,Va as c,Vd as Q,Wa as u,Xa as g,Xc as J,Ya as Ie,Yc as I,Yd as _t,Zc as K,_ as se,_a as Te,_c as it,ab as xe,ae as Pe,bb as Rt,bd as Bt,bg as Re,ca as e,cd as Ae,cg as Le,dd as nt,dg as He,eb as U,ed as bt,ee as vt,fb as et,fd as Me,gc as H,gd as at,hb as o,ib as l,if as Ht,ja as O,jb as kt,jc as ht,jd as rt,jf as $t,ka as Vt,kc as W,kf as Ut,ld as ke,mc as ce,md as ot,mf as Gt,na as y,nf as jt,od as Be,pb as be,pf as zt,qb as Se,qc as j,qd as St,qf as Qt,qg as $e,ra as _,rd as Fe,sa as v,sd as R,sf as Wt,ta as E,td as $,tf as Yt,ua as D,va as A,vf as Jt,wa as d,wd as z,xa as n,ya as i,yd as lt,yf as Ft,za as C,zb as ye}from"./chunk-MTXV3AZ2.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/assets/translations/cs-CS.json b/browser/assets/translations/cs-CS.json index 16d5cf3ab..6997af827 100644 --- a/browser/assets/translations/cs-CS.json +++ b/browser/assets/translations/cs-CS.json @@ -704,6 +704,7 @@ "Due penalty, interest, principal, fee, In advance penalty, interest, principal, fee": "Splatná pokuta, úrok, jistina, poplatek, Pokuta předem, úrok, jistina, poplatek", "Principal": "Ředitel školy", "Repayment": "Splácení", + "Repayment (at time of disbursement)": "Splácení (v době výplaty)", "Down payment": "Záloha", "Charge refund": "Vrácení poplatku", "Charge adjustment": "Úprava náboje", diff --git a/browser/assets/translations/de-DE.json b/browser/assets/translations/de-DE.json index a677ee50d..9f74b504a 100644 --- a/browser/assets/translations/de-DE.json +++ b/browser/assets/translations/de-DE.json @@ -704,6 +704,7 @@ "Due penalty, interest, principal, fee, In advance penalty, interest, principal, fee": "Fällige Strafe, Zinsen, Kapital, Gebühr, Vorabstrafe, Zinsen, Kapital, Gebühr", "Principal": "Rektor", "Repayment": "Rückzahlung", + "Repayment (at time of disbursement)": "Rückzahlung (zum Zeitpunkt der Auszahlung)", "Down payment": "Anzahlung", "Charge refund": "Rückerstattung der Gebühr", "Charge adjustment": "Gebührenanpassung", diff --git a/browser/assets/translations/en-US.json b/browser/assets/translations/en-US.json index 49bbc9521..a0766dc33 100644 --- a/browser/assets/translations/en-US.json +++ b/browser/assets/translations/en-US.json @@ -724,6 +724,7 @@ "Share Building Contribution": "Share Building Contribution", "Principal": "Principal", "Repayment": "Repayment", + "Repayment (at time of disbursement)": "Repayment (at time of disbursement)", "Down payment": "Down payment", "Charge refund": "Charge refund", "Charge adjustment": "Charge adjustment", diff --git a/browser/assets/translations/es-CL.json b/browser/assets/translations/es-CL.json index 7bd11477d..3fda5e405 100644 --- a/browser/assets/translations/es-CL.json +++ b/browser/assets/translations/es-CL.json @@ -703,6 +703,7 @@ "Due penalty, interest, principal, fee, In advance penalty, interest, principal, fee": "Penalización vencida, Intereses, Capital, Comisiones, Penalización por adelantado, Intereses, Capital, Comisiones", "Principal": "Capital", "Repayment": "Reembolso", + "Repayment (at time of disbursement)": "Reembolso (al momento del desembolso)", "Down payment": "Auto Pago", "Charge refund": "Reembolso de cargo", "Charge adjustment": "Ajuste de cargo", diff --git a/browser/assets/translations/es-MX.json b/browser/assets/translations/es-MX.json index b7183abf0..cfc68afae 100644 --- a/browser/assets/translations/es-MX.json +++ b/browser/assets/translations/es-MX.json @@ -703,6 +703,7 @@ "Due penalty, interest, principal, fee, In advance penalty, interest, principal, fee": "Penalización vencida, Intereses, Capital, Comisiones, Penalización por adelantado, Intereses, Capital, Comisiones", "Principal": "Capital", "Repayment": "Reembolso", + "Repayment (at time of disbursement)": "Reembolso (al momento del desembolso)", "Down payment": "Auto Pago", "Charge refund": "Reembolso de cargo", "Charge adjustment": "Ajuste de cargo", diff --git a/browser/assets/translations/fr-FR.json b/browser/assets/translations/fr-FR.json index f5f440424..ec43b1b58 100644 --- a/browser/assets/translations/fr-FR.json +++ b/browser/assets/translations/fr-FR.json @@ -704,6 +704,7 @@ "Due penalty, interest, principal, fee, In advance penalty, interest, principal, fee": "Pénalité due, intérêts, principal, frais, Pénalité d'avance, intérêts, principal, frais", "Principal": "Principal", "Repayment": "Remboursement", + "Repayment (at time of disbursement)": "Remboursement (au moment du décaissement)", "Down payment": "Acompte", "Charge refund": "Remboursement des frais", "Charge adjustment": "Ajustement des frais", diff --git a/browser/assets/translations/it-IT.json b/browser/assets/translations/it-IT.json index 743989c63..636781f93 100644 --- a/browser/assets/translations/it-IT.json +++ b/browser/assets/translations/it-IT.json @@ -704,6 +704,7 @@ "Due penalty, interest, principal, fee, In advance penalty, interest, principal, fee": "Penale dovuta, interessi, capitale, commissione, Penale anticipata, interessi, capitale, commissione", "Principal": "Principale", "Repayment": "Rimborso", + "Repayment (at time of disbursement)": "Rimborso (al momento del disborso)", "Down payment": "Acconto", "Charge refund": "Rimborso addebito", "Charge adjustment": "Adeguamento della tariffa", diff --git a/browser/assets/translations/ko-KO.json b/browser/assets/translations/ko-KO.json index 3e6bcb59c..7c7ccd653 100644 --- a/browser/assets/translations/ko-KO.json +++ b/browser/assets/translations/ko-KO.json @@ -704,6 +704,7 @@ "Due penalty, interest, principal, fee, In advance penalty, interest, principal, fee": "위약금, 이자, 원금, 수수료, 선납 위약금, 이자, 원금, 수수료", "Principal": "주요한", "Repayment": "반환", + "Repayment (at time of disbursement)": "상환 (지급 시)", "Down payment": "계약금", "Charge refund": "청구금액 환불", "Charge adjustment": "요금 조정", diff --git a/browser/assets/translations/lt-LT.json b/browser/assets/translations/lt-LT.json index 60e8d4203..37c9fbcc1 100644 --- a/browser/assets/translations/lt-LT.json +++ b/browser/assets/translations/lt-LT.json @@ -704,6 +704,7 @@ "Due penalty, interest, principal, fee, In advance penalty, interest, principal, fee": "Delspinigiai, delspinigiai, pagrindinė suma, mokestis, Avansinė bauda, ​​palūkanos, pagrindinė suma, mokestis", "Principal": "direktorius", "Repayment": "Grąžinimas", + "Repayment (at time of disbursement)": "Grąžinimas (išmokėjimo metu)", "Down payment": "Pradinis įnašas", "Charge refund": "Mokesčio grąžinimas", "Charge adjustment": "Krovinio reguliavimas", diff --git a/browser/assets/translations/lv-LV.json b/browser/assets/translations/lv-LV.json index 684280a6c..eaa6bd84b 100644 --- a/browser/assets/translations/lv-LV.json +++ b/browser/assets/translations/lv-LV.json @@ -704,6 +704,7 @@ "Due penalty, interest, principal, fee, In advance penalty, interest, principal, fee": "Maksājamais līgumsods, procenti, pamatsumma, maksa, avansa līgumsods, procenti, pamatsumma, maksa", "Principal": "Direktors", "Repayment": "Atmaksa", + "Repayment (at time of disbursement)": "Atmaksa (izmaksas laikā)", "Down payment": "Pirmā iemaksa", "Charge refund": "Maksas atmaksa", "Charge adjustment": "Uzlādes regulēšana", diff --git a/browser/assets/translations/ne-NE.json b/browser/assets/translations/ne-NE.json index e64b6e237..e79b3b94e 100644 --- a/browser/assets/translations/ne-NE.json +++ b/browser/assets/translations/ne-NE.json @@ -704,6 +704,7 @@ "Due penalty, interest, principal, fee, In advance penalty, interest, principal, fee": "बक्यौता जरिवाना, व्याज, मुद्दल, शुल्क, अग्रिम जरिवाना, व्याज, मूल, शुल्क", "Principal": "प्रिन्सिपल", "Repayment": "भुक्तानी", + "Repayment (at time of disbursement)": "भुक्तानी (वितरणको समयमा)", "Down payment": "डाउन पेमेन्ट", "Charge refund": "शुल्क फिर्ता", "Charge adjustment": "चार्ज समायोजन", diff --git a/browser/assets/translations/pt-PT.json b/browser/assets/translations/pt-PT.json index 91fcc870e..22f8345c2 100644 --- a/browser/assets/translations/pt-PT.json +++ b/browser/assets/translations/pt-PT.json @@ -704,6 +704,7 @@ "Due penalty, interest, principal, fee, In advance penalty, interest, principal, fee": "Pena devida, juros, principal, taxa, multa antecipada, juros, principal, taxa", "Principal": "Diretor", "Repayment": "Reembolso", + "Repayment (at time of disbursement)": "Reembolso (no momento do desembolso)", "Down payment": "Pagamento inicial", "Charge refund": "Reembolso de cobrança", "Charge adjustment": "Ajuste de cobrança", diff --git a/browser/assets/translations/sw-SW.json b/browser/assets/translations/sw-SW.json index 1670eccee..e1266701b 100644 --- a/browser/assets/translations/sw-SW.json +++ b/browser/assets/translations/sw-SW.json @@ -704,6 +704,7 @@ "Due penalty, interest, principal, fee, In advance penalty, interest, principal, fee": "Adhabu inayostahili, riba, mkuu, ada, Adhabu ya mapema, riba, mkuu, ada", "Principal": "Mkuu wa shule", "Repayment": "Ulipaji", + "Repayment (at time of disbursement)": "Ulipaji (wakati wa malipo)", "Down payment": "Malipo ya chini", "Charge refund": "Maliza marejesho", "Charge adjustment": "Marekebisho ya malipo", diff --git a/browser/chunk-PVX767FT.js b/browser/chunk-AIIL3QLG.js similarity index 89% rename from browser/chunk-PVX767FT.js rename to browser/chunk-AIIL3QLG.js index cefde3ec3..baf67084b 100644 --- a/browser/chunk-PVX767FT.js +++ b/browser/chunk-AIIL3QLG.js @@ -1 +1 @@ -import{Ac as x,Dc as b,Eb as f,Ec as v,Fc as D,Gc as M,K as m,Lc 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,qc as g,sd as S,wa as d,xa as e,ya as i}from"./chunk-24R2X6HR.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{Ac as x,Dc as b,Eb as f,Ec as v,Fc as D,Gc as M,K as m,Lc 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,qc as g,sd as S,wa as d,xa as e,ya as i}from"./chunk-MTXV3AZ2.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/chunk-FHWYEHGD.js b/browser/chunk-DZIULWL5.js similarity index 97% rename from browser/chunk-FHWYEHGD.js rename to browser/chunk-DZIULWL5.js index 7c5a3c00e..77afa1fdc 100644 --- a/browser/chunk-FHWYEHGD.js +++ b/browser/chunk-DZIULWL5.js @@ -1 +1 @@ -import{B as g,G as f,K as l,Mb as u,Nb as a,Nc as i,Qb as N}from"./chunk-24R2X6HR.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,Mb as u,Nb as a,Nc as i,Qb as N}from"./chunk-MTXV3AZ2.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-24R2X6HR.js b/browser/chunk-MTXV3AZ2.js similarity index 69% rename from browser/chunk-24R2X6HR.js rename to browser/chunk-MTXV3AZ2.js index c8d0c6e3d..35354a174 100644 --- a/browser/chunk-24R2X6HR.js +++ b/browser/chunk-MTXV3AZ2.js @@ -1,56 +1,56 @@ -import{a as Y,b as Ne,c as gy,e as _y,g as c3,h as li}from"./chunk-PHUH23IY.js";var Jm=_y((Z7,H1)=>{(function(t,i){typeof Z7=="object"&&typeof H1<"u"?H1.exports=i():typeof define=="function"&&define.amd?define(i):t.moment=i()})(Z7,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,m){return Object.prototype.hasOwnProperty.call(l,m)}function a(l){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(l).length===0;var m;for(m in l)if(r(l,m))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 u(l){return l instanceof Date||Object.prototype.toString.call(l)==="[object Date]"}function f(l,m){var g=[],v,M=l.length;for(v=0;v>>0,v;for(v=0;v0)for(g=0;g{(function(t,i){typeof e_=="object"&&typeof W1<"u"?W1.exports=i():typeof define=="function"&&define.amd?define(i):t.moment=i()})(e_,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,m){return Object.prototype.hasOwnProperty.call(l,m)}function a(l){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(l).length===0;var m;for(m in l)if(r(l,m))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 u(l){return l instanceof Date||Object.prototype.toString.call(l)==="[object Date]"}function f(l,m){var _=[],v,M=l.length;for(v=0;v>>0,v;for(v=0;v<_;v++)if(v in m&&l.call(this,m[v],v,m))return!0;return!1};function Q(l){var m=null,_=!1,v=l._d&&!isNaN(l._d.getTime());if(v&&(m=D(l),_=Y.call(m.parsedDateParts,function(M){return M!=null}),v=m.overflow<0&&!m.empty&&!m.invalidEra&&!m.invalidMonth&&!m.invalidWeekday&&!m.weekdayMismatch&&!m.nullInput&&!m.invalidFormat&&!m.userInvalidated&&(!m.meridiem||m.meridiem&&_),l._strict&&(v=v&&m.charsLeftOver===0&&m.unusedTokens.length===0&&m.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(l))l._isValid=v;else return v;return l._isValid}function K(l){var m=y(NaN);return l!=null?g(D(m),l):D(m).userInvalidated=!0,m}var pe=i.momentProperties=[],ut=!1;function wt(l,m){var _,v,M,A=pe.length;if(s(m._isAMomentObject)||(l._isAMomentObject=m._isAMomentObject),s(m._i)||(l._i=m._i),s(m._f)||(l._f=m._f),s(m._l)||(l._l=m._l),s(m._strict)||(l._strict=m._strict),s(m._tzm)||(l._tzm=m._tzm),s(m._isUTC)||(l._isUTC=m._isUTC),s(m._offset)||(l._offset=m._offset),s(m._pf)||(l._pf=D(m)),s(m._locale)||(l._locale=m._locale),A>0)for(_=0;_=0;return(A?g?"+":"":"-")+Math.pow(10,Math.max(0,M)).toString().substr(1)+v}var c6=/(\[[^\[]*\])|(\\)?([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,Hu=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,l6={},Il={};function Be(l,m,g,v){var M=v;typeof v=="string"&&(M=function(){return this[v]()}),l&&(Il[l]=M),m&&(Il[m[0]]=function(){return Qr(M.apply(this,arguments),m[1],m[2])}),g&&(Il[g]=function(){return this.localeData().ordinal(M.apply(this,arguments),l)})}function AN(l){return l.match(/\[[\s\S]/)?l.replace(/^\[|\]$/g,""):l.replace(/\\/g,"")}function RN(l){var m=l.match(c6),g,v;for(g=0,v=m.length;g=0&&Hu.test(l);)l=l.replace(Hu,v),Hu.lastIndex=0,g-=1;return l}var zN={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 NN(l){var m=this._longDateFormat[l],g=this._longDateFormat[l.toUpperCase()];return m||!g?m:(this._longDateFormat[l]=g.match(c6).map(function(v){return v==="MMMM"||v==="MM"||v==="DD"||v==="dddd"?v.slice(1):v}).join(""),this._longDateFormat[l])}var FN="Invalid date";function VN(){return this._invalidDate}var BN="%d",jN=/\d{1,2}/;function HN(l){return this._ordinal.replace("%d",l)}var UN={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 $N(l,m,g,v){var M=this._relativeTime[g];return Ri(M)?M(l,m,g,v):M.replace(/%d/i,l)}function GN(l,m){var g=this._relativeTime[l>0?"future":"past"];return Ri(g)?g(m):g.replace(/%s/i,m)}var Sv={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 Yo(l){return typeof l=="string"?Sv[l]||Sv[l.toLowerCase()]:void 0}function d6(l){var m={},g,v;for(v in l)r(l,v)&&(g=Yo(v),g&&(m[g]=l[v]));return m}var WN={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 qN(l){var m=[],g;for(g in l)r(l,g)&&m.push({unit:g,priority:WN[g]});return m.sort(function(v,M){return v.priority-M.priority}),m}var kv=/\d/,Oo=/\d\d/,Ev=/\d{3}/,u6=/\d{4}/,$u=/[+-]?\d{6}/,gn=/\d\d?/,Iv=/\d\d\d\d?/,Ov=/\d\d\d\d\d\d?/,Gu=/\d{1,3}/,m6=/\d{1,4}/,Wu=/[+-]?\d{1,6}/,Ol=/\d+/,qu=/[+-]?\d+/,YN=/Z|[+-]\d\d:?\d\d/gi,Yu=/Z|[+-]\d\d(?::?\d\d)?/gi,QN=/[+-]?\d+(\.\d{1,3})?/,q2=/[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,Tl=/^[1-9]\d?/,p6=/^([1-9]\d|\d)/,Qu;Qu={};function Ae(l,m,g){Qu[l]=Ri(m)?m:function(v,M){return v&&g?g:m}}function KN(l,m){return r(Qu,l)?Qu[l](m._strict,m._locale):new RegExp(XN(l))}function XN(l){return Sa(l.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(m,g,v,M,A){return g||v||M||A}))}function Sa(l){return l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Qo(l){return l<0?Math.ceil(l)||0:Math.floor(l)}function Ot(l){var m=+l,g=0;return m!==0&&isFinite(m)&&(g=Qo(m)),g}var f6={};function tn(l,m){var g,v=m,M;for(typeof l=="string"&&(l=[l]),c(m)&&(v=function(A,ie){ie[m]=Ot(A)}),M=l.length,g=0;g68?1900:2e3)};var Tv=Pl("FullYear",!0);function tF(){return Ku(this.year())}function Pl(l,m){return function(g){return g!=null?(Pv(this,l,g),i.updateOffset(this,m),this):K2(this,l)}}function K2(l,m){if(!l.isValid())return NaN;var g=l._d,v=l._isUTC;switch(m){case"Milliseconds":return v?g.getUTCMilliseconds():g.getMilliseconds();case"Seconds":return v?g.getUTCSeconds():g.getSeconds();case"Minutes":return v?g.getUTCMinutes():g.getMinutes();case"Hours":return v?g.getUTCHours():g.getHours();case"Date":return v?g.getUTCDate():g.getDate();case"Day":return v?g.getUTCDay():g.getDay();case"Month":return v?g.getUTCMonth():g.getMonth();case"FullYear":return v?g.getUTCFullYear():g.getFullYear();default:return NaN}}function Pv(l,m,g){var v,M,A,ie,Le;if(!(!l.isValid()||isNaN(g))){switch(v=l._d,M=l._isUTC,m){case"Milliseconds":return void(M?v.setUTCMilliseconds(g):v.setMilliseconds(g));case"Seconds":return void(M?v.setUTCSeconds(g):v.setSeconds(g));case"Minutes":return void(M?v.setUTCMinutes(g):v.setMinutes(g));case"Hours":return void(M?v.setUTCHours(g):v.setHours(g));case"Date":return void(M?v.setUTCDate(g):v.setDate(g));case"FullYear":break;default:return}A=g,ie=l.month(),Le=l.date(),Le=Le===29&&ie===1&&!Ku(A)?28:Le,M?v.setUTCFullYear(A,ie,Le):v.setFullYear(A,ie,Le)}}function nF(l){return l=Yo(l),Ri(this[l])?this[l]():this}function iF(l,m){if(typeof l=="object"){l=d6(l);var g=qN(l),v,M=g.length;for(v=0;v=0?(Le=new Date(l+400,m,g,v,M,A,ie),isFinite(Le.getFullYear())&&Le.setFullYear(l)):Le=new Date(l,m,g,v,M,A,ie),Le}function X2(l){var m,g;return l<100&&l>=0?(g=Array.prototype.slice.call(arguments),g[0]=l+400,m=new Date(Date.UTC.apply(null,g)),isFinite(m.getUTCFullYear())&&m.setUTCFullYear(l)):m=new Date(Date.UTC.apply(null,arguments)),m}function Xu(l,m,g){var v=7+m-g,M=(7+X2(l,0,v).getUTCDay()-m)%7;return-M+v-1}function Fv(l,m,g,v,M){var A=(7+g-v)%7,ie=Xu(l,v,M),Le=1+7*(m-1)+A+ie,lt,Lt;return Le<=0?(lt=l-1,Lt=Q2(lt)+Le):Le>Q2(l)?(lt=l+1,Lt=Le-Q2(l)):(lt=l,Lt=Le),{year:lt,dayOfYear:Lt}}function Z2(l,m,g){var v=Xu(l.year(),m,g),M=Math.floor((l.dayOfYear()-v-1)/7)+1,A,ie;return M<1?(ie=l.year()-1,A=M+Ia(ie,m,g)):M>Ia(l.year(),m,g)?(A=M-Ia(l.year(),m,g),ie=l.year()+1):(ie=l.year(),A=M),{week:A,year:ie}}function Ia(l,m,g){var v=Xu(l,m,g),M=Xu(l+1,m,g);return(Q2(l)-v+M)/7}Be("w",["ww",2],"wo","week"),Be("W",["WW",2],"Wo","isoWeek"),Ae("w",gn,Tl),Ae("ww",gn,Oo),Ae("W",gn,Tl),Ae("WW",gn,Oo),Y2(["w","ww","W","WW"],function(l,m,g,v){m[v.substr(0,1)]=Ot(l)});function gF(l){return Z2(l,this._week.dow,this._week.doy).week}var _F={dow:0,doy:6};function bF(){return this._week.dow}function vF(){return this._week.doy}function yF(l){var m=this.localeData().week(this);return l==null?m:this.add((l-m)*7,"d")}function CF(l){var m=Z2(this,1,4).week;return l==null?m:this.add((l-m)*7,"d")}Be("d",0,"do","day"),Be("dd",0,0,function(l){return this.localeData().weekdaysMin(this,l)}),Be("ddd",0,0,function(l){return this.localeData().weekdaysShort(this,l)}),Be("dddd",0,0,function(l){return this.localeData().weekdays(this,l)}),Be("e",0,0,"weekday"),Be("E",0,0,"isoWeekday"),Ae("d",gn),Ae("e",gn),Ae("E",gn),Ae("dd",function(l,m){return m.weekdaysMinRegex(l)}),Ae("ddd",function(l,m){return m.weekdaysShortRegex(l)}),Ae("dddd",function(l,m){return m.weekdaysRegex(l)}),Y2(["dd","ddd","dddd"],function(l,m,g,v){var M=g._locale.weekdaysParse(l,v,g._strict);M!=null?m.d=M:D(g).invalidWeekday=l}),Y2(["d","e","E"],function(l,m,g,v){m[v]=Ot(l)});function xF(l,m){return typeof l!="string"?l:isNaN(l)?(l=m.weekdaysParse(l),typeof l=="number"?l:null):parseInt(l,10)}function MF(l,m){return typeof l=="string"?m.weekdaysParse(l)%7||7:isNaN(l)?null:l}function g6(l,m){return l.slice(m,7).concat(l.slice(0,m))}var wF="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Vv="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),DF="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),SF=q2,kF=q2,EF=q2;function IF(l,m){var g=n(this._weekdays)?this._weekdays:this._weekdays[l&&l!==!0&&this._weekdays.isFormat.test(m)?"format":"standalone"];return l===!0?g6(g,this._week.dow):l?g[l.day()]:g}function OF(l){return l===!0?g6(this._weekdaysShort,this._week.dow):l?this._weekdaysShort[l.day()]:this._weekdaysShort}function TF(l){return l===!0?g6(this._weekdaysMin,this._week.dow):l?this._weekdaysMin[l.day()]:this._weekdaysMin}function PF(l,m,g){var v,M,A,ie=l.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],v=0;v<7;++v)A=y([2e3,1]).day(v),this._minWeekdaysParse[v]=this.weekdaysMin(A,"").toLocaleLowerCase(),this._shortWeekdaysParse[v]=this.weekdaysShort(A,"").toLocaleLowerCase(),this._weekdaysParse[v]=this.weekdays(A,"").toLocaleLowerCase();return g?m==="dddd"?(M=Un.call(this._weekdaysParse,ie),M!==-1?M:null):m==="ddd"?(M=Un.call(this._shortWeekdaysParse,ie),M!==-1?M:null):(M=Un.call(this._minWeekdaysParse,ie),M!==-1?M:null):m==="dddd"?(M=Un.call(this._weekdaysParse,ie),M!==-1||(M=Un.call(this._shortWeekdaysParse,ie),M!==-1)?M:(M=Un.call(this._minWeekdaysParse,ie),M!==-1?M:null)):m==="ddd"?(M=Un.call(this._shortWeekdaysParse,ie),M!==-1||(M=Un.call(this._weekdaysParse,ie),M!==-1)?M:(M=Un.call(this._minWeekdaysParse,ie),M!==-1?M:null)):(M=Un.call(this._minWeekdaysParse,ie),M!==-1||(M=Un.call(this._weekdaysParse,ie),M!==-1)?M:(M=Un.call(this._shortWeekdaysParse,ie),M!==-1?M:null))}function LF(l,m,g){var v,M,A;if(this._weekdaysParseExact)return PF.call(this,l,m,g);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),v=0;v<7;v++){if(M=y([2e3,1]).day(v),g&&!this._fullWeekdaysParse[v]&&(this._fullWeekdaysParse[v]=new RegExp("^"+this.weekdays(M,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[v]=new RegExp("^"+this.weekdaysShort(M,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[v]=new RegExp("^"+this.weekdaysMin(M,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[v]||(A="^"+this.weekdays(M,"")+"|^"+this.weekdaysShort(M,"")+"|^"+this.weekdaysMin(M,""),this._weekdaysParse[v]=new RegExp(A.replace(".",""),"i")),g&&m==="dddd"&&this._fullWeekdaysParse[v].test(l))return v;if(g&&m==="ddd"&&this._shortWeekdaysParse[v].test(l))return v;if(g&&m==="dd"&&this._minWeekdaysParse[v].test(l))return v;if(!g&&this._weekdaysParse[v].test(l))return v}}function AF(l){if(!this.isValid())return l!=null?this:NaN;var m=K2(this,"Day");return l!=null?(l=xF(l,this.localeData()),this.add(l-m,"d")):m}function RF(l){if(!this.isValid())return l!=null?this:NaN;var m=(this.day()+7-this.localeData()._week.dow)%7;return l==null?m:this.add(l-m,"d")}function zF(l){if(!this.isValid())return l!=null?this:NaN;if(l!=null){var m=MF(l,this.localeData());return this.day(this.day()%7?m:m-7)}else return this.day()||7}function NF(l){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||_6.call(this),l?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=SF),this._weekdaysStrictRegex&&l?this._weekdaysStrictRegex:this._weekdaysRegex)}function FF(l){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||_6.call(this),l?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=kF),this._weekdaysShortStrictRegex&&l?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function VF(l){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||_6.call(this),l?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=EF),this._weekdaysMinStrictRegex&&l?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function _6(){function l(Ji,Aa){return Aa.length-Ji.length}var m=[],g=[],v=[],M=[],A,ie,Le,lt,Lt;for(A=0;A<7;A++)ie=y([2e3,1]).day(A),Le=Sa(this.weekdaysMin(ie,"")),lt=Sa(this.weekdaysShort(ie,"")),Lt=Sa(this.weekdays(ie,"")),m.push(Le),g.push(lt),v.push(Lt),M.push(Le),M.push(lt),M.push(Lt);m.sort(l),g.sort(l),v.sort(l),M.sort(l),this._weekdaysRegex=new RegExp("^("+M.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+v.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+m.join("|")+")","i")}function b6(){return this.hours()%12||12}function BF(){return this.hours()||24}Be("H",["HH",2],0,"hour"),Be("h",["hh",2],0,b6),Be("k",["kk",2],0,BF),Be("hmm",0,0,function(){return""+b6.apply(this)+Qr(this.minutes(),2)}),Be("hmmss",0,0,function(){return""+b6.apply(this)+Qr(this.minutes(),2)+Qr(this.seconds(),2)}),Be("Hmm",0,0,function(){return""+this.hours()+Qr(this.minutes(),2)}),Be("Hmmss",0,0,function(){return""+this.hours()+Qr(this.minutes(),2)+Qr(this.seconds(),2)});function Bv(l,m){Be(l,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),m)})}Bv("a",!0),Bv("A",!1);function jv(l,m){return m._meridiemParse}Ae("a",jv),Ae("A",jv),Ae("H",gn,p6),Ae("h",gn,Tl),Ae("k",gn,Tl),Ae("HH",gn,Oo),Ae("hh",gn,Oo),Ae("kk",gn,Oo),Ae("hmm",Iv),Ae("hmmss",Ov),Ae("Hmm",Iv),Ae("Hmmss",Ov),tn(["H","HH"],ci),tn(["k","kk"],function(l,m,g){var v=Ot(l);m[ci]=v===24?0:v}),tn(["a","A"],function(l,m,g){g._isPm=g._locale.isPM(l),g._meridiem=l}),tn(["h","hh"],function(l,m,g){m[ci]=Ot(l),D(g).bigHour=!0}),tn("hmm",function(l,m,g){var v=l.length-2;m[ci]=Ot(l.substr(0,v)),m[gr]=Ot(l.substr(v)),D(g).bigHour=!0}),tn("hmmss",function(l,m,g){var v=l.length-4,M=l.length-2;m[ci]=Ot(l.substr(0,v)),m[gr]=Ot(l.substr(v,2)),m[Ea]=Ot(l.substr(M)),D(g).bigHour=!0}),tn("Hmm",function(l,m,g){var v=l.length-2;m[ci]=Ot(l.substr(0,v)),m[gr]=Ot(l.substr(v))}),tn("Hmmss",function(l,m,g){var v=l.length-4,M=l.length-2;m[ci]=Ot(l.substr(0,v)),m[gr]=Ot(l.substr(v,2)),m[Ea]=Ot(l.substr(M))});function jF(l){return(l+"").toLowerCase().charAt(0)==="p"}var HF=/[ap]\.?m?\.?/i,UF=Pl("Hours",!0);function $F(l,m,g){return l>11?g?"pm":"PM":g?"am":"AM"}var Hv={calendar:PN,longDateFormat:zN,invalidDate:FN,ordinal:BN,dayOfMonthOrdinalParse:jN,relativeTime:UN,months:rF,monthsShort:Lv,week:_F,weekdays:wF,weekdaysMin:DF,weekdaysShort:Vv,meridiemParse:HF},Dn={},J2={},ed;function GF(l,m){var g,v=Math.min(l.length,m.length);for(g=0;g0;){if(M=Zu(A.slice(0,g).join("-")),M)return M;if(v&&v.length>=g&&GF(A,v)>=g-1)break;g--}m++}return ed}function qF(l){return!!(l&&l.match("^[^/\\\\]*$"))}function Zu(l){var m=null,g;if(Dn[l]===void 0&&typeof H1<"u"&&H1&&H1.exports&&qF(l))try{m=ed._abbr,g=gy,g("./locale/"+l),ps(m)}catch{Dn[l]=null}return Dn[l]}function ps(l,m){var g;return l&&(s(m)?g=Oa(l):g=v6(l,m),g?ed=g:typeof console<"u"&&console.warn&&console.warn("Locale "+l+" not found. Did you forget to load it?")),ed._abbr}function v6(l,m){if(m!==null){var g,v=Hv;if(m.abbr=l,Dn[l]!=null)Bu("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."),v=Dn[l]._config;else if(m.parentLocale!=null)if(Dn[m.parentLocale]!=null)v=Dn[m.parentLocale]._config;else if(g=Zu(m.parentLocale),g!=null)v=g._config;else return J2[m.parentLocale]||(J2[m.parentLocale]=[]),J2[m.parentLocale].push({name:l,config:m}),null;return Dn[l]=new W2(G2(v,m)),J2[l]&&J2[l].forEach(function(M){v6(M.name,M.config)}),ps(l),Dn[l]}else return delete Dn[l],null}function YF(l,m){if(m!=null){var g,v,M=Hv;Dn[l]!=null&&Dn[l].parentLocale!=null?Dn[l].set(G2(Dn[l]._config,m)):(v=Zu(l),v!=null&&(M=v._config),m=G2(M,m),v==null&&(m.abbr=l),g=new W2(m),g.parentLocale=Dn[l],Dn[l]=g),ps(l)}else Dn[l]!=null&&(Dn[l].parentLocale!=null?(Dn[l]=Dn[l].parentLocale,l===ps()&&ps(l)):Dn[l]!=null&&delete Dn[l]);return Dn[l]}function Oa(l){var m;if(l&&l._locale&&l._locale._abbr&&(l=l._locale._abbr),!l)return ed;if(!n(l)){if(m=Zu(l),m)return m;l=[l]}return WF(l)}function QF(){return s6(Dn)}function y6(l){var m,g=l._a;return g&&D(l).overflow===-2&&(m=g[ka]<0||g[ka]>11?ka:g[Kr]<1||g[Kr]>h6(g[zi],g[ka])?Kr:g[ci]<0||g[ci]>24||g[ci]===24&&(g[gr]!==0||g[Ea]!==0||g[hc]!==0)?ci:g[gr]<0||g[gr]>59?gr:g[Ea]<0||g[Ea]>59?Ea:g[hc]<0||g[hc]>999?hc:-1,D(l)._overflowDayOfYear&&(mKr)&&(m=Kr),D(l)._overflowWeeks&&m===-1&&(m=JN),D(l)._overflowWeekday&&m===-1&&(m=eF),D(l).overflow=m),l}var KF=/^\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)?)?$/,XF=/^\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)?)?$/,ZF=/Z|[+-]\d\d(?::?\d\d)?/,Ju=[["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]],C6=[["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/]],JF=/^\/?Date\((-?\d+)/i,eV=/^(?:(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}))$/,tV={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function $v(l){var m,g,v=l._i,M=KF.exec(v)||XF.exec(v),A,ie,Le,lt,Lt=Ju.length,Ji=C6.length;if(M){for(D(l).iso=!0,m=0,g=Lt;mQ2(ie)||l._dayOfYear===0)&&(D(l)._overflowDayOfYear=!0),g=X2(ie,0,l._dayOfYear),l._a[ka]=g.getUTCMonth(),l._a[Kr]=g.getUTCDate()),m=0;m<3&&l._a[m]==null;++m)l._a[m]=v[m]=M[m];for(;m<7;m++)l._a[m]=v[m]=l._a[m]==null?m===2?1:0:l._a[m];l._a[ci]===24&&l._a[gr]===0&&l._a[Ea]===0&&l._a[hc]===0&&(l._nextDay=!0,l._a[ci]=0),l._d=(l._useUTC?X2:hF).apply(null,v),A=l._useUTC?l._d.getUTCDay():l._d.getDay(),l._tzm!=null&&l._d.setUTCMinutes(l._d.getUTCMinutes()-l._tzm),l._nextDay&&(l._a[ci]=24),l._w&&typeof l._w.d<"u"&&l._w.d!==A&&(D(l).weekdayMismatch=!0)}}function lV(l){var m,g,v,M,A,ie,Le,lt,Lt;m=l._w,m.GG!=null||m.W!=null||m.E!=null?(A=1,ie=4,g=Ll(m.GG,l._a[zi],Z2(_n(),1,4).year),v=Ll(m.W,1),M=Ll(m.E,1),(M<1||M>7)&&(lt=!0)):(A=l._locale._week.dow,ie=l._locale._week.doy,Lt=Z2(_n(),A,ie),g=Ll(m.gg,l._a[zi],Lt.year),v=Ll(m.w,Lt.week),m.d!=null?(M=m.d,(M<0||M>6)&&(lt=!0)):m.e!=null?(M=m.e+A,(m.e<0||m.e>6)&&(lt=!0)):M=A),v<1||v>Ia(g,A,ie)?D(l)._overflowWeeks=!0:lt!=null?D(l)._overflowWeekday=!0:(Le=Fv(g,v,M,A,ie),l._a[zi]=Le.year,l._dayOfYear=Le.dayOfYear)}i.ISO_8601=function(){},i.RFC_2822=function(){};function M6(l){if(l._f===i.ISO_8601){$v(l);return}if(l._f===i.RFC_2822){Gv(l);return}l._a=[],D(l).empty=!0;var m=""+l._i,g,v,M,A,ie,Le=m.length,lt=0,Lt,Ji;for(M=Dv(l._f,l._locale).match(c6)||[],Ji=M.length,g=0;g0&&D(l).unusedInput.push(ie),m=m.slice(m.indexOf(v)+v.length),lt+=v.length),Il[A]?(v?D(l).empty=!1:D(l).unusedTokens.push(A),ZN(A,v,l)):l._strict&&!v&&D(l).unusedTokens.push(A);D(l).charsLeftOver=Le-lt,m.length>0&&D(l).unusedInput.push(m),l._a[ci]<=12&&D(l).bigHour===!0&&l._a[ci]>0&&(D(l).bigHour=void 0),D(l).parsedDateParts=l._a.slice(0),D(l).meridiem=l._meridiem,l._a[ci]=dV(l._locale,l._a[ci],l._meridiem),Lt=D(l).era,Lt!==null&&(l._a[zi]=l._locale.erasConvertYear(Lt,l._a[zi])),x6(l),y6(l)}function dV(l,m,g){var v;return g==null?m:l.meridiemHour!=null?l.meridiemHour(m,g):(l.isPM!=null&&(v=l.isPM(g),v&&m<12&&(m+=12),!v&&m===12&&(m=0)),m)}function uV(l){var m,g,v,M,A,ie,Le=!1,lt=l._f.length;if(lt===0){D(l).invalidFormat=!0,l._d=new Date(NaN);return}for(M=0;Mthis?this:l:K()});function Yv(l,m){var g,v;if(m.length===1&&n(m[0])&&(m=m[0]),!m.length)return _n();for(g=m[0],v=1;vthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function PV(){if(!s(this._isDSTShifted))return this._isDSTShifted;var l={},m;return wt(l,this),l=Wv(l),l._a?(m=l._isUTC?y(l._a):_n(l._a),this._isDSTShifted=this.isValid()&&MV(l._a,m.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function LV(){return this.isValid()?!this._isUTC:!1}function AV(){return this.isValid()?this._isUTC:!1}function Kv(){return this.isValid()?this._isUTC&&this._offset===0:!1}var RV=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,zV=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function _r(l,m){var g=l,v=null,M,A,ie;return t3(l)?g={ms:l._milliseconds,d:l._days,M:l._months}:c(l)||!isNaN(+l)?(g={},m?g[m]=+l:g.milliseconds=+l):(v=RV.exec(l))?(M=v[1]==="-"?-1:1,g={y:0,d:Ot(v[Kr])*M,h:Ot(v[ci])*M,m:Ot(v[gr])*M,s:Ot(v[Ea])*M,ms:Ot(w6(v[hc]*1e3))*M}):(v=zV.exec(l))?(M=v[1]==="-"?-1:1,g={y:gc(v[2],M),M:gc(v[3],M),w:gc(v[4],M),d:gc(v[5],M),h:gc(v[6],M),m:gc(v[7],M),s:gc(v[8],M)}):g==null?g={}:typeof g=="object"&&("from"in g||"to"in g)&&(ie=NV(_n(g.from),_n(g.to)),g={},g.ms=ie.milliseconds,g.M=ie.months),A=new e3(g),t3(l)&&r(l,"_locale")&&(A._locale=l._locale),t3(l)&&r(l,"_isValid")&&(A._isValid=l._isValid),A}_r.fn=e3.prototype,_r.invalid=xV;function gc(l,m){var g=l&&parseFloat(l.replace(",","."));return(isNaN(g)?0:g)*m}function Xv(l,m){var g={};return g.months=m.month()-l.month()+(m.year()-l.year())*12,l.clone().add(g.months,"M").isAfter(m)&&--g.months,g.milliseconds=+m-+l.clone().add(g.months,"M"),g}function NV(l,m){var g;return l.isValid()&&m.isValid()?(m=S6(m,l),l.isBefore(m)?g=Xv(l,m):(g=Xv(m,l),g.milliseconds=-g.milliseconds,g.months=-g.months),g):{milliseconds:0,months:0}}function Zv(l,m){return function(g,v){var M,A;return v!==null&&!isNaN(+v)&&(Bu(m,"moment()."+m+"(period, number) is deprecated. Please use moment()."+m+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),A=g,g=v,v=A),M=_r(g,v),Jv(this,M,l),this}}function Jv(l,m,g,v){var M=m._milliseconds,A=w6(m._days),ie=w6(m._months);l.isValid()&&(v=v??!0,ie&&Rv(l,K2(l,"Month")+ie*g),A&&Pv(l,"Date",K2(l,"Date")+A*g),M&&l._d.setTime(l._d.valueOf()+M*g),v&&i.updateOffset(l,A||ie))}var FV=Zv(1,"add"),VV=Zv(-1,"subtract");function ey(l){return typeof l=="string"||l instanceof String}function BV(l){return en(l)||u(l)||ey(l)||c(l)||HV(l)||jV(l)||l===null||l===void 0}function jV(l){var m=o(l)&&!a(l),g=!1,v=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],M,A,ie=v.length;for(M=0;Mg.valueOf():g.valueOf()9999?Uu(g,m?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ri(Date.prototype.toISOString)?m?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Uu(g,"Z")):Uu(g,m?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function nB(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var l="moment",m="",g,v,M,A;return this.isLocal()||(l=this.utcOffset()===0?"moment.utc":"moment.parseZone",m="Z"),g="["+l+'("]',v=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",M="-MM-DD[T]HH:mm:ss.SSS",A=m+'[")]',this.format(g+v+M+A)}function iB(l){l||(l=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var m=Uu(this,l);return this.localeData().postformat(m)}function oB(l,m){return this.isValid()&&(en(l)&&l.isValid()||_n(l).isValid())?_r({to:this,from:l}).locale(this.locale()).humanize(!m):this.localeData().invalidDate()}function rB(l){return this.from(_n(),l)}function aB(l,m){return this.isValid()&&(en(l)&&l.isValid()||_n(l).isValid())?_r({from:this,to:l}).locale(this.locale()).humanize(!m):this.localeData().invalidDate()}function sB(l){return this.to(_n(),l)}function ty(l){var m;return l===void 0?this._locale._abbr:(m=Oa(l),m!=null&&(this._locale=m),this)}var ny=si("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 iy(){return this._locale}var i3=1e3,Al=60*i3,o3=60*Al,oy=(365*400+97)*24*o3;function Rl(l,m){return(l%m+m)%m}function ry(l,m,g){return l<100&&l>=0?new Date(l+400,m,g)-oy:new Date(l,m,g).valueOf()}function ay(l,m,g){return l<100&&l>=0?Date.UTC(l+400,m,g)-oy:Date.UTC(l,m,g)}function cB(l){var m,g;if(l=Yo(l),l===void 0||l==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?ay:ry,l){case"year":m=g(this.year(),0,1);break;case"quarter":m=g(this.year(),this.month()-this.month()%3,1);break;case"month":m=g(this.year(),this.month(),1);break;case"week":m=g(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":m=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":m=g(this.year(),this.month(),this.date());break;case"hour":m=this._d.valueOf(),m-=Rl(m+(this._isUTC?0:this.utcOffset()*Al),o3);break;case"minute":m=this._d.valueOf(),m-=Rl(m,Al);break;case"second":m=this._d.valueOf(),m-=Rl(m,i3);break}return this._d.setTime(m),i.updateOffset(this,!0),this}function lB(l){var m,g;if(l=Yo(l),l===void 0||l==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?ay:ry,l){case"year":m=g(this.year()+1,0,1)-1;break;case"quarter":m=g(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":m=g(this.year(),this.month()+1,1)-1;break;case"week":m=g(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":m=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":m=g(this.year(),this.month(),this.date()+1)-1;break;case"hour":m=this._d.valueOf(),m+=o3-Rl(m+(this._isUTC?0:this.utcOffset()*Al),o3)-1;break;case"minute":m=this._d.valueOf(),m+=Al-Rl(m,Al)-1;break;case"second":m=this._d.valueOf(),m+=i3-Rl(m,i3)-1;break}return this._d.setTime(m),i.updateOffset(this,!0),this}function dB(){return this._d.valueOf()-(this._offset||0)*6e4}function uB(){return Math.floor(this.valueOf()/1e3)}function mB(){return new Date(this.valueOf())}function pB(){var l=this;return[l.year(),l.month(),l.date(),l.hour(),l.minute(),l.second(),l.millisecond()]}function fB(){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 hB(){return this.isValid()?this.toISOString():null}function gB(){return Q(this)}function _B(){return b({},D(this))}function bB(){return D(this).overflow}function vB(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Be("N",0,0,"eraAbbr"),Be("NN",0,0,"eraAbbr"),Be("NNN",0,0,"eraAbbr"),Be("NNNN",0,0,"eraName"),Be("NNNNN",0,0,"eraNarrow"),Be("y",["y",1],"yo","eraYear"),Be("y",["yy",2],0,"eraYear"),Be("y",["yyy",3],0,"eraYear"),Be("y",["yyyy",4],0,"eraYear"),Ae("N",E6),Ae("NN",E6),Ae("NNN",E6),Ae("NNNN",OB),Ae("NNNNN",TB),tn(["N","NN","NNN","NNNN","NNNNN"],function(l,m,g,v){var M=g._locale.erasParse(l,v,g._strict);M?D(g).era=M:D(g).invalidEra=l}),Ae("y",Ol),Ae("yy",Ol),Ae("yyy",Ol),Ae("yyyy",Ol),Ae("yo",PB),tn(["y","yy","yyy","yyyy"],zi),tn(["yo"],function(l,m,g,v){var M;g._locale._eraYearOrdinalRegex&&(M=l.match(g._locale._eraYearOrdinalRegex)),g._locale.eraYearOrdinalParse?m[zi]=g._locale.eraYearOrdinalParse(l,M):m[zi]=parseInt(l,10)});function yB(l,m){var g,v,M,A=this._eras||Oa("en")._eras;for(g=0,v=A.length;g=0)return A[v]}function xB(l,m){var g=l.since<=l.until?1:-1;return m===void 0?i(l.since).year():i(l.since).year()+(m-l.offset)*g}function MB(){var l,m,g,v=this.localeData().eras();for(l=0,m=v.length;lA&&(m=A),VB.call(this,l,m,g,v,M))}function VB(l,m,g,v,M){var A=Fv(l,m,g,v,M),ie=X2(A.year,0,A.dayOfYear);return this.year(ie.getUTCFullYear()),this.month(ie.getUTCMonth()),this.date(ie.getUTCDate()),this}Be("Q",0,"Qo","quarter"),Ae("Q",kv),tn("Q",function(l,m){m[ka]=(Ot(l)-1)*3});function BB(l){return l==null?Math.ceil((this.month()+1)/3):this.month((l-1)*3+this.month()%3)}Be("D",["DD",2],"Do","date"),Ae("D",gn,Tl),Ae("DD",gn,Oo),Ae("Do",function(l,m){return l?m._dayOfMonthOrdinalParse||m._ordinalParse:m._dayOfMonthOrdinalParseLenient}),tn(["D","DD"],Kr),tn("Do",function(l,m){m[Kr]=Ot(l.match(gn)[0])});var cy=Pl("Date",!0);Be("DDD",["DDDD",3],"DDDo","dayOfYear"),Ae("DDD",Gu),Ae("DDDD",Ev),tn(["DDD","DDDD"],function(l,m,g){g._dayOfYear=Ot(l)});function jB(l){var m=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return l==null?m:this.add(l-m,"d")}Be("m",["mm",2],0,"minute"),Ae("m",gn,p6),Ae("mm",gn,Oo),tn(["m","mm"],gr);var HB=Pl("Minutes",!1);Be("s",["ss",2],0,"second"),Ae("s",gn,p6),Ae("ss",gn,Oo),tn(["s","ss"],Ea);var UB=Pl("Seconds",!1);Be("S",0,0,function(){return~~(this.millisecond()/100)}),Be(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Be(0,["SSS",3],0,"millisecond"),Be(0,["SSSS",4],0,function(){return this.millisecond()*10}),Be(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Be(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Be(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Be(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Be(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ae("S",Gu,kv),Ae("SS",Gu,Oo),Ae("SSS",Gu,Ev);var fs,ly;for(fs="SSSS";fs.length<=9;fs+="S")Ae(fs,Ol);function $B(l,m){m[hc]=Ot(("0."+l)*1e3)}for(fs="S";fs.length<=9;fs+="S")tn(fs,$B);ly=Pl("Milliseconds",!1),Be("z",0,0,"zoneAbbr"),Be("zz",0,0,"zoneName");function GB(){return this._isUTC?"UTC":""}function WB(){return this._isUTC?"Coordinated Universal Time":""}var _e=Bt.prototype;_e.add=FV,_e.calendar=GV,_e.clone=WV,_e.diff=JV,_e.endOf=lB,_e.format=iB,_e.from=oB,_e.fromNow=rB,_e.to=aB,_e.toNow=sB,_e.get=nF,_e.invalidAt=bB,_e.isAfter=qV,_e.isBefore=YV,_e.isBetween=QV,_e.isSame=KV,_e.isSameOrAfter=XV,_e.isSameOrBefore=ZV,_e.isValid=gB,_e.lang=ny,_e.locale=ty,_e.localeData=iy,_e.max=gV,_e.min=hV,_e.parsingFlags=_B,_e.set=iF,_e.startOf=cB,_e.subtract=VV,_e.toArray=pB,_e.toObject=fB,_e.toDate=mB,_e.toISOString=tB,_e.inspect=nB,typeof Symbol<"u"&&Symbol.for!=null&&(_e[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),_e.toJSON=hB,_e.toString=eB,_e.unix=uB,_e.valueOf=dB,_e.creationData=vB,_e.eraName=MB,_e.eraNarrow=wB,_e.eraAbbr=DB,_e.eraYear=SB,_e.year=Tv,_e.isLeapYear=tF,_e.weekYear=LB,_e.isoWeekYear=AB,_e.quarter=_e.quarters=BB,_e.month=zv,_e.daysInMonth=mF,_e.week=_e.weeks=yF,_e.isoWeek=_e.isoWeeks=CF,_e.weeksInYear=NB,_e.weeksInWeekYear=FB,_e.isoWeeksInYear=RB,_e.isoWeeksInISOWeekYear=zB,_e.date=cy,_e.day=_e.days=AF,_e.weekday=RF,_e.isoWeekday=zF,_e.dayOfYear=jB,_e.hour=_e.hours=UF,_e.minute=_e.minutes=HB,_e.second=_e.seconds=UB,_e.millisecond=_e.milliseconds=ly,_e.utcOffset=DV,_e.utc=kV,_e.local=EV,_e.parseZone=IV,_e.hasAlignedHourOffset=OV,_e.isDST=TV,_e.isLocal=LV,_e.isUtcOffset=AV,_e.isUtc=Kv,_e.isUTC=Kv,_e.zoneAbbr=GB,_e.zoneName=WB,_e.dates=si("dates accessor is deprecated. Use date instead.",cy),_e.months=si("months accessor is deprecated. Use month instead",zv),_e.years=si("years accessor is deprecated. Use year instead",Tv),_e.zone=si("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",SV),_e.isDSTShifted=si("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",PV);function qB(l){return _n(l*1e3)}function YB(){return _n.apply(null,arguments).parseZone()}function dy(l){return l}var Ut=W2.prototype;Ut.calendar=LN,Ut.longDateFormat=NN,Ut.invalidDate=VN,Ut.ordinal=HN,Ut.preparse=dy,Ut.postformat=dy,Ut.relativeTime=$N,Ut.pastFuture=GN,Ut.set=ju,Ut.eras=yB,Ut.erasParse=CB,Ut.erasConvertYear=xB,Ut.erasAbbrRegex=EB,Ut.erasNameRegex=kB,Ut.erasNarrowRegex=IB,Ut.months=cF,Ut.monthsShort=lF,Ut.monthsParse=uF,Ut.monthsRegex=fF,Ut.monthsShortRegex=pF,Ut.week=gF,Ut.firstDayOfYear=vF,Ut.firstDayOfWeek=bF,Ut.weekdays=IF,Ut.weekdaysMin=TF,Ut.weekdaysShort=OF,Ut.weekdaysParse=LF,Ut.weekdaysRegex=NF,Ut.weekdaysShortRegex=FF,Ut.weekdaysMinRegex=VF,Ut.isPM=jF,Ut.meridiem=$F;function a3(l,m,g,v){var M=Oa(),A=y().set(v,m);return M[g](A,l)}function uy(l,m,g){if(c(l)&&(m=l,l=void 0),l=l||"",m!=null)return a3(l,m,g,"month");var v,M=[];for(v=0;v<12;v++)M[v]=a3(l,v,g,"month");return M}function O6(l,m,g,v){typeof l=="boolean"?(c(m)&&(g=m,m=void 0),m=m||""):(m=l,g=m,l=!1,c(m)&&(g=m,m=void 0),m=m||"");var M=Oa(),A=l?M._week.dow:0,ie,Le=[];if(g!=null)return a3(m,(g+A)%7,v,"day");for(ie=0;ie<7;ie++)Le[ie]=a3(m,(ie+A)%7,v,"day");return Le}function QB(l,m){return uy(l,m,"months")}function KB(l,m){return uy(l,m,"monthsShort")}function XB(l,m,g){return O6(l,m,g,"weekdays")}function ZB(l,m,g){return O6(l,m,g,"weekdaysShort")}function JB(l,m,g){return O6(l,m,g,"weekdaysMin")}ps("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 m=l%10,g=Ot(l%100/10)===1?"th":m===1?"st":m===2?"nd":m===3?"rd":"th";return l+g}}),i.lang=si("moment.lang is deprecated. Use moment.locale instead.",ps),i.langData=si("moment.langData is deprecated. Use moment.localeData instead.",Oa);var Ta=Math.abs;function ej(){var l=this._data;return this._milliseconds=Ta(this._milliseconds),this._days=Ta(this._days),this._months=Ta(this._months),l.milliseconds=Ta(l.milliseconds),l.seconds=Ta(l.seconds),l.minutes=Ta(l.minutes),l.hours=Ta(l.hours),l.months=Ta(l.months),l.years=Ta(l.years),this}function my(l,m,g,v){var M=_r(m,g);return l._milliseconds+=v*M._milliseconds,l._days+=v*M._days,l._months+=v*M._months,l._bubble()}function tj(l,m){return my(this,l,m,1)}function nj(l,m){return my(this,l,m,-1)}function py(l){return l<0?Math.floor(l):Math.ceil(l)}function ij(){var l=this._milliseconds,m=this._days,g=this._months,v=this._data,M,A,ie,Le,lt;return l>=0&&m>=0&&g>=0||l<=0&&m<=0&&g<=0||(l+=py(T6(g)+m)*864e5,m=0,g=0),v.milliseconds=l%1e3,M=Qo(l/1e3),v.seconds=M%60,A=Qo(M/60),v.minutes=A%60,ie=Qo(A/60),v.hours=ie%24,m+=Qo(ie/24),lt=Qo(fy(m)),g+=lt,m-=py(T6(lt)),Le=Qo(g/12),g%=12,v.days=m,v.months=g,v.years=Le,this}function fy(l){return l*4800/146097}function T6(l){return l*146097/4800}function oj(l){if(!this.isValid())return NaN;var m,g,v=this._milliseconds;if(l=Yo(l),l==="month"||l==="quarter"||l==="year")switch(m=this._days+v/864e5,g=this._months+fy(m),l){case"month":return g;case"quarter":return g/3;case"year":return g/12}else switch(m=this._days+Math.round(T6(this._months)),l){case"week":return m/7+v/6048e5;case"day":return m+v/864e5;case"hour":return m*24+v/36e5;case"minute":return m*1440+v/6e4;case"second":return m*86400+v/1e3;case"millisecond":return Math.floor(m*864e5)+v;default:throw new Error("Unknown unit "+l)}}function Pa(l){return function(){return this.as(l)}}var hy=Pa("ms"),rj=Pa("s"),aj=Pa("m"),sj=Pa("h"),cj=Pa("d"),lj=Pa("w"),dj=Pa("M"),uj=Pa("Q"),mj=Pa("y"),pj=hy;function fj(){return _r(this)}function hj(l){return l=Yo(l),this.isValid()?this[l+"s"]():NaN}function _c(l){return function(){return this.isValid()?this._data[l]:NaN}}var gj=_c("milliseconds"),_j=_c("seconds"),bj=_c("minutes"),vj=_c("hours"),yj=_c("days"),Cj=_c("months"),xj=_c("years");function Mj(){return Qo(this.days()/7)}var La=Math.round,zl={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function wj(l,m,g,v,M){return M.relativeTime(m||1,!!g,l,v)}function Dj(l,m,g,v){var M=_r(l).abs(),A=La(M.as("s")),ie=La(M.as("m")),Le=La(M.as("h")),lt=La(M.as("d")),Lt=La(M.as("M")),Ji=La(M.as("w")),Aa=La(M.as("y")),hs=A<=g.ss&&["s",A]||A0,hs[4]=v,wj.apply(null,hs)}function Sj(l){return l===void 0?La:typeof l=="function"?(La=l,!0):!1}function kj(l,m){return zl[l]===void 0?!1:m===void 0?zl[l]:(zl[l]=m,l==="s"&&(zl.ss=m-1),!0)}function Ej(l,m){if(!this.isValid())return this.localeData().invalidDate();var g=!1,v=zl,M,A;return typeof l=="object"&&(m=l,l=!1),typeof l=="boolean"&&(g=l),typeof m=="object"&&(v=Object.assign({},zl,m),m.s!=null&&m.ss==null&&(v.ss=m.s-1)),M=this.localeData(),A=Dj(this,!g,v,M),g&&(A=M.pastFuture(+this,A)),M.postformat(A)}var P6=Math.abs;function Nl(l){return(l>0)-(l<0)||+l}function s3(){if(!this.isValid())return this.localeData().invalidDate();var l=P6(this._milliseconds)/1e3,m=P6(this._days),g=P6(this._months),v,M,A,ie,Le=this.asSeconds(),lt,Lt,Ji,Aa;return Le?(v=Qo(l/60),M=Qo(v/60),l%=60,v%=60,A=Qo(g/12),g%=12,ie=l?l.toFixed(3).replace(/\.?0+$/,""):"",lt=Le<0?"-":"",Lt=Nl(this._months)!==Nl(Le)?"-":"",Ji=Nl(this._days)!==Nl(Le)?"-":"",Aa=Nl(this._milliseconds)!==Nl(Le)?"-":"",lt+"P"+(A?Lt+A+"Y":"")+(g?Lt+g+"M":"")+(m?Ji+m+"D":"")+(M||v||l?"T":"")+(M?Aa+M+"H":"")+(v?Aa+v+"M":"")+(l?Aa+ie+"S":"")):"P0D"}var Nt=e3.prototype;Nt.isValid=CV,Nt.abs=ej,Nt.add=tj,Nt.subtract=nj,Nt.as=oj,Nt.asMilliseconds=hy,Nt.asSeconds=rj,Nt.asMinutes=aj,Nt.asHours=sj,Nt.asDays=cj,Nt.asWeeks=lj,Nt.asMonths=dj,Nt.asQuarters=uj,Nt.asYears=mj,Nt.valueOf=pj,Nt._bubble=ij,Nt.clone=fj,Nt.get=hj,Nt.milliseconds=gj,Nt.seconds=_j,Nt.minutes=bj,Nt.hours=vj,Nt.days=yj,Nt.weeks=Mj,Nt.months=Cj,Nt.years=xj,Nt.humanize=Ej,Nt.toISOString=s3,Nt.toString=s3,Nt.toJSON=s3,Nt.locale=ty,Nt.localeData=iy,Nt.toIsoString=si("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",s3),Nt.lang=ny,Be("X",0,0,"unix"),Be("x",0,0,"valueOf"),Ae("x",qu),Ae("X",QN),tn("X",function(l,m,g){g._d=new Date(parseFloat(l)*1e3)}),tn("x",function(l,m,g){g._d=new Date(Ot(l))});return i.version="2.30.1",e(_n),i.fn=_e,i.min=_V,i.max=bV,i.now=vV,i.utc=y,i.unix=qB,i.months=QB,i.isDate=u,i.locale=ps,i.invalid=K,i.duration=_r,i.isMoment=en,i.weekdays=XB,i.parseZone=YB,i.localeData=Oa,i.isDuration=t3,i.monthsShort=KB,i.weekdaysMin=JB,i.defineLocale=v6,i.updateLocale=YF,i.locales=QF,i.weekdaysShort=ZB,i.normalizeUnits=Yo,i.relativeTimeRounding=Sj,i.relativeTimeThreshold=kj,i.calendarFormat=$V,i.prototype=_e,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 PS=_y((PCe,TS)=>{function ip(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 Za(){this.step=" ",this.shift=ip(this.step)}Za.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};Za.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};Za.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?ip(i):this.shift;for(a=0;a/g,"").replace(/[ \r\n\t]{1,}xmlns/g," xmlns");return e.replace(/>\s{0,}<")};Za.prototype.jsonmin=function(t){return typeof JSON>"u"?t:JSON.stringify(JSON.parse(t),null,0)};Za.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,"*/")};Za.prototype.sqlmin=function(t){return t.replace(/\s{1,}/g," ").replace(/\s{1,}\(/,"(").replace(/\s{1,}\)/,")")};TS.exports=new Za});var L6;function l3(){return L6}function Xr(t){let i=L6;return L6=t,i}var by=Symbol("NotFound");function Fl(t){return t===by||t?.name==="\u0275NotFound"}var Ni=null,d3=!1,A6=1,Ij=null,Qn=Symbol("SIGNAL");function nt(t){let i=Ni;return Ni=t,i}function f3(){return Ni}var bc={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 gs(t){if(d3)throw new Error("");if(Ni===null)return;Ni.consumerOnSignalRead(t);let i=Ni.producersTail;if(i!==void 0&&i.producer===t)return;let e,n=Ni.recomputing;if(n&&(e=i!==void 0?i.nextProducer:Ni.producers,e!==void 0&&e.producer===t)){Ni.producersTail=e,e.lastReadVersion=t.version;return}let o=t.consumersTail;if(o!==void 0&&o.consumer===Ni&&(!n||Tj(o,Ni)))return;let r=Vl(Ni),a={producer:t,consumer:Ni,nextProducer:e,prevConsumer:o,lastReadVersion:t.version,nextConsumer:void 0};Ni.producersTail=a,i!==void 0?i.nextProducer=a:Ni.producers=a,r&&xy(t,a)}function vy(){A6++}function h3(t){if(!(Vl(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===A6)){if(!t.producerMustRecompute(t)&&!yc(t)){p3(t);return}t.producerRecomputeValue(t),p3(t)}}function R6(t){if(t.consumers===void 0)return;let i=d3;d3=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let n=e.consumer;n.dirty||Oj(n)}}finally{d3=i}}function z6(){return Ni?.consumerAllowSignalWrites!==!1}function Oj(t){t.dirty=!0,R6(t),t.consumerMarkedDirty?.(t)}function p3(t){t.dirty=!1,t.lastCleanEpoch=A6}function _s(t){return t&&yy(t),nt(t)}function yy(t){t.producersTail=void 0,t.recomputing=!0}function vc(t,i){nt(i),t&&Cy(t)}function Cy(t){t.recomputing=!1;let i=t.producersTail,e=i!==void 0?i.nextProducer:t.producers;if(e!==void 0){if(Vl(t))do e=N6(e);while(e!==void 0);i!==void 0?i.nextProducer=void 0:t.producers=void 0}}function yc(t){for(let i=t.producers;i!==void 0;i=i.nextProducer){let e=i.producer,n=i.lastReadVersion;if(n!==e.version||(h3(e),n!==e.version))return!0}return!1}function bs(t){if(Vl(t)){let i=t.producers;for(;i!==void 0;)i=N6(i)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function xy(t,i){let e=t.consumersTail,n=Vl(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)xy(o.producer,o)}function N6(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,!Vl(i)){let r=i.producers;for(;r!==void 0;)r=N6(r)}return e}function Vl(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function g3(t){Ij?.(t)}function Tj(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 _3(t,i){return Object.is(t,i)}function id(t,i){let e=Object.create(Pj);e.computation=t,i!==void 0&&(e.equal=i);let n=()=>{if(h3(e),gs(e),e.value===nd)throw e.error;return e.value};return n[Qn]=e,g3(e),n}var u3=Symbol("UNSET"),m3=Symbol("COMPUTING"),nd=Symbol("ERRORED"),Pj=Ne(Y({},bc),{value:u3,dirty:!0,error:null,equal:_3,kind:"computed",producerMustRecompute(t){return t.value===u3||t.value===m3},producerRecomputeValue(t){if(t.value===m3)throw new Error("");let i=t.value;t.value=m3;let e=_s(t),n,o=!1;try{n=t.computation(),nt(null),o=i!==u3&&i!==nd&&n!==nd&&t.equal(i,n)}catch(r){n=nd,t.error=r}finally{vc(t,e)}if(o){t.value=i;return}t.value=n,t.version++}});function Lj(){throw new Error}var My=Lj;function wy(t){My(t)}function F6(t){My=t}var Aj=null;function V6(t,i){let e=Object.create(od);e.value=t,i!==void 0&&(e.equal=i);let n=()=>Dy(e);return n[Qn]=e,g3(e),[n,a=>Cc(e,a),a=>B6(e,a)]}function Dy(t){return gs(t),t.value}function Cc(t,i){z6()||wy(t),t.equal(t.value,i)||(t.value=i,Rj(t))}function B6(t,i){z6()||wy(t),Cc(t,i(t.value))}var od=Ne(Y({},bc),{equal:_3,value:void 0,kind:"signal"});function Rj(t){t.version++,vy(),R6(t),Aj?.(t)}function Ke(t){return typeof t=="function"}function vs(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 b3=vs(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: +`+new Error().stack),_=!1}return m.apply(this,arguments)},m)}var Ll={};function $u(l,m){i.deprecationHandler!=null&&i.deprecationHandler(l,m),Ll[l]||(Xo(m),Ll[l]=!0)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null;function Ri(l){return typeof Function<"u"&&l instanceof Function||Object.prototype.toString.call(l)==="[object Function]"}function Gu(l){var m,_;for(_ in l)r(l,_)&&(m=l[_],Ri(m)?this[_]=m:this["_"+_]=m);this._config=l,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Q2(l,m){var _=g({},l),v;for(v in m)r(m,v)&&(o(l[v])&&o(m[v])?(_[v]={},g(_[v],l[v]),g(_[v],m[v])):m[v]!=null?_[v]=m[v]:delete _[v]);for(v in l)r(l,v)&&!r(m,v)&&o(l[v])&&(_[v]=g({},_[v]));return _}function K2(l){l!=null&&this.set(l)}var l6;Object.keys?l6=Object.keys:l6=function(l){var m,_=[];for(m in l)r(l,m)&&_.push(m);return _};var uF={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function mF(l,m,_){var v=this._calendar[l]||this._calendar.sameElse;return Ri(v)?v.call(m,_):v}function Jr(l,m,_){var v=""+Math.abs(l),M=m-v.length,A=l>=0;return(A?_?"+":"":"-")+Math.pow(10,Math.max(0,M)).toString().substr(1)+v}var d6=/(\[[^\[]*\])|(\\)?([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,Wu=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,u6={},Pl={};function Be(l,m,_,v){var M=v;typeof v=="string"&&(M=function(){return this[v]()}),l&&(Pl[l]=M),m&&(Pl[m[0]]=function(){return Jr(M.apply(this,arguments),m[1],m[2])}),_&&(Pl[_]=function(){return this.localeData().ordinal(M.apply(this,arguments),l)})}function pF(l){return l.match(/\[[\s\S]/)?l.replace(/^\[|\]$/g,""):l.replace(/\\/g,"")}function fF(l){var m=l.match(d6),_,v;for(_=0,v=m.length;_=0&&Wu.test(l);)l=l.replace(Wu,v),Wu.lastIndex=0,_-=1;return l}var hF={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 gF(l){var m=this._longDateFormat[l],_=this._longDateFormat[l.toUpperCase()];return m||!_?m:(this._longDateFormat[l]=_.match(d6).map(function(v){return v==="MMMM"||v==="MM"||v==="DD"||v==="dddd"?v.slice(1):v}).join(""),this._longDateFormat[l])}var _F="Invalid date";function bF(){return this._invalidDate}var vF="%d",yF=/\d{1,2}/;function CF(l){return this._ordinal.replace("%d",l)}var xF={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 MF(l,m,_,v){var M=this._relativeTime[_];return Ri(M)?M(l,m,_,v):M.replace(/%d/i,l)}function wF(l,m){var _=this._relativeTime[l>0?"future":"past"];return Ri(_)?_(m):_.replace(/%s/i,m)}var Vv={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 Zo(l){return typeof l=="string"?Vv[l]||Vv[l.toLowerCase()]:void 0}function m6(l){var m={},_,v;for(v in l)r(l,v)&&(_=Zo(v),_&&(m[_]=l[v]));return m}var DF={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 SF(l){var m=[],_;for(_ in l)r(l,_)&&m.push({unit:_,priority:DF[_]});return m.sort(function(v,M){return v.priority-M.priority}),m}var Bv=/\d/,Ao=/\d\d/,jv=/\d{3}/,p6=/\d{4}/,qu=/[+-]?\d{6}/,gn=/\d\d?/,Hv=/\d\d\d\d?/,Uv=/\d\d\d\d\d\d?/,Qu=/\d{1,3}/,f6=/\d{1,4}/,Ku=/[+-]?\d{1,6}/,Al=/\d+/,Xu=/[+-]?\d+/,kF=/Z|[+-]\d\d:?\d\d/gi,Zu=/Z|[+-]\d\d(?::?\d\d)?/gi,EF=/[+-]?\d+(\.\d{1,3})?/,X2=/[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,zl=/^[1-9]\d?/,h6=/^([1-9]\d|\d)/,Ju;Ju={};function Ae(l,m,_){Ju[l]=Ri(m)?m:function(v,M){return v&&_?_:m}}function IF(l,m){return r(Ju,l)?Ju[l](m._strict,m._locale):new RegExp(TF(l))}function TF(l){return Ta(l.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(m,_,v,M,A){return _||v||M||A}))}function Ta(l){return l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Jo(l){return l<0?Math.ceil(l)||0:Math.floor(l)}function Tt(l){var m=+l,_=0;return m!==0&&isFinite(m)&&(_=Jo(m)),_}var g6={};function tn(l,m){var _,v=m,M;for(typeof l=="string"&&(l=[l]),c(m)&&(v=function(A,ie){ie[m]=Tt(A)}),M=l.length,_=0;_68?1900:2e3)};var $v=Rl("FullYear",!0);function AF(){return e3(this.year())}function Rl(l,m){return function(_){return _!=null?(Gv(this,l,_),i.updateOffset(this,m),this):ed(this,l)}}function ed(l,m){if(!l.isValid())return NaN;var _=l._d,v=l._isUTC;switch(m){case"Milliseconds":return v?_.getUTCMilliseconds():_.getMilliseconds();case"Seconds":return v?_.getUTCSeconds():_.getSeconds();case"Minutes":return v?_.getUTCMinutes():_.getMinutes();case"Hours":return v?_.getUTCHours():_.getHours();case"Date":return v?_.getUTCDate():_.getDate();case"Day":return v?_.getUTCDay():_.getDay();case"Month":return v?_.getUTCMonth():_.getMonth();case"FullYear":return v?_.getUTCFullYear():_.getFullYear();default:return NaN}}function Gv(l,m,_){var v,M,A,ie,Pe;if(!(!l.isValid()||isNaN(_))){switch(v=l._d,M=l._isUTC,m){case"Milliseconds":return void(M?v.setUTCMilliseconds(_):v.setMilliseconds(_));case"Seconds":return void(M?v.setUTCSeconds(_):v.setSeconds(_));case"Minutes":return void(M?v.setUTCMinutes(_):v.setMinutes(_));case"Hours":return void(M?v.setUTCHours(_):v.setHours(_));case"Date":return void(M?v.setUTCDate(_):v.setDate(_));case"FullYear":break;default:return}A=_,ie=l.month(),Pe=l.date(),Pe=Pe===29&&ie===1&&!e3(A)?28:Pe,M?v.setUTCFullYear(A,ie,Pe):v.setFullYear(A,ie,Pe)}}function zF(l){return l=Zo(l),Ri(this[l])?this[l]():this}function RF(l,m){if(typeof l=="object"){l=m6(l);var _=SF(l),v,M=_.length;for(v=0;v=0?(Pe=new Date(l+400,m,_,v,M,A,ie),isFinite(Pe.getFullYear())&&Pe.setFullYear(l)):Pe=new Date(l,m,_,v,M,A,ie),Pe}function td(l){var m,_;return l<100&&l>=0?(_=Array.prototype.slice.call(arguments),_[0]=l+400,m=new Date(Date.UTC.apply(null,_)),isFinite(m.getUTCFullYear())&&m.setUTCFullYear(l)):m=new Date(Date.UTC.apply(null,arguments)),m}function t3(l,m,_){var v=7+m-_,M=(7+td(l,0,v).getUTCDay()-m)%7;return-M+v-1}function Xv(l,m,_,v,M){var A=(7+_-v)%7,ie=t3(l,v,M),Pe=1+7*(m-1)+A+ie,lt,Pt;return Pe<=0?(lt=l-1,Pt=J2(lt)+Pe):Pe>J2(l)?(lt=l+1,Pt=Pe-J2(l)):(lt=l,Pt=Pe),{year:lt,dayOfYear:Pt}}function nd(l,m,_){var v=t3(l.year(),m,_),M=Math.floor((l.dayOfYear()-v-1)/7)+1,A,ie;return M<1?(ie=l.year()-1,A=M+Pa(ie,m,_)):M>Pa(l.year(),m,_)?(A=M-Pa(l.year(),m,_),ie=l.year()+1):(ie=l.year(),A=M),{week:A,year:ie}}function Pa(l,m,_){var v=t3(l,m,_),M=t3(l+1,m,_);return(J2(l)-v+M)/7}Be("w",["ww",2],"wo","week"),Be("W",["WW",2],"Wo","isoWeek"),Ae("w",gn,zl),Ae("ww",gn,Ao),Ae("W",gn,zl),Ae("WW",gn,Ao),Z2(["w","ww","W","WW"],function(l,m,_,v){m[v.substr(0,1)]=Tt(l)});function QF(l){return nd(l,this._week.dow,this._week.doy).week}var KF={dow:0,doy:6};function XF(){return this._week.dow}function ZF(){return this._week.doy}function JF(l){var m=this.localeData().week(this);return l==null?m:this.add((l-m)*7,"d")}function eV(l){var m=nd(this,1,4).week;return l==null?m:this.add((l-m)*7,"d")}Be("d",0,"do","day"),Be("dd",0,0,function(l){return this.localeData().weekdaysMin(this,l)}),Be("ddd",0,0,function(l){return this.localeData().weekdaysShort(this,l)}),Be("dddd",0,0,function(l){return this.localeData().weekdays(this,l)}),Be("e",0,0,"weekday"),Be("E",0,0,"isoWeekday"),Ae("d",gn),Ae("e",gn),Ae("E",gn),Ae("dd",function(l,m){return m.weekdaysMinRegex(l)}),Ae("ddd",function(l,m){return m.weekdaysShortRegex(l)}),Ae("dddd",function(l,m){return m.weekdaysRegex(l)}),Z2(["dd","ddd","dddd"],function(l,m,_,v){var M=_._locale.weekdaysParse(l,v,_._strict);M!=null?m.d=M:D(_).invalidWeekday=l}),Z2(["d","e","E"],function(l,m,_,v){m[v]=Tt(l)});function tV(l,m){return typeof l!="string"?l:isNaN(l)?(l=m.weekdaysParse(l),typeof l=="number"?l:null):parseInt(l,10)}function nV(l,m){return typeof l=="string"?m.weekdaysParse(l)%7||7:isNaN(l)?null:l}function b6(l,m){return l.slice(m,7).concat(l.slice(0,m))}var iV="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Zv="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),oV="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),rV=X2,aV=X2,sV=X2;function cV(l,m){var _=n(this._weekdays)?this._weekdays:this._weekdays[l&&l!==!0&&this._weekdays.isFormat.test(m)?"format":"standalone"];return l===!0?b6(_,this._week.dow):l?_[l.day()]:_}function lV(l){return l===!0?b6(this._weekdaysShort,this._week.dow):l?this._weekdaysShort[l.day()]:this._weekdaysShort}function dV(l){return l===!0?b6(this._weekdaysMin,this._week.dow):l?this._weekdaysMin[l.day()]:this._weekdaysMin}function uV(l,m,_){var v,M,A,ie=l.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],v=0;v<7;++v)A=y([2e3,1]).day(v),this._minWeekdaysParse[v]=this.weekdaysMin(A,"").toLocaleLowerCase(),this._shortWeekdaysParse[v]=this.weekdaysShort(A,"").toLocaleLowerCase(),this._weekdaysParse[v]=this.weekdays(A,"").toLocaleLowerCase();return _?m==="dddd"?(M=$n.call(this._weekdaysParse,ie),M!==-1?M:null):m==="ddd"?(M=$n.call(this._shortWeekdaysParse,ie),M!==-1?M:null):(M=$n.call(this._minWeekdaysParse,ie),M!==-1?M:null):m==="dddd"?(M=$n.call(this._weekdaysParse,ie),M!==-1||(M=$n.call(this._shortWeekdaysParse,ie),M!==-1)?M:(M=$n.call(this._minWeekdaysParse,ie),M!==-1?M:null)):m==="ddd"?(M=$n.call(this._shortWeekdaysParse,ie),M!==-1||(M=$n.call(this._weekdaysParse,ie),M!==-1)?M:(M=$n.call(this._minWeekdaysParse,ie),M!==-1?M:null)):(M=$n.call(this._minWeekdaysParse,ie),M!==-1||(M=$n.call(this._weekdaysParse,ie),M!==-1)?M:(M=$n.call(this._shortWeekdaysParse,ie),M!==-1?M:null))}function mV(l,m,_){var v,M,A;if(this._weekdaysParseExact)return uV.call(this,l,m,_);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),v=0;v<7;v++){if(M=y([2e3,1]).day(v),_&&!this._fullWeekdaysParse[v]&&(this._fullWeekdaysParse[v]=new RegExp("^"+this.weekdays(M,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[v]=new RegExp("^"+this.weekdaysShort(M,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[v]=new RegExp("^"+this.weekdaysMin(M,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[v]||(A="^"+this.weekdays(M,"")+"|^"+this.weekdaysShort(M,"")+"|^"+this.weekdaysMin(M,""),this._weekdaysParse[v]=new RegExp(A.replace(".",""),"i")),_&&m==="dddd"&&this._fullWeekdaysParse[v].test(l))return v;if(_&&m==="ddd"&&this._shortWeekdaysParse[v].test(l))return v;if(_&&m==="dd"&&this._minWeekdaysParse[v].test(l))return v;if(!_&&this._weekdaysParse[v].test(l))return v}}function pV(l){if(!this.isValid())return l!=null?this:NaN;var m=ed(this,"Day");return l!=null?(l=tV(l,this.localeData()),this.add(l-m,"d")):m}function fV(l){if(!this.isValid())return l!=null?this:NaN;var m=(this.day()+7-this.localeData()._week.dow)%7;return l==null?m:this.add(l-m,"d")}function hV(l){if(!this.isValid())return l!=null?this:NaN;if(l!=null){var m=nV(l,this.localeData());return this.day(this.day()%7?m:m-7)}else return this.day()||7}function gV(l){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||v6.call(this),l?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=rV),this._weekdaysStrictRegex&&l?this._weekdaysStrictRegex:this._weekdaysRegex)}function _V(l){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||v6.call(this),l?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=aV),this._weekdaysShortStrictRegex&&l?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function bV(l){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||v6.call(this),l?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=sV),this._weekdaysMinStrictRegex&&l?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function v6(){function l(eo,Fa){return Fa.length-eo.length}var m=[],_=[],v=[],M=[],A,ie,Pe,lt,Pt;for(A=0;A<7;A++)ie=y([2e3,1]).day(A),Pe=Ta(this.weekdaysMin(ie,"")),lt=Ta(this.weekdaysShort(ie,"")),Pt=Ta(this.weekdays(ie,"")),m.push(Pe),_.push(lt),v.push(Pt),M.push(Pe),M.push(lt),M.push(Pt);m.sort(l),_.sort(l),v.sort(l),M.sort(l),this._weekdaysRegex=new RegExp("^("+M.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+v.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+m.join("|")+")","i")}function y6(){return this.hours()%12||12}function vV(){return this.hours()||24}Be("H",["HH",2],0,"hour"),Be("h",["hh",2],0,y6),Be("k",["kk",2],0,vV),Be("hmm",0,0,function(){return""+y6.apply(this)+Jr(this.minutes(),2)}),Be("hmmss",0,0,function(){return""+y6.apply(this)+Jr(this.minutes(),2)+Jr(this.seconds(),2)}),Be("Hmm",0,0,function(){return""+this.hours()+Jr(this.minutes(),2)}),Be("Hmmss",0,0,function(){return""+this.hours()+Jr(this.minutes(),2)+Jr(this.seconds(),2)});function Jv(l,m){Be(l,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),m)})}Jv("a",!0),Jv("A",!1);function ey(l,m){return m._meridiemParse}Ae("a",ey),Ae("A",ey),Ae("H",gn,h6),Ae("h",gn,zl),Ae("k",gn,zl),Ae("HH",gn,Ao),Ae("hh",gn,Ao),Ae("kk",gn,Ao),Ae("hmm",Hv),Ae("hmmss",Uv),Ae("Hmm",Hv),Ae("Hmmss",Uv),tn(["H","HH"],li),tn(["k","kk"],function(l,m,_){var v=Tt(l);m[li]=v===24?0:v}),tn(["a","A"],function(l,m,_){_._isPm=_._locale.isPM(l),_._meridiem=l}),tn(["h","hh"],function(l,m,_){m[li]=Tt(l),D(_).bigHour=!0}),tn("hmm",function(l,m,_){var v=l.length-2;m[li]=Tt(l.substr(0,v)),m[yr]=Tt(l.substr(v)),D(_).bigHour=!0}),tn("hmmss",function(l,m,_){var v=l.length-4,M=l.length-2;m[li]=Tt(l.substr(0,v)),m[yr]=Tt(l.substr(v,2)),m[La]=Tt(l.substr(M)),D(_).bigHour=!0}),tn("Hmm",function(l,m,_){var v=l.length-2;m[li]=Tt(l.substr(0,v)),m[yr]=Tt(l.substr(v))}),tn("Hmmss",function(l,m,_){var v=l.length-4,M=l.length-2;m[li]=Tt(l.substr(0,v)),m[yr]=Tt(l.substr(v,2)),m[La]=Tt(l.substr(M))});function yV(l){return(l+"").toLowerCase().charAt(0)==="p"}var CV=/[ap]\.?m?\.?/i,xV=Rl("Hours",!0);function MV(l,m,_){return l>11?_?"pm":"PM":_?"am":"AM"}var ty={calendar:uF,longDateFormat:hF,invalidDate:_F,ordinal:vF,dayOfMonthOrdinalParse:yF,relativeTime:xF,months:FF,monthsShort:Wv,week:KF,weekdays:iV,weekdaysMin:oV,weekdaysShort:Zv,meridiemParse:CV},Dn={},id={},od;function wV(l,m){var _,v=Math.min(l.length,m.length);for(_=0;_0;){if(M=n3(A.slice(0,_).join("-")),M)return M;if(v&&v.length>=_&&wV(A,v)>=_-1)break;_--}m++}return od}function SV(l){return!!(l&&l.match("^[^/\\\\]*$"))}function n3(l){var m=null,_;if(Dn[l]===void 0&&typeof W1<"u"&&W1&&W1.exports&&SV(l))try{m=od._abbr,_=Sn,_("./locale/"+l),_s(m)}catch{Dn[l]=null}return Dn[l]}function _s(l,m){var _;return l&&(s(m)?_=Aa(l):_=C6(l,m),_?od=_:typeof console<"u"&&console.warn&&console.warn("Locale "+l+" not found. Did you forget to load it?")),od._abbr}function C6(l,m){if(m!==null){var _,v=ty;if(m.abbr=l,Dn[l]!=null)$u("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."),v=Dn[l]._config;else if(m.parentLocale!=null)if(Dn[m.parentLocale]!=null)v=Dn[m.parentLocale]._config;else if(_=n3(m.parentLocale),_!=null)v=_._config;else return id[m.parentLocale]||(id[m.parentLocale]=[]),id[m.parentLocale].push({name:l,config:m}),null;return Dn[l]=new K2(Q2(v,m)),id[l]&&id[l].forEach(function(M){C6(M.name,M.config)}),_s(l),Dn[l]}else return delete Dn[l],null}function kV(l,m){if(m!=null){var _,v,M=ty;Dn[l]!=null&&Dn[l].parentLocale!=null?Dn[l].set(Q2(Dn[l]._config,m)):(v=n3(l),v!=null&&(M=v._config),m=Q2(M,m),v==null&&(m.abbr=l),_=new K2(m),_.parentLocale=Dn[l],Dn[l]=_),_s(l)}else Dn[l]!=null&&(Dn[l].parentLocale!=null?(Dn[l]=Dn[l].parentLocale,l===_s()&&_s(l)):Dn[l]!=null&&delete Dn[l]);return Dn[l]}function Aa(l){var m;if(l&&l._locale&&l._locale._abbr&&(l=l._locale._abbr),!l)return od;if(!n(l)){if(m=n3(l),m)return m;l=[l]}return DV(l)}function EV(){return l6(Dn)}function x6(l){var m,_=l._a;return _&&D(l).overflow===-2&&(m=_[Oa]<0||_[Oa]>11?Oa:_[ea]<1||_[ea]>_6(_[Ni],_[Oa])?ea:_[li]<0||_[li]>24||_[li]===24&&(_[yr]!==0||_[La]!==0||_[vc]!==0)?li:_[yr]<0||_[yr]>59?yr:_[La]<0||_[La]>59?La:_[vc]<0||_[vc]>999?vc:-1,D(l)._overflowDayOfYear&&(mea)&&(m=ea),D(l)._overflowWeeks&&m===-1&&(m=LF),D(l)._overflowWeekday&&m===-1&&(m=PF),D(l).overflow=m),l}var IV=/^\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)?)?$/,TV=/^\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)?)?$/,OV=/Z|[+-]\d\d(?::?\d\d)?/,i3=[["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]],M6=[["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/]],LV=/^\/?Date\((-?\d+)/i,PV=/^(?:(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}))$/,AV={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function iy(l){var m,_,v=l._i,M=IV.exec(v)||TV.exec(v),A,ie,Pe,lt,Pt=i3.length,eo=M6.length;if(M){for(D(l).iso=!0,m=0,_=Pt;m<_;m++)if(i3[m][1].exec(M[1])){ie=i3[m][0],A=i3[m][2]!==!1;break}if(ie==null){l._isValid=!1;return}if(M[3]){for(m=0,_=eo;m<_;m++)if(M6[m][1].exec(M[3])){Pe=(M[2]||" ")+M6[m][0];break}if(Pe==null){l._isValid=!1;return}}if(!A&&Pe!=null){l._isValid=!1;return}if(M[4])if(OV.exec(M[4]))lt="Z";else{l._isValid=!1;return}l._f=ie+(Pe||"")+(lt||""),D6(l)}else l._isValid=!1}function zV(l,m,_,v,M,A){var ie=[RV(l),Wv.indexOf(m),parseInt(_,10),parseInt(v,10),parseInt(M,10)];return A&&ie.push(parseInt(A,10)),ie}function RV(l){var m=parseInt(l,10);return m<=49?2e3+m:m<=999?1900+m:m}function NV(l){return l.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function FV(l,m,_){if(l){var v=Zv.indexOf(l),M=new Date(m[0],m[1],m[2]).getDay();if(v!==M)return D(_).weekdayMismatch=!0,_._isValid=!1,!1}return!0}function VV(l,m,_){if(l)return AV[l];if(m)return 0;var v=parseInt(_,10),M=v%100,A=(v-M)/100;return A*60+M}function oy(l){var m=PV.exec(NV(l._i)),_;if(m){if(_=zV(m[4],m[3],m[2],m[5],m[6],m[7]),!FV(m[1],_,l))return;l._a=_,l._tzm=VV(m[8],m[9],m[10]),l._d=td.apply(null,l._a),l._d.setUTCMinutes(l._d.getUTCMinutes()-l._tzm),D(l).rfc2822=!0}else l._isValid=!1}function BV(l){var m=LV.exec(l._i);if(m!==null){l._d=new Date(+m[1]);return}if(iy(l),l._isValid===!1)delete l._isValid;else return;if(oy(l),l._isValid===!1)delete l._isValid;else return;l._strict?l._isValid=!1:i.createFromInputFallback(l)}i.createFromInputFallback=ci("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(l){l._d=new Date(l._i+(l._useUTC?" UTC":""))});function Nl(l,m,_){return l??m??_}function jV(l){var m=new Date(i.now());return l._useUTC?[m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate()]:[m.getFullYear(),m.getMonth(),m.getDate()]}function w6(l){var m,_,v=[],M,A,ie;if(!l._d){for(M=jV(l),l._w&&l._a[ea]==null&&l._a[Oa]==null&&HV(l),l._dayOfYear!=null&&(ie=Nl(l._a[Ni],M[Ni]),(l._dayOfYear>J2(ie)||l._dayOfYear===0)&&(D(l)._overflowDayOfYear=!0),_=td(ie,0,l._dayOfYear),l._a[Oa]=_.getUTCMonth(),l._a[ea]=_.getUTCDate()),m=0;m<3&&l._a[m]==null;++m)l._a[m]=v[m]=M[m];for(;m<7;m++)l._a[m]=v[m]=l._a[m]==null?m===2?1:0:l._a[m];l._a[li]===24&&l._a[yr]===0&&l._a[La]===0&&l._a[vc]===0&&(l._nextDay=!0,l._a[li]=0),l._d=(l._useUTC?td:qF).apply(null,v),A=l._useUTC?l._d.getUTCDay():l._d.getDay(),l._tzm!=null&&l._d.setUTCMinutes(l._d.getUTCMinutes()-l._tzm),l._nextDay&&(l._a[li]=24),l._w&&typeof l._w.d<"u"&&l._w.d!==A&&(D(l).weekdayMismatch=!0)}}function HV(l){var m,_,v,M,A,ie,Pe,lt,Pt;m=l._w,m.GG!=null||m.W!=null||m.E!=null?(A=1,ie=4,_=Nl(m.GG,l._a[Ni],nd(_n(),1,4).year),v=Nl(m.W,1),M=Nl(m.E,1),(M<1||M>7)&&(lt=!0)):(A=l._locale._week.dow,ie=l._locale._week.doy,Pt=nd(_n(),A,ie),_=Nl(m.gg,l._a[Ni],Pt.year),v=Nl(m.w,Pt.week),m.d!=null?(M=m.d,(M<0||M>6)&&(lt=!0)):m.e!=null?(M=m.e+A,(m.e<0||m.e>6)&&(lt=!0)):M=A),v<1||v>Pa(_,A,ie)?D(l)._overflowWeeks=!0:lt!=null?D(l)._overflowWeekday=!0:(Pe=Xv(_,v,M,A,ie),l._a[Ni]=Pe.year,l._dayOfYear=Pe.dayOfYear)}i.ISO_8601=function(){},i.RFC_2822=function(){};function D6(l){if(l._f===i.ISO_8601){iy(l);return}if(l._f===i.RFC_2822){oy(l);return}l._a=[],D(l).empty=!0;var m=""+l._i,_,v,M,A,ie,Pe=m.length,lt=0,Pt,eo;for(M=Fv(l._f,l._locale).match(d6)||[],eo=M.length,_=0;_0&&D(l).unusedInput.push(ie),m=m.slice(m.indexOf(v)+v.length),lt+=v.length),Pl[A]?(v?D(l).empty=!1:D(l).unusedTokens.push(A),OF(A,v,l)):l._strict&&!v&&D(l).unusedTokens.push(A);D(l).charsLeftOver=Pe-lt,m.length>0&&D(l).unusedInput.push(m),l._a[li]<=12&&D(l).bigHour===!0&&l._a[li]>0&&(D(l).bigHour=void 0),D(l).parsedDateParts=l._a.slice(0),D(l).meridiem=l._meridiem,l._a[li]=UV(l._locale,l._a[li],l._meridiem),Pt=D(l).era,Pt!==null&&(l._a[Ni]=l._locale.erasConvertYear(Pt,l._a[Ni])),w6(l),x6(l)}function UV(l,m,_){var v;return _==null?m:l.meridiemHour!=null?l.meridiemHour(m,_):(l.isPM!=null&&(v=l.isPM(_),v&&m<12&&(m+=12),!v&&m===12&&(m=0)),m)}function $V(l){var m,_,v,M,A,ie,Pe=!1,lt=l._f.length;if(lt===0){D(l).invalidFormat=!0,l._d=new Date(NaN);return}for(M=0;Mthis?this:l:K()});function sy(l,m){var _,v;if(m.length===1&&n(m[0])&&(m=m[0]),!m.length)return _n();for(_=m[0],v=1;vthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function uB(){if(!s(this._isDSTShifted))return this._isDSTShifted;var l={},m;return wt(l,this),l=ry(l),l._a?(m=l._isUTC?y(l._a):_n(l._a),this._isDSTShifted=this.isValid()&&nB(l._a,m.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function mB(){return this.isValid()?!this._isUTC:!1}function pB(){return this.isValid()?this._isUTC:!1}function ly(){return this.isValid()?this._isUTC&&this._offset===0:!1}var fB=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,hB=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Cr(l,m){var _=l,v=null,M,A,ie;return r3(l)?_={ms:l._milliseconds,d:l._days,M:l._months}:c(l)||!isNaN(+l)?(_={},m?_[m]=+l:_.milliseconds=+l):(v=fB.exec(l))?(M=v[1]==="-"?-1:1,_={y:0,d:Tt(v[ea])*M,h:Tt(v[li])*M,m:Tt(v[yr])*M,s:Tt(v[La])*M,ms:Tt(S6(v[vc]*1e3))*M}):(v=hB.exec(l))?(M=v[1]==="-"?-1:1,_={y:yc(v[2],M),M:yc(v[3],M),w:yc(v[4],M),d:yc(v[5],M),h:yc(v[6],M),m:yc(v[7],M),s:yc(v[8],M)}):_==null?_={}:typeof _=="object"&&("from"in _||"to"in _)&&(ie=gB(_n(_.from),_n(_.to)),_={},_.ms=ie.milliseconds,_.M=ie.months),A=new o3(_),r3(l)&&r(l,"_locale")&&(A._locale=l._locale),r3(l)&&r(l,"_isValid")&&(A._isValid=l._isValid),A}Cr.fn=o3.prototype,Cr.invalid=tB;function yc(l,m){var _=l&&parseFloat(l.replace(",","."));return(isNaN(_)?0:_)*m}function dy(l,m){var _={};return _.months=m.month()-l.month()+(m.year()-l.year())*12,l.clone().add(_.months,"M").isAfter(m)&&--_.months,_.milliseconds=+m-+l.clone().add(_.months,"M"),_}function gB(l,m){var _;return l.isValid()&&m.isValid()?(m=E6(m,l),l.isBefore(m)?_=dy(l,m):(_=dy(m,l),_.milliseconds=-_.milliseconds,_.months=-_.months),_):{milliseconds:0,months:0}}function uy(l,m){return function(_,v){var M,A;return v!==null&&!isNaN(+v)&&($u(m,"moment()."+m+"(period, number) is deprecated. Please use moment()."+m+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),A=_,_=v,v=A),M=Cr(_,v),my(this,M,l),this}}function my(l,m,_,v){var M=m._milliseconds,A=S6(m._days),ie=S6(m._months);l.isValid()&&(v=v??!0,ie&&qv(l,ed(l,"Month")+ie*_),A&&Gv(l,"Date",ed(l,"Date")+A*_),M&&l._d.setTime(l._d.valueOf()+M*_),v&&i.updateOffset(l,A||ie))}var _B=uy(1,"add"),bB=uy(-1,"subtract");function py(l){return typeof l=="string"||l instanceof String}function vB(l){return en(l)||u(l)||py(l)||c(l)||CB(l)||yB(l)||l===null||l===void 0}function yB(l){var m=o(l)&&!a(l),_=!1,v=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],M,A,ie=v.length;for(M=0;M_.valueOf():_.valueOf()9999?Yu(_,m?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ri(Date.prototype.toISOString)?m?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Yu(_,"Z")):Yu(_,m?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function zB(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var l="moment",m="",_,v,M,A;return this.isLocal()||(l=this.utcOffset()===0?"moment.utc":"moment.parseZone",m="Z"),_="["+l+'("]',v=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",M="-MM-DD[T]HH:mm:ss.SSS",A=m+'[")]',this.format(_+v+M+A)}function RB(l){l||(l=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var m=Yu(this,l);return this.localeData().postformat(m)}function NB(l,m){return this.isValid()&&(en(l)&&l.isValid()||_n(l).isValid())?Cr({to:this,from:l}).locale(this.locale()).humanize(!m):this.localeData().invalidDate()}function FB(l){return this.from(_n(),l)}function VB(l,m){return this.isValid()&&(en(l)&&l.isValid()||_n(l).isValid())?Cr({from:this,to:l}).locale(this.locale()).humanize(!m):this.localeData().invalidDate()}function BB(l){return this.to(_n(),l)}function fy(l){var m;return l===void 0?this._locale._abbr:(m=Aa(l),m!=null&&(this._locale=m),this)}var hy=ci("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 gy(){return this._locale}var s3=1e3,Fl=60*s3,c3=60*Fl,_y=(365*400+97)*24*c3;function Vl(l,m){return(l%m+m)%m}function by(l,m,_){return l<100&&l>=0?new Date(l+400,m,_)-_y:new Date(l,m,_).valueOf()}function vy(l,m,_){return l<100&&l>=0?Date.UTC(l+400,m,_)-_y:Date.UTC(l,m,_)}function jB(l){var m,_;if(l=Zo(l),l===void 0||l==="millisecond"||!this.isValid())return this;switch(_=this._isUTC?vy:by,l){case"year":m=_(this.year(),0,1);break;case"quarter":m=_(this.year(),this.month()-this.month()%3,1);break;case"month":m=_(this.year(),this.month(),1);break;case"week":m=_(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":m=_(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":m=_(this.year(),this.month(),this.date());break;case"hour":m=this._d.valueOf(),m-=Vl(m+(this._isUTC?0:this.utcOffset()*Fl),c3);break;case"minute":m=this._d.valueOf(),m-=Vl(m,Fl);break;case"second":m=this._d.valueOf(),m-=Vl(m,s3);break}return this._d.setTime(m),i.updateOffset(this,!0),this}function HB(l){var m,_;if(l=Zo(l),l===void 0||l==="millisecond"||!this.isValid())return this;switch(_=this._isUTC?vy:by,l){case"year":m=_(this.year()+1,0,1)-1;break;case"quarter":m=_(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":m=_(this.year(),this.month()+1,1)-1;break;case"week":m=_(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":m=_(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":m=_(this.year(),this.month(),this.date()+1)-1;break;case"hour":m=this._d.valueOf(),m+=c3-Vl(m+(this._isUTC?0:this.utcOffset()*Fl),c3)-1;break;case"minute":m=this._d.valueOf(),m+=Fl-Vl(m,Fl)-1;break;case"second":m=this._d.valueOf(),m+=s3-Vl(m,s3)-1;break}return this._d.setTime(m),i.updateOffset(this,!0),this}function UB(){return this._d.valueOf()-(this._offset||0)*6e4}function $B(){return Math.floor(this.valueOf()/1e3)}function GB(){return new Date(this.valueOf())}function WB(){var l=this;return[l.year(),l.month(),l.date(),l.hour(),l.minute(),l.second(),l.millisecond()]}function YB(){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 qB(){return this.isValid()?this.toISOString():null}function QB(){return Q(this)}function KB(){return g({},D(this))}function XB(){return D(this).overflow}function ZB(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Be("N",0,0,"eraAbbr"),Be("NN",0,0,"eraAbbr"),Be("NNN",0,0,"eraAbbr"),Be("NNNN",0,0,"eraName"),Be("NNNNN",0,0,"eraNarrow"),Be("y",["y",1],"yo","eraYear"),Be("y",["yy",2],0,"eraYear"),Be("y",["yyy",3],0,"eraYear"),Be("y",["yyyy",4],0,"eraYear"),Ae("N",T6),Ae("NN",T6),Ae("NNN",T6),Ae("NNNN",lj),Ae("NNNNN",dj),tn(["N","NN","NNN","NNNN","NNNNN"],function(l,m,_,v){var M=_._locale.erasParse(l,v,_._strict);M?D(_).era=M:D(_).invalidEra=l}),Ae("y",Al),Ae("yy",Al),Ae("yyy",Al),Ae("yyyy",Al),Ae("yo",uj),tn(["y","yy","yyy","yyyy"],Ni),tn(["yo"],function(l,m,_,v){var M;_._locale._eraYearOrdinalRegex&&(M=l.match(_._locale._eraYearOrdinalRegex)),_._locale.eraYearOrdinalParse?m[Ni]=_._locale.eraYearOrdinalParse(l,M):m[Ni]=parseInt(l,10)});function JB(l,m){var _,v,M,A=this._eras||Aa("en")._eras;for(_=0,v=A.length;_=0)return A[v]}function tj(l,m){var _=l.since<=l.until?1:-1;return m===void 0?i(l.since).year():i(l.since).year()+(m-l.offset)*_}function nj(){var l,m,_,v=this.localeData().eras();for(l=0,m=v.length;lA&&(m=A),bj.call(this,l,m,_,v,M))}function bj(l,m,_,v,M){var A=Xv(l,m,_,v,M),ie=td(A.year,0,A.dayOfYear);return this.year(ie.getUTCFullYear()),this.month(ie.getUTCMonth()),this.date(ie.getUTCDate()),this}Be("Q",0,"Qo","quarter"),Ae("Q",Bv),tn("Q",function(l,m){m[Oa]=(Tt(l)-1)*3});function vj(l){return l==null?Math.ceil((this.month()+1)/3):this.month((l-1)*3+this.month()%3)}Be("D",["DD",2],"Do","date"),Ae("D",gn,zl),Ae("DD",gn,Ao),Ae("Do",function(l,m){return l?m._dayOfMonthOrdinalParse||m._ordinalParse:m._dayOfMonthOrdinalParseLenient}),tn(["D","DD"],ea),tn("Do",function(l,m){m[ea]=Tt(l.match(gn)[0])});var Cy=Rl("Date",!0);Be("DDD",["DDDD",3],"DDDo","dayOfYear"),Ae("DDD",Qu),Ae("DDDD",jv),tn(["DDD","DDDD"],function(l,m,_){_._dayOfYear=Tt(l)});function yj(l){var m=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return l==null?m:this.add(l-m,"d")}Be("m",["mm",2],0,"minute"),Ae("m",gn,h6),Ae("mm",gn,Ao),tn(["m","mm"],yr);var Cj=Rl("Minutes",!1);Be("s",["ss",2],0,"second"),Ae("s",gn,h6),Ae("ss",gn,Ao),tn(["s","ss"],La);var xj=Rl("Seconds",!1);Be("S",0,0,function(){return~~(this.millisecond()/100)}),Be(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Be(0,["SSS",3],0,"millisecond"),Be(0,["SSSS",4],0,function(){return this.millisecond()*10}),Be(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Be(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Be(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Be(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Be(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ae("S",Qu,Bv),Ae("SS",Qu,Ao),Ae("SSS",Qu,jv);var bs,xy;for(bs="SSSS";bs.length<=9;bs+="S")Ae(bs,Al);function Mj(l,m){m[vc]=Tt(("0."+l)*1e3)}for(bs="S";bs.length<=9;bs+="S")tn(bs,Mj);xy=Rl("Milliseconds",!1),Be("z",0,0,"zoneAbbr"),Be("zz",0,0,"zoneName");function wj(){return this._isUTC?"UTC":""}function Dj(){return this._isUTC?"Coordinated Universal Time":""}var _e=Bt.prototype;_e.add=_B,_e.calendar=wB,_e.clone=DB,_e.diff=LB,_e.endOf=HB,_e.format=RB,_e.from=NB,_e.fromNow=FB,_e.to=VB,_e.toNow=BB,_e.get=zF,_e.invalidAt=XB,_e.isAfter=SB,_e.isBefore=kB,_e.isBetween=EB,_e.isSame=IB,_e.isSameOrAfter=TB,_e.isSameOrBefore=OB,_e.isValid=QB,_e.lang=hy,_e.locale=fy,_e.localeData=gy,_e.max=QV,_e.min=qV,_e.parsingFlags=KB,_e.set=RF,_e.startOf=jB,_e.subtract=bB,_e.toArray=WB,_e.toObject=YB,_e.toDate=GB,_e.toISOString=AB,_e.inspect=zB,typeof Symbol<"u"&&Symbol.for!=null&&(_e[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),_e.toJSON=qB,_e.toString=PB,_e.unix=$B,_e.valueOf=UB,_e.creationData=ZB,_e.eraName=nj,_e.eraNarrow=ij,_e.eraAbbr=oj,_e.eraYear=rj,_e.year=$v,_e.isLeapYear=AF,_e.weekYear=mj,_e.isoWeekYear=pj,_e.quarter=_e.quarters=vj,_e.month=Qv,_e.daysInMonth=GF,_e.week=_e.weeks=JF,_e.isoWeek=_e.isoWeeks=eV,_e.weeksInYear=gj,_e.weeksInWeekYear=_j,_e.isoWeeksInYear=fj,_e.isoWeeksInISOWeekYear=hj,_e.date=Cy,_e.day=_e.days=pV,_e.weekday=fV,_e.isoWeekday=hV,_e.dayOfYear=yj,_e.hour=_e.hours=xV,_e.minute=_e.minutes=Cj,_e.second=_e.seconds=xj,_e.millisecond=_e.milliseconds=xy,_e.utcOffset=oB,_e.utc=aB,_e.local=sB,_e.parseZone=cB,_e.hasAlignedHourOffset=lB,_e.isDST=dB,_e.isLocal=mB,_e.isUtcOffset=pB,_e.isUtc=ly,_e.isUTC=ly,_e.zoneAbbr=wj,_e.zoneName=Dj,_e.dates=ci("dates accessor is deprecated. Use date instead.",Cy),_e.months=ci("months accessor is deprecated. Use month instead",Qv),_e.years=ci("years accessor is deprecated. Use year instead",$v),_e.zone=ci("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",rB),_e.isDSTShifted=ci("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",uB);function Sj(l){return _n(l*1e3)}function kj(){return _n.apply(null,arguments).parseZone()}function My(l){return l}var Ut=K2.prototype;Ut.calendar=mF,Ut.longDateFormat=gF,Ut.invalidDate=bF,Ut.ordinal=CF,Ut.preparse=My,Ut.postformat=My,Ut.relativeTime=MF,Ut.pastFuture=wF,Ut.set=Gu,Ut.eras=JB,Ut.erasParse=ej,Ut.erasConvertYear=tj,Ut.erasAbbrRegex=sj,Ut.erasNameRegex=aj,Ut.erasNarrowRegex=cj,Ut.months=jF,Ut.monthsShort=HF,Ut.monthsParse=$F,Ut.monthsRegex=YF,Ut.monthsShortRegex=WF,Ut.week=QF,Ut.firstDayOfYear=ZF,Ut.firstDayOfWeek=XF,Ut.weekdays=cV,Ut.weekdaysMin=dV,Ut.weekdaysShort=lV,Ut.weekdaysParse=mV,Ut.weekdaysRegex=gV,Ut.weekdaysShortRegex=_V,Ut.weekdaysMinRegex=bV,Ut.isPM=yV,Ut.meridiem=MV;function d3(l,m,_,v){var M=Aa(),A=y().set(v,m);return M[_](A,l)}function wy(l,m,_){if(c(l)&&(m=l,l=void 0),l=l||"",m!=null)return d3(l,m,_,"month");var v,M=[];for(v=0;v<12;v++)M[v]=d3(l,v,_,"month");return M}function L6(l,m,_,v){typeof l=="boolean"?(c(m)&&(_=m,m=void 0),m=m||""):(m=l,_=m,l=!1,c(m)&&(_=m,m=void 0),m=m||"");var M=Aa(),A=l?M._week.dow:0,ie,Pe=[];if(_!=null)return d3(m,(_+A)%7,v,"day");for(ie=0;ie<7;ie++)Pe[ie]=d3(m,(ie+A)%7,v,"day");return Pe}function Ej(l,m){return wy(l,m,"months")}function Ij(l,m){return wy(l,m,"monthsShort")}function Tj(l,m,_){return L6(l,m,_,"weekdays")}function Oj(l,m,_){return L6(l,m,_,"weekdaysShort")}function Lj(l,m,_){return L6(l,m,_,"weekdaysMin")}_s("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 m=l%10,_=Tt(l%100/10)===1?"th":m===1?"st":m===2?"nd":m===3?"rd":"th";return l+_}}),i.lang=ci("moment.lang is deprecated. Use moment.locale instead.",_s),i.langData=ci("moment.langData is deprecated. Use moment.localeData instead.",Aa);var za=Math.abs;function Pj(){var l=this._data;return this._milliseconds=za(this._milliseconds),this._days=za(this._days),this._months=za(this._months),l.milliseconds=za(l.milliseconds),l.seconds=za(l.seconds),l.minutes=za(l.minutes),l.hours=za(l.hours),l.months=za(l.months),l.years=za(l.years),this}function Dy(l,m,_,v){var M=Cr(m,_);return l._milliseconds+=v*M._milliseconds,l._days+=v*M._days,l._months+=v*M._months,l._bubble()}function Aj(l,m){return Dy(this,l,m,1)}function zj(l,m){return Dy(this,l,m,-1)}function Sy(l){return l<0?Math.floor(l):Math.ceil(l)}function Rj(){var l=this._milliseconds,m=this._days,_=this._months,v=this._data,M,A,ie,Pe,lt;return l>=0&&m>=0&&_>=0||l<=0&&m<=0&&_<=0||(l+=Sy(P6(_)+m)*864e5,m=0,_=0),v.milliseconds=l%1e3,M=Jo(l/1e3),v.seconds=M%60,A=Jo(M/60),v.minutes=A%60,ie=Jo(A/60),v.hours=ie%24,m+=Jo(ie/24),lt=Jo(ky(m)),_+=lt,m-=Sy(P6(lt)),Pe=Jo(_/12),_%=12,v.days=m,v.months=_,v.years=Pe,this}function ky(l){return l*4800/146097}function P6(l){return l*146097/4800}function Nj(l){if(!this.isValid())return NaN;var m,_,v=this._milliseconds;if(l=Zo(l),l==="month"||l==="quarter"||l==="year")switch(m=this._days+v/864e5,_=this._months+ky(m),l){case"month":return _;case"quarter":return _/3;case"year":return _/12}else switch(m=this._days+Math.round(P6(this._months)),l){case"week":return m/7+v/6048e5;case"day":return m+v/864e5;case"hour":return m*24+v/36e5;case"minute":return m*1440+v/6e4;case"second":return m*86400+v/1e3;case"millisecond":return Math.floor(m*864e5)+v;default:throw new Error("Unknown unit "+l)}}function Ra(l){return function(){return this.as(l)}}var Ey=Ra("ms"),Fj=Ra("s"),Vj=Ra("m"),Bj=Ra("h"),jj=Ra("d"),Hj=Ra("w"),Uj=Ra("M"),$j=Ra("Q"),Gj=Ra("y"),Wj=Ey;function Yj(){return Cr(this)}function qj(l){return l=Zo(l),this.isValid()?this[l+"s"]():NaN}function Cc(l){return function(){return this.isValid()?this._data[l]:NaN}}var Qj=Cc("milliseconds"),Kj=Cc("seconds"),Xj=Cc("minutes"),Zj=Cc("hours"),Jj=Cc("days"),eH=Cc("months"),tH=Cc("years");function nH(){return Jo(this.days()/7)}var Na=Math.round,Bl={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function iH(l,m,_,v,M){return M.relativeTime(m||1,!!_,l,v)}function oH(l,m,_,v){var M=Cr(l).abs(),A=Na(M.as("s")),ie=Na(M.as("m")),Pe=Na(M.as("h")),lt=Na(M.as("d")),Pt=Na(M.as("M")),eo=Na(M.as("w")),Fa=Na(M.as("y")),vs=A<=_.ss&&["s",A]||A<_.s&&["ss",A]||ie<=1&&["m"]||ie<_.m&&["mm",ie]||Pe<=1&&["h"]||Pe<_.h&&["hh",Pe]||lt<=1&&["d"]||lt<_.d&&["dd",lt];return _.w!=null&&(vs=vs||eo<=1&&["w"]||eo<_.w&&["ww",eo]),vs=vs||Pt<=1&&["M"]||Pt<_.M&&["MM",Pt]||Fa<=1&&["y"]||["yy",Fa],vs[2]=m,vs[3]=+l>0,vs[4]=v,iH.apply(null,vs)}function rH(l){return l===void 0?Na:typeof l=="function"?(Na=l,!0):!1}function aH(l,m){return Bl[l]===void 0?!1:m===void 0?Bl[l]:(Bl[l]=m,l==="s"&&(Bl.ss=m-1),!0)}function sH(l,m){if(!this.isValid())return this.localeData().invalidDate();var _=!1,v=Bl,M,A;return typeof l=="object"&&(m=l,l=!1),typeof l=="boolean"&&(_=l),typeof m=="object"&&(v=Object.assign({},Bl,m),m.s!=null&&m.ss==null&&(v.ss=m.s-1)),M=this.localeData(),A=oH(this,!_,v,M),_&&(A=M.pastFuture(+this,A)),M.postformat(A)}var A6=Math.abs;function jl(l){return(l>0)-(l<0)||+l}function u3(){if(!this.isValid())return this.localeData().invalidDate();var l=A6(this._milliseconds)/1e3,m=A6(this._days),_=A6(this._months),v,M,A,ie,Pe=this.asSeconds(),lt,Pt,eo,Fa;return Pe?(v=Jo(l/60),M=Jo(v/60),l%=60,v%=60,A=Jo(_/12),_%=12,ie=l?l.toFixed(3).replace(/\.?0+$/,""):"",lt=Pe<0?"-":"",Pt=jl(this._months)!==jl(Pe)?"-":"",eo=jl(this._days)!==jl(Pe)?"-":"",Fa=jl(this._milliseconds)!==jl(Pe)?"-":"",lt+"P"+(A?Pt+A+"Y":"")+(_?Pt+_+"M":"")+(m?eo+m+"D":"")+(M||v||l?"T":"")+(M?Fa+M+"H":"")+(v?Fa+v+"M":"")+(l?Fa+ie+"S":"")):"P0D"}var Nt=o3.prototype;Nt.isValid=eB,Nt.abs=Pj,Nt.add=Aj,Nt.subtract=zj,Nt.as=Nj,Nt.asMilliseconds=Ey,Nt.asSeconds=Fj,Nt.asMinutes=Vj,Nt.asHours=Bj,Nt.asDays=jj,Nt.asWeeks=Hj,Nt.asMonths=Uj,Nt.asQuarters=$j,Nt.asYears=Gj,Nt.valueOf=Wj,Nt._bubble=Rj,Nt.clone=Yj,Nt.get=qj,Nt.milliseconds=Qj,Nt.seconds=Kj,Nt.minutes=Xj,Nt.hours=Zj,Nt.days=Jj,Nt.weeks=nH,Nt.months=eH,Nt.years=tH,Nt.humanize=sH,Nt.toISOString=u3,Nt.toString=u3,Nt.toJSON=u3,Nt.locale=fy,Nt.localeData=gy,Nt.toIsoString=ci("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",u3),Nt.lang=hy,Be("X",0,0,"unix"),Be("x",0,0,"valueOf"),Ae("x",Xu),Ae("X",EF),tn("X",function(l,m,_){_._d=new Date(parseFloat(l)*1e3)}),tn("x",function(l,m,_){_._d=new Date(Tt(l))});return i.version="2.30.1",e(_n),i.fn=_e,i.min=KV,i.max=XV,i.now=ZV,i.utc=y,i.unix=Sj,i.months=Ej,i.isDate=u,i.locale=_s,i.invalid=K,i.duration=Cr,i.isMoment=en,i.weekdays=Tj,i.parseZone=kj,i.localeData=Aa,i.isDuration=r3,i.monthsShort=Ij,i.weekdaysMin=Lj,i.defineLocale=C6,i.updateLocale=kV,i.locales=EV,i.weekdaysShort=Oj,i.normalizeUnits=Zo,i.relativeTimeRounding=rH,i.relativeTimeThreshold=aH,i.calendarFormat=MB,i.prototype=_e,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 jS=zo((t_,BS)=>{(function(t,i){typeof t_=="object"&&typeof BS<"u"&&typeof Sn=="function"?i(mo()):typeof define=="function"&&define.amd?define(["../moment"],i):i(t.moment)})(t_,function(t){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096A",5:"\u096B",6:"\u096C",7:"\u096D",8:"\u096E",9:"\u096F",0:"\u0966"},e={"\u0967":"1","\u0968":"2","\u0969":"3","\u096A":"4","\u096B":"5","\u096C":"6","\u096D":"7","\u096E":"8","\u096F":"9","\u0966":"0"},n=t.defineLocale("ne",{months:"\u091C\u0928\u0935\u0930\u0940_\u092B\u0947\u092C\u094D\u0930\u0941\u0935\u0930\u0940_\u092E\u093E\u0930\u094D\u091A_\u0905\u092A\u094D\u0930\u093F\u0932_\u092E\u0908_\u091C\u0941\u0928_\u091C\u0941\u0932\u093E\u0908_\u0905\u0917\u0937\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".split("_"),monthsShort:"\u091C\u0928._\u092B\u0947\u092C\u094D\u0930\u0941._\u092E\u093E\u0930\u094D\u091A_\u0905\u092A\u094D\u0930\u093F._\u092E\u0908_\u091C\u0941\u0928_\u091C\u0941\u0932\u093E\u0908._\u0905\u0917._\u0938\u0947\u092A\u094D\u091F._\u0905\u0915\u094D\u091F\u094B._\u0928\u094B\u092D\u0947._\u0921\u093F\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\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".split("_"),weekdaysShort:"\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.".split("_"),weekdaysMin:"\u0906._\u0938\u094B._\u092E\u0902._\u092C\u0941._\u092C\u093F._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094B h:mm \u092C\u091C\u0947",LTS:"A\u0915\u094B h:mm:ss \u092C\u091C\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094B h:mm \u092C\u091C\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094B h:mm \u092C\u091C\u0947"},preparse:function(o){return o.replace(/[१२३४५६७८९०]/g,function(r){return e[r]})},postformat:function(o){return o.replace(/\d/g,function(r){return i[r]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(o,r){if(o===12&&(o=0),r==="\u0930\u093E\u0924\u093F")return o<4?o:o+12;if(r==="\u092C\u093F\u0939\u093E\u0928")return o;if(r==="\u0926\u093F\u0909\u0901\u0938\u094B")return o>=10?o:o+12;if(r==="\u0938\u093E\u0901\u091D")return o+12},meridiem:function(o,r,a){return o<3?"\u0930\u093E\u0924\u093F":o<12?"\u092C\u093F\u0939\u093E\u0928":o<16?"\u0926\u093F\u0909\u0901\u0938\u094B":o<20?"\u0938\u093E\u0901\u091D":"\u0930\u093E\u0924\u093F"},calendar:{sameDay:"[\u0906\u091C] LT",nextDay:"[\u092D\u094B\u0932\u093F] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094B] dddd[,] LT",lastDay:"[\u0939\u093F\u091C\u094B] LT",lastWeek:"[\u0917\u090F\u0915\u094B] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092E\u093E",past:"%s \u0905\u0917\u093E\u0921\u093F",s:"\u0915\u0947\u0939\u0940 \u0915\u094D\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094D\u0921",m:"\u090F\u0915 \u092E\u093F\u0928\u0947\u091F",mm:"%d \u092E\u093F\u0928\u0947\u091F",h:"\u090F\u0915 \u0918\u0923\u094D\u091F\u093E",hh:"%d \u0918\u0923\u094D\u091F\u093E",d:"\u090F\u0915 \u0926\u093F\u0928",dd:"%d \u0926\u093F\u0928",M:"\u090F\u0915 \u092E\u0939\u093F\u0928\u093E",MM:"%d \u092E\u0939\u093F\u0928\u093E",y:"\u090F\u0915 \u092C\u0930\u094D\u0937",yy:"%d \u092C\u0930\u094D\u0937"},week:{dow:0,doy:6}});return n})});var US=zo((n_,HS)=>{(function(t,i){typeof n_=="object"&&typeof HS<"u"&&typeof Sn=="function"?i(mo()):typeof define=="function"&&define.amd?define(["../moment"],i):i(t.moment)})(n_,function(t){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),e="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,r=t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(a,s){return a?/-MMM-/.test(s)?e[a.month()]:i[a.month()]:i},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_mi\xE9rcoles_jueves_viernes_s\xE1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xE9._jue._vie._s\xE1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xE1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[ma\xF1ana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xEDa",dd:"%d d\xEDas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xF1o",yy:"%d a\xF1os"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%d\xBA",week:{dow:1,doy:4},invalidDate:"Fecha inv\xE1lida"});return r})});var GS=zo((i_,$S)=>{(function(t,i){typeof i_=="object"&&typeof $S<"u"&&typeof Sn=="function"?i(mo()):typeof define=="function"&&define.amd?define(["../moment"],i):i(t.moment)})(i_,function(t){"use strict";function i(n,o,r,a){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[n+" Tage",n+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[n+" Monate",n+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[n+" Jahre",n+" Jahren"]};return o?s[r][0]:s[r][1]}var e=t.defineLocale("de",{months:"Januar_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return e})});var YS=zo((o_,WS)=>{(function(t,i){typeof o_=="object"&&typeof WS<"u"&&typeof Sn=="function"?i(mo()):typeof define=="function"&&define.amd?define(["../moment"],i):i(t.moment)})(o_,function(t){"use strict";var i=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,e=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,n=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,o=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],r=t.defineLocale("fr",{months:"janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),monthsShort:"janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"),monthsRegex:n,monthsShortRegex:n,monthsStrictRegex:i,monthsShortStrictRegex:e,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xE0] LT",nextDay:"[Demain \xE0] LT",nextWeek:"dddd [\xE0] LT",lastDay:"[Hier \xE0] LT",lastWeek:"dddd [dernier \xE0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(a,s){switch(s){case"D":return a+(a===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return a+(a===1?"er":"e");case"w":case"W":return a+(a===1?"re":"e")}},week:{dow:1,doy:4}});return r})});var QS=zo((r_,qS)=>{(function(t,i){typeof r_=="object"&&typeof qS<"u"&&typeof Sn=="function"?i(mo()):typeof define=="function"&&define.amd?define(["../moment"],i):i(t.moment)})(r_,function(t){"use strict";var i=t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xEC_marted\xEC_mercoled\xEC_gioved\xEC_venerd\xEC_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%d\xBA",week:{dow:1,doy:4}});return i})});var XS=zo((a_,KS)=>{(function(t,i){typeof a_=="object"&&typeof KS<"u"&&typeof Sn=="function"?i(mo()):typeof define=="function"&&define.amd?define(["../moment"],i):i(t.moment)})(a_,function(t){"use strict";var i=t.defineLocale("ko",{months:"1\uC6D4_2\uC6D4_3\uC6D4_4\uC6D4_5\uC6D4_6\uC6D4_7\uC6D4_8\uC6D4_9\uC6D4_10\uC6D4_11\uC6D4_12\uC6D4".split("_"),monthsShort:"1\uC6D4_2\uC6D4_3\uC6D4_4\uC6D4_5\uC6D4_6\uC6D4_7\uC6D4_8\uC6D4_9\uC6D4_10\uC6D4_11\uC6D4_12\uC6D4".split("_"),weekdays:"\uC77C\uC694\uC77C_\uC6D4\uC694\uC77C_\uD654\uC694\uC77C_\uC218\uC694\uC77C_\uBAA9\uC694\uC77C_\uAE08\uC694\uC77C_\uD1A0\uC694\uC77C".split("_"),weekdaysShort:"\uC77C_\uC6D4_\uD654_\uC218_\uBAA9_\uAE08_\uD1A0".split("_"),weekdaysMin:"\uC77C_\uC6D4_\uD654_\uC218_\uBAA9_\uAE08_\uD1A0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\uB144 MMMM D\uC77C",LLL:"YYYY\uB144 MMMM D\uC77C A h:mm",LLLL:"YYYY\uB144 MMMM D\uC77C dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\uB144 MMMM D\uC77C",lll:"YYYY\uB144 MMMM D\uC77C A h:mm",llll:"YYYY\uB144 MMMM D\uC77C dddd A h:mm"},calendar:{sameDay:"\uC624\uB298 LT",nextDay:"\uB0B4\uC77C LT",nextWeek:"dddd LT",lastDay:"\uC5B4\uC81C LT",lastWeek:"\uC9C0\uB09C\uC8FC dddd LT",sameElse:"L"},relativeTime:{future:"%s \uD6C4",past:"%s \uC804",s:"\uBA87 \uCD08",ss:"%d\uCD08",m:"1\uBD84",mm:"%d\uBD84",h:"\uD55C \uC2DC\uAC04",hh:"%d\uC2DC\uAC04",d:"\uD558\uB8E8",dd:"%d\uC77C",M:"\uD55C \uB2EC",MM:"%d\uB2EC",y:"\uC77C \uB144",yy:"%d\uB144"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,n){switch(n){case"d":case"D":case"DDD":return e+"\uC77C";case"M":return e+"\uC6D4";case"w":case"W":return e+"\uC8FC";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return e==="\uC624\uD6C4"},meridiem:function(e,n,o){return e<12?"\uC624\uC804":"\uC624\uD6C4"}});return i})});var JS=zo((s_,ZS)=>{(function(t,i){typeof s_=="object"&&typeof ZS<"u"&&typeof Sn=="function"?i(mo()):typeof define=="function"&&define.amd?define(["../moment"],i):i(t.moment)})(s_,function(t){"use strict";var i={ss:"sekund\u0117_sekund\u017Ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010Di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012F",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function e(c,u,f,g){return u?"kelios sekund\u0117s":g?"keli\u0173 sekund\u017Ei\u0173":"kelias sekundes"}function n(c,u,f,g){return u?r(f)[0]:g?r(f)[1]:r(f)[2]}function o(c){return c%10===0||c>10&&c<20}function r(c){return i[c].split("_")}function a(c,u,f,g){var y=c+" ";return c===1?y+n(c,u,f[0],g):u?y+(o(c)?r(f)[1]:r(f)[0]):g?y+r(f)[1]:y+(o(c)?r(f)[1]:r(f)[2])}var s=t.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017Eio_gegu\u017E\u0117s_bir\u017Eelio_liepos_rugpj\u016B\u010Dio_rugs\u0117jo_spalio_lapkri\u010Dio_gruod\u017Eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017E\u0117_bir\u017Eelis_liepa_rugpj\u016Btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012F_pirmadien\u012F_antradien\u012F_tre\u010Diadien\u012F_ketvirtadien\u012F_penktadien\u012F_\u0161e\u0161tadien\u012F".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010Diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012F] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:e,ss:a,m:n,mm:a,h:n,hh:a,d:n,dd:a,M:n,MM:a,y:n,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(c){return c+"-oji"},week:{dow:1,doy:4}});return s})});var tk=zo((c_,ek)=>{(function(t,i){typeof c_=="object"&&typeof ek<"u"&&typeof Sn=="function"?i(mo()):typeof define=="function"&&define.amd?define(["../moment"],i):i(t.moment)})(c_,function(t){"use strict";var i={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016Btes_min\u016Bt\u0113m_min\u016Bte_min\u016Btes".split("_"),mm:"min\u016Btes_min\u016Bt\u0113m_min\u016Bte_min\u016Btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function e(s,c,u){return u?c%10===1&&c%100!==11?s[2]:s[3]:c%10===1&&c%100!==11?s[0]:s[1]}function n(s,c,u){return s+" "+e(i[u],s,c)}function o(s,c,u){return e(i[u],s,c)}function r(s,c){return c?"da\u017Eas sekundes":"da\u017E\u0101m sekund\u0113m"}var a=t.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012Blis_maijs_j\u016Bnijs_j\u016Blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016Bn_j\u016Bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012Bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:r,ss:n,m:o,mm:n,h:o,hh:n,d:o,dd:n,M:o,MM:n,y:o,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a})});var ik=zo((l_,nk)=>{(function(t,i){typeof l_=="object"&&typeof nk<"u"&&typeof Sn=="function"?i(mo()):typeof define=="function"&&define.amd?define(["../moment"],i):i(t.moment)})(l_,function(t){"use strict";var i=t.defineLocale("pt",{months:"janeiro_fevereiro_mar\xE7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xE7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xE1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xE1b".split("_"),weekdaysMin:"Do_2\xAA_3\xAA_4\xAA_5\xAA_6\xAA_S\xE1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xE0s] LT",nextDay:"[Amanh\xE3 \xE0s] LT",nextWeek:"dddd [\xE0s] LT",lastDay:"[Ontem \xE0s] LT",lastWeek:function(){return this.day()===0||this.day()===6?"[\xDAltimo] dddd [\xE0s] LT":"[\xDAltima] dddd [\xE0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xE1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xEAs",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%d\xBA",week:{dow:1,doy:4}});return i})});var rk=zo((d_,ok)=>{(function(t,i){typeof d_=="object"&&typeof ok<"u"&&typeof Sn=="function"?i(mo()):typeof define=="function"&&define.amd?define(["../moment"],i):i(t.moment)})(d_,function(t){"use strict";var i=t.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}});return i})});var sk=zo((u_,ak)=>{(function(t,i){typeof u_=="object"&&typeof ak<"u"&&typeof Sn=="function"?i(mo()):typeof define=="function"&&define.amd?define(["../moment"],i):i(t.moment)})(u_,function(t){"use strict";var i={standalone:"leden_\xFAnor_b\u0159ezen_duben_kv\u011Bten_\u010Derven_\u010Dervenec_srpen_z\xE1\u0159\xED_\u0159\xEDjen_listopad_prosinec".split("_"),format:"ledna_\xFAnora_b\u0159ezna_dubna_kv\u011Btna_\u010Dervna_\u010Dervence_srpna_z\xE1\u0159\xED_\u0159\xEDjna_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},e="led_\xFAno_b\u0159e_dub_kv\u011B_\u010Dvn_\u010Dvc_srp_z\xE1\u0159_\u0159\xEDj_lis_pro".split("_"),n=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],o=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function r(c){return c>1&&c<5&&~~(c/10)!==1}function a(c,u,f,g){var y=c+" ";switch(f){case"s":return u||g?"p\xE1r sekund":"p\xE1r sekundami";case"ss":return u||g?y+(r(c)?"sekundy":"sekund"):y+"sekundami";case"m":return u?"minuta":g?"minutu":"minutou";case"mm":return u||g?y+(r(c)?"minuty":"minut"):y+"minutami";case"h":return u?"hodina":g?"hodinu":"hodinou";case"hh":return u||g?y+(r(c)?"hodiny":"hodin"):y+"hodinami";case"d":return u||g?"den":"dnem";case"dd":return u||g?y+(r(c)?"dny":"dn\xED"):y+"dny";case"M":return u||g?"m\u011Bs\xEDc":"m\u011Bs\xEDcem";case"MM":return u||g?y+(r(c)?"m\u011Bs\xEDce":"m\u011Bs\xEDc\u016F"):y+"m\u011Bs\xEDci";case"y":return u||g?"rok":"rokem";case"yy":return u||g?y+(r(c)?"roky":"let"):y+"lety"}}var s=t.defineLocale("cs",{months:i,monthsShort:e,monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"ned\u011Ble_pond\u011Bl\xED_\xFAter\xFD_st\u0159eda_\u010Dtvrtek_p\xE1tek_sobota".split("_"),weekdaysShort:"ne_po_\xFAt_st_\u010Dt_p\xE1_so".split("_"),weekdaysMin:"ne_po_\xFAt_st_\u010Dt_p\xE1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xEDtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011Bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010Dtvrtek v] LT";case 5:return"[v p\xE1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010Dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011Bli v] LT";case 1:case 2:return"[minul\xE9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xFD] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return s})});var uk=zo((Axe,dk)=>{function rp(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 ns(){this.step=" ",this.shift=rp(this.step)}ns.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};ns.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};ns.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?rp(i):this.shift;for(a=0;a/g,"").replace(/[ \r\n\t]{1,}xmlns/g," xmlns");return e.replace(/>\s{0,}<")};ns.prototype.jsonmin=function(t){return typeof JSON>"u"?t:JSON.stringify(JSON.parse(t),null,0)};ns.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,"*/")};ns.prototype.sqlmin=function(t){return t.replace(/\s{1,}/g," ").replace(/\s{1,}\(/,"(").replace(/\s{1,}\)/,")")};dk.exports=new ns});var z6;function m3(){return z6}function ta(t){let i=z6;return z6=t,i}var Iy=Symbol("NotFound");function Hl(t){return t===Iy||t?.name==="\u0275NotFound"}var Fi=null,p3=!1,R6=1,cH=null,Kn=Symbol("SIGNAL");function nt(t){let i=Fi;return Fi=t,i}function _3(){return Fi}var xc={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 ys(t){if(p3)throw new Error("");if(Fi===null)return;Fi.consumerOnSignalRead(t);let i=Fi.producersTail;if(i!==void 0&&i.producer===t)return;let e,n=Fi.recomputing;if(n&&(e=i!==void 0?i.nextProducer:Fi.producers,e!==void 0&&e.producer===t)){Fi.producersTail=e,e.lastReadVersion=t.version;return}let o=t.consumersTail;if(o!==void 0&&o.consumer===Fi&&(!n||dH(o,Fi)))return;let r=Ul(Fi),a={producer:t,consumer:Fi,nextProducer:e,prevConsumer:o,lastReadVersion:t.version,nextConsumer:void 0};Fi.producersTail=a,i!==void 0?i.nextProducer=a:Fi.producers=a,r&&Py(t,a)}function Ty(){R6++}function b3(t){if(!(Ul(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===R6)){if(!t.producerMustRecompute(t)&&!wc(t)){g3(t);return}t.producerRecomputeValue(t),g3(t)}}function N6(t){if(t.consumers===void 0)return;let i=p3;p3=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let n=e.consumer;n.dirty||lH(n)}}finally{p3=i}}function F6(){return Fi?.consumerAllowSignalWrites!==!1}function lH(t){t.dirty=!0,N6(t),t.consumerMarkedDirty?.(t)}function g3(t){t.dirty=!1,t.lastCleanEpoch=R6}function Cs(t){return t&&Oy(t),nt(t)}function Oy(t){t.producersTail=void 0,t.recomputing=!0}function Mc(t,i){nt(i),t&&Ly(t)}function Ly(t){t.recomputing=!1;let i=t.producersTail,e=i!==void 0?i.nextProducer:t.producers;if(e!==void 0){if(Ul(t))do e=V6(e);while(e!==void 0);i!==void 0?i.nextProducer=void 0:t.producers=void 0}}function wc(t){for(let i=t.producers;i!==void 0;i=i.nextProducer){let e=i.producer,n=i.lastReadVersion;if(n!==e.version||(b3(e),n!==e.version))return!0}return!1}function xs(t){if(Ul(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 Py(t,i){let e=t.consumersTail,n=Ul(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)Py(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,!Ul(i)){let r=i.producers;for(;r!==void 0;)r=V6(r)}return e}function Ul(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function v3(t){cH?.(t)}function dH(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 y3(t,i){return Object.is(t,i)}function sd(t,i){let e=Object.create(uH);e.computation=t,i!==void 0&&(e.equal=i);let n=()=>{if(b3(e),ys(e),e.value===ad)throw e.error;return e.value};return n[Kn]=e,v3(e),n}var f3=Symbol("UNSET"),h3=Symbol("COMPUTING"),ad=Symbol("ERRORED"),uH=Ne(q({},xc),{value:f3,dirty:!0,error:null,equal:y3,kind:"computed",producerMustRecompute(t){return t.value===f3||t.value===h3},producerRecomputeValue(t){if(t.value===h3)throw new Error("");let i=t.value;t.value=h3;let e=Cs(t),n,o=!1;try{n=t.computation(),nt(null),o=i!==f3&&i!==ad&&n!==ad&&t.equal(i,n)}catch(r){n=ad,t.error=r}finally{Mc(t,e)}if(o){t.value=i;return}t.value=n,t.version++}});function mH(){throw new Error}var Ay=mH;function zy(t){Ay(t)}function B6(t){Ay=t}var pH=null;function j6(t,i){let e=Object.create(cd);e.value=t,i!==void 0&&(e.equal=i);let n=()=>Ry(e);return n[Kn]=e,v3(e),[n,a=>Dc(e,a),a=>H6(e,a)]}function Ry(t){return ys(t),t.value}function Dc(t,i){F6()||zy(t),t.equal(t.value,i)||(t.value=i,fH(t))}function H6(t,i){F6()||zy(t),Dc(t,i(t.value))}var cd=Ne(q({},xc),{equal:y3,value:void 0,kind:"signal"});function fH(t){t.version++,Ty(),N6(t),pH?.(t)}function Ke(t){return typeof t=="function"}function Ms(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 C3=Ms(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 xc(t,i){if(t){let e=t.indexOf(i);0<=e&&t.splice(e,1)}}var Ee=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(Ke(n))try{n()}catch(r){i=r instanceof b3?r.errors:[r]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let r of o)try{Sy(r)}catch(a){i=i??[],a instanceof b3?i=[...i,...a.errors]:i.push(a)}}if(i)throw new b3(i)}}add(i){var e;if(i&&i!==this)if(this.closed)Sy(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)&&xc(e,i)}remove(i){let{_finalizers:e}=this;e&&xc(e,i),i instanceof t&&i._removeParent(this)}};Ee.EMPTY=(()=>{let t=new Ee;return t.closed=!0,t})();var j6=Ee.EMPTY;function v3(t){return t instanceof Ee||t&&"closed"in t&&Ke(t.remove)&&Ke(t.add)&&Ke(t.unsubscribe)}function Sy(t){Ke(t)?t():t.unsubscribe()}var br={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Bl={setTimeout(t,i,...e){let{delegate:n}=Bl;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){let{delegate:i}=Bl;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function y3(t){Bl.setTimeout(()=>{let{onUnhandledError:i}=br;if(i)i(t);else throw t})}function Mc(){}var ky=H6("C",void 0,void 0);function Ey(t){return H6("E",void 0,t)}function Iy(t){return H6("N",t,void 0)}function H6(t,i,e){return{kind:t,value:i,error:e}}var wc=null;function jl(t){if(br.useDeprecatedSynchronousErrorHandling){let i=!wc;if(i&&(wc={errorThrown:!1,error:null}),t(),i){let{errorThrown:e,error:n}=wc;if(wc=null,e)throw n}}else t()}function Oy(t){br.useDeprecatedSynchronousErrorHandling&&wc&&(wc.errorThrown=!0,wc.error=t)}var Dc=class extends Ee{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,v3(i)&&i.add(this)):this.destination=Fj}static create(i,e,n){return new vr(i,e,n)}next(i){this.isStopped?$6(Iy(i),this):this._next(i)}error(i){this.isStopped?$6(Ey(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?$6(ky,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()}}},zj=Function.prototype.bind;function U6(t,i){return zj.call(t,i)}var G6=class{constructor(i){this.partialObserver=i}next(i){let{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){C3(n)}}error(i){let{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){C3(n)}else C3(i)}complete(){let{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){C3(e)}}},vr=class extends Dc{constructor(i,e,n){super();let o;if(Ke(i)||!i)o={next:i??void 0,error:e??void 0,complete:n??void 0};else{let r;this&&br.useDeprecatedNextContext?(r=Object.create(i),r.unsubscribe=()=>this.unsubscribe(),o={next:i.next&&U6(i.next,r),error:i.error&&U6(i.error,r),complete:i.complete&&U6(i.complete,r)}):o=i}this.destination=new G6(o)}};function C3(t){br.useDeprecatedSynchronousErrorHandling?Oy(t):y3(t)}function Nj(t){throw t}function $6(t,i){let{onStoppedNotification:e}=br;e&&Bl.setTimeout(()=>e(t,i))}var Fj={closed:!0,next:Mc,error:Nj,complete:Mc};var Hl=typeof Symbol=="function"&&Symbol.observable||"@@observable";function eo(t){return t}function W6(...t){return q6(t)}function q6(t){return t.length===0?eo: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=Bj(e)?e:new vr(e,n,o);return jl(()=>{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=Ty(n),new n((o,r)=>{let a=new vr({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)}[Hl](){return this}pipe(...e){return q6(e)(this)}toPromise(e){return e=Ty(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 Ty(t){var i;return(i=t??br.Promise)!==null&&i!==void 0?i:Promise}function Vj(t){return t&&Ke(t.next)&&Ke(t.error)&&Ke(t.complete)}function Bj(t){return t&&t instanceof Dc||Vj(t)&&v3(t)}function Y6(t){return Ke(t?.lift)}function Ye(t){return i=>{if(Y6(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 We(t,i,e,n,o){return new Q6(t,i,e,n,o)}var Q6=class extends Dc{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 Ul(){return Ye((t,i)=>{let e=null;t._refCount++;let n=We(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 ys=class extends Fe{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Y6(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 Ee;let e=this.getSubject();i.add(this.source.subscribe(We(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=Ee.EMPTY)}return i}refCount(){return Ul()(this)}};var $l={schedule(t){let i=requestAnimationFrame,e=cancelAnimationFrame,{delegate:n}=$l;n&&(i=n.requestAnimationFrame,e=n.cancelAnimationFrame);let o=i(r=>{e=void 0,t(r)});return new Ee(()=>e?.(o))},requestAnimationFrame(...t){let{delegate:i}=$l;return(i?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:i}=$l;return(i?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var Py=vs(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 x3(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new Py}next(e){jl(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(e)}})}error(e){jl(()=>{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(){jl(()=>{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?j6:(this.currentObservers=null,r.push(e),new Ee(()=>{this.currentObservers=null,xc(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 x3(i,e),t})(),x3=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:j6}};var dt=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 rd={now(){return(rd.delegate||Date).now()},delegate:void 0};var yr=class extends B{constructor(i=1/0,e=1/0,n=rd){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=$l.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&&($l.cancelAnimationFrame(e),i._scheduled=void 0)}};var D3=class extends ql{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 S3=new D3(w3);var Sn=new Fe(t=>t.complete());function k3(t){return t&&Ke(t.schedule)}function K6(t){return t[t.length-1]}function E3(t){return Ke(K6(t))?t.pop():void 0}function Zr(t){return k3(K6(t))?t.pop():void 0}function Ay(t,i){return typeof K6(t)=="number"?t.pop():i}function Yue(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 zy(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{u(n.next(f))}catch(b){a(b)}}function c(f){try{u(n.throw(f))}catch(b){a(b)}}function u(f){f.done?r(f.value):o(f.value).then(s,c)}u((n=n.apply(t,i||[])).next())})}function Ry(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 Sc(t){return this instanceof Sc?(this.v=t,this):new Sc(t)}function Ny(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(x){return function(D){return Promise.resolve(D).then(x,b)}}function s(x,D){n[x]&&(o[x]=function(q){return new Promise(function(Q,K){r.push([x,q,Q,K])>1||c(x,q)})},D&&(o[x]=D(o[x])))}function c(x,D){try{u(n[x](D))}catch(q){y(r[0][3],q)}}function u(x){x.value instanceof Sc?Promise.resolve(x.value.v).then(f,b):y(r[0][2],x)}function f(x){c("next",x)}function b(x){c("throw",x)}function y(x,D){x(D),r.shift(),r.length&&c(r[0][0],r[0][1])}}function Fy(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 Ry=="function"?Ry(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(u){r({value:u,done:s})},a)}}var Yl=t=>t&&typeof t.length=="number"&&typeof t!="function";function I3(t){return Ke(t?.then)}function O3(t){return Ke(t[Hl])}function T3(t){return Symbol.asyncIterator&&Ke(t?.[Symbol.asyncIterator])}function P3(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 jj(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var L3=jj();function A3(t){return Ke(t?.[L3])}function R3(t){return Ny(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:n,done:o}=yield Sc(e.read());if(o)return yield Sc(void 0);yield yield Sc(n)}}finally{e.releaseLock()}})}function z3(t){return Ke(t?.getReader)}function Tt(t){if(t instanceof Fe)return t;if(t!=null){if(O3(t))return Hj(t);if(Yl(t))return Uj(t);if(I3(t))return $j(t);if(T3(t))return Vy(t);if(A3(t))return Gj(t);if(z3(t))return Wj(t)}throw P3(t)}function Hj(t){return new Fe(i=>{let e=t[Hl]();if(Ke(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Uj(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,y3)})}function Gj(t){return new Fe(i=>{for(let e of t)if(i.next(e),i.closed)return;i.complete()})}function Vy(t){return new Fe(i=>{qj(t,i).catch(e=>i.error(e))})}function Wj(t){return Vy(R3(t))}function qj(t,i){var e,n,o,r;return zy(this,void 0,void 0,function*(){try{for(e=Fy(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 Fi(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 N3(t,i=0){return Ye((e,n)=>{e.subscribe(We(n,o=>Fi(n,t,()=>n.next(o),i),()=>Fi(n,t,()=>n.complete(),i),o=>Fi(n,t,()=>n.error(o),i)))})}function F3(t,i=0){return Ye((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function By(t,i){return Tt(t).pipe(F3(i),N3(i))}function jy(t,i){return Tt(t).pipe(F3(i),N3(i))}function Hy(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 Uy(t,i){return new Fe(e=>{let n;return Fi(e,i,()=>{n=t[L3](),Fi(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)}),()=>Ke(n?.return)&&n.return()})}function V3(t,i){if(!t)throw new Error("Iterable cannot be null");return new Fe(e=>{Fi(e,i,()=>{let n=t[Symbol.asyncIterator]();Fi(e,i,()=>{n.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function $y(t,i){return V3(R3(t),i)}function Gy(t,i){if(t!=null){if(O3(t))return By(t,i);if(Yl(t))return Hy(t,i);if(I3(t))return jy(t,i);if(T3(t))return V3(t,i);if(A3(t))return Uy(t,i);if(z3(t))return $y(t,i)}throw P3(t)}function Kt(t,i){return i?Gy(t,i):Tt(t)}function re(...t){let i=Zr(t);return Kt(t,i)}function Co(t,i){let e=Ke(t)?t:()=>t,n=o=>o.error(e());return new Fe(i?o=>i.schedule(n,0,o):n)}function di(t){return!!t&&(t instanceof Fe||Ke(t.lift)&&Ke(t.subscribe))}var xr=vs(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function X6(t,i){let e=typeof i=="object";return new Promise((n,o)=>{let r=new vr({next:a=>{n(a),r.unsubscribe()},error:o,complete:()=>{e?n(i.defaultValue):o(new xr)}});t.subscribe(r)})}function B3(t){return t instanceof Date&&!isNaN(t)}var Yj=vs(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function Z6(t,i){let{first:e,each:n,with:o=Qj,scheduler:r=i??Cr,meta:a=null}=B3(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&n==null)throw new TypeError("No timeout provided.");return Ye((s,c)=>{let u,f,b=null,y=0,x=D=>{f=Fi(c,r,()=>{try{u.unsubscribe(),Tt(o({meta:a,lastValue:b,seen:y})).subscribe(c)}catch(q){c.error(q)}},D)};u=s.subscribe(We(c,D=>{f?.unsubscribe(),y++,c.next(b=D),n>0&&x(n)},void 0,void 0,()=>{f?.closed||f?.unsubscribe(),b=null})),!y&&x(e!=null?typeof e=="number"?e:+e-r.now():n)})}function Qj(t){throw new Yj(t)}function ue(t,i){return Ye((e,n)=>{let o=0;e.subscribe(We(n,r=>{n.next(t.call(i,r,o++))}))})}var{isArray:Kj}=Array;function Xj(t,i){return Kj(i)?t(...i):t(i)}function Ql(t){return ue(i=>Xj(t,i))}var{isArray:Zj}=Array,{getPrototypeOf:Jj,prototype:eH,keys:tH}=Object;function j3(t){if(t.length===1){let i=t[0];if(Zj(i))return{args:i,keys:null};if(nH(i)){let e=tH(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}function nH(t){return t&&typeof t=="object"&&Jj(t)===eH}function H3(t,i){return t.reduce((e,n,o)=>(e[n]=i[o],e),{})}function Kn(...t){let i=Zr(t),e=E3(t),{args:n,keys:o}=j3(t);if(n.length===0)return Kt([],i);let r=new Fe(iH(n,i,o?a=>H3(o,a):eo));return e?r.pipe(Ql(e)):r}function iH(t,i,e=eo){return n=>{Wy(i,()=>{let{length:o}=t,r=new Array(o),a=o,s=o;for(let c=0;c{let u=Kt(t[c],i),f=!1;u.subscribe(We(n,b=>{r[c]=b,f||(f=!0,s--),s||n.next(e(r.slice()))},()=>{--a||n.complete()}))},n)},n)}}function Wy(t,i,e){t?Fi(e,t,i):i()}function qy(t,i,e,n,o,r,a,s){let c=[],u=0,f=0,b=!1,y=()=>{b&&!c.length&&!u&&i.complete()},x=q=>u{r&&i.next(q),u++;let Q=!1;Tt(e(q,f++)).subscribe(We(i,K=>{o?.(K),r?x(K):i.next(K)},()=>{Q=!0},void 0,()=>{if(Q)try{for(u--;c.length&&uD(K)):D(K)}y()}catch(K){i.error(K)}}))};return t.subscribe(We(i,x,()=>{b=!0,y()})),()=>{s?.()}}function rn(t,i,e=1/0){return Ke(i)?rn((n,o)=>ue((r,a)=>i(n,r,o,a))(Tt(t(n,o))),e):(typeof i=="number"&&(e=i),Ye((n,o)=>qy(n,o,t,e)))}function Jr(t=1/0){return rn(eo,t)}function Yy(){return Jr(1)}function Vi(...t){return Yy()(Kt(t,Zr(t)))}function Bi(t){return new Fe(i=>{Tt(t()).subscribe(i)})}function Ra(...t){let i=E3(t),{args:e,keys:n}=j3(t),o=new Fe(r=>{let{length:a}=e;if(!a){r.complete();return}let s=new Array(a),c=a,u=a;for(let f=0;f{b||(b=!0,u--),s[f]=y},()=>c--,void 0,()=>{(!c||!b)&&(u||r.next(n?H3(n,s):s),r.complete())}))}});return i?o.pipe(Ql(i)):o}var oH=["addListener","removeListener"],rH=["addEventListener","removeEventListener"],aH=["on","off"];function sd(t,i,e,n){if(Ke(e)&&(n=e,e=void 0),n)return sd(t,i,e).pipe(Ql(n));let[o,r]=lH(t)?rH.map(a=>s=>t[a](i,s,e)):sH(t)?oH.map(Qy(t,i)):cH(t)?aH.map(Qy(t,i)):[];if(!o&&Yl(t))return rn(a=>sd(a,i,e))(Tt(t));if(!o)throw new TypeError("Invalid event target");return new Fe(a=>{let s=(...c)=>a.next(1r(s)})}function Qy(t,i){return e=>n=>t[e](i,n)}function sH(t){return Ke(t.addListener)&&Ke(t.removeListener)}function cH(t){return Ke(t.on)&&Ke(t.off)}function lH(t){return Ke(t.addEventListener)&&Ke(t.removeEventListener)}function za(t=0,i,e=Ly){let n=-1;return i!=null&&(k3(i)?e=i:n=i),new Fe(o=>{let r=B3(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 J6(t=0,i=Cr){return t<0&&(t=0),za(t,t,i)}function mt(...t){let i=Zr(t),e=Ay(t,1/0),n=t;return n.length?n.length===1?Tt(n[0]):Jr(e)(Kt(n,i)):Sn}var{isArray:dH}=Array;function Ky(t){return t.length===1&&dH(t[0])?t[0]:t}function Oe(t,i){return Ye((e,n)=>{let o=0;e.subscribe(We(n,r=>t.call(i,r,o++)&&n.next(r)))})}function eg(...t){return t=Ky(t),t.length===1?Tt(t[0]):new Fe(uH(t))}function uH(t){return i=>{let e=[];for(let n=0;e&&!i.closed&&n{if(e){for(let r=0;r{let n=!1,o=null,r=null,a=!1,s=()=>{if(r?.unsubscribe(),r=null,n){n=!1;let u=o;o=null,e.next(u)}a&&e.complete()},c=()=>{r=null,a&&e.complete()};i.subscribe(We(e,u=>{n=!0,o=u,r||Tt(t(u)).subscribe(r=We(e,s,c))},()=>{a=!0,(!n||!r||r.closed)&&e.complete()}))})}function Kl(t,i=Cr){return Xy(()=>za(t,i))}function Xn(t){return Ye((i,e)=>{let n=null,o=!1,r;n=i.subscribe(We(e,void 0,void 0,a=>{r=Tt(t(a,Xn(t)(i))),n?(n.unsubscribe(),n=null,r.subscribe(e)):o=!0})),o&&(n.unsubscribe(),n=null,r.subscribe(e))})}function U3(t,i,e,n,o){return(r,a)=>{let s=e,c=i,u=0;r.subscribe(We(a,f=>{let b=u++;c=s?t(c,f,b):(s=!0,f),n&&a.next(c)},o&&(()=>{s&&a.next(c),a.complete()})))}}function $3(t,i){return Ye(U3(t,i,arguments.length>=2,!1,!0))}function to(t,i){return Ke(i)?rn(t,i,1):rn(t,1)}function To(t,i=Cr){return Ye((e,n)=>{let o=null,r=null,a=null,s=()=>{if(o){o.unsubscribe(),o=null;let u=r;r=null,n.next(u)}};function c(){let u=a+t,f=i.now();if(f{r=u,a=i.now(),o||(o=i.schedule(c,t),n.add(o))},()=>{s(),n.complete()},void 0,()=>{r=o=null}))})}function Cs(t){return Ye((i,e)=>{let n=!1;i.subscribe(We(e,o=>{n=!0,e.next(o)},()=>{n||e.next(t),e.complete()}))})}function Ve(t){return t<=0?()=>Sn:Ye((i,e)=>{let n=0;i.subscribe(We(e,o=>{++n<=t&&(e.next(o),t<=n&&e.complete())}))})}function Zy(){return Ye((t,i)=>{t.subscribe(We(i,Mc))})}function Xl(t){return ue(()=>t)}function tg(t,i){return i?e=>Vi(i.pipe(Ve(1),Zy()),e.pipe(tg(t))):rn((e,n)=>Tt(t(e,n)).pipe(Ve(1),Xl(e)))}function Na(t,i=Cr){let e=za(t,i);return tg(()=>e)}function Zl(t,i=eo){return t=t??mH,Ye((e,n)=>{let o,r=!0;e.subscribe(We(n,a=>{let s=i(a);(r||!t(o,s))&&(r=!1,o=s,n.next(a))}))})}function mH(t,i){return t===i}function G3(t=pH){return Ye((i,e)=>{let n=!1;i.subscribe(We(e,o=>{n=!0,e.next(o)},()=>n?e.complete():e.error(t())))})}function pH(){return new xr}function Mr(t){return Ye((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}function xo(t,i){let e=arguments.length>=2;return n=>n.pipe(t?Oe((o,r)=>t(o,r,n)):eo,Ve(1),e?Cs(i):G3(()=>new xr))}function Jl(t){return t<=0?()=>Sn:Ye((i,e)=>{let n=[];i.subscribe(We(e,o=>{n.push(o),t{for(let o of n)e.next(o);e.complete()},void 0,()=>{n=null}))})}function ng(t,i){let e=arguments.length>=2;return n=>n.pipe(t?Oe((o,r)=>t(o,r,n)):eo,Jl(1),e?Cs(i):G3(()=>new xr))}function W3(){return Ye((t,i)=>{let e,n=!1;t.subscribe(We(i,o=>{let r=e;e=o,n&&i.next([r,o]),n=!0}))})}function ig(t,i){return Ye(U3(t,i,arguments.length>=2,!0))}function cd(t={}){let{connector:i=()=>new B,resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return r=>{let a,s,c,u=0,f=!1,b=!1,y=()=>{s?.unsubscribe(),s=void 0},x=()=>{y(),a=c=void 0,f=b=!1},D=()=>{let q=a;x(),q?.unsubscribe()};return Ye((q,Q)=>{u++,!b&&!f&&y();let K=c=c??i();Q.add(()=>{u--,u===0&&!b&&!f&&(s=og(D,o))}),K.subscribe(Q),!a&&u>0&&(a=new vr({next:pe=>K.next(pe),error:pe=>{b=!0,y(),s=og(x,e,pe),K.error(pe)},complete:()=>{f=!0,y(),s=og(x,n),K.complete()}}),Tt(q).subscribe(a))})(r)}}function og(t,i,...e){if(i===!0){t();return}if(i===!1)return;let n=new vr({next:()=>{n.unsubscribe(),t()}});return Tt(i(...e)).subscribe(n)}function xs(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,cd({connector:()=>new yr(n,i,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function kc(t){return Oe((i,e)=>t<=e)}function Qe(...t){let i=Zr(t);return Ye((e,n)=>{(i?Vi(t,e,i):Vi(t,e)).subscribe(n)})}function rt(t,i){return Ye((e,n)=>{let o=null,r=0,a=!1,s=()=>a&&!o&&n.complete();e.subscribe(We(n,c=>{o?.unsubscribe();let u=0,f=r++;Tt(t(c,f)).subscribe(o=We(n,b=>n.next(i?i(c,b,f,u++):b),()=>{o=null,s()}))},()=>{a=!0,s()}))})}function xe(t){return Ye((i,e)=>{Tt(t).subscribe(We(e,()=>e.complete(),Mc)),!e.closed&&i.subscribe(e)})}function rg(t,i=!1){return Ye((e,n)=>{let o=0;e.subscribe(We(n,r=>{let a=t(r,o++);(a||i)&&n.next(r),!a&&n.complete()}))})}function Dt(t,i,e){let n=Ke(t)||i||e?{next:t,error:i,complete:e}:t;return n?Ye((o,r)=>{var a;(a=n.subscribe)===null||a===void 0||a.call(n);let s=!0;o.subscribe(We(r,c=>{var u;(u=n.next)===null||u===void 0||u.call(n,c),r.next(c)},()=>{var c;s=!1,(c=n.complete)===null||c===void 0||c.call(n),r.complete()},c=>{var u;s=!1,(u=n.error)===null||u===void 0||u.call(n,c),r.error(c)},()=>{var c,u;s&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):eo}function Jy(t){let i=nt(null);try{return t()}finally{nt(i)}}var eC=Ne(Y({},bc),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function tC(t){if(t.dirty=!1,t.version>0&&!yc(t))return;t.version++;let i=_s(t);try{t.cleanup(),t.fn()}finally{vc(t,i)}}var K3="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",fe=class extends Error{code;constructor(i,e){super(Xo(i,e)),this.code=i}};function fH(t){return`NG0${Math.abs(t)}`}function Xo(t,i){return`${fH(t)}${i?": "+i:""}`}var Zn=globalThis;function qt(t){for(let i in t)if(t[i]===qt)return i;throw Error("")}function oC(t,i){for(let e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function Va(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Va).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 X3(t,i){return t?i?`${t} ${i}`:t:i||""}var hH=qt({__forward_ref__:qt});function It(t){return t.__forward_ref__=It,t.toString=function(){return Va(this())},t}function ui(t){return _g(t)?t():t}function _g(t){return typeof t=="function"&&t.hasOwnProperty(hH)&&t.__forward_ref__===It}function z(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Z(t){return{providers:t.providers||[],imports:t.imports||[]}}function pd(t){return gH(t,Z3)}function bg(t){return pd(t)!==null}function gH(t,i){return t.hasOwnProperty(i)&&t[i]||null}function _H(t){let i=t?.[Z3]??null;return i||null}function sg(t){return t&&t.hasOwnProperty(Y3)?t[Y3]:null}var Z3=qt({\u0275prov:qt}),Y3=qt({\u0275inj:qt}),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=z({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function vg(t){return t&&!!t.\u0275providers}var yg=qt({\u0275cmp:qt}),Cg=qt({\u0275dir:qt}),xg=qt({\u0275pipe:qt}),Mg=qt({\u0275mod:qt}),dd=qt({\u0275fac:qt}),Pc=qt({__NG_ELEMENT_ID__:qt}),nC=qt({__NG_ENV_ID__:qt});function Hi(t){return typeof t=="string"?t:t==null?"":String(t)}function rC(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Hi(t)}var aC=qt({ngErrorCode:qt}),bH=qt({ngErrorMessage:qt}),vH=qt({ngTokenPath:qt});function wg(t,i){return sC("",-200,i)}function J3(t,i){throw new fe(-201,!1)}function sC(t,i,e){let n=new fe(i,t);return n[aC]=i,n[bH]=t,e&&(n[vH]=e),n}function yH(t){return t[aC]}var cg;function cC(){return cg}function no(t){let i=cg;return cg=t,i}function Dg(t,i,e){let n=pd(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;J3(t,"Injector")}var CH={},Ec=CH,lg="__NG_DI_FLAG__",dg=class{injector;constructor(i){this.injector=i}retrieve(i,e){let n=Ic(e)||0;try{return this.injector.get(i,n&8?null:Ec,n)}catch(o){if(Fl(o))return o;throw o}}};function xH(t,i=0){let e=l3();if(e===void 0)throw new fe(-203,!1);if(e===null)return Dg(t,void 0,i);{let n=MH(i),o=e.retrieve(t,n);if(Fl(o)){if(n.optional)return null;throw o}return o}}function be(t,i=0){return(cC()||xH)(ui(t),i)}function d(t,i){return be(t,Ic(i))}function Ic(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function MH(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function ug(t){let i=[];for(let e=0;eArray.isArray(e)?e4(e,i):i(e))}function kg(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function fd(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function uC(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 t4(t,i,e){let n=t1(t,i);return n>=0?t[n|1]=e:(n=~n,mC(t,n,i,e)),n}function n4(t,i){let e=t1(t,i);if(e>=0)return t[e|1]}function t1(t,i){return DH(t,i,1)}function DH(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 e4(i,a=>{let s=a;Q3(s,r,[],n)&&(o||=[],o.push(s))}),o!==void 0&&hC(o,r),e}function hC(t,i){for(let e=0;e{i(r,n)})}}function Q3(t,i,e,n){if(t=ui(t),!t)return!1;let o=null,r=sg(t),a=!r&&ea(t);if(!r&&!a){let c=t.ngModule;if(r=sg(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 u of c)Q3(u,i,e,n)}}else if(r){if(r.imports!=null&&!s){n.add(o);let u;try{e4(r.imports,f=>{Q3(f,i,e,n)&&(u||=[],u.push(f))})}finally{}u!==void 0&&hC(u,i)}if(!s){let u=Ms(o)||(()=>new o);i({provide:o,useFactory:u,deps:ji},o),i({provide:Ig,useValue:o,multi:!0},o),i({provide:Ba,useValue:()=>be(o),multi:!0},o)}let c=r.providers;if(c!=null&&!s){let u=t;Pg(c,f=>{i(f,u)})}}else return!1;return o!==t&&t.providers!==void 0}function Pg(t,i){for(let e of t)vg(e)&&(e=e.\u0275providers),Array.isArray(e)?Pg(e,i):i(e)}var SH=qt({provide:String,useValue:qt});function gC(t){return t!==null&&typeof t=="object"&&SH in t}function kH(t){return!!(t&&t.useExisting)}function EH(t){return!!(t&&t.useFactory)}function Oc(t){return typeof t=="function"}function _C(t){return!!t.useClass}var hd=new L(""),q3={},iC={},ag;function n1(){return ag===void 0&&(ag=new ud),ag}var Xt=class{},Tc=class extends Xt{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,pg(i,a=>this.processProvider(a)),this.records.set(Eg,e1(void 0,this)),o.has("environment")&&this.records.set(Xt,e1(void 0,this));let r=this.records.get(hd);r!=null&&typeof r.value=="string"&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(Ig,ji,{self:!0}))}retrieve(i,e){let n=Ic(e)||0;try{return this.get(i,Ec,n)}catch(o){if(Fl(o))return o;throw o}}destroy(){ld(this),this._destroyed=!0;let i=nt(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(),nt(i)}}onDestroy(i){return ld(this),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){ld(this);let e=Xr(this),n=no(void 0),o;try{return i()}finally{Xr(e),no(n)}}get(i,e=Ec,n){if(ld(this),i.hasOwnProperty(nC))return i[nC](this);let o=Ic(n),r,a=Xr(this),s=no(void 0);try{if(!(o&4)){let u=this.records.get(i);if(u===void 0){let f=LH(i)&&pd(i);f&&this.injectableDefInScope(f)?u=e1(mg(i),q3):u=null,this.records.set(i,u)}if(u!=null)return this.hydrate(i,u,o)}let c=o&2?n1():this.parent;return e=o&8&&e===Ec?null:e,c.get(i,e)}catch(c){let u=yH(c);throw u===-200||u===-201?new fe(u,null):c}finally{no(s),Xr(a)}}resolveInjectorInitializers(){let i=nt(null),e=Xr(this),n=no(void 0),o;try{let r=this.get(Ba,ji,{self:!0});for(let a of r)a()}finally{Xr(e),no(n),nt(i)}}toString(){let i=[],e=this.records;for(let n of e.keys())i.push(Va(n));return`R3Injector[${i.join(", ")}]`}processProvider(i){i=ui(i);let e=Oc(i)?i:ui(i&&i.provide),n=OH(i);if(!Oc(i)&&i.multi===!0){let o=this.records.get(e);o||(o=e1(void 0,q3,!0),o.factory=()=>ug(o.multi),this.records.set(e,o)),e=i,o.multi.push(i)}this.records.set(e,n)}hydrate(i,e,n){let o=nt(null);try{if(e.value===iC)throw wg(Va(i));return e.value===q3&&(e.value=iC,e.value=e.factory(void 0,n)),typeof e.value=="object"&&e.value&&PH(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{nt(o)}}injectableDefInScope(i){if(!i.providedIn)return!1;let e=ui(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 mg(t){let i=pd(t),e=i!==null?i.factory:Ms(t);if(e!==null)return e;if(t instanceof L)throw new fe(204,!1);if(t instanceof Function)return IH(t);throw new fe(204,!1)}function IH(t){if(t.length>0)throw new fe(204,!1);let e=_H(t);return e!==null?()=>e.factory(t):()=>new t}function OH(t){if(gC(t))return e1(void 0,t.useValue);{let i=Lg(t);return e1(i,q3)}}function Lg(t,i,e){let n;if(Oc(t)){let o=ui(t);return Ms(o)||mg(o)}else if(gC(t))n=()=>ui(t.useValue);else if(EH(t))n=()=>t.useFactory(...ug(t.deps||[]));else if(kH(t))n=(o,r)=>be(ui(t.useExisting),r!==void 0&&r&8?8:void 0);else{let o=ui(t&&(t.useClass||t.provide));if(TH(t))n=()=>new o(...ug(t.deps));else return Ms(o)||mg(o)}return n}function ld(t){if(t.destroyed)throw new fe(205,!1)}function e1(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function TH(t){return!!t.deps}function PH(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function LH(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function pg(t,i){for(let e of t)Array.isArray(e)?pg(e,i):e&&vg(e)?pg(e.\u0275providers,i):i(e)}function Ci(t,i){let e;t instanceof Tc?(ld(t),e=t):e=new dg(t);let n,o=Xr(e),r=no(void 0);try{return i()}finally{Xr(o),no(r)}}function Ag(){return cC()!==void 0||l3()!=null}var Dr=0,qe=1,at=2,mi=3,Zo=4,io=5,Lc=6,i1=7,Fn=8,ja=9,na=10,Zt=11,o1=12,Rg=13,Ac=14,Ui=15,Ds=16,Rc=17,ia=18,gd=19,zg=20,Fa=21,o4=22,Ha=23,Po=24,zc=25,Nc=26,an=27,bC=1,Ng=6,Ss=7,_d=8,Fc=9,Vn=10;function oa(t){return Array.isArray(t)&&typeof t[bC]=="object"}function Sr(t){return Array.isArray(t)&&t[bC]===!0}function Fg(t){return(t.flags&4)!==0}function Ua(t){return t.componentOffset>-1}function r1(t){return(t.flags&1)===1}function kr(t){return!!t.template}function a1(t){return(t[at]&512)!==0}function Vc(t){return(t[at]&256)===256}var Vg="svg",vC="math";function Jo(t){for(;Array.isArray(t);)t=t[Dr];return t}function Bg(t,i){return Jo(i[t])}function er(t,i){return Jo(i[t.index])}function bd(t,i){return t.data[i]}function s1(t,i){return t[i]}function jg(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}function tr(t,i){let e=i[t];return oa(e)?e:e[Dr]}function yC(t){return(t[at]&4)===4}function r4(t){return(t[at]&128)===128}function CC(t){return Sr(t[mi])}function Lo(t,i){return i==null?null:t[i]}function Hg(t){t[Rc]=0}function Ug(t){t[at]&1024||(t[at]|=1024,r4(t)&&ks(t))}function xC(t,i){for(;t>0;)i=i[Ac],t--;return i}function vd(t){return!!(t[at]&9216||t[Po]?.dirty)}function a4(t){t[na].changeDetectionScheduler?.notify(8),t[at]&64&&(t[at]|=1024),vd(t)&&ks(t)}function ks(t){t[na].changeDetectionScheduler?.notify(0);let i=ws(t);for(;i!==null&&!(i[at]&8192||(i[at]|=8192,!r4(i)));)i=ws(i)}function $g(t,i){if(Vc(t))throw new fe(911,!1);t[Fa]===null&&(t[Fa]=[]),t[Fa].push(i)}function MC(t,i){if(t[Fa]===null)return;let e=t[Fa].indexOf(i);e!==-1&&t[Fa].splice(e,1)}function ws(t){let i=t[mi];return Sr(i)?i[mi]:i}function Gg(t){return t[i1]??=[]}function Wg(t){return t.cleanup??=[]}function wC(t,i,e,n){let o=Gg(i);o.push(e),t.firstCreatePass&&Wg(t).push(n,o.length-1)}var Ct={lFrame:RC(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var fg=!1;function DC(){return Ct.lFrame.elementDepthCount}function SC(){Ct.lFrame.elementDepthCount++}function qg(){Ct.lFrame.elementDepthCount--}function s4(){return Ct.bindingsEnabled}function Yg(){return Ct.skipHydrationRootTNode!==null}function Qg(t){return Ct.skipHydrationRootTNode===t}function Kg(){Ct.skipHydrationRootTNode=null}function Re(){return Ct.lFrame.lView}function sn(){return Ct.lFrame.tView}function U(t){return Ct.lFrame.contextLView=t,t[Fn]}function $(t){return Ct.lFrame.contextLView=null,t}function Jn(){let t=Xg();for(;t!==null&&t.type===64;)t=t.parent;return t}function Xg(){return Ct.lFrame.currentTNode}function kC(){let t=Ct.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}function c1(t,i){let e=Ct.lFrame;e.currentTNode=t,e.isParent=i}function Zg(){return Ct.lFrame.isParent}function Jg(){Ct.lFrame.isParent=!1}function EC(){return Ct.lFrame.contextLView}function e8(){return fg}function l1(t){let i=fg;return fg=t,i}function $a(){let t=Ct.lFrame,i=t.bindingRootIndex;return i===-1&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function c4(){return Ct.lFrame.bindingIndex}function IC(t){return Ct.lFrame.bindingIndex=t}function ra(){return Ct.lFrame.bindingIndex++}function d1(t){let i=Ct.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function OC(){return Ct.lFrame.inI18n}function TC(t,i){let e=Ct.lFrame;e.bindingIndex=e.bindingRootIndex=t,l4(i)}function PC(){return Ct.lFrame.currentDirectiveIndex}function l4(t){Ct.lFrame.currentDirectiveIndex=t}function LC(t){let i=Ct.lFrame.currentDirectiveIndex;return i===-1?null:t[i]}function d4(){return Ct.lFrame.currentQueryIndex}function yd(t){Ct.lFrame.currentQueryIndex=t}function AH(t){let i=t[qe];return i.type===2?i.declTNode:i.type===1?t[io]:null}function t8(t,i,e){if(e&4){let o=i,r=t;for(;o=o.parent,o===null&&!(e&1);)if(o=AH(r),o===null||(r=r[Ac],o.type&10))break;if(o===null)return!1;i=o,t=r}let n=Ct.lFrame=AC();return n.currentTNode=i,n.lView=t,!0}function u4(t){let i=AC(),e=t[qe];Ct.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function AC(){let t=Ct.lFrame,i=t===null?null:t.child;return i===null?RC(t):i}function RC(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 zC(){let t=Ct.lFrame;return Ct.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var n8=zC;function m4(){let t=zC();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 NC(t){return(Ct.lFrame.contextLView=xC(t,Ct.lFrame.contextLView))[Fn]}function nr(){return Ct.lFrame.selectedIndex}function Es(t){Ct.lFrame.selectedIndex=t}function u1(){let t=Ct.lFrame;return bd(t.tView,t.selectedIndex)}function Gt(){Ct.lFrame.currentNamespace=Vg}function ir(){RH()}function RH(){Ct.lFrame.currentNamespace=null}function FC(){return Ct.lFrame.currentNamespace}var VC=!0;function p4(){return VC}function Cd(t){VC=t}function hg(t,i=null,e=null,n){let o=i8(t,i,e,n);return o.resolveInjectorInitializers(),o}function i8(t,i=null,e=null,n,o=new Set){let r=[e||ji,fC(t)];return n=n||(typeof t=="object"?void 0:Va(t)),new Tc(r,i||n1(),n||null,o)}var ye=class t{static THROW_IF_NOT_FOUND=Ec;static NULL=new ud;static create(i,e){if(Array.isArray(i))return hg({name:""},e,i,"");{let n=i.name??"";return hg({name:n},i.parent,i.providers,n)}}static \u0275prov=z({token:t,providedIn:"any",factory:()=>be(Eg)});static __NG_ELEMENT_ID__=-1},De=new L(""),$i=(()=>{class t{static __NG_ELEMENT_ID__=zH;static __NG_ENV_ID__=e=>e}return t})(),md=class extends $i{_lView;constructor(i){super(),this._lView=i}get destroyed(){return Vc(this._lView)}onDestroy(i){let e=this._lView;return $g(e,i),()=>MC(e,i)}};function zH(){return new md(Re())}var yi=class{_console=console;handleError(i){this._console.error("ERROR",i)}},oo=new L("",{providedIn:"root",factory:()=>{let t=d(Xt),i;return e=>{t.destroyed&&!i?setTimeout(()=>{throw e}):(i??=t.get(yi),i.handleError(e))}}}),BC={provide:Ba,useValue:()=>void d(yi),multi:!0};function aa(t){return typeof t=="function"&&t[Qn]!==void 0}function Se(t,i){let[e,n,o]=V6(t,i?.equal),r=e,a=r[Qn];return r.set=n,r.update=o,r.asReadonly=f4.bind(r),r}function f4(){let t=this[Qn];if(t.readonlyFn===void 0){let i=()=>this();i[Qn]=t,t.readonlyFn=i}return t.readonlyFn}function o8(t){return aa(t)&&typeof t.set=="function"}var Bc=(()=>{class t{view;node;constructor(e,n){this.view=e,this.node=n}static __NG_ELEMENT_ID__=NH}return t})();function NH(){return new Bc(Re(),Jn())}var Ko=class{},xd=new L("",{providedIn:"root",factory:()=>!1});var r8=new L(""),a8=new L(""),sa=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new dt(!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=z({token:t,providedIn:"root",factory:()=>new t})}return t})(),m1=(()=>{class t{internalPendingTasks=d(sa);scheduler=d(Ko);errorHandler=d(oo);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=z({token:t,providedIn:"root",factory:()=>new t})}return t})();function jc(...t){}var Md=(()=>{class t{static \u0275prov=z({token:t,providedIn:"root",factory:()=>new gg})}return t})(),gg=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 y1(t){return{toString:t}.toString()}var h4="__parameters__";function UH(t){return function(...e){if(t){let n=t(...e);for(let o in n)this[o]=n[o]}}}function wx(t,i,e){return y1(()=>{let n=UH(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,u,f){let b=c.hasOwnProperty(h4)?c[h4]:Object.defineProperty(c,h4,{value:[]})[h4];for(;b.length<=f;)b.push(null);return(b[f]=b[f]||[]).push(a),c}}return o.prototype.ngMetadataName=t,o.annotationCls=o,o})}var or=Sg(wx("Optional"),8);var da=Sg(wx("SkipSelf"),4);function Dx(t){let i=Zn.ng;if(i&&i.\u0275compilerFacade)return i.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function $H(t){return typeof t=="function"}var k4=class{previousValue;currentValue;firstChange;constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}};function Sx(t,i,e,n){i!==null?i.applyValueToInputSignal(i,n):t[e]=n}var ze=(()=>{let t=()=>kx;return t.ngInherit=!0,t})();function kx(t){return t.type.prototype.ngOnChanges&&(t.setInput=WH),GH}function GH(){let t=Ix(this),i=t?.current;if(i){let e=t.previous;if(e===wr)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function WH(t,i,e,n,o){let r=this.declaredInputs[n],a=Ix(t)||qH(t,{previous:wr,current:null}),s=a.current||(a.current={}),c=a.previous,u=c[r];s[r]=new k4(u&&u.currentValue,e,c===wr),Sx(t,i,o,e)}var Ex="__ngSimpleChanges__";function Ix(t){return t[Ex]||null}function qH(t,i){return t[Ex]=i}var jC=[];var cn=function(t,i=null,e){for(let n=0;n=n)break}else i[c]<0&&(t[Rc]+=65536),(s>14>16&&(t[at]&3)===i&&(t[at]+=16384,HC(s,r)):HC(s,r)}var f1=-1,Uc=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 KH(t){return(t.flags&8)!==0}function XH(t){return(t.flags&16)!==0}function ZH(t,i,e){let n=0;for(;ni){a=r-1;break}}}for(;r>16}function I4(t,i){let e=eU(t),n=i;for(;e>0;)n=n[Ac],e--;return n}var _8=!0;function O4(t){let i=_8;return _8=t,i}var tU=256,Ax=tU-1,Rx=5,nU=0,ca={};function iU(t,i,e){let n;typeof e=="string"?n=e.charCodeAt(0)||0:e.hasOwnProperty(Pc)&&(n=e[Pc]),n==null&&(n=e[Pc]=nU++);let o=n&Ax,r=1<>Rx)]|=r}function T4(t,i){let e=zx(t,i);if(e!==-1)return e;let n=i[qe];n.firstCreatePass&&(t.injectorIndex=i.length,c8(n.data,t),c8(i,null),c8(n.blueprint,null));let o=n5(t,i),r=t.injectorIndex;if(Lx(o)){let a=E4(o),s=I4(o,i),c=s[qe].data;for(let u=0;u<8;u++)i[r+u]=s[a+u]|c[a+u]}return i[r+8]=o,r}function c8(t,i){t.push(0,0,0,0,0,0,0,0,i)}function zx(t,i){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||i[t.injectorIndex+8]===null?-1:t.injectorIndex}function n5(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=jx(o),n===null)return f1;if(e++,o=o[Ac],n.injectorIndex!==-1)return n.injectorIndex|e<<16}return f1}function b8(t,i,e){iU(t,i,e)}function oU(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,b=n?s:s+f,y=o?s+f:u;for(let x=b;x=c&&D.type===e)return x}if(o){let x=a[c];if(x&&kr(x)&&x.type===e)return c}return null}function kd(t,i,e,n,o){let r=t[e],a=i.data;if(r instanceof Uc){let s=r;if(s.resolving){let x=rC(a[e]);throw wg(x)}let c=O4(s.canSeeViewProviders);s.resolving=!0;let u=a[e].type||a[e],f,b=s.injectImpl?no(s.injectImpl):null,y=t8(t,n,0);try{r=t[e]=s.factory(void 0,o,a,t,n),i.firstCreatePass&&e>=n.directiveStart&&YH(e,a[e],i)}finally{b!==null&&no(b),O4(c),s.resolving=!1,n8()}}return r}function aU(t){if(typeof t=="string")return t.charCodeAt(0)||0;let i=t.hasOwnProperty(Pc)?t[Pc]:void 0;return typeof i=="number"?i>=0?i&Ax:sU:i}function $C(t,i,e){let n=1<>Rx)]&n)}function GC(t,i){return!(t&2)&&!(t&1&&i)}var Hc=class{_tNode;_lView;constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return Vx(this._tNode,this._lView,i,Ic(n),e)}};function sU(){return new Hc(Jn(),Re())}function Te(t){return y1(()=>{let i=t.prototype.constructor,e=i[dd]||v8(i),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let r=o[dd]||v8(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function v8(t){return _g(t)?()=>{let i=v8(ui(t));return i&&i()}:Ms(t)}function cU(t,i,e,n,o){let r=t,a=i;for(;r!==null&&a!==null&&a[at]&2048&&!a1(a);){let s=Bx(r,a,e,n|2,ca);if(s!==ca)return s;let c=r.parent;if(!c){let u=a[zg];if(u){let f=u.get(e,ca,n);if(f!==ca)return f}c=jx(a),a=a[Ac]}r=c}return o}function jx(t){let i=t[qe],e=i.type;return e===2?i.declTNode:e===1?t[io]:null}function zd(t){return oU(Jn(),t)}function lU(){return C1(Jn(),Re())}function C1(t,i){return new X(er(t,i))}var X=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=lU}return t})();function Hx(t){return t instanceof X?t.nativeElement:t}function dU(){return this._results[Symbol.iterator]()}var On=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=dC(i);(this._changesDetected=!lC(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]=dU};function Ux(t){return(t.flags&128)===128}var i5=(function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t})(i5||{}),$x=new Map,uU=0;function mU(){return uU++}function pU(t){$x.set(t[gd],t)}function y8(t){$x.delete(t[gd])}var WC="__ngContext__";function g1(t,i){oa(i)?(t[WC]=i[gd],pU(i)):t[WC]=i}function Gx(t){return qx(t[o1])}function Wx(t){return qx(t[Zo])}function qx(t){for(;t!==null&&!Sr(t);)t=t[Zo];return t}var C8;function o5(t){C8=t}function r5(){if(C8!==void 0)return C8;if(typeof document<"u")return document;throw new fe(210,!1)}var Ts=new L("",{providedIn:"root",factory:()=>fU}),fU="ng",G4=new L(""),Wc=new L("",{providedIn:"platform",factory:()=>"unknown"});var Nd=new L(""),x1=new L("",{providedIn:"root",factory:()=>r5().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var hU="h",gU="b";var Yx="r";var Qx="di";var Kx=!1,Xx=new L("",{providedIn:"root",factory:()=>Kx});var W4=new L("");var _U=(t,i,e,n)=>{};function bU(t,i,e,n){_U(t,i,e,n)}function q4(t){return(t.flags&32)===32}var vU=()=>null;function Zx(t,i,e=!1){return vU(t,i,e)}function Jx(t,i){let e=t.contentQueries;if(e!==null){let n=nt(null);try{for(let o=0;ot,createScript:t=>t,createScriptURL:t=>t})}catch{}return g4}function Y4(t){return yU()?.createHTML(t)||t}var _4;function eM(){if(_4===void 0&&(_4=null,Zn.trustedTypes))try{_4=Zn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return _4}function qC(t){return eM()?.createHTML(t)||t}function YC(t){return eM()?.createScriptURL(t)||t}var Wa=class{changingThisBreaksApplicationSecurity;constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${K3})`}},M8=class extends Wa{getTypeName(){return"HTML"}},w8=class extends Wa{getTypeName(){return"Style"}},D8=class extends Wa{getTypeName(){return"Script"}},S8=class extends Wa{getTypeName(){return"URL"}},k8=class extends Wa{getTypeName(){return"ResourceURL"}};function Ao(t){return t instanceof Wa?t.changingThisBreaksApplicationSecurity:t}function ua(t,i){let e=tM(t);if(e!=null&&e!==i){if(e==="ResourceURL"&&i==="URL")return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${K3})`)}return e===i}function tM(t){return t instanceof Wa&&t.getTypeName()||null}function s5(t){return new M8(t)}function c5(t){return new w8(t)}function l5(t){return new D8(t)}function d5(t){return new S8(t)}function u5(t){return new k8(t)}function CU(t){let i=new I8(t);return xU()?new E8(i):i}var E8=class{inertDocumentHelper;constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{let e=new window.DOMParser().parseFromString(Y4(i),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(i):(e.firstChild?.remove(),e)}catch{return null}}},I8=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=Y4(i),e}};function xU(){try{return!!new window.DOMParser().parseFromString(Y4(""),"text/html")}catch{return!1}}var MU=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Fd(t){return t=String(t),t.match(MU)?t:"unsafe:"+t}function qa(t){let i={};for(let e of t.split(","))i[e]=!0;return i}function Vd(...t){let i={};for(let e of t)for(let n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}var nM=qa("area,br,col,hr,img,wbr"),iM=qa("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),oM=qa("rp,rt"),wU=Vd(oM,iM),DU=Vd(iM,qa("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")),SU=Vd(oM,qa("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")),QC=Vd(nM,DU,SU,wU),rM=qa("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),kU=qa("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"),EU=qa("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"),IU=Vd(rM,kU,EU),OU=qa("script,style,template"),O8=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=LU(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=PU(e);if(r){e=r;break}e=o.pop()}}return this.buf.join("")}startElement(i){let e=KC(i).toLowerCase();if(!QC.hasOwnProperty(e))return this.sanitizedSomething=!0,!OU.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=i.attributes;for(let o=0;o"),!0}endElement(i){let e=KC(i).toLowerCase();QC.hasOwnProperty(e)&&!nM.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(XC(i))}};function TU(t,i){return(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function PU(t){let i=t.nextSibling;if(i&&t!==i.previousSibling)throw aM(i);return i}function LU(t){let i=t.firstChild;if(i&&TU(t,i))throw aM(i);return i}function KC(t){let i=t.nodeName;return typeof i=="string"?i:"FORM"}function aM(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var AU=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,RU=/([^\#-~ |!])/g;function XC(t){return t.replace(/&/g,"&").replace(AU,function(i){let e=i.charCodeAt(0),n=i.charCodeAt(1);return"&#"+((e-55296)*1024+(n-56320)+65536)+";"}).replace(RU,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}var b4;function Q4(t,i){let e=null;try{b4=b4||CU(t);let n=i?String(i):"";e=b4.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=b4.getInertBodyElement(n)}while(n!==r);let s=new O8().sanitizeChildren(ZC(e)||e);return Y4(s)}finally{if(e){let n=ZC(e)||e;for(;n.firstChild;)n.firstChild.remove()}}}function ZC(t){return"content"in t&&zU(t)?t.content:null}function zU(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var NU=/^>|^->||--!>|)/g,VU="\u200B$1\u200B";function BU(t){return t.replace(NU,i=>i.replace(FU,VU))}function jU(t,i){return t.createText(i)}function HU(t,i,e){t.setValue(i,e)}function UU(t,i){return t.createComment(BU(i))}function sM(t,i,e){return t.createElement(i,e)}function P4(t,i,e,n,o){t.insertBefore(i,e,n,o)}function cM(t,i,e){t.appendChild(i,e)}function JC(t,i,e,n,o){n!==null?P4(t,i,e,n,o):cM(t,i,e)}function lM(t,i,e,n){t.removeChild(null,i,e,n)}function $U(t,i,e){t.setAttribute(i,"style",e)}function GU(t,i,e){e===""?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e)}function dM(t,i,e){let{mergedAttrs:n,classes:o,styles:r}=e;n!==null&&ZH(t,i,n),o!==null&&GU(t,i,o),r!==null&&$U(t,i,r)}var Bn=(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})(Bn||{});function qc(t){let i=p5();return i?qC(i.sanitize(Bn.HTML,t)||""):ua(t,"HTML")?qC(Ao(t)):Q4(r5(),Hi(t))}function M1(t){let i=p5();return i?i.sanitize(Bn.URL,t)||"":ua(t,"URL")?Ao(t):Fd(Hi(t))}function uM(t){let i=p5();if(i)return YC(i.sanitize(Bn.RESOURCE_URL,t)||"");if(ua(t,"ResourceURL"))return YC(Ao(t));throw new fe(904,!1)}function WU(t,i){return i==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||i==="href"&&(t==="base"||t==="link")?uM:M1}function m5(t,i,e){return WU(i,e)(t)}function p5(){let t=Re();return t&&t[na].sanitizer}function qU(t){return t.ownerDocument.defaultView}function YU(t){return t.ownerDocument}function mM(t){return t instanceof Function?t():t}function QU(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 pM="ng-template";function KU(t,i,e,n){let o=0;if(n){for(;o-1){let r;for(;++or?b="":b=o[f+1].toLowerCase(),n&2&&u!==b){if(Er(n))return!1;a=!0}}}}return Er(n)||a}function Er(t){return(t&1)===0}function JU(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!==""&&!Er(a)&&(i+=ex(r,o),o=""),n=a,r=r||!Er(n);e++}return o!==""&&(i+=ex(r,o)),i}function r$(t){return t.map(o$).join(",")}function a$(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 Ee&&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=P8;function vM(t){let i,e;function n(){t=jc;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 nx(t){return queueMicrotask(()=>t()),()=>{t=jc}}var v5="isAngularZone",L4=v5+"_ID",u$=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=bM}=i;if(typeof Zone>"u")throw new fe(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,f$(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(v5)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new fe(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new fe(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,m$,jc,jc);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)}},m$={};function y5(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 p$(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function i(){vM(()=>{t.callbackScheduled=!1,L8(t),t.isCheckStableRunning=!0,y5(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{i()}):t._outer.run(()=>{i()}),L8(t)}function f$(t){let i=()=>{p$(t)},e=u$++;t._inner=t._inner.fork({name:"angular",properties:{[v5]:!0,[L4]:e,[L4+e]:!0},onInvokeTask:(n,o,r,a,s,c)=>{if(h$(c))return n.invokeTask(r,a,s,c);try{return ix(t),n.invokeTask(r,a,s,c)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&i(),ox(t)}},onInvoke:(n,o,r,a,s,c,u)=>{try{return ix(t),n.invoke(r,a,s,c,u)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!g$(c)&&i(),ox(t)}},onHasTask:(n,o,r,a)=>{n.hasTask(r,a),o===r&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,L8(t),y5(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 L8(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function ix(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function ox(t){t._nesting--,y5(t)}var Ed=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 h$(t){return yM(t,"__ignore_ng_zone__")}function g$(t){return yM(t,"__scheduler_tick__")}function yM(t,i){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[i]===!0}function CM(t="zone.js",i){return t==="noop"?new Ed:t==="zone.js"?new se(i):t}var Z4=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=z({token:t,providedIn:"root",factory:()=>new t})}return t})(),C5=[0,1,2,3],x5=(()=>{class t{ngZone=d(se);scheduler=d(Ko);errorHandler=d(yi,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){d(Ps,{optional:!0})}execute(){let e=this.sequences.size>0;e&&cn(16),this.executing=!0;for(let n of C5)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&&cn(17)}register(e){let{view:n}=e;n!==void 0?((n[zc]??=[]).push(e),ks(n),n[at]|=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(X4.AFTER_NEXT_RENDER,e):e()}static \u0275prov=z({token:t,providedIn:"root",factory:()=>new t})}return t})(),Id=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?.[zc];i&&(this.view[zc]=i.filter(e=>e!==this))}};function xt(t,i){let e=i?.injector??d(ye);return ma("NgAfterNextRender"),b$(t,e,i,!0)}function _$(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function b$(t,i,e,n){let o=i.get(Z4);o.impl??=i.get(x5);let r=i.get(Ps,null,{optional:!0}),a=e?.manualCleanup!==!0?i.get($i):null,s=i.get(Bc,null,{optional:!0}),c=new Id(o.impl,_$(t),s?.view,n,a,r?.snapshot(null));return o.impl.register(c),c}var xM=new L("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function MM(t,i,e){let n=t.get(xM);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 v$(t,i){let e=t.get(xM);if(i.detachedLeaveAnimationFns){for(let n of i.detachedLeaveAnimationFns)e.queue.delete(n);i.detachedLeaveAnimationFns=void 0}}function y$(t,i){for(let[e,n]of i)MM(t,n.animateFns)}function rx(t,i,e,n){let o=t?.[Nc]?.enter;i!==null&&o&&o.has(e.index)&&y$(n,o)}function p1(t,i,e,n,o,r,a,s){if(o!=null){let c,u=!1;Sr(o)?c=o:oa(o)&&(u=!0,o=o[Dr]);let f=Jo(o);t===0&&n!==null?(rx(s,n,r,e),a==null?cM(i,n,f):P4(i,n,f,a||null,!0)):t===1&&n!==null?(rx(s,n,r,e),P4(i,n,f,a||null,!0)):t===2?ax(s,r,e,b=>{lM(i,f,u,b)}):t===3&&ax(s,r,e,()=>{i.destroyNode(f)}),c!=null&&T$(i,t,e,c,r,n,a)}}function C$(t,i){wM(t,i),i[Dr]=null,i[io]=null}function x$(t,i,e,n,o,r){n[Dr]=o,n[io]=i,em(t,n,e,1,o,r)}function wM(t,i){i[na].changeDetectionScheduler?.notify(9),em(t,i,i[Zt],2,null,null)}function M$(t){let i=t[o1];if(!i)return l8(t[qe],t);for(;i;){let e=null;if(oa(i))e=i[o1];else{let n=i[Vn];n&&(e=n)}if(!e){for(;i&&!i[Zo]&&i!==t;)oa(i)&&l8(i[qe],i),i=i[mi];i===null&&(i=t),oa(i)&&l8(i[qe],i),e=i&&i[Zo]}i=e}}function M5(t,i){let e=t[Fc],n=e.indexOf(i);e.splice(n,1)}function J4(t,i){if(Vc(i))return;let e=i[Zt];e.destroyNode&&em(t,i,e,3,null,null),M$(i)}function l8(t,i){if(Vc(i))return;let e=nt(null);try{i[at]&=-129,i[at]|=256,i[Po]&&bs(i[Po]),S$(t,i),D$(t,i),i[qe].type===1&&i[Zt].destroy();let n=i[Ds];if(n!==null&&Sr(i[mi])){n!==i[mi]&&M5(n,i);let o=i[ia];o!==null&&o.detachView(t)}y8(i)}finally{nt(e)}}function ax(t,i,e,n){let o=t?.[Nc];if(o==null||o.leave==null||!o.leave.has(i.index))return n(!1);t&&$c.add(t),MM(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[Nc].running=void 0,$c.delete(t),i(!0)});return}i(!1)}function D$(t,i){let e=t.cleanup,n=i[i1];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[i1]=null);let o=i[Fa];if(o!==null){i[Fa]=null;for(let a=0;aan&&_M(t,i,an,!1),cn(a?2:0,o,e),e(n,o)}finally{Es(r),cn(a?3:1,o,e)}}function tm(t,i,e){N$(t,i,e),(e.flags&64)===64&&F$(t,i,e)}function Bd(t,i,e=er){let n=i.localNames;if(n!==null){let o=i.index+1;for(let r=0;rnull;function z$(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[qe];if(nm(t,a,i,e,n)){Ua(t)&&PM(i,t.index);return}t.type&3&&(e=z$(e)),TM(t,i,e,n,o,r)}function TM(t,i,e,n,o,r){if(t.type&3){let a=er(t,i);n=r!=null?r(n,t.value||"",e):n,o.setProperty(a,e,n)}else t.type&12}function PM(t,i){let e=tr(i,t);e[at]&16||(e[at]|=64)}function N$(t,i,e){let n=e.directiveStart,o=e.directiveEnd;Ua(e)&&l$(i,e,t.data[n+e.componentOffset]),t.firstCreatePass||T4(e,i);let r=e.initialInputs;for(let a=n;a{ks(t.lView)},consumerOnSignalRead(){this.lView[Po]=this}});function K$(t){let i=t[Po]??Object.create(X$);return i.lView=t,i}var X$=Ne(Y({},bc),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let i=ws(t.lView);for(;i&&!NM(i[qe]);)i=ws(i);i&&Ug(i)},consumerOnSignalRead(){this.lView[Po]=this}});function NM(t){return t.type!==2}function FM(t){if(t[Ha]===null)return;let i=!0;for(;i;){let e=!1;for(let n of t[Ha])n.dirty&&(e=!0,n.zone===null||Zone.current===n.zone?n.run():n.zone.run(()=>n.run()));i=e&&!!(t[at]&8192)}}var Z$=100;function VM(t,i=0){let n=t[na].rendererFactory,o=!1;o||n.begin?.();try{J$(t,i)}finally{o||n.end?.()}}function J$(t,i){let e=e8();try{l1(!0),R8(t,i);let n=0;for(;vd(t);){if(n===Z$)throw new fe(103,!1);n++,R8(t,1)}}finally{l1(e)}}function eG(t,i,e,n){if(Vc(i))return;let o=i[at],r=!1,a=!1;u4(i);let s=!0,c=null,u=null;r||(NM(t)?(u=W$(i),c=_s(u)):f3()===null?(s=!1,u=K$(i),c=_s(u)):i[Po]&&(bs(i[Po]),i[Po]=null));try{Hg(i),IC(t.bindingStartIndex),e!==null&&IM(t,i,e,2,n);let f=(o&3)===3;if(!r)if(f){let x=t.preOrderCheckHooks;x!==null&&x4(i,x,null)}else{let x=t.preOrderHooks;x!==null&&M4(i,x,0,null),s8(i,0)}if(a||tG(i),FM(i),BM(i,0),t.contentQueries!==null&&Jx(t,i),!r)if(f){let x=t.contentCheckHooks;x!==null&&x4(i,x)}else{let x=t.contentHooks;x!==null&&M4(i,x,1),s8(i,1)}iG(t,i);let b=t.components;b!==null&&HM(i,b,0);let y=t.viewQuery;if(y!==null&&x8(2,y,n),!r)if(f){let x=t.viewCheckHooks;x!==null&&x4(i,x)}else{let x=t.viewHooks;x!==null&&M4(i,x,2),s8(i,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),i[o4]){for(let x of i[o4])x();i[o4]=null}r||(RM(i),i[at]&=-73)}catch(f){throw r||ks(i),f}finally{u!==null&&(vc(u,c),s&&Y$(u)),m4()}}function BM(t,i){for(let e=Gx(t);e!==null;e=Wx(e))for(let n=Vn;n0&&(t[e-1][Zo]=n[Zo]);let r=fd(t,Vn+i);C$(n[qe],n);let a=r[ia];a!==null&&a.detachView(r[qe]),n[mi]=null,n[Zo]=null,n[at]&=-129}return n}function oG(t,i,e,n){let o=Vn+n,r=e.length;n>0&&(e[o-1][Zo]=i),n-1&&(Td(i,n),fd(e,n))}this._attachedToViewContainer=!1}J4(this._lView[qe],this._lView)}onDestroy(i){$g(this._lView,i)}markForCheck(){O5(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[at]&=-129}reattach(){a4(this._lView),this._lView[at]|=128}detectChanges(){this._lView[at]|=1024,VM(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new fe(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let i=a1(this._lView),e=this._lView[Ds];e!==null&&!i&&M5(e,this._lView),wM(this._lView[qe],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new fe(902,!1);this._appRef=i;let e=a1(this._lView),n=this._lView[Ds];n!==null&&!e&&WM(n,this._lView),a4(this._lView)}};var it=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=rG;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=jd(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:o});return new Is(r)}}return t})();function rG(){return im(Jn(),Re())}function im(t,i){return t.type&4?new it(i,t,C1(t,i)):null}function w1(t,i,e,n,o){let r=t.data[i];if(r===null)r=aG(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=kC();r.injectorIndex=a===null?-1:a.injectorIndex}return c1(r,!0),r}function aG(t,i,e,n,o){let r=Xg(),a=Zg(),s=a?r:r&&r.parent,c=t.data[i]=cG(t,s,e,i,n,o);return sG(t,c,r,a),c}function sG(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 cG(t,i,e,n,o,r){let a=i?i.injectorIndex:-1,s=0;return Yg()&&(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 i8e=new RegExp(`^(\\d+)*(${gU}|${hU})*(.*)`);function lG(t){let i=t[Ng]??[],n=t[mi][Zt],o=[];for(let r of i)r.data[Qx]!==void 0?o.push(r):dG(r,n);t[Ng]=o}function dG(t,i){let e=0,n=t.firstChild;if(n){let o=t.data[Yx];for(;enull,mG=()=>null;function A4(t,i){return uG(t,i)}function qM(t,i,e){return mG(t,i,e)}var YM=class{},om=class{},z8=class{resolveComponentFactory(i){throw new fe(917,!1)}},Ud=class{static NULL=new z8},Tn=class{},Je=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>pG()}return t})();function pG(){let t=Re(),i=Jn(),e=tr(i.index,t);return(oa(e)?e:t)[Zt]}var QM=(()=>{class t{static \u0275prov=z({token:t,providedIn:"root",factory:()=>null})}return t})();var D4={},N8=class{injector;parentInjector;constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){let o=this.injector.get(i,D4,n);return o!==D4||e===D4?o:this.parentInjector.get(i,e,n)}};function R4(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 y=0;y0;){let e=t[--i];if(typeof e=="number"&&e<0)return e}return 0}function CG(t,i,e){if(e){if(i.exportAs)for(let n=0;nn(Jo(q[t.index])):t.index;nw(D,i,e,r,s,x,!1)}}return u}function DG(t){return t.startsWith("animation")||t.startsWith("transition")}function SG(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 nw(t,i,e,n,o,r,a){let s=i.firstCreatePass?Wg(i):null,c=Gg(e),u=c.length;c.push(o,r),s&&s.push(n,t,u,(u+1)*(a?-1:1))}function mx(t,i,e,n,o,r){let a=i[e],s=i[qe],u=s.data[e].outputs[n],b=a[u].subscribe(r);nw(t.index,s,i,o,r,b,!0)}var F8=Symbol("BINDING");var z4=class extends Ud{ngModule;constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){let e=ea(i);return new Os(e,this.ngModule)}};function kG(t){return Object.keys(t).map(i=>{let[e,n,o]=t[i],r={propName:e,templateName:i,isSignal:(n&K4.SignalBased)!==0};return o&&(r.transform=o),r})}function EG(t){return Object.keys(t).map(i=>({propName:t[i],templateName:i}))}function IG(t,i,e){let n=i instanceof Xt?i:i?.injector;return n&&t.getStandaloneInjector!==null&&(n=t.getStandaloneInjector(n)||n),n?new N8(e,n):e}function OG(t){let i=t.get(Tn,null);if(i===null)throw new fe(407,!1);let e=t.get(QM,null),n=t.get(Ko,null);return{rendererFactory:i,sanitizer:e,changeDetectionScheduler:n,ngReflect:!1}}function TG(t,i){let e=iw(t);return sM(i,e,e==="svg"?Vg:e==="math"?vC:null)}function iw(t){return(t.selectors[0][0]||"div").toLowerCase()}var Os=class extends om{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=kG(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=EG(this.componentDef.outputs),this.cachedOutputs}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=r$(i.selectors),this.ngContentSelectors=i.ngContentSelectors??[],this.isBoundToModule=!!e}create(i,e,n,o,r,a){cn(22);let s=nt(null);try{let c=this.componentDef,u=PG(n,c,a,r),f=IG(c,o||this.ngModule,i),b=OG(f),y=b.rendererFactory.createRenderer(null,c),x=n?L$(y,n,c.encapsulation,f):TG(c,y),D=a?.some(px)||r?.some(K=>typeof K!="function"&&K.bindings.some(px)),q=g5(null,u,null,512|hM(c),null,null,b,y,f,null,Zx(x,f,!0));q[an]=x,u4(q);let Q=null;try{let K=T5(an,q,2,"#host",()=>u.directiveRegistry,!0,0);dM(y,x,K),g1(x,q),tm(u,q,K),a5(u,K,q),P5(u,K),e!==void 0&&AG(K,this.ngContentSelectors,e),Q=tr(K.index,q),q[Fn]=Q[Fn],I5(u,q,null)}catch(K){throw Q!==null&&y8(Q),y8(q),K}finally{cn(23),m4()}return new N4(this.componentType,q,!!D)}finally{nt(s)}}};function PG(t,i,e,n){let o=t?["ng-version","20.3.15"]:a$(i.selectors[0]),r=null,a=null,s=0;if(e)for(let f of e)s+=f[F8].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 px(t){let i=t[F8].kind;return i==="input"||i==="twoWay"}var N4=class extends YM{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(i,e,n){super(),this._rootLView=e,this._hasInputBindings=n,this._tNode=bd(e[qe],an),this.location=C1(this._tNode,e),this.instance=tr(this._tNode.index,e)[Fn],this.hostView=this.changeDetectorRef=new Is(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=nm(n,o[qe],o,i,e);this.previousInputValues.set(i,e);let a=tr(n.index,o);O5(a,1)}get injector(){return new Hc(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}};function AG(t,i,e){let n=t.projection=[];for(let o=0;o{class t{static __NG_ELEMENT_ID__=RG}return t})();function RG(){let t=Jn();return rw(t,Re())}var zG=pt,ow=class extends zG{_lContainer;_hostTNode;_hostLView;constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return C1(this._hostTNode,this._hostLView)}get injector(){return new Hc(this._hostTNode,this._hostLView)}get parentInjector(){let i=n5(this._hostTNode,this._hostLView);if(Lx(i)){let e=I4(i,this._hostLView),n=E4(i),o=e[qe].data[n+8];return new Hc(o,e)}else return new Hc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){let e=fx(this._lContainer);return e!==null&&e[i]||null}get length(){return this._lContainer.length-Vn}createEmbeddedView(i,e,n){let o,r;typeof n=="number"?o=n:n!=null&&(o=n.index,r=n.injector);let a=A4(this._lContainer,i.ssrId),s=i.createEmbeddedViewImpl(e||{},r,a);return this.insertImpl(s,o,_1(this._hostTNode,a)),s}createComponent(i,e,n,o,r,a,s){let c=i&&!$H(i),u;if(c)u=e;else{let Q=e||{};u=Q.index,n=Q.injector,o=Q.projectableNodes,r=Q.environmentInjector||Q.ngModuleRef,a=Q.directives,s=Q.bindings}let f=c?i:new Os(ea(i)),b=n||this.parentInjector;if(!r&&f.ngModule==null){let K=(c?b:this.parentInjector).get(Xt,null);K&&(r=K)}let y=ea(f.componentType??{}),x=A4(this._lContainer,y?.id??null),D=x?.firstChild??null,q=f.create(b,o,D,r,a,s);return this.insertImpl(q.hostView,u,_1(this._hostTNode,x)),q}insert(i,e){return this.insertImpl(i,e,!0)}insertImpl(i,e,n){let o=i._lView;if(CC(o)){let s=this.indexOf(i);if(s!==-1)this.detach(s);else{let c=o[mi],u=new ow(c,c[io],c[mi]);u.detach(u.indexOf(i))}}let r=this._adjustIndex(e),a=this._lContainer;return Hd(a,o,r,n),i.attachToViewContainerRef(),kg(d8(a),r,i),i}move(i,e){return this.insert(i,e)}indexOf(i){let e=fx(this._lContainer);return e!==null?e.indexOf(i):-1}remove(i){let e=this._adjustIndex(i,-1),n=Td(this._lContainer,e);n&&(fd(d8(this._lContainer),e),J4(n[qe],n))}detach(i){let e=this._adjustIndex(i,-1),n=Td(this._lContainer,e);return n&&fd(d8(this._lContainer),e)!=null?new Is(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function fx(t){return t[_d]}function d8(t){return t[_d]||(t[_d]=[])}function rw(t,i){let e,n=i[t.index];return Sr(n)?e=n:(e=UM(n,i,null,t),i[t.index]=e,_5(i,e)),FG(e,i,t,n),new ow(e,t,i)}function NG(t,i){let e=t[Zt],n=e.createComment(""),o=er(i,t),r=e.parentNode(o);return P4(e,r,n,e.nextSibling(o),!1),n}var FG=jG,VG=()=>!1;function BG(t,i,e){return VG(t,i,e)}function jG(t,i,e,n){if(t[Ss])return;let o;e.type&8?o=Jo(n):o=NG(i,e),t[Ss]=o}var V8=class t{queryList;matches=null;constructor(i){this.queryList=i}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},B8=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 u=r[s+1],f=i[-c];for(let b=Vn;bi.trim())}function dw(t,i,e){t.queries===null&&(t.queries=new j8),t.queries.track(new H8(i,e))}function qG(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 R5(t,i){return t.queries.getByIndex(i)}function uw(t,i){let e=t[qe],n=R5(e,i);return n.crossesNgTemplate?U8(e,t,i,[]):aw(e,t,n,i)}function mw(t,i,e){let n,o=id(()=>{n._dirtyCounter();let r=YG(n,t);if(i&&r===void 0)throw new fe(-951,!1);return r});return n=o[Qn],n._dirtyCounter=Se(0),n._flatValue=void 0,o}function z5(t){return mw(!0,!1,t)}function N5(t){return mw(!0,!0,t)}function pw(t,i){let e=t[Qn];e._lView=Re(),e._queryIndex=i,e._queryList=A5(e._lView,i),e._queryList.onDirty(()=>e._dirtyCounter.update(n=>n+1))}function YG(t,i){let e=t._lView,n=t._queryIndex;if(e===void 0||n===void 0||e[at]&4)return i?void 0:ji;let o=A5(e,n),r=uw(e,n);return o.reset(r,Hx),i?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}function fw(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=>KG(o,s)))}return r}return V4.forEach((o,r)=>{let a=[];o.templateUrl&&a.push(n(o.templateUrl).then(u=>{o.template=u}));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 u=o.styles.length,f=o.styleUrls;o.styleUrls.forEach((b,y)=>{s.push(""),a.push(n(b).then(x=>{s[u+y]=x,f.splice(f.indexOf(b),1),f.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&a.push(n(o.styleUrl).then(u=>{s.push(u),o.styleUrl=void 0}));let c=Promise.all(a).then(()=>XG(r));i.push(c)}),hw(),Promise.all(i).then(()=>{})}var V4=new Map,QG=new Set;function hw(){let t=V4;return V4=new Map,t}function gw(){return V4.size===0}function KG(t,i){return typeof i=="string"?i:i.status!==void 0&&i.status!==200?Promise.reject(new fe(918,!1)):i.text()}function XG(t){QG.delete(t)}var la=class{},am=class{};var Ld=class extends la{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new z4(this);constructor(i,e,n,o=!0){super(),this.ngModuleType=i,this._parent=e;let r=Og(i);this._bootstrapComponents=mM(r.bootstrap),this._r3Injector=i8(i,e,[{provide:la,useValue:this},{provide:Ud,useValue:this.componentFactoryResolver},...n],Va(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)}},Ad=class extends am{moduleType;constructor(i){super(),this.moduleType=i}create(i){return new Ld(this.moduleType,i,[])}};function _w(t,i,e){return new Ld(t,i,e,!1)}var B4=class extends la{injector;componentFactoryResolver=new z4(this);instance=null;constructor(i){super();let e=new Tc([...i.providers,{provide:la,useValue:this},{provide:Ud,useValue:this.componentFactoryResolver}],i.parent||n1(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}};function D1(t,i,e=null){return new B4({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}var ZG=(()=>{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=Tg(!1,e.type),o=n.length>0?D1([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=z({token:t,providedIn:"environment",factory:()=>new t(be(Xt))})}return t})();function P(t){return y1(()=>{let i=bw(t),e=Ne(Y({},i),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===i5.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:i.standalone?o=>o.get(ZG).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ga.Emulated,styles:t.styles||ji,_:null,schemas:t.schemas||null,tView:null,id:""});i.standalone&&ma("NgStandalone"),vw(e);let n=t.dependencies;return e.directiveDefs=hx(n,JG),e.pipeDefs=hx(n,pC),e.id=nW(e),e})}function JG(t){return ea(t)||i4(t)}function J(t){return y1(()=>({type:t.type,bootstrap:t.bootstrap||ji,declarations:t.declarations||ji,imports:t.imports||ji,exports:t.exports||ji,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function eW(t,i){if(t==null)return wr;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=K4.None,c=null),e[r]=[n,s,c],i[r]=a}return e}function tW(t){if(t==null)return wr;let i={};for(let e in t)t.hasOwnProperty(e)&&(i[t[e]]=e);return i}function R(t){return y1(()=>{let i=bw(t);return vw(i),i})}function St(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 bw(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||wr,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||ji,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:eW(t.inputs,i),outputs:tW(t.outputs),debugInfo:null}}function vw(t){t.features?.forEach(i=>i(t))}function hx(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 nW(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 iW(t){return Object.getPrototypeOf(t.prototype).constructor}function ce(t){let i=iW(t.type),e=!0,n=[t];for(;i;){let o;if(kr(t))o=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new fe(903,!1);o=i.\u0275dir}if(o){if(e){n.push(o);let a=t;a.inputs=u8(t.inputs),a.declaredInputs=u8(t.declaredInputs),a.outputs=u8(t.outputs);let s=o.hostBindings;s&&cW(t,s);let c=o.viewQuery,u=o.contentQueries;if(c&&aW(t,c),u&&sW(t,u),oW(t,o),oC(t.outputs,o.outputs),kr(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=h1(o.hostAttrs,e=h1(e,o.hostAttrs))}}function u8(t){return t===wr?{}:t===ji?[]:t}function aW(t,i){let e=t.viewQuery;e?t.viewQuery=(n,o)=>{i(n,o),e(n,o)}:t.viewQuery=i}function sW(t,i){let e=t.contentQueries;e?t.contentQueries=(n,o,r)=>{i(n,o,r),e(n,o,r)}:t.contentQueries=i}function cW(t,i){let e=t.hostBindings;e?t.hostBindings=(n,o)=>{i(n,o),e(n,o)}:t.hostBindings=i}function F5(t){let i=e=>{let n=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=lW,e.hostDirectives=n?t.map($8):[t]):n?e.hostDirectives.unshift(...t.map($8)):e.hostDirectives.unshift(t)};return i.ngInherit=!0,i}function lW(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=z({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var cm=new L(""),S1=new L(""),Gd=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(e,n,o){this._ngZone=e,this.registry=n,Ag()&&(this._destroyRef=d($i,{optional:!0})??void 0),V5||(xw(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)(be(se),be(Wd),be(S1))};static \u0275prov=z({token:t,factory:t.\u0275fac})}return t})(),Wd=(()=>{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=z({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function xw(t){V5=t}var V5;function Ya(t){return!!t&&typeof t.then=="function"}function lm(t){return!!t&&typeof t.subscribe=="function"}var B5=new L("");function dm(t){return ta([{provide:B5,multi:!0,useValue:t}])}var j5=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n});appInits=d(B5,{optional:!0})??[];injector=d(ye);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let o of this.appInits){let r=Ci(this.injector,o);if(Ya(r))e.push(r);else if(lm(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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),um=new L("");function Mw(){F6(()=>{let t="";throw new fe(600,t)})}function ww(t){return t.isBoundToModule}var fW=10;function H5(t,i){return Array.isArray(i)?i.reduce(H5,t):Y(Y({},t),i)}var pi=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=d(oo);afterRenderManager=d(Z4);zonelessEnabled=d(xd);rootEffectScheduler=d(Md);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(sa);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(ue(e=>!e))}constructor(){d(Ps,{optional:!0})}whenStable(){let e;return new Promise(n=>{e=this.isStable.subscribe({next:o=>{o&&n()}})}).finally(()=>{e.unsubscribe()})}_injector=d(Xt);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,n){return this.bootstrapImpl(e,n)}bootstrapImpl(e,n,o=ye.NULL){return this._injector.get(se).run(()=>{cn(10);let a=e instanceof om;if(!this._injector.get(j5).done){let D="";throw new fe(405,D)}let c;a?c=e:c=this._injector.get(Ud).resolveComponentFactory(e),this.componentTypes.push(c.componentType);let u=ww(c)?void 0:this._injector.get(la),f=n||c.selector,b=c.create(o,[],f,u),y=b.location.nativeElement,x=b.injector.get(cm,null);return x?.registerApplication(y),b.onDestroy(()=>{this.detachView(b.hostView),Dd(this.components,b),x?.unregisterApplication(y)}),this._loadComponent(b),cn(11,b),b})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){cn(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(X4.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new fe(101,!1);let e=nt(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,nt(e),this.afterTick.next(),cn(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Tn,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++vd(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;Dd(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(um,[]).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),()=>Dd(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new fe(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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Dd(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function k1(t,i){let e=Re(),n=ra();if(ro(e,n,i)){let o=sn(),r=u1();if(nm(r,o,e,t,i))Ua(r)&&PM(e,r.index);else{let s=er(r,e);LM(e[Zt],s,null,r.value,t,i,null)}}return k1}function ne(t,i,e,n){let o=Re(),r=ra();if(ro(o,r,i)){let a=sn(),s=u1();B$(s,o,t,i,e,n)}return ne}var d8e=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function U5(){return Re()[Ui][Fn]}var G8=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 m8(t,i,e,n,o){return t===e&&Object.is(i,n)?1:Object.is(o(t,i),o(e,n))?-1:0}function hW(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 u=t.at(r),f=i[r],b=m8(r,u,r,f,e);if(b!==0){b<0&&t.updateValue(r,f),r++;continue}let y=t.at(a),x=i[c],D=m8(a,y,c,x,e);if(D!==0){D<0&&t.updateValue(a,x),a--,c--;continue}let q=e(r,u),Q=e(a,y),K=e(r,f);if(Object.is(K,Q)){let pe=e(c,x);Object.is(pe,q)?(t.swap(r,a),t.updateValue(a,x),c--,a--):t.move(a,r),t.updateValue(r,f),r++;continue}if(n??=new j4,o??=vx(t,r,a,e),W8(t,n,r,K))t.updateValue(r,f),r++,a++;else if(o.has(K))n.set(q,t.detach(r)),a--;else{let pe=t.create(r,i[r]);t.attach(r,pe),r++,a++}}for(;r<=c;)bx(t,n,e,r,i[r]),r++}else if(i!=null){let c=i[Symbol.iterator](),u=c.next();for(;!u.done&&r<=a;){let f=t.at(r),b=u.value,y=m8(r,f,r,b,e);if(y!==0)y<0&&t.updateValue(r,b),r++,u=c.next();else{n??=new j4,o??=vx(t,r,a,e);let x=e(r,b);if(W8(t,n,r,x))t.updateValue(r,b),r++,a++,u=c.next();else if(!o.has(x))t.attach(r,t.create(r,b)),r++,a++,u=c.next();else{let D=e(r,f);n.set(D,t.detach(r)),a--}}}for(;!u.done;)bx(t,n,e,t.length,u.value),u=c.next()}for(;r<=a;)t.destroy(t.detach(a--));n?.forEach(c=>{t.destroy(c)})}function W8(t,i,e,n){return i!==void 0&&i.has(n)?(t.attach(e,i.get(n)),i.delete(n),!0):!1}function bx(t,i,e,n,o){if(W8(t,i,n,e(n,o)))t.updateValue(n,o);else{let r=t.create(n,o);t.attach(n,r)}}function vx(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 j4=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 I(t,i,e,n,o,r,a,s){ma("NgControlFlow");let c=Re(),u=sn(),f=Lo(u.consts,r);return b1(c,u,t,i,e,n,o,f,256,a,s),$5}function $5(t,i,e,n,o,r,a,s){ma("NgControlFlow");let c=Re(),u=sn(),f=Lo(u.consts,r);return b1(c,u,t,i,e,n,o,f,512,a,s),$5}function O(t,i){ma("NgControlFlow");let e=Re(),n=ra(),o=e[n]!==ei?e[n]:-1,r=o!==-1?H4(e,an+o):void 0,a=0;if(ro(e,n,t)){let s=nt(null);try{if(r!==void 0&&GM(r,a),t!==-1){let c=an+t,u=H4(e,c),f=K8(e[qe],c),b=qM(u,f,e),y=jd(e,f,i,{dehydratedView:b});Hd(u,y,a,_1(f,b))}}finally{nt(s)}}else if(r!==void 0){let s=$M(r,a);s!==void 0&&(s[Fn]=i)}}var q8=class{lContainer;$implicit;$index;constructor(i,e,n){this.lContainer=i,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-Vn}};function gt(t,i){return i}var Y8=class{hasEmptyBlock;trackByFn;liveCollection;constructor(i,e,n){this.hasEmptyBlock=i,this.trackByFn=e,this.liveCollection=n}};function et(t,i,e,n,o,r,a,s,c,u,f,b,y){ma("NgControlFlow");let x=Re(),D=sn(),q=c!==void 0,Q=Re(),K=s?a.bind(Q[Ui][Fn]):a,pe=new Y8(q,K);Q[an+t]=pe,b1(x,D,t+1,i,e,n,o,Lo(D.consts,r),256),q&&b1(x,D,t+2,c,u,f,b,Lo(D.consts,y),512)}var Q8=class extends G8{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-Vn}at(i){return this.getLView(i)[Fn].$implicit}attach(i,e){let n=e[Lc];this.needsIndexUpdate||=i!==this.length,Hd(this.lContainer,e,i,_1(this.templateTNode,n)),gW(this.lContainer,i)}detach(i){return this.needsIndexUpdate||=i!==this.length-1,_W(this.lContainer,i),bW(this.lContainer,i)}create(i,e){let n=A4(this.lContainer,this.templateTNode.tView.ssrId),o=jd(this.hostLView,this.templateTNode,new q8(this.lContainer,e,i),{dehydratedView:n});return this.operationsCounter?.recordCreate(),o}destroy(i){J4(i[qe],i),this.operationsCounter?.recordDestroy()}updateValue(i,e){this.getLView(i)[Fn].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i0){let r=n[ja];v$(r,o),$c.delete(n),o.detachedLeaveAnimationFns=void 0}}function _W(t,i){if(t.length<=Vn)return;let e=Vn+i,n=t[e],o=n?n[Nc]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function bW(t,i){return Td(t,i)}function vW(t,i){return $M(t,i)}function K8(t,i){return bd(t,i)}function S(t,i,e){let n=Re(),o=ra();if(ro(n,o,i)){let r=sn(),a=u1();OM(a,n,t,i,n[Zt],e)}return S}function X8(t,i,e,n,o){nm(i,t,e,o?"class":"style",n)}function h(t,i,e,n){let o=Re(),r=o[qe],a=t+an,s=r.firstCreatePass?T5(a,o,2,i,S5,s4(),e,n):r.data[a];if(k5(s,o,t,i,Dw),r1(s)){let c=o[qe];tm(c,o,s),a5(c,s,o)}return n!=null&&Bd(o,s),h}function _(){let t=sn(),i=Jn(),e=E5(i);return t.firstCreatePass&&P5(t,e),Qg(e)&&Kg(),qg(),e.classesWithoutHost!=null&&KH(e)&&X8(t,e,Re(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&XH(e)&&X8(t,e,Re(),e.stylesWithoutHost,!1),_}function F(t,i,e,n){return h(t,i,e,n),_(),F}function ot(t,i,e,n){let o=Re(),r=o[qe],a=t+an,s=r.firstCreatePass?MG(a,r,2,i,e,n):r.data[a];return k5(s,o,t,i,Dw),n!=null&&Bd(o,s),ot}function st(){let t=Jn(),i=E5(t);return Qg(i)&&Kg(),qg(),st}function Pn(t,i,e,n){return ot(t,i,e,n),st(),Pn}var Dw=(t,i,e,n,o)=>(Cd(!0),sM(i[Zt],n,FC()));function Gi(t,i,e){let n=Re(),o=n[qe],r=t+an,a=o.firstCreatePass?T5(r,n,8,"ng-container",S5,s4(),i,e):o.data[r];if(k5(a,n,t,"ng-container",yW),r1(a)){let s=n[qe];tm(s,n,a),a5(s,a,n)}return e!=null&&Bd(n,a),Gi}function Wi(){let t=sn(),i=Jn(),e=E5(i);return t.firstCreatePass&&P5(t,e),Wi}function jt(t,i,e){return Gi(t,i,e),Wi(),jt}var yW=(t,i,e,n,o)=>(Cd(!0),UU(i[Zt],""));function le(){return Re()}function At(t,i,e){let n=Re(),o=ra();if(ro(n,o,i)){let r=sn(),a=u1();TM(a,n,t,i,n[Zt],e)}return At}var v4=void 0;function CW(t){let i=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return i===1&&e===0?1:5}var xW=["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"]],v4,[["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"]],v4,[["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}",v4,"{1} 'at' {0}",v4],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",CW],Sd={};function G5(t,i,e){typeof i!="string"&&(e=i,i=t[bn.LocaleId]),i=i.toLowerCase().replace(/_/g,"-"),Sd[i]=t,e&&(Sd[i][bn.ExtraData]=e)}function ao(t){let i=MW(t),e=yx(i);if(e)return e;let n=i.split("-")[0];if(e=yx(n),e)return e;if(n==="en")return xW;throw new fe(701,!1)}function yx(t){return t in Sd||(Sd[t]=Zn.ng&&Zn.ng.common&&Zn.ng.common.locales&&Zn.ng.common.locales[t]),Sd[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 MW(t){return t.toLowerCase().replace(/_/g,"-")}var qd="en-US",wW="USD";var DW=qd;function Sw(t){typeof t=="string"&&(DW=t.toLowerCase().replace(/_/g,"-"))}function N(t,i,e){let n=Re(),o=sn(),r=Jn();return kw(o,n,n[Zt],r,t,i,e),N}function mm(t,i,e){let n=Re(),o=sn(),r=Jn();return(r.type&3||e)&&tw(r,o,n,e,n[Zt],t,i,S4(r,n,i)),mm}function kw(t,i,e,n,o,r,a){let s=!0,c=null;if((n.type&3||a)&&(c??=S4(n,i,r),tw(n,t,i,a,e,o,r,c)&&(s=!1)),s){let u=n.outputs?.[o],f=n.hostDirectiveOutputs?.[o];if(f&&f.length)for(let b=0;b>17&32767}function EW(t){return(t&2)==2}function IW(t,i){return t&131071|i<<17}function Z8(t){return t|2}function v1(t){return(t&131068)>>2}function p8(t,i){return t&-131069|i<<2}function OW(t){return(t&1)===1}function J8(t){return t|1}function TW(t,i,e,n,o,r){let a=r?i.classBindings:i.styleBindings,s=Gc(a),c=v1(a);t[n]=e;let u=!1,f;if(Array.isArray(e)){let b=e;f=b[1],(f===null||t1(b,f)>0)&&(u=!0)}else f=e;if(o)if(c!==0){let y=Gc(t[s+1]);t[n+1]=y4(y,s),y!==0&&(t[y+1]=p8(t[y+1],n)),t[s+1]=IW(t[s+1],n)}else t[n+1]=y4(s,0),s!==0&&(t[s+1]=p8(t[s+1],n)),s=n;else t[n+1]=y4(c,0),s===0?s=n:t[c+1]=p8(t[c+1],n),c=n;u&&(t[n+1]=Z8(t[n+1])),Cx(t,f,n,!0),Cx(t,f,n,!1),PW(i,f,t,n,r),a=y4(s,c),r?i.classBindings=a:i.styleBindings=a}function PW(t,i,e,n,o){let r=o?t.residualClasses:t.residualStyles;r!=null&&typeof i=="string"&&t1(r,i)>=0&&(e[n+1]=J8(e[n+1]))}function Cx(t,i,e,n){let o=t[e+1],r=i===null,a=n?Gc(o):v1(o),s=!1;for(;a!==0&&(s===!1||r);){let c=t[a],u=t[a+1];LW(c,i)&&(s=!0,t[a+1]=n?J8(u):Z8(u)),a=n?Gc(u):v1(u)}s&&(t[e+1]=n?Z8(o):J8(o))}function LW(t,i){return t===null||i==null||(Array.isArray(t)?t[1]:t)===i?!0:Array.isArray(t)&&typeof i=="string"?t1(t,i)>=0:!1}var Ir={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function AW(t){return t.substring(Ir.key,Ir.keyEnd)}function RW(t){return zW(t),Ew(t,Iw(t,0,Ir.textEnd))}function Ew(t,i){let e=Ir.textEnd;return e===i?-1:(i=Ir.keyEnd=NW(t,Ir.key=i,e),Iw(t,i,e))}function zW(t){Ir.key=0,Ir.keyEnd=0,Ir.value=0,Ir.valueEnd=0,Ir.textEnd=t.length}function Iw(t,i,e){for(;i32;)i++;return i}function Rt(t,i,e){return Ow(t,i,e,!1),Rt}function oe(t,i){return Ow(t,i,null,!0),oe}function Pt(t){VW(GW,FW,t,!0)}function FW(t,i){for(let e=RW(i);e>=0;e=Ew(i,e))t4(t,AW(i),!0)}function Ow(t,i,e,n){let o=Re(),r=sn(),a=d1(2);if(r.firstUpdatePass&&Pw(r,t,a,n),i!==ei&&ro(o,a,i)){let s=r.data[nr()];Lw(r,s,o,o[Zt],t,o[a+1]=qW(i,e),n,a)}}function VW(t,i,e,n){let o=sn(),r=d1(2);o.firstUpdatePass&&Pw(o,null,r,n);let a=Re();if(e!==ei&&ro(a,r,e)){let s=o.data[nr()];if(Aw(s,n)&&!Tw(o,r)){let c=n?s.classesWithoutHost:s.stylesWithoutHost;c!==null&&(e=X3(c,e||"")),X8(o,s,a,e,n)}else WW(o,s,a,a[Zt],a[r+1],a[r+1]=$W(t,i,e),n,r)}}function Tw(t,i){return i>=t.expandoStartIndex}function Pw(t,i,e,n){let o=t.data;if(o[e+1]===null){let r=o[nr()],a=Tw(t,e);Aw(r,n)&&i===null&&!a&&(i=!1),i=BW(o,r,i,n),TW(o,r,i,e,a,n)}}function BW(t,i,e,n){let o=LC(t),r=n?i.residualClasses:i.residualStyles;if(o===null)(n?i.classBindings:i.styleBindings)===0&&(e=f8(null,t,i,e,n),e=Rd(e,i.attrs,n),r=null);else{let a=i.directiveStylingLast;if(a===-1||t[a]!==o)if(e=f8(o,t,i,e,n),r===null){let c=jW(t,i,n);c!==void 0&&Array.isArray(c)&&(c=f8(null,t,i,c[1],n),c=Rd(c,i.attrs,n),HW(t,i,n,c))}else r=UW(t,i,n)}return r!==void 0&&(n?i.residualClasses=r:i.residualStyles=r),e}function jW(t,i,e){let n=e?i.classBindings:i.styleBindings;if(v1(n)!==0)return t[Gc(n)]}function HW(t,i,e,n){let o=e?i.classBindings:i.styleBindings;t[Gc(o)]=n}function UW(t,i,e){let n,o=i.directiveEnd;for(let r=1+i.directiveStylingLast;r0;){let c=t[o],u=Array.isArray(c),f=u?c[1]:c,b=f===null,y=e[o+1];y===ei&&(y=b?ji:void 0);let x=b?n4(y,n):f===n?y:void 0;if(u&&!U4(x)&&(x=n4(c,n)),U4(x)&&(s=x,a))return s;let D=t[o+1];o=a?Gc(D):v1(D)}if(i!==null){let c=r?i.residualClasses:i.residualStyles;c!=null&&(s=n4(c,n))}return s}function U4(t){return t!==void 0}function qW(t,i){return t==null||t===""||(typeof i=="string"?t=t+i:typeof t=="object"&&(t=Va(Ao(t)))),t}function Aw(t,i){return(t.flags&(i?8:16))!==0}function C(t,i=""){let e=Re(),n=sn(),o=t+an,r=n.firstCreatePass?w1(n,o,1,i,null):n.data[o],a=YW(n,e,r,i,t);e[o]=a,p4()&&w5(n,e,a,r),c1(r,!1)}var YW=(t,i,e,n,o)=>(Cd(!0),jU(i[Zt],n));function Rw(t,i,e,n=""){return ro(t,ra(),e)?i+Hi(e)+n:ei}function zw(t,i,e,n,o,r=""){let a=c4(),s=Pd(t,a,e,o);return d1(2),s?i+Hi(e)+n+Hi(o)+r:ei}function QW(t,i,e,n,o,r,a,s=""){let c=c4(),u=JM(t,c,e,o,a);return d1(3),u?i+Hi(e)+n+Hi(o)+r+Hi(a)+s:ei}function KW(t,i,e,n,o,r,a,s,c,u=""){let f=c4(),b=ew(t,f,e,o,a,c);return d1(4),b?i+Hi(e)+n+Hi(o)+r+Hi(a)+s+Hi(c)+u:ei}function T(t){return te("",t),T}function te(t,i,e){let n=Re(),o=Rw(n,t,i,e);return o!==ei&&fm(n,nr(),o),te}function Et(t,i,e,n,o){let r=Re(),a=zw(r,t,i,e,n,o);return a!==ei&&fm(r,nr(),a),Et}function Qa(t,i,e,n,o,r,a){let s=Re(),c=QW(s,t,i,e,n,o,r,a);return c!==ei&&fm(s,nr(),c),Qa}function Nw(t,i,e,n,o,r,a,s,c){let u=Re(),f=KW(u,t,i,e,n,o,r,a,s,c);return f!==ei&&fm(u,nr(),f),Nw}function fm(t,i,e){let n=Bg(i,t);HU(t[Zt],n,e)}function I1(t,i,e){o8(i)&&(i=i());let n=Re(),o=ra();if(ro(n,o,i)){let r=sn(),a=u1();OM(a,n,t,i,n[Zt],e)}return I1}function Yd(t,i){let e=o8(t);return e&&t.set(i),e}function O1(t,i){let e=Re(),n=sn(),o=Jn();return kw(n,e,e[Zt],o,t,i),O1}function Vt(t){return ro(Re(),ra(),t)?Hi(t):ei}function Qc(t,i,e=""){return Rw(Re(),t,i,e)}function hm(t,i,e,n,o=""){return zw(Re(),t,i,e,n,o)}function XW(t,i,e){let n=sn();if(n.firstCreatePass){let o=kr(t);e5(e,n.data,n.blueprint,o,!0),e5(i,n.data,n.blueprint,o,!1)}}function e5(t,i,e,n,o){if(t=ui(t),Array.isArray(t))for(let r=0;r>20;if(Oc(t)||!t.multi){let x=new Uc(u,o,Me,null),D=g8(c,i,o?f:f+y,b);D===-1?(b8(T4(s,a),r,c),h8(r,t,i.length),i.push(c),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(x),a.push(x)):(e[D]=x,a[D]=x)}else{let x=g8(c,i,f+y,b),D=g8(c,i,f,f+y),q=x>=0&&e[x],Q=D>=0&&e[D];if(o&&!Q||!o&&!q){b8(T4(s,a),r,c);let K=eq(o?JW:ZW,e.length,o,n,u,t);!o&&Q&&(e[D].providerFactory=K),h8(r,t,i.length,0),i.push(c),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(K),a.push(K)}else{let K=Fw(e[o?D:x],u,!o&&n);h8(r,t,x>-1?x:D,K)}!o&&n&&Q&&e[D].componentProviders++}}}function h8(t,i,e,n){let o=Oc(i),r=_C(i);if(o||r){let c=(r?ui(i.useClass):i).prototype.ngOnDestroy;if(c){let u=t.destroyHooks||(t.destroyHooks=[]);if(!o&&i.multi){let f=u.indexOf(e);f===-1?u.push(e,[n,c]):u[f+1].push(n,c)}else u.push(e,c)}}}function Fw(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function g8(t,i,e,n){for(let o=e;o{e.providersResolver=(n,o)=>XW(n,o?o(t):t,i)}}function Ro(t,i,e){let n=$a()+t,o=Re();return o[n]===ei?$d(o,n,e?i.call(e):i()):wG(o,n)}function zo(t,i,e,n){return Vw(Re(),$a(),t,i,e,n)}function T1(t,i,e,n,o){return Bw(Re(),$a(),t,i,e,n,o)}function q5(t,i,e,n,o,r){return jw(Re(),$a(),t,i,e,n,o,r)}function gm(t,i){let e=t[i];return e===ei?void 0:e}function Vw(t,i,e,n,o,r){let a=i+e;return ro(t,a,o)?$d(t,a+1,r?n.call(r,o):n(o)):gm(t,a+1)}function Bw(t,i,e,n,o,r,a){let s=i+e;return Pd(t,s,o,r)?$d(t,s+2,a?n.call(a,o,r):n(o,r)):gm(t,s+2)}function jw(t,i,e,n,o,r,a,s){let c=i+e;return JM(t,c,o,r,a)?$d(t,c+3,s?n.call(s,o,r,a):n(o,r,a)):gm(t,c+3)}function tq(t,i,e,n,o,r,a,s,c){let u=i+e;return ew(t,u,o,r,a,s)?$d(t,u+4,c?n.call(c,o,r,a,s):n(o,r,a,s)):gm(t,u+4)}function k(t,i){let e=sn(),n,o=t+an;e.firstCreatePass?(n=nq(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=Ms(n.type,!0)),a,s=no(Me);try{let c=O4(!1),u=r();return O4(c),jg(e,Re(),o,u),u}finally{no(s)}}function nq(t,i){if(i)for(let e=i.length-1;e>=0;e--){let n=i[e];if(t===n.name)return n}}function E(t,i,e){let n=t+an,o=Re(),r=s1(o,n);return bm(o,n)?Vw(o,$a(),i,r.transform,e,r):r.transform(e)}function rr(t,i,e,n){let o=t+an,r=Re(),a=s1(r,o);return bm(r,o)?Bw(r,$a(),i,a.transform,e,n,a):a.transform(e,n)}function iq(t,i,e,n,o){let r=t+an,a=Re(),s=s1(a,r);return bm(a,r)?jw(a,$a(),i,s.transform,e,n,o,s):s.transform(e,n,o)}function _m(t,i,e,n,o,r){let a=t+an,s=Re(),c=s1(s,a);return bm(s,a)?tq(s,$a(),i,c.transform,e,n,o,r,c):c.transform(e,n,o,r)}function bm(t,i){return t[qe].data[i].pure}function Ls(t,i){return im(t,i)}var C4=null;function Hw(t){C4!==null&&(t.defaultEncapsulation!==C4.defaultEncapsulation||t.preserveWhitespaces!==C4.preserveWhitespaces)||(C4=t)}var $4=class{ngModuleFactory;componentFactories;constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}},Y5=(()=>{class t{compileModuleSync(e){return new Ad(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let n=this.compileModuleSync(e),o=Og(e),r=mM(o.declarations).reduce((a,s)=>{let c=ea(s);return c&&a.push(new Os(c)),a},[]);return new $4(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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Uw=new L("");var oq=(()=>{class t{zone=d(se);changeDetectionScheduler=d(Ko);applicationRef=d(pi);applicationErrorHandler=d(oo);_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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $w({ngZoneFactory:t,ignoreChangesOutsideZone:i,scheduleInRootZone:e}){return t??=()=>new se(Ne(Y({},Q5()),{scheduleInRootZone:e})),[{provide:se,useFactory:t},{provide:Ba,multi:!0,useFactory:()=>{let n=d(oq,{optional:!0});return()=>n.initialize()}},{provide:Ba,multi:!0,useFactory:()=>{let n=d(rq);return()=>{n.initialize()}}},i===!0?{provide:r8,useValue:!0}:[],{provide:a8,useValue:e??bM},{provide:oo,useFactory:()=>{let n=d(se),o=d(Xt),r;return a=>{n.runOutsideAngular(()=>{o.destroyed&&!r?setTimeout(()=>{throw a}):(r??=o.get(yi),r.handleError(a))})}}}]}function Q5(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var rq=(()=>{class t{subscription=new Ee;initialized=!1;zone=d(se);pendingTasks=d(sa);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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Gw=(()=>{class t{applicationErrorHandler=d(oo);appRef=d(pi);taskService=d(sa);ngZone=d(se);zonelessEnabled=d(xd);tracing=d(Ps,{optional:!0});disableScheduling=d(r8,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ee;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(L4):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(d(a8,{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 Ed||!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?nx:vM;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(L4+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,nx(()=>{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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function aq(){return typeof $localize<"u"&&$localize.locale||qd}var Pr=new L("",{providedIn:"root",factory:()=>d(Pr,{optional:!0,skipSelf:!0})||aq()}),K5=new L("",{providedIn:"root",factory:()=>wW});var vm=class{destroyed=!1;listeners=null;errorHandler=d(yi,{optional:!0});destroyRef=d($i);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(i){if(this.destroyed)throw new fe(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(Xo(953,!1));return}if(this.listeners===null)return;let e=nt(null);try{for(let n of this.listeners)try{n(i)}catch(o){this.errorHandler?.handleError(o)}}finally{nt(e)}}};function jn(t){return Jy(t)}function ti(t,i){return id(t,i?.equal)}var X5=class{[Qn];constructor(i){this[Qn]=i}destroy(){this[Qn].destroy()}};function pa(t,i){let e=i?.injector??d(ye),n=i?.manualCleanup!==!0?e.get($i):null,o,r=e.get(Bc,null,{optional:!0}),a=e.get(Ko);return r!==null?(o=lq(r.view,a,t),n instanceof md&&n._lView===r.view&&(n=null)):o=dq(t,e.get(Md),a),o.injector=e,n!==null&&(o.onDestroyFn=n.onDestroy(()=>o.destroy())),new X5(o)}var Ww=Ne(Y({},eC),{cleanupFns:void 0,zone:null,onDestroyFn:jc,run(){let t=l1(!1);try{tC(this)}finally{l1(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=nt(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],nt(t)}}}),sq=Ne(Y({},Ww),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){bs(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}}),cq=Ne(Y({},Ww),{consumerMarkedDirty(){this.view[at]|=8192,ks(this.view),this.notifier.notify(13)},destroy(){bs(this),this.onDestroyFn(),this.cleanup(),this.view[Ha]?.delete(this)}});function lq(t,i,e){let n=Object.create(cq);return n.view=t,n.zone=typeof Zone<"u"?Zone.current:null,n.notifier=i,n.fn=qw(n,e),t[Ha]??=new Set,t[Ha].add(n),n.consumerMarkedDirty(n),n}function dq(t,i,e){let n=Object.create(sq);return n.fn=qw(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 qw(t,i){return()=>{i(e=>(t.cleanupFns??=[]).push(e))}}var Mm=Symbol("InputSignalNode#UNSET"),rD=Ne(Y({},od),{transformFn:void 0,applyValueToInputSignal(t,i){Cc(t,i)}});function aD(t,i){let e=Object.create(rD);e.value=t,e.transformFn=i?.transform;function n(){if(gs(e),e.value===Mm){let o=null;throw new fe(-950,o)}return e.value}return n[Qn]=e,n}var mn=class{attributeName;constructor(i){this.attributeName=i}__NG_ELEMENT_ID__=()=>zd(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},sD=new L("");sD.__NG_ELEMENT_ID__=t=>{let i=Jn();if(i===null)throw new fe(204,!1);if(i.type&2)return i.value;if(t&8)return null;throw new fe(204,!1)};function Yw(t,i){return aD(t,i)}function vq(t){return aD(Mm,t)}var P1=(Yw.required=vq,Yw);function Qw(t,i){return z5(i)}function yq(t,i){return N5(i)}var Kd=(Qw.required=yq,Qw);function Kw(t,i){return z5(i)}function Cq(t,i){return N5(i)}var cD=(Kw.required=Cq,Kw);function lD(t,i){let e=Object.create(rD),n=new vm;e.value=t;function o(){return gs(e),Xw(e.value),e.value}return o[Qn]=e,o.asReadonly=f4.bind(o),o.set=r=>{e.equal(e.value,r)||(Cc(e,r),n.emit(r))},o.update=r=>{Xw(e.value),o.set(r(e.value))},o.subscribe=n.subscribe.bind(n),o.destroyRef=n.destroyRef,o}function Xw(t){if(t===Mm)throw new fe(952,!1)}function Zw(t,i){return lD(t,i)}function xq(t){return lD(Mm,t)}var so=(Zw.required=xq,Zw);function Mq(t,i,e){let n=new Ad(e);return Promise.resolve(n)}function Jw(t){for(let i=t.length-1;i>=0;i--)if(t[i]!==void 0)return t[i]}var ym=new L(""),wq=new L("");function Qd(t){return!t.moduleRef}function Dq(t){let i=Qd(t)?t.r3Injector:t.moduleRef.injector,e=i.get(se);return e.run(()=>{Qd(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=i.get(oo),o;if(e.runOutsideAngular(()=>{o=e.onError.subscribe({next:n})}),Qd(t)){let r=()=>i.destroy(),a=t.platformInjector.get(ym);a.add(r),i.onDestroy(()=>{o.unsubscribe(),a.delete(r)})}else{let r=()=>t.moduleRef.destroy(),a=t.platformInjector.get(ym);a.add(r),t.moduleRef.onDestroy(()=>{Dd(t.allPlatformModules,t.moduleRef),o.unsubscribe(),a.delete(r)})}return kq(n,e,()=>{let r=i.get(sa),a=r.add(),s=i.get(j5);return s.runInitializers(),s.donePromise.then(()=>{let c=i.get(Pr,qd);if(Sw(c||qd),!i.get(wq,!0))return Qd(t)?i.get(pi):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Qd(t)){let f=i.get(pi);return t.rootComponent!==void 0&&f.bootstrap(t.rootComponent),f}else return dD?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>void r.remove(a))})})}var dD;function eD(){dD=Sq}function Sq(t,i){let e=t.injector.get(pi);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>e.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new fe(-403,!1);i.push(t)}function kq(t,i,e){try{let n=e();return Ya(n)?n.catch(o=>{throw i.runOutsideAngular(()=>t(o)),o}):n}catch(n){throw i.runOutsideAngular(()=>t(n)),n}}var uD=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(e){this._injector=e}bootstrapModuleFactory(e,n){let o=n?.scheduleInRootZone,r=()=>CM(n?.ngZone,Ne(Y({},Q5({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),a=n?.ignoreChangesOutsideZone,s=[$w({ngZoneFactory:r,ignoreChangesOutsideZone:a}),{provide:Ko,useExisting:Gw},BC],c=_w(e.moduleType,this.injector,s);return eD(),Dq({moduleRef:c,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,n=[]){let o=H5({},n);return eD(),Mq(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 fe(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let e=this._injector.get(ym,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(n){return new(n||t)(be(ye))};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),s7=null;function Eq(t){if(l7())throw new fe(400,!1);Mw(),s7=t;let i=t.get(uD);return Tq(t),i}function c7(t,i,e=[]){let n=`Platform: ${i}`,o=new L(n);return(r=[])=>{let a=l7();if(!a){let s=[...e,...r,{provide:o,useValue:!0}];a=t?.(s)??Eq(Iq(s,n))}return Oq(o)}}function Iq(t=[],i){return ye.create({name:i,providers:[{provide:hd,useValue:"platform"},{provide:ym,useValue:new Set([()=>s7=null])},...t]})}function Oq(t){let i=l7();if(!i)throw new fe(-401,!1);return i}function l7(){return s7?.get(uD)??null}function Tq(t){let i=t.get(G4,null);Ci(t,()=>{i?.forEach(e=>e())})}var we=(()=>{class t{static __NG_ELEMENT_ID__=Pq}return t})();function Pq(t){return Lq(Jn(),Re(),(t&16)===16)}function Lq(t,i,e){if(Ua(t)&&!e){let n=tr(t.index,i);return new Is(n,n)}else if(t.type&175){let n=i[Ui];return new Is(n,i)}return null}var J5=class{constructor(){}supports(i){return L5(i)}create(i){return new e7(i)}},Aq=(t,i)=>i,e7=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||Aq}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 t7(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 Cm),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 Cm),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}},t7=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}},n7=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}},Cm=class{map=new Map;put(i){let e=i.trackById,n=this.map.get(e);n||(n=new n7,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 tD(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 r7(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))}},r7=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(i){this.key=i}};function nD(){return new No([new J5])}var No=(()=>{class t{factories;static \u0275prov=z({token:t,providedIn:"root",factory:nD});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||nD())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n!=null)return n;throw new fe(901,!1)}}return t})();function iD(){return new wm([new i7])}var wm=(()=>{class t{static \u0275prov=z({token:t,providedIn:"root",factory:iD});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||iD())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n)return n;throw new fe(901,!1)}}return t})();var mD=c7(null,"core",[]),pD=(()=>{class t{constructor(e){}static \u0275fac=function(n){return new(n||t)(be(pi))};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})();function H(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ft(t,i=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):i}var Z5=Symbol("NOT_SET"),fD=new Set,Rq=Ne(Y({},od),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:Z5,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(gs(u),u.value),u.signal[Qn]=u,u.registerCleanupFn=f=>(u.cleanup??=new Set).add(f),this.nodes[s]=u,this.hooks[s]=f=>u.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??fD)e()}finally{bs(i)}}};function hD(t,i){let e=i?.injector??d(ye),n=e.get(Ko),o=e.get(Z4),r=e.get(Ps,null,{optional:!0});o.impl??=e.get(x5);let a=t;typeof a=="function"&&(a={mixedReadWrite:t});let s=e.get(Bc,null,{optional:!0}),c=new a7(o.impl,[a.earlyRead,a.write,a.mixedReadWrite,a.read],s?.view,n,e,r?.snapshot(null));return o.impl.register(c),c}function Dm(t,i){let e=ea(t),n=i.elementInjector||n1();return new Os(e).create(n,i.projectableNodes,i.hostElement,i.environmentInjector,i.directives,i.bindings)}function gD(t){let i=ea(t);if(!i)return null;let e=new Os(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 vD=null;function Fo(){return vD}function d7(t){vD??=t}var Xd=class{},Zd=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:()=>d(yD),providedIn:"platform"})}return t})(),u7=new L(""),yD=(()=>{class t extends Zd{_location;_history;_doc=d(De);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Fo().getBaseHref(this._doc)}onPopState(e){let n=Fo().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=Fo().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=z({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function Sm(t,i){return t?i?t.endsWith("/")?i.startsWith("/")?t+i.slice(1):t+i:i.startsWith("/")?t+i:`${t}/${i}`:t:i}function _D(t){let i=t.search(/#|\?|$/);return t[i-1]==="/"?t.slice(0,i-1)+t.slice(i):t}function Lr(t){return t&&t[0]!=="?"?`?${t}`:t}var Ar=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:()=>d(Em),providedIn:"root"})}return t})(),km=new L(""),Em=(()=>{class t extends Ar{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??d(De).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 Sm(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+Lr(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${n}${o}`:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+Lr(r));this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+Lr(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)(be(Zd),be(km,8))};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ar=(()=>{class t{_subject=new B;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=Fq(_D(bD(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+Lr(n))}normalize(e){return t.stripTrailingSlash(Nq(this._basePath,bD(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+Lr(n)),o)}replaceState(e,n="",o=null){this._locationStrategy.replaceState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Lr(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=Lr;static joinWithSlash=Sm;static stripTrailingSlash=_D;static \u0275fac=function(n){return new(n||t)(be(Ar))};static \u0275prov=z({token:t,factory:()=>zq(),providedIn:"root"})}return t})();function zq(){return new ar(be(Ar))}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 bD(t){return t.replace(/\/index.html$/,"")}function Fq(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var C7=(()=>{class t extends Ar{_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=Sm(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+Lr(r))||this._platformLocation.pathname;this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+Lr(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)(be(Zd),be(km,8))};static \u0275prov=z({token:t,factory:t.\u0275fac})}return t})(),ED={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]},Fm=(function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t})(Fm||{});var qi=(function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t})(qi||{}),nn=(function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t})(nn||{}),Mo=(function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t})(Mo||{}),Ii={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 ao(t)[bn.LocaleId]}function OD(t,i,e){let n=ao(t),o=[n[bn.DayPeriodsFormat],n[bn.DayPeriodsStandalone]],r=sr(o,i);return sr(r,e)}function TD(t,i,e){let n=ao(t),o=[n[bn.DaysFormat],n[bn.DaysStandalone]],r=sr(o,i);return sr(r,e)}function PD(t,i,e){let n=ao(t),o=[n[bn.MonthsFormat],n[bn.MonthsStandalone]],r=sr(o,i);return sr(r,e)}function LD(t,i){let n=ao(t)[bn.Eras];return sr(n,i)}function Jd(t,i){let e=ao(t);return sr(e[bn.DateFormat],i)}function e0(t,i){let e=ao(t);return sr(e[bn.TimeFormat],i)}function t0(t,i){let n=ao(t)[bn.DateTimeFormat];return sr(n,i)}function zr(t,i){let e=ao(t),n=e[bn.NumberSymbols][i];if(typeof n>"u"){if(i===Ii.CurrencyDecimal)return e[bn.NumberSymbols][Ii.Decimal];if(i===Ii.CurrencyGroup)return e[bn.NumberSymbols][Ii.Group]}return n}function x7(t,i){return ao(t)[bn.NumberFormats][i]}function Vq(t){return ao(t)[bn.Currencies]}function AD(t){if(!t[bn.ExtraData])throw new fe(2303,!1)}function RD(t){let i=ao(t);return AD(i),(i[bn.ExtraData][2]||[]).map(n=>typeof n=="string"?m7(n):[m7(n[0]),m7(n[1])])}function zD(t,i,e){let n=ao(t);AD(n);let o=[n[bn.ExtraData][0],n[bn.ExtraData][1]],r=sr(o,i)||[];return sr(r,e)||[]}function sr(t,i){for(let e=i;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new fe(2304,!1)}function m7(t){let[i,e]=t.split(":");return{hours:+i,minutes:+e}}function ND(t,i,e="en"){let n=Vq(e)[t]||ED[t]||[],o=n[1];return i==="narrow"&&typeof o=="string"?o:n[0]||t}var Bq=2;function FD(t){let i,e=ED[t];return e&&(i=e[2]),typeof i=="number"?i:Bq}var jq=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Im={},Hq=/((?:[^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 VD(t,i,e,n){let o=Xq(t);i=Ka(e,i)||i;let a=[],s;for(;i;)if(s=Hq.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=jD(n,c),o=Kq(o,n));let u="";return a.forEach(f=>{let b=Yq(f);u+=b?b(o,e,c):f==="''"?"'":f.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function Am(t,i,e){let n=new Date(0);return n.setFullYear(t,i,e),n.setHours(0,0,0),n}function Ka(t,i){let e=ID(t);if(Im[e]??={},Im[e][i])return Im[e][i];let n="";switch(i){case"shortDate":n=Jd(t,Mo.Short);break;case"mediumDate":n=Jd(t,Mo.Medium);break;case"longDate":n=Jd(t,Mo.Long);break;case"fullDate":n=Jd(t,Mo.Full);break;case"shortTime":n=e0(t,Mo.Short);break;case"mediumTime":n=e0(t,Mo.Medium);break;case"longTime":n=e0(t,Mo.Long);break;case"fullTime":n=e0(t,Mo.Full);break;case"short":let o=Ka(t,"shortTime"),r=Ka(t,"shortDate");n=Om(t0(t,Mo.Short),[o,r]);break;case"medium":let a=Ka(t,"mediumTime"),s=Ka(t,"mediumDate");n=Om(t0(t,Mo.Medium),[a,s]);break;case"long":let c=Ka(t,"longTime"),u=Ka(t,"longDate");n=Om(t0(t,Mo.Long),[c,u]);break;case"full":let f=Ka(t,"fullTime"),b=Ka(t,"fullDate");n=Om(t0(t,Mo.Full),[f,b]);break}return n&&(Im[e][i]=n),n}function Om(t,i){return i&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return i!=null&&n in i?i[n]:e})),t}function Rr(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 Uq(s,i);let c=zr(a,Ii.MinusSign);return Rr(s,i,c,n,o)}}function $q(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 fe(2301,!1)}}function pn(t,i,e=qi.Format,n=!1){return function(o,r){return Gq(o,r,t,i,e,n)}}function Gq(t,i,e,n,o,r){switch(e){case 2:return PD(i,o,n)[t.getMonth()];case 1:return TD(i,o,n)[t.getDay()];case 0:let a=t.getHours(),s=t.getMinutes();if(r){let u=RD(i),f=zD(i,o,n),b=u.findIndex(y=>{if(Array.isArray(y)){let[x,D]=y,q=a>=x.hours&&s>=x.minutes,Q=a0?Math.floor(o/60):Math.ceil(o/60);switch(t){case 0:return(o>=0?"+":"")+Rr(a,2,r)+Rr(Math.abs(o%60),2,r);case 1:return"GMT"+(o>=0?"+":"")+Rr(a,1,r);case 2:return"GMT"+(o>=0?"+":"")+Rr(a,2,r)+":"+Rr(Math.abs(o%60),2,r);case 3:return n===0?"Z":(o>=0?"+":"")+Rr(a,2,r)+":"+Rr(Math.abs(o%60),2,r);default:throw new fe(2310,!1)}}}var Wq=0,Lm=4;function qq(t){let i=Am(t,Wq,1).getDay();return Am(t,0,1+(i<=Lm?Lm:Lm+7)-i)}function BD(t){let i=t.getDay(),e=i===0?-3:Lm-i;return Am(t.getFullYear(),t.getMonth(),t.getDate()+e)}function p7(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=BD(e),a=qq(r.getFullYear()),s=r.getTime()-a.getTime();o=1+Math.round(s/6048e5)}return Rr(o,t,zr(n,Ii.MinusSign))}}function Pm(t,i=!1){return function(e,n){let r=BD(e).getFullYear();return Rr(r,t,zr(n,Ii.MinusSign),i)}}var f7={};function Yq(t){if(f7[t])return f7[t];let i;switch(t){case"G":case"GG":case"GGG":i=pn(3,nn.Abbreviated);break;case"GGGG":i=pn(3,nn.Wide);break;case"GGGGG":i=pn(3,nn.Narrow);break;case"y":i=ni(0,1,0,!1,!0);break;case"yy":i=ni(0,2,0,!0,!0);break;case"yyy":i=ni(0,3,0,!1,!0);break;case"yyyy":i=ni(0,4,0,!1,!0);break;case"Y":i=Pm(1);break;case"YY":i=Pm(2,!0);break;case"YYY":i=Pm(3);break;case"YYYY":i=Pm(4);break;case"M":case"L":i=ni(1,1,1);break;case"MM":case"LL":i=ni(1,2,1);break;case"MMM":i=pn(2,nn.Abbreviated);break;case"MMMM":i=pn(2,nn.Wide);break;case"MMMMM":i=pn(2,nn.Narrow);break;case"LLL":i=pn(2,nn.Abbreviated,qi.Standalone);break;case"LLLL":i=pn(2,nn.Wide,qi.Standalone);break;case"LLLLL":i=pn(2,nn.Narrow,qi.Standalone);break;case"w":i=p7(1);break;case"ww":i=p7(2);break;case"W":i=p7(1,!0);break;case"d":i=ni(2,1);break;case"dd":i=ni(2,2);break;case"c":case"cc":i=ni(7,1);break;case"ccc":i=pn(1,nn.Abbreviated,qi.Standalone);break;case"cccc":i=pn(1,nn.Wide,qi.Standalone);break;case"ccccc":i=pn(1,nn.Narrow,qi.Standalone);break;case"cccccc":i=pn(1,nn.Short,qi.Standalone);break;case"E":case"EE":case"EEE":i=pn(1,nn.Abbreviated);break;case"EEEE":i=pn(1,nn.Wide);break;case"EEEEE":i=pn(1,nn.Narrow);break;case"EEEEEE":i=pn(1,nn.Short);break;case"a":case"aa":case"aaa":i=pn(0,nn.Abbreviated);break;case"aaaa":i=pn(0,nn.Wide);break;case"aaaaa":i=pn(0,nn.Narrow);break;case"b":case"bb":case"bbb":i=pn(0,nn.Abbreviated,qi.Standalone,!0);break;case"bbbb":i=pn(0,nn.Wide,qi.Standalone,!0);break;case"bbbbb":i=pn(0,nn.Narrow,qi.Standalone,!0);break;case"B":case"BB":case"BBB":i=pn(0,nn.Abbreviated,qi.Format,!0);break;case"BBBB":i=pn(0,nn.Wide,qi.Format,!0);break;case"BBBBB":i=pn(0,nn.Narrow,qi.Format,!0);break;case"h":i=ni(3,1,-12);break;case"hh":i=ni(3,2,-12);break;case"H":i=ni(3,1);break;case"HH":i=ni(3,2);break;case"m":i=ni(4,1);break;case"mm":i=ni(4,2);break;case"s":i=ni(5,1);break;case"ss":i=ni(5,2);break;case"S":i=ni(6,1);break;case"SS":i=ni(6,2);break;case"SSS":i=ni(6,3);break;case"Z":case"ZZ":case"ZZZ":i=Tm(0);break;case"ZZZZZ":i=Tm(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=Tm(1);break;case"OOOO":case"ZZZZ":case"zzzz":i=Tm(2);break;default:return null}return f7[t]=i,i}function jD(t,i){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?i:e}function Qq(t,i){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+i),t}function Kq(t,i,e){let o=t.getTimezoneOffset(),r=jD(i,o);return Qq(t,-1*(r-o))}function Xq(t){if(CD(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 Am(o,r-1,a)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(jq))return Zq(n)}let i=new Date(t);if(!CD(i))throw new fe(2311,!1);return i}function Zq(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),u=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return r.call(i,a,s,c,u),i}function CD(t){return t instanceof Date&&!isNaN(t.valueOf())}var Jq=/^(\d+)?\.((\d+)(-(\d+))?)?$/,xD=22,Rm=".",n0="0",eY=";",tY=",",h7="#",MD="\xA4";function HD(t,i,e,n,o,r,a=!1){let s="",c=!1;if(!isFinite(t))s=zr(e,Ii.Infinity);else{let u=iY(t);a&&(u=nY(u));let f=i.minInt,b=i.minFrac,y=i.maxFrac;if(r){let pe=r.match(Jq);if(pe===null)throw new fe(2306,!1);let ut=pe[1],wt=pe[3],Bt=pe[5];ut!=null&&(f=g7(ut)),wt!=null&&(b=g7(wt)),Bt!=null?y=g7(Bt):wt!=null&&b>y&&(y=b)}oY(u,b,y);let x=u.digits,D=u.integerLen,q=u.exponent,Q=[];for(c=x.every(pe=>!pe);D0?Q=x.splice(D,x.length):(Q=x,x=[0]);let K=[];for(x.length>=i.lgSize&&K.unshift(x.splice(-i.lgSize,x.length).join(""));x.length>i.gSize;)K.unshift(x.splice(-i.gSize,x.length).join(""));x.length&&K.unshift(x.join("")),s=K.join(zr(e,n)),Q.length&&(s+=zr(e,o)+Q.join("")),q&&(s+=zr(e,Ii.Exponential)+"+"+q)}return t<0&&!c?s=i.negPre+s+i.negSuf:s=i.posPre+s+i.posSuf,s}function Vm(t,i,e,n,o){let r=x7(i,Fm.Currency),a=$D(r,zr(i,Ii.MinusSign));return a.minFrac=FD(n),a.maxFrac=a.minFrac,HD(t,a,i,Ii.CurrencyGroup,Ii.CurrencyDecimal,o).replace(MD,e).replace(MD,"").trim()}function UD(t,i,e){let n=x7(i,Fm.Decimal),o=$D(n,zr(i,Ii.MinusSign));return HD(t,o,i,Ii.Group,Ii.Decimal,e)}function $D(t,i="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(eY),o=n[0],r=n[1],a=o.indexOf(Rm)!==-1?o.split(Rm):[o.substring(0,o.lastIndexOf(n0)+1),o.substring(o.lastIndexOf(n0)+1)],s=a[0],c=a[1]||"";e.posPre=s.substring(0,s.indexOf(h7));for(let f=0;f-1&&(i=i.replace(Rm,"")),(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)===n0;r++);if(r===(s=i.length))n=[0],o=1;else{for(s--;i.charAt(s)===n0;)s--;for(o-=r,n=[],a=0;r<=s;r++,a++)n[a]=Number(i.charAt(r))}return o>xD&&(n=n.splice(0,xD-1),e=o-1,o=1),{digits:n,exponent:e,integerLen:o}}function oY(t,i,e){if(i>e)throw new fe(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 b=a;b=5)if(a-1<0){for(let b=0;b>a;b--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[a-1]++;for(;o=u?D.pop():c=!1),y>=10?1:0},0);f&&(n.unshift(f),t.integerLen++)}function g7(t){let i=parseInt(t);if(isNaN(i))throw new fe(2305,!1);return i}var _7=/\s+/,wD=[],$n=(()=>{class t{_ngEl;_renderer;initialClasses=wD;rawClass;stateMap=new Map;constructor(e,n){this._ngEl=e,this._renderer=n}set klass(e){this.initialClasses=e!=null?e.trim().split(_7):wD}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(_7):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(_7).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)(Me(X),Me(Je))};static \u0275dir=R({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var zm=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}},GD=(()=>{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 zm(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),DD(s,o)}});for(let o=0,r=n.length;o{let r=n.get(o.currentIndex);DD(r,o)})}static ngTemplateContextGuard(e,n){return!0}static \u0275fac=function(n){return new(n||t)(Me(pt),Me(it),Me(No))};static \u0275dir=R({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function DD(t,i){t.context.$implicit=i.item}var M7=(()=>{class t{_viewContainer;_context=new Nm;_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){SD(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){SD(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)(Me(pt),Me(it))};static \u0275dir=R({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),Nm=class{$implicit=null;ngIf=null};function SD(t,i){if(t&&!t.createEmbeddedView)throw new fe(2020,!1)}var b7=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()}},WD=(()=>{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=R({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return t})(),rY=(()=>{class t{ngSwitch;_view;ngSwitchCase;constructor(e,n,o){this.ngSwitch=o,o._addCase(),this._view=new b7(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(n){return new(n||t)(Me(pt),Me(it),Me(WD,9))};static \u0275dir=R({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return t})();var w7=(()=>{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:Or.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)(Me(X),Me(wm),Me(Je))};static \u0275dir=R({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),As=(()=>{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)(Me(pt))};static \u0275dir=R({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[ze]})}return t})();function L1(t,i){return new fe(2100,!1)}var v7=class{createSubscription(i,e,n){return jn(()=>i.subscribe({next:e,error:n}))}dispose(i){jn(()=>i.unsubscribe())}},y7=class{createSubscription(i,e,n){return i.then(o=>e?.(o),o=>n?.(o)),{unsubscribe:()=>{e=null,n=null}}}dispose(i){i.unsubscribe()}},aY=new y7,sY=new v7,i0=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=d(oo);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(Ya(e))return aY;if(lm(e))return sY;throw L1(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)(Me(we,16))};static \u0275pipe=St({name:"async",type:t,pure:!1})}return t})(),cY=(()=>{class t{transform(e){if(e==null)return null;if(typeof e!="string")throw L1(t,e);return e.toLowerCase()}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=St({name:"lowercase",type:t,pure:!0})}return t})(),lY=/(?:[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,D7=(()=>{class t{transform(e){if(e==null)return null;if(typeof e!="string")throw L1(t,e);return e.replace(lY,n=>n[0].toUpperCase()+n.slice(1).toLowerCase())}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=St({name:"titlecase",type:t,pure:!0})}return t})();var dY="mediumDate",qD=new L(""),YD=new L(""),A1=(()=>{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??dY,s=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return VD(e,a,r||this.locale,s)}catch(a){throw L1(t,a.message)}}static \u0275fac=function(n){return new(n||t)(Me(Pr,16),Me(qD,24),Me(YD,24))};static \u0275pipe=St({name:"date",type:t,pure:!0})}return t})();function uY(t,i){return{key:t,value:i}}var mY=(()=>{class t{differs;constructor(e){this.differs=e}differ;keyValues=[];compareFn=kD;transform(e,n=kD){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(uY(a.key,a.currentValue))})),(o||r)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||t)(Me(wm,16))};static \u0275pipe=St({name:"keyvalue",type:t,pure:!1})}return t})();function kD(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(!QD(e))return null;o||=this._locale;try{let r=KD(e);return UD(r,o,n)}catch(r){throw L1(t,r.message)}}static \u0275fac=function(n){return new(n||t)(Me(Pr,16))};static \u0275pipe=St({name:"number",type:t,pure:!0})}return t})();var S7=(()=>{class t{_locale;_defaultCurrencyCode;constructor(e,n="USD"){this._locale=e,this._defaultCurrencyCode=n}transform(e,n=this._defaultCurrencyCode,o="symbol",r,a){if(!QD(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=ND(s,o==="symbol"?"wide":"narrow",a):s=o);try{let c=KD(e);return Vm(c,a,s,n,r)}catch(c){throw L1(t,c.message)}}static \u0275fac=function(n){return new(n||t)(Me(Pr,16),Me(K5,16))};static \u0275pipe=St({name:"currency",type:t,pure:!0})}return t})();function QD(t){return!(t==null||t===""||t!==t)}function KD(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new fe(2309,!1);return t}var ge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})();function r0(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 Kc=class{};function Eve(t,i,e){return G5(t,i,e)}var E7="browser";function XD(t){return t===E7}var ZD=(()=>{class t{static \u0275prov=z({token:t,providedIn:"root",factory:()=>new k7(d(De),window)})}return t})(),k7=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(Y({},e),{left:i[0],top:i[1]}))}scrollToAnchor(i,e){let n=pY(this.document,i);n&&(this.scrollToElement(n,e),n.focus())}setHistoryScrollRestoration(i){try{this.window.history.scrollRestoration=i}catch{console.warn(Xo(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(Y({},e),{left:o-a[0],top:r-a[1]}))}};function pY(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 a0=class{_doc;constructor(i){this._doc=i}manager},Bm=(()=>{class t extends a0{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)(be(De))};static \u0275prov=z({token:t,factory:t.\u0275fac})}return t})(),Hm=new L(""),L7=(()=>{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 Bm));this._plugins=o.slice().reverse();let r=e.find(a=>a instanceof Bm);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 fe(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(be(Hm),be(se))};static \u0275prov=z({token:t,factory:t.\u0275fac})}return t})(),I7="ng-app-id";function JD(t){for(let i of t)i.remove()}function eS(t,i){let e=i.createElement("style");return e.textContent=t,e}function fY(t,i,e,n){let o=t.head?.querySelectorAll(`style[${I7}="${i}"],link[${I7}="${i}"]`);if(o)for(let r of o)r.removeAttribute(I7),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 T7(t,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var A7=(()=>{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,fY(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let o of e)this.addUsage(o,this.inline,eS);n?.forEach(o=>this.addUsage(o,this.external,T7))}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&&(JD(o.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])JD(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:o}]of this.inline)o.push(this.addElement(e,eS(n,this.doc)));for(let[n,{elements:o}]of this.external)o.push(this.addElement(e,T7(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)(be(De),be(Ts),be(x1,8),be(Wc))};static \u0275prov=z({token:t,factory:t.\u0275fac})}return t})(),O7={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"},R7=/%COMP%/g;var nS="%COMP%",hY=`_nghost-${nS}`,gY=`_ngcontent-${nS}`,_Y=!0,bY=new L("",{providedIn:"root",factory:()=>_Y});function vY(t){return gY.replace(R7,t)}function yY(t){return hY.replace(R7,t)}function iS(t,i){return i.map(e=>e.replace(R7,t))}var z7=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,n,o,r,a,s,c=null,u=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.ngZone=s,this.nonce=c,this.tracingService=u,this.platformIsServer=!1,this.defaultRenderer=new s0(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 jm?o.applyToHost(e):o instanceof c0&&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,u=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,b=this.platformIsServer,y=this.tracingService;switch(n.encapsulation){case Ga.Emulated:r=new jm(c,u,n,this.appId,f,a,s,b,y);break;case Ga.ShadowDom:return new P7(c,u,e,n,a,s,this.nonce,b,y);default:r=new c0(c,u,n,f,a,s,b,y);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)(be(L7),be(A7),be(Ts),be(bY),be(De),be(se),be(x1),be(Ps,8))};static \u0275prov=z({token:t,factory:t.\u0275fac})}return t})(),s0=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(O7[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(tS(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(tS(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 fe(-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=O7[o];r?i.setAttributeNS(r,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){let o=O7[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&(Or.DashCase|Or.Important)?i.style.setProperty(e,n,o&Or.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&Or.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=Fo().getGlobalEventTarget(this.doc,i),!i))throw new fe(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 tS(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var P7=class extends s0{sharedStylesHost;hostEl;shadowRoot;constructor(i,e,n,o,r,a,s,c,u){super(i,r,a,c,u),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let f=o.styles;f=iS(o.id,f);for(let y of f){let x=document.createElement("style");s&&x.setAttribute("nonce",s),x.textContent=y,this.shadowRoot.appendChild(x)}let b=o.getExternalStyles?.();if(b)for(let y of b){let x=T7(y,r);s&&x.setAttribute("nonce",s),this.shadowRoot.appendChild(x)}}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)}},c0=class extends s0{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,n,o,r,a,s,c,u){super(i,r,a,s,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let f=n.styles;this.styles=u?iS(u,f):f,this.styleUrls=n.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&$c.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},jm=class extends c0{contentAttr;hostAttr;constructor(i,e,n,o,r,a,s,c,u){let f=o+"-"+n.id;super(i,e,n,r,a,s,c,u,f),this.contentAttr=vY(f),this.hostAttr=yY(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 Um=class t extends Xd{supportsDOMEvents=!0;static makeCurrent(){d7(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=CY();return e==null?null:xY(e)}resetBaseElement(){l0=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return r0(document.cookie,i)}},l0=null;function CY(){return l0=l0||document.head.querySelector("base"),l0?l0.getAttribute("href"):null}function xY(t){return new URL(t,document.baseURI).pathname}var $m=class{addToWindow(i){Zn.getAngularTestability=(n,o=!0)=>{let r=i.findTestabilityInTree(n,o);if(r==null)throw new fe(5103,!1);return r},Zn.getAllAngularTestabilities=()=>i.getAllTestabilities(),Zn.getAllAngularRootElements=()=>i.getAllRootElements();let e=n=>{let o=Zn.getAllAngularTestabilities(),r=o.length,a=function(){r--,r==0&&n()};o.forEach(s=>{s.whenStable(a)})};Zn.frameworkStabilizers||(Zn.frameworkStabilizers=[]),Zn.frameworkStabilizers.push(e)}findTestabilityInTree(i,e,n){if(e==null)return null;let o=i.getTestability(e);return o??(n?Fo().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},MY=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:t.\u0275fac})}return t})(),oS=["alt","control","meta","shift"],wY={"\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"},DY={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},rS=(()=>{class t extends a0{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(()=>Fo().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."),oS.forEach(u=>{let f=n.indexOf(u);f>-1&&(n.splice(f,1),a+=u+".")}),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=wY[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"),oS.forEach(a=>{if(a!==o){let s=DY[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)(be(De))};static \u0275prov=z({token:t,factory:t.\u0275fac})}return t})();function SY(){Um.makeCurrent()}function kY(){return new yi}function EY(){return o5(document),document}var IY=[{provide:Wc,useValue:E7},{provide:G4,useValue:SY,multi:!0},{provide:De,useFactory:EY}],OY=c7(mD,"browser",IY);var TY=[{provide:S1,useClass:$m},{provide:cm,useClass:Gd,deps:[se,Wd,S1]},{provide:Gd,useClass:Gd,deps:[se,Wd,S1]}],PY=[{provide:hd,useValue:"root"},{provide:yi,useFactory:kY},{provide:Hm,useClass:Bm,multi:!0,deps:[De]},{provide:Hm,useClass:rS,multi:!0,deps:[De]},z7,A7,L7,{provide:Tn,useExisting:z7},{provide:Kc,useClass:MY},[]],LY=(()=>{class t{constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[...PY,...TY],imports:[ge,pD]})}return t})();var N1=class{},d0=class{},xi=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 Wm=class{encodeKey(i){return aS(i)}encodeValue(i){return aS(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function AY(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 RY=/%(\d[a-f0-9])/gi,zY={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function aS(t){return encodeURIComponent(t).replace(RY,(i,e)=>zY[e]??i)}function Gm(t){return`${t}`}var ee=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new Wm,i.fromString){if(i.fromObject)throw new fe(2805,!1);this.map=AY(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(Gm):[Gm(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(Gm(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(Gm(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 qm=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 NY(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function sS(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function cS(t){return typeof Blob<"u"&&t instanceof Blob}function lS(t){return typeof FormData<"u"&&t instanceof FormData}function FY(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var dS="Content-Type",uS="Accept",pS="X-Request-URL",fS="text/plain",hS="application/json",VY=`${hS}, ${fS}, */*`,R1=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(NY(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 fe(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 xi,this.context??=new qm,!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?"?":sBt.set(en,i.setHeaders[en]),pe)),i.setParams&&(ut=Object.keys(i.setParams).reduce((Bt,en)=>Bt.set(en,i.setParams[en]),ut)),new t(e,n,q,{params:ut,headers:pe,context:wt,reportProgress:K,responseType:o,withCredentials:Q,transferCache:x,keepalive:r,cache:s,priority:a,timeout:D,mode:c,redirect:u,credentials:f,referrer:b,integrity:y})}},Xc=(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})(Xc||{}),F1=class{headers;status;statusText;url;ok;type;redirected;constructor(i,e=200,n="OK"){this.headers=i.headers||new xi,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}},Ym=class t extends F1{constructor(i={}){super(i)}type=Xc.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})}},u0=class t extends F1{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=Xc.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})}},z1=class extends F1{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}},BY=200,jY=204;function N7(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 kn=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,o={}){let r;if(e instanceof R1)r=e;else{let c;o.headers instanceof xi?c=o.headers:c=new xi(o.headers);let u;o.params&&(o.params instanceof ee?u=o.params:u=new ee({fromObject:o.params})),r=new R1(e,n,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,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(to(c=>this.handler.handle(c)));if(e instanceof R1||o.observe==="events")return a;let s=a.pipe(Oe(c=>c instanceof u0));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(ue(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new fe(2806,!1);return c.body}));case"blob":return s.pipe(ue(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new fe(2807,!1);return c.body}));case"text":return s.pipe(ue(c=>{if(c.body!==null&&typeof c.body!="string")throw new fe(2808,!1);return c.body}));case"json":default:return s.pipe(ue(c=>c.body))}case"response":return s;default:throw new fe(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,N7(o,n))}post(e,n,o={}){return this.request("POST",e,N7(o,n))}put(e,n,o={}){return this.request("PUT",e,N7(o,n))}static \u0275fac=function(n){return new(n||t)(be(N1))};static \u0275prov=z({token:t,factory:t.\u0275fac})}return t})();var HY=new L("");function gS(t,i){return i(t)}function UY(t,i){return(e,n)=>i.intercept(e,{handle:o=>t(o,n)})}function $Y(t,i,e){return(n,o)=>Ci(e,()=>i(n,r=>t(r,o)))}var Km=new L(""),V7=new L(""),_S=new L(""),B7=new L("",{providedIn:"root",factory:()=>!0});function GY(){let t=null;return(i,e)=>{t===null&&(t=(d(Km,{optional:!0})??[]).reduceRight(UY,gS));let n=d(m1);if(d(B7)){let r=n.add();return t(i,e).pipe(Mr(r))}else return t(i,e)}}var Qm=(()=>{class t extends N1{backend;injector;chain=null;pendingTasks=d(m1);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(V7),...this.injector.get(_S,[])]));this.chain=n.reduceRight((o,r)=>$Y(o,r,this.injector),gS)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(Mr(n))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(be(d0),be(Xt))};static \u0275prov=z({token:t,factory:t.\u0275fac})}return t})();var WY=/^\)\]\}',?\n/,qY=RegExp(`^${pS}:`,"m");function YY(t){return"responseURL"in t&&t.responseURL?t.responseURL:qY.test(t.getAllResponseHeaders())?t.getResponseHeader(pS):null}var F7=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new fe(-2800,!1);let n=this.xhrFactory;return re(null).pipe(rt(()=>new Fe(r=>{let a=n.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((Q,K)=>a.setRequestHeader(Q,K.join(","))),e.headers.has(uS)||a.setRequestHeader(uS,VY),!e.headers.has(dS)){let Q=e.detectContentTypeHeader();Q!==null&&a.setRequestHeader(dS,Q)}if(e.timeout&&(a.timeout=e.timeout),e.responseType){let Q=e.responseType.toLowerCase();a.responseType=Q!=="json"?Q:"text"}let s=e.serializeBody(),c=null,u=()=>{if(c!==null)return c;let Q=a.statusText||"OK",K=new xi(a.getAllResponseHeaders()),pe=YY(a)||e.url;return c=new Ym({headers:K,status:a.status,statusText:Q,url:pe}),c},f=()=>{let{headers:Q,status:K,statusText:pe,url:ut}=u(),wt=null;K!==jY&&(wt=typeof a.response>"u"?a.responseText:a.response),K===0&&(K=wt?BY:0);let Bt=K>=200&&K<300;if(e.responseType==="json"&&typeof wt=="string"){let en=wt;wt=wt.replace(WY,"");try{wt=wt!==""?JSON.parse(wt):null}catch(qo){wt=en,Bt&&(Bt=!1,wt={error:qo,text:wt})}}Bt?(r.next(new u0({body:wt,headers:Q,status:K,statusText:pe,url:ut||void 0})),r.complete()):r.error(new z1({error:wt,headers:Q,status:K,statusText:pe,url:ut||void 0}))},b=Q=>{let{url:K}=u(),pe=new z1({error:Q,status:a.status||0,statusText:a.statusText||"Unknown Error",url:K||void 0});r.error(pe)},y=b;e.timeout&&(y=Q=>{let{url:K}=u(),pe=new z1({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:K||void 0});r.error(pe)});let x=!1,D=Q=>{x||(r.next(u()),x=!0);let K={type:Xc.DownloadProgress,loaded:Q.loaded};Q.lengthComputable&&(K.total=Q.total),e.responseType==="text"&&a.responseText&&(K.partialText=a.responseText),r.next(K)},q=Q=>{let K={type:Xc.UploadProgress,loaded:Q.loaded};Q.lengthComputable&&(K.total=Q.total),r.next(K)};return a.addEventListener("load",f),a.addEventListener("error",b),a.addEventListener("timeout",y),a.addEventListener("abort",b),e.reportProgress&&(a.addEventListener("progress",D),s!==null&&a.upload&&a.upload.addEventListener("progress",q)),a.send(s),r.next({type:Xc.Sent}),()=>{a.removeEventListener("error",b),a.removeEventListener("abort",b),a.removeEventListener("load",f),a.removeEventListener("timeout",y),e.reportProgress&&(a.removeEventListener("progress",D),s!==null&&a.upload&&a.upload.removeEventListener("progress",q)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(n){return new(n||t)(be(Kc))};static \u0275prov=z({token:t,factory:t.\u0275fac})}return t})(),bS=new L(""),QY="XSRF-TOKEN",KY=new L("",{providedIn:"root",factory:()=>QY}),XY="X-XSRF-TOKEN",ZY=new L("",{providedIn:"root",factory:()=>XY}),m0=class{},JY=(()=>{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=r0(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)(be(De),be(KY))};static \u0275prov=z({token:t,factory:t.\u0275fac})}return t})(),eQ=/^(?:https?:)?\/\//i;function tQ(t,i){if(!d(bS)||t.method==="GET"||t.method==="HEAD"||eQ.test(t.url))return i(t);let e=d(m0).getToken(),n=d(ZY);return e!=null&&!t.headers.has(n)&&(t=t.clone({headers:t.headers.set(n,e)})),i(t)}var j7=(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})(j7||{});function nQ(t,i){return{\u0275kind:t,\u0275providers:i}}function iQ(...t){let i=[kn,F7,Qm,{provide:N1,useExisting:Qm},{provide:d0,useFactory:()=>d(HY,{optional:!0})??d(F7)},{provide:V7,useValue:tQ,multi:!0},{provide:bS,useValue:!0},{provide:m0,useClass:JY}];for(let e of t)i.push(...e.\u0275providers);return ta(i)}var mS=new L("");function oQ(){return nQ(j7.LegacyInterceptors,[{provide:mS,useFactory:GY},{provide:V7,useExisting:mS,multi:!0}])}var yS=(()=>{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)(be(De))};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Xa=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=be(rQ),o},providedIn:"root"})}return t})(),rQ=(()=>{class t extends Xa{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case Bn.NONE:return n;case Bn.HTML:return ua(n,"HTML")?Ao(n):Q4(this._doc,String(n)).toString();case Bn.STYLE:return ua(n,"Style")?Ao(n):n;case Bn.SCRIPT:if(ua(n,"Script"))return Ao(n);throw new fe(5200,!1);case Bn.URL:return ua(n,"URL")?Ao(n):Fd(String(n));case Bn.RESOURCE_URL:if(ua(n,"ResourceURL"))return Ao(n);throw new fe(5201,!1);default:throw new fe(5202,!1)}}bypassSecurityTrustHtml(e){return s5(e)}bypassSecurityTrustStyle(e){return c5(e)}bypassSecurityTrustScript(e){return l5(e)}bypassSecurityTrustUrl(e){return d5(e)}bypassSecurityTrustResourceUrl(e){return u5(e)}static \u0275fac=function(n){return new(n||t)(be(De))};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var V1=class{},xS=(()=>{class t extends V1{getTranslation(e){return re({})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275prov=z({token:t,factory:t.\u0275fac})}return t})(),f0=class{},MS=(()=>{class t{handle(e){return e.key}static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:t.\u0275fac})}return t})();function Zm(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{g0(i[n])?n in t?e[n]=H7(t[n],i[n]):Object.assign(e,{[n]:i[n]}):Object.assign(e,{[n]:i[n]})}),e):H7({},i)}function U7(t,i){let e=i.split(".");i="";do i+=e.shift(),Rs(t)&&Rs(t[i])&&(g0(t[i])||Y7(t[i])||!e.length)?(t=t[i],i=""):e.length?i+=".":t=void 0;while(e.length);return t}function sQ(t,i,e){let n=i.split("."),o=t;for(let r=0;r{class t extends B1{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,n){if(Q7(e))return this.interpolateString(e,n);if(aQ(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=U7(n,r);return Rs(a)?a:o}):e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275prov=z({token:t,factory:t.\u0275fac})}return t})(),j1=class{},DS=(()=>{class t extends j1{compile(e,n){return e}compileTranslations(e,n){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275prov=z({token:t,factory:t.\u0275fac})}return t})(),h0=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new j;onLangChange=new j;onDefaultLangChange=new j},$7=new L("ISOLATE_TRANSLATE_SERVICE"),G7=new L("USE_DEFAULT_LANG"),W7=new L("DEFAULT_LANGUAGE"),q7=new L("USE_EXTEND"),p0=t=>di(t)?t:re(t),Vo=(()=>{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,u=!1,f){this.store=e,this.currentLoader=n,this.compiler=o,this.parser=r,this.missingTranslationHandler=a,this.useDefaultLang=s,this.extend=u,c&&(this.store=new h0),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(Ve(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 di(n)?(n.pipe(Ve(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(xs(1),Ve(1));return this.loadingTranslations=n.pipe(ue(o=>this.compiler.compileTranslations(o,e)),xs(1),Ve(1)),this.loadingTranslations.subscribe({next:o=>{this.translations[e]=this.extend&&this.translations[e]?Y(Y({},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]=H7(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(U7(e,n),o)),r===void 0&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(r=this.runInterpolation(U7(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(Y7(e))return e.map(o=>this.runInterpolation(o,n));if(g0(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||di(r[c]);if(!a)return r;let s=n.map(c=>p0(r[c]));return Ra(s).pipe(ue(c=>{let u={};return c.forEach((f,b)=>{u[n[b]]=f}),u}))}return this.getParsedResultForKey(e,n,o)}get(e,n){if(!Rs(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(to(o=>p0(this.getParsedResult(o,e,n)))):p0(this.getParsedResult(this.translations[this.currentLang],e,n))}getStreamOnTranslationChange(e,n){if(!Rs(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return Vi(Bi(()=>this.get(e,n)),this.onTranslationChange.pipe(rt(o=>{let r=this.getParsedResult(o.translations,e,n);return p0(r)})))}stream(e,n){if(!Rs(e)||!e.length)throw new Error('Parameter "key" required');return Vi(Bi(()=>this.get(e,n)),this.onLangChange.pipe(rt(o=>{let r=this.getParsedResult(o.translations,e,n);return p0(r)})))}instant(e,n){if(!Rs(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 di(o)?Array.isArray(e)?e.reduce((r,a)=>(r[a]=a,r),{}):e:o}set(e,n,o=this.currentLang){sQ(this.translations[o],e,Q7(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)(be(h0),be(V1),be(j1),be(B1),be(f0),be(G7),be($7),be(q7),be(W7))};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Pe=(()=>{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);di(a)?a.subscribe(r):r(a)}this.translate.get(e,n).subscribe(r)}transform(e,...n){if(!e||!e.length)return e;if(Zm(e,this.lastKey)&&Zm(n,this.lastParams))return this.value;let o;if(Rs(n[0])&&n.length)if(Q7(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 g0(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)(Me(Vo,16),Me(we,16))};static \u0275pipe=St({name:"translate",type:t,pure:!1});static \u0275prov=z({token:t,factory:t.\u0275fac})}return t})();var K7=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:V1,useClass:xS},e.compiler||{provide:j1,useClass:DS},e.parser||{provide:B1,useClass:wS},e.missingTranslationHandler||{provide:f0,useClass:MS},h0,{provide:$7,useValue:e.isolate},{provide:G7,useValue:e.useDefaultLang},{provide:q7,useValue:e.extend},{provide:W7,useValue:e.defaultLanguage},Vo]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:V1,useClass:xS},e.compiler||{provide:j1,useClass:DS},e.parser||{provide:B1,useClass:wS},e.missingTranslationHandler||{provide:f0,useClass:MS},{provide:$7,useValue:e.isolate},{provide:G7,useValue:e.useDefaultLang},{provide:q7,useValue:e.extend},{provide:W7,useValue:e.defaultLanguage},Vo]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})();var X7={mifos_x:{version:"251222",hash:"185d084"},allow_switching_backend_instance:!0};var $t=window.env||{},Ge={production:!0,version:X7.mifos_x.version,hash:X7.mifos_x.hash,fineractPlatformTenantId:$t.fineractPlatformTenantId||"default",fineractPlatformTenantIds:$t.fineractPlatformTenantIds||"default",baseApiUrls:$t.fineractApiUrls||"https://sandbox.mifos.community,https://demo.mifos.community,https://localhost:8443,"+window.location.origin,baseApiUrl:$t.fineractApiUrl||($t.fineractApiUrls?.length>0?$t.fineractApiUrls.split(",")[0]:window.location.origin),oauthServerUrl:$t.oauthServerUrl||$t.fineractApiUrl+$t.apiProvider,allowServerSwitch:$t.allowServerSwitch||"true",apiProvider:$t.apiProvider||"/fineract-provider/api",apiVersion:$t.apiVersion||"/v1",apiActuator:$t.apiActuator||"/fineract-provider",serverUrl:"",oauth:{enabled:$t.oauthServerEnabled===!0,serverUrl:$t.oauthServerUrl||"",logoutUrl:$t.oauthServerLogoutUrl||"",appId:$t.oauthAppId||"",authorizeUrl:$t.oauthAuthorizeUrl||"",tokenUrl:$t.oauthTokenUrl||"",redirectUri:$t.oauthRedirectUri||"",scope:$t.oauthScope||""},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:$t.defaultLanguage||"en-US",supportedLanguages:$t.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:$t.preloadClients||!0,defaultCharDelimiter:$t.defaultCharDelimiter||",",displayBackEndInfo:$t.displayBackEndInfo||"true",displayTenantSelector:$t.displayTenantSelector||"true",waitTimeForNotifications:$t.waitTimeForNotifications||60,waitTimeForCOBCatchUp:$t.waitTimeForCOBCatchUp||30,session:{timeout:{idleTimeout:$t.sessionIdleTimeout||3e5}},httpCacheEnabled:$t.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:$t.minPasswordLength||12,OIDC:{oidcServerEnabled:window.env.oidcServerEnabled===!0||window.env.oidcServerEnabled==="true",oidcBaseUrl:window.env.oidcBaseUrl||"",oidcClientId:window.env.oidcClientId||"",oidcApiUrl:window.env.oidcApiUrl||"",oidcFrontUrl:window.env.oidcFrontUrl||""}};Ge.serverUrl=`${Ge.baseApiUrl}${Ge.apiProvider}${Ge.apiVersion}`;var SS=(()=>{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=St({name:"accountsFilter",type:t,pure:!0})}}return t})();var kS=(()=>{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=St({name:"chargesFilter",type:t,pure:!0})}}return t})();var ES=(()=>{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=St({name:"chargesPenaltyFilter",type:t,pure:!0})}}return t})();var zs=(()=>{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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var U1=c3(Jm());var wo=(()=>{class t{constructor(){this.datePipe=d(A1)}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 A1(this.language.code).transform(e,n)}formatDateAsString(e,n){return(0,U1.default)(e).format(n)}parseDate(e){return e instanceof Array?(0,U1.default)(e.join("-"),"YYYY-MM-DD").toDate():(0,U1.default)(e).toDate()}parseDatetime(e){return(0,U1.default)(e).toDate()}convertToDate(e,n){return(0,U1.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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Jt=(()=>{class t{constructor(){this.alertService=d(zs),this.dateUtils=d(wo),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=Ge.defaultLanguage?Ge.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"):Ge.baseApiUrl&&Ge.baseApiUrl!==""?Ge.baseApiUrl:this.servers()[0]}get baseServerUrl(){return this.server+Ge.apiProvider}get serverUrl(){return this.server+Ge.apiProvider+Ge.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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ep=c3(Jm());var Bo=(()=>{class t{constructor(){this.settingsService=d(Jt)}transform(e,n){let o=this.settingsService.dateFormat.replace("dd","DD");if(typeof e>"u")return"";let r;return ep.default.locale(this.settingsService.language.code),e instanceof Array?r=(0,ep.default)(e.join("-"),"YYYY-MM-DD"):r=(0,ep.default)(e),n==null?r.format(o):r.format(n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=St({name:"dateFormat",type:t,pure:!0})}}return t})();var _0=c3(Jm());var fa=(()=>{class t{transform(e,n){if(e==null||e==="")return"";let o;if(Array.isArray(e)){let[a,s,c,u,f,b]=e;u!=null?o=(0,_0.default)({year:a,month:(s??1)-1,date:c,hour:u,minute:f??0,second:b??0}):o=(0,_0.default)({year:a,month:(s??1)-1,date:c})}else typeof e=="number"&&e<1e12?o=_0.default.unix(e):o=(0,_0.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=St({name:"datetimeFormat",type:t,pure:!0})}}return t})();var np=(()=>{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=St({name:"externalIdentifier",type:t,pure:!0})}}return t})();var IS=new WeakMap,OS=(()=>{class t{constructor(){this.sanitizer=d(Xa)}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),u=c?c[r]??"":"";return typeof u=="string"?this.sanitizer.sanitize(Bn.HTML,u)||"":String(u||"")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=St({name:"find",type:t,pure:!0})}}return t})();var Ns=(()=>{class t{constructor(){this.decimalFormat=d(o0),this.settingsService=d(Jt)}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=St({name:"formatNumber",type:t,pure:!0})}}return t})();var LS=c3(PS());var op=(()=>{class t{transform(e){if(e.charAt(0)==="{"&&e.charAt(e.length-1)==="}")try{return LS.json(e)}catch{return e}return e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=St({name:"prettyPrint",type:t,pure:!0})}}return t})();var AS=(()=>{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=St({name:"statusLookup",type:t,pure:!0})}}return t})();var Zc=(()=>{class t{constructor(){this.translateService=d(Vo),this.onLangChange=this.translateService.onLangChange.subscribe(()=>{})}ngOnDestroy(){this.onLangChange&&this.onLangChange.unsubscribe()}transform(e,n,o="labels"){if(!e)return e;let r=`${o}.${n}.${e}`;return this.translateService.instant(r)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=St({name:"translateKey",type:t,pure:!1})}}return t})();var rp=(()=>{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=St({name:"truncateText",type:t,pure:!0})}}return t})();var zS=(()=>{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=St({name:"urlToString",type:t,pure:!0})}}return t})();var ap=(()=>{class t{constructor(){this.translateService=d(Vo)}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=St({name:"yesNo",type:t,pure:!0})}}return t})();var NS=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t})}static{this.\u0275inj=Z({providers:[AS,SS,kS,ES,OS,zS,Bo,fa,np,Ns,ap,op,Zc,rp],imports:[ge]})}}return t})();var sp=class{validateSignature(i){return Promise.resolve(null)}validateAtHash(i){return Promise.resolve(!0)}},cp=class{};var b0=class{},dQ=(()=>{class t extends b0{now(){return Date.now()}new(){return new Date}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})()}static{this.\u0275prov=z({token:t,factory:t.\u0275fac})}}return t})();var lp=class{},dp=class{},uQ=(()=>{class t{constructor(){this.data=new Map}getItem(e){return this.data.get(e)}removeItem(e){this.data.delete(e)}setItem(e,n){this.data.set(e,n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=z({token:t,factory:t.\u0275fac})}}return t})();var v0=class{constructor(i){this.type=i}},co=class extends v0{constructor(i,e=null){super(i),this.info=e}},Nr=class extends v0{constructor(i,e=null){super(i),this.info=e}},Ln=class extends v0{constructor(i,e,n=null){super(i),this.reason=e,this.params=n}};function FS(t){let i=t.replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(i).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function VS(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var $1=class{constructor(i){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=1e3*20,this.silentRefreshTimeout=1e3*20,this.dummyClientSecret="",this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3*1e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.decreaseExpirationBySec=0,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.disableIdTokenTimer=!1,this.checkOrigin=!1,this.openUri=e=>{location.href=e},i&&Object.assign(this,i)}},Jc=class{encodeKey(i){return encodeURIComponent(i)}encodeValue(i){return encodeURIComponent(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}},up=class{};var BS=(()=>{class t{getHashFragmentParams(e){let n=e||window.location.hash;if(n=decodeURIComponent(n),n.indexOf("#")!==0)return{};let o=n.indexOf("?");return o>-1?n=n.substr(o+1):n=n.substr(1),this.parseQueryString(n)}parseQueryString(e){let n={},o,r,a,s,c,u;if(e===null)return n;let f=e.split("&");for(let b=0;b=64;){for(r=i[0],a=i[1],s=i[2],c=i[3],u=i[4],f=i[5],b=i[6],y=i[7],D=0;D<16;D++)q=n+D*4,t[D]=(e[q]&255)<<24|(e[q+1]&255)<<16|(e[q+2]&255)<<8|e[q+3]&255;for(D=16;D<64;D++)x=t[D-2],Q=(x>>>17|x<<15)^(x>>>19|x<<13)^x>>>10,x=t[D-15],K=(x>>>7|x<<25)^(x>>>18|x<<14)^x>>>3,t[D]=(Q+t[D-7]|0)+(K+t[D-16]|0);for(D=0;D<64;D++)Q=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&f^~u&b)|0)+(y+(pQ[D]+t[D]|0)|0)|0,K=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&a^r&s^a&s)|0,y=b,b=f,f=u,u=c+Q|0,c=s,s=a,a=r,r=Q+K|0;i[0]+=r,i[1]+=a,i[2]+=s,i[3]+=c,i[4]+=u,i[5]+=f,i[6]+=b,i[7]+=y,n+=64,o-=64}return n}var e_=class{constructor(){this.digestLength=jS,this.blockSize=mQ,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}reset(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this}clean(){for(let i=0;i0){for(;this.bufferLength<64&&e>0;)this.buffer[this.bufferLength++]=i[n++],e--;this.bufferLength===64&&(J7(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(e>=64&&(n=J7(this.temp,this.state,i,n,e),e%=64);e>0;)this.buffer[this.bufferLength++]=i[n++],e--;return this}finish(i){if(!this.finished){let e=this.bytesHashed,n=this.bufferLength,o=e/536870912|0,r=e<<3,a=e%64<56?64:128;this.buffer[n]=128;for(let s=n+1;s>>24&255,this.buffer[a-7]=o>>>16&255,this.buffer[a-6]=o>>>8&255,this.buffer[a-5]=o>>>0&255,this.buffer[a-4]=r>>>24&255,this.buffer[a-3]=r>>>16&255,this.buffer[a-2]=r>>>8&255,this.buffer[a-1]=r>>>0&255,J7(this.temp,this.state,this.buffer,0,a),this.finished=!0}for(let e=0;e<8;e++)i[e*4+0]=this.state[e]>>>24&255,i[e*4+1]=this.state[e]>>>16&255,i[e*4+2]=this.state[e]>>>8&255,i[e*4+3]=this.state[e]>>>0&255;return this}digest(){let i=new Uint8Array(this.digestLength);return this.finish(i),i}_saveState(i){for(let e=0;e{class t{calcHash(e,n){return li(this,null,function*(){return gQ(fQ(hQ(e)))})}toHashString2(e){let n="";for(let o of e)n+=String.fromCharCode(o);return n}toHashString(e){let n=new Uint8Array(e),o="";for(let r of n)o+=String.fromCharCode(r);return o}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=z({token:t,factory:t.\u0275fac})}}return t})(),fp=(()=>{class t extends $1{constructor(e,n,o,r,a,s,c,u,f,b){super(),this.ngZone=e,this.http=n,this.config=a,this.urlHelper=s,this.logger=c,this.crypto=u,this.dateTimeService=b,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new B,this.discoveryDocumentLoadedSubject=new B,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=f,a||(a={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),r&&(this.tokenValidationHandler=r),a&&this.configure(a);try{o?this.setStorage(o):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(y){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",y)}if(this.checkLocalStorageAccessable()){let y=window?.navigator?.userAgent;(y?.includes("MSIE ")||y?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;let e="test";try{return typeof window.localStorage>"u"?!1:(localStorage.setItem(e,e),localStorage.removeItem(e),!0)}catch{return!1}}configure(e){Object.assign(this,new $1,e),this.config=Object.assign({},new $1,e),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe(Oe(e=>e.type==="token_received")).subscribe(()=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(e={},n,o=!0){let r=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe(Dt(a=>{a.type==="token_received"?r=!0:a.type==="logout"&&(r=!1)}),Oe(a=>a.type==="token_expires"&&(n==null||n==="any"||a.info===n)),To(1e3)).subscribe(()=>{r&&this.refreshInternal(e,o).catch(()=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(e,n){return!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken():this.silentRefresh(e,n)}loadDiscoveryDocumentAndTryLogin(e=null){return this.loadDiscoveryDocument().then(()=>this.tryLogin(e))}loadDiscoveryDocumentAndLogin(e=null){return e=e||{},this.loadDiscoveryDocumentAndTryLogin(e).then(()=>{if(!this.hasValidIdToken()||!this.hasValidAccessToken()){let n=typeof e.state=="string"?e.state:"";return this.initLoginFlow(n),!1}else return!0})}debug(...e){this.showDebugInformation&&this.logger.debug(...e)}validateUrlFromDiscoveryDocument(e){let n=[],o=this.validateUrlForHttps(e),r=this.validateUrlAgainstIssuer(e);return o||n.push("https for all urls required. Also for urls received by discovery."),r||n.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),n}validateUrlForHttps(e){if(!e)return!0;let n=e.toLowerCase();return this.requireHttps===!1||(n.match(/^http:\/\/localhost($|[:/])/)||n.match(/^http:\/\/localhost($|[:/])/))&&this.requireHttps==="remoteOnly"?!0:n.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(e,n){if(!e)throw new Error(`'${n}' should not be null`);if(!this.validateUrlForHttps(e))throw new Error(`'${n}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(e){return!this.strictDiscoveryDocumentValidation||!e?!0:e.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){if(typeof window>"u"){this.debug("timer not supported on this plattform");return}(this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe(Oe(e=>e.type==="token_received")).subscribe(()=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),!this.disableIdTokenTimer&&this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){let e=this.getAccessTokenExpiration(),n=this.getAccessTokenStoredAt(),o=this.calcTimeout(n,e);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=re(new Nr("token_expires","access_token")).pipe(Na(o)).subscribe(r=>{this.ngZone.run(()=>{this.eventsSubject.next(r)})})})}setupIdTokenTimer(){let e=this.getIdTokenExpiration(),n=this.getIdTokenStoredAt(),o=this.calcTimeout(n,e);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=re(new Nr("token_expires","id_token")).pipe(Na(o)).subscribe(r=>{this.ngZone.run(()=>{this.eventsSubject.next(r)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(e,n){let o=this.dateTimeService.now(),r=(n-e)*this.timeoutFactor-(o-e),a=Math.max(0,r),s=2147483647;return a>s?s:a}setStorage(e){this._storage=e,this.configChanged()}loadDiscoveryDocument(e=null){return new Promise((n,o)=>{if(e||(e=this.issuer||"",e.endsWith("/")||(e+="/"),e+=".well-known/openid-configuration"),!this.validateUrlForHttps(e)){o("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return}this.http.get(e).subscribe(r=>{if(!this.validateDiscoveryDocument(r)){this.eventsSubject.next(new Ln("discovery_document_validation_error",null)),o("discovery_document_validation_error");return}this.loginUrl=r.authorization_endpoint,this.logoutUrl=r.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=r.grant_types_supported,this.issuer=r.issuer,this.tokenEndpoint=r.token_endpoint,this.userinfoEndpoint=r.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=r.jwks_uri,this.sessionCheckIFrameUrl=r.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(r),this.revocationEndpoint=r.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(a=>{let s={discoveryDocument:r,jwks:a},c=new co("discovery_document_loaded",s);this.eventsSubject.next(c),n(c)}).catch(a=>{this.eventsSubject.next(new Ln("discovery_document_load_error",a)),o(a)})},r=>{this.logger.error("error loading discovery document",r),this.eventsSubject.next(new Ln("discovery_document_load_error",r)),o(r)})})}loadJwks(){return new Promise((e,n)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(o=>{this.jwks=o,e(o)},o=>{this.logger.error("error loading jwks",o),this.eventsSubject.next(new Ln("jwks_load_error",o)),n(o)}):e(null)})}validateDiscoveryDocument(e){let n;return!this.skipIssuerCheck&&e.issuer!==this.issuer?(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+e.issuer),!1):(n=this.validateUrlFromDiscoveryDocument(e.authorization_endpoint),n.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",n),!1):(n=this.validateUrlFromDiscoveryDocument(e.end_session_endpoint),n.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",n),!1):(n=this.validateUrlFromDiscoveryDocument(e.token_endpoint),n.length>0&&this.logger.error("error validating token_endpoint in discovery document",n),n=this.validateUrlFromDiscoveryDocument(e.revocation_endpoint),n.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",n),n=this.validateUrlFromDiscoveryDocument(e.userinfo_endpoint),n.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",n),!1):(n=this.validateUrlFromDiscoveryDocument(e.jwks_uri),n.length>0?(this.logger.error("error validating jwks_uri in discovery document",n),!1):(this.sessionChecksEnabled&&!e.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0)))))}fetchTokenUsingPasswordFlowAndLoadUserProfile(e,n,o=new xi){return this.fetchTokenUsingPasswordFlow(e,n,o).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((e,n)=>{let o=new xi().set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:o,observe:"response",responseType:"text"}).subscribe(r=>{if(this.debug("userinfo received",JSON.stringify(r)),r.headers.get("content-type").startsWith("application/json")){let a=JSON.parse(r.body),s=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!s.sub||a.sub!==s.sub)){n(`if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc. -if you are not using oidc but just oauth2 password flow set oidc to false`);return}a=Object.assign({},s,a),this._storage.setItem("id_token_claims_obj",JSON.stringify(a)),this.eventsSubject.next(new co("user_profile_loaded")),e({info:a})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new co("user_profile_loaded")),e(JSON.parse(r.body))},r=>{this.logger.error("error loading user info",r),this.eventsSubject.next(new Ln("user_profile_load_error",r)),n(r)})})}fetchTokenUsingPasswordFlow(e,n,o=new xi){let r={username:e,password:n};return this.fetchTokenUsingGrant("password",r,o)}fetchTokenUsingGrant(e,n,o=new xi){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let r=new ee({encoder:new Jc}).set("grant_type",e).set("scope",this.scope);if(this.useHttpBasicAuth){let a=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+a)}if(this.useHttpBasicAuth||(r=r.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(r=r.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let a of Object.getOwnPropertyNames(this.customQueryParams))r=r.set(a,this.customQueryParams[a]);for(let a of Object.keys(n))r=r.set(a,n[a]);return o=o.set("Content-Type","application/x-www-form-urlencoded"),new Promise((a,s)=>{this.http.post(this.tokenEndpoint,r,{headers:o}).subscribe(c=>{this.debug("tokenResponse",c),this.storeAccessTokenResponse(c.access_token,c.refresh_token,c.expires_in||this.fallbackAccessTokenExpirationTimeInSec,c.scope,this.extractRecognizedCustomParameters(c)),this.oidc&&c.id_token&&this.processIdToken(c.id_token,c.access_token).then(u=>{this.storeIdToken(u),a(c)}),this.eventsSubject.next(new co("token_received")),a(c)},c=>{this.logger.error("Error performing ${grantType} flow",c),this.eventsSubject.next(new Ln("token_error",c)),s(c)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((e,n)=>{let o=new ee({encoder:new Jc}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),r=new xi().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let a=btoa(`${this.clientId}:${this.dummyClientSecret}`);r=r.set("Authorization","Basic "+a)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let a of Object.getOwnPropertyNames(this.customQueryParams))o=o.set(a,this.customQueryParams[a]);this.http.post(this.tokenEndpoint,o,{headers:r}).pipe(rt(a=>this.oidc&&a.id_token?Kt(this.processIdToken(a.id_token,a.access_token,!0)).pipe(Dt(s=>this.storeIdToken(s)),ue(()=>a)):re(a))).subscribe(a=>{this.debug("refresh tokenResponse",a),this.storeAccessTokenResponse(a.access_token,a.refresh_token,a.expires_in||this.fallbackAccessTokenExpirationTimeInSec,a.scope,this.extractRecognizedCustomParameters(a)),this.eventsSubject.next(new co("token_received")),this.eventsSubject.next(new co("token_refreshed")),e(a)},a=>{this.logger.error("Error refreshing token",a),this.eventsSubject.next(new Ln("token_refresh_error",a)),n(a)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=e=>{let n=this.processMessageEventMessage(e);this.checkOrigin&&e.origin!==location.origin&&console.error("wrong origin requested silent refresh!"),this.tryLogin({customHashFragment:n,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(o=>this.debug("tryLogin during silent refresh failed",o))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(e={},n=!0){let o=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(e.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");let r=this.document.getElementById(this.silentRefreshIFrameName);r&&this.document.body.removeChild(r),this.silentRefreshSubject=o.sub;let a=this.document.createElement("iframe");a.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener();let s=this.silentRefreshRedirectUri||this.redirectUri;this.createLoginUrl(null,null,s,n,e).then(b=>{a.setAttribute("src",b),this.silentRefreshShowIFrame||(a.style.display="none"),this.document.body.appendChild(a)});let c=this.events.pipe(Oe(b=>b instanceof Ln),xo()),u=this.events.pipe(Oe(b=>b.type==="token_received"),xo()),f=re(new Ln("silent_refresh_timeout",null)).pipe(Na(this.silentRefreshTimeout));return eg([c,u,f]).pipe(ue(b=>{if(b instanceof Ln)throw b.type==="silent_refresh_timeout"?this.eventsSubject.next(b):(b=new Ln("silent_refresh_error",b),this.eventsSubject.next(b)),b;return b.type==="token_received"&&(b=new co("silently_refreshed"),this.eventsSubject.next(b)),b})).toPromise()}initImplicitFlowInPopup(e){return this.initLoginFlowInPopup(e)}initLoginFlowInPopup(e){return e=e||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(n=>new Promise((o,r)=>{let s=null;e.windowRef?e.windowRef&&!e.windowRef.closed&&(s=e.windowRef,s.location.href=n):s=window.open(n,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(e));let c,u=D=>{this.tryLogin({customHashFragment:D,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{b(),o(!0)},q=>{b(),r(q)})},f=()=>{(!s||s.closed)&&(b(),r(new Ln("popup_closed",{})))};s?c=window.setInterval(f,500):r(new Ln("popup_blocked",{}));let b=()=>{window.clearInterval(c),window.removeEventListener("storage",x),window.removeEventListener("message",y),s!==null&&s.close(),s=null},y=D=>{let q=this.processMessageEventMessage(D);q&&q!==null?(window.removeEventListener("storage",x),u(q)):console.log("false event firing")},x=D=>{D.key==="auth_hash"&&(window.removeEventListener("message",y),u(D.newValue))};window.addEventListener("message",y),window.addEventListener("storage",x)}))}calculatePopupFeatures(e){let n=e.height||470,o=e.width||500,r=window.screenLeft+(window.outerWidth-o)/2,a=window.screenTop+(window.outerHeight-n)/2;return`location=no,toolbar=no,width=${o},height=${n},top=${a},left=${r}`}processMessageEventMessage(e){let n="#";if(this.silentRefreshMessagePrefix&&(n+=this.silentRefreshMessagePrefix),!e||!e.data||typeof e.data!="string")return;let o=e.data;if(o.startsWith(n))return"#"+o.substr(n.length)}canPerformSessionCheck(){return this.sessionChecksEnabled?this.sessionCheckIFrameUrl?this.getSessionState()?!(typeof this.document>"u"):(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1):!1}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=e=>{let n=e.origin.toLowerCase(),o=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),!o.startsWith(n)){this.debug("sessionCheckEventListener","wrong origin",n,"expected",o,"event",e);return}switch(e.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()});break}this.debug("got info from session check inframe",e)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new Nr("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new Nr("session_changed")),this.stopSessionCheckTimer(),!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken().then(()=>{this.debug("token refresh after session change worked")}).catch(()=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new Nr("session_terminated")),this.logOut(!0)}):this.silentRefreshRedirectUri?(this.silentRefresh().catch(()=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new Nr("session_terminated")),this.logOut(!0))}waitForSilentRefreshAfterSessionChange(){this.events.pipe(Oe(e=>e.type==="silently_refreshed"||e.type==="silent_refresh_timeout"||e.type==="silent_refresh_error"),xo()).subscribe(e=>{e.type!=="silently_refreshed"&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new Nr("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new Nr("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;let e=this.document.getElementById(this.sessionCheckIFrameName);e&&this.document.body.removeChild(e);let n=this.document.createElement("iframe");n.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener();let o=this.sessionCheckIFrameUrl;n.setAttribute("src",o),n.style.display="none",this.document.body.appendChild(n),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){let e=this.document.getElementById(this.sessionCheckIFrameName);e||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);let n=this.getSessionState();n||this.stopSessionCheckTimer();let o=this.clientId+" "+n;e.contentWindow.postMessage(o,this.issuer)}createLoginUrl(){return li(this,arguments,function*(e="",n="",o="",r=!1,a={}){let s=this,c;o?c=o:c=this.redirectUri;let u=yield this.createAndSaveNonce();if(e?e=u+this.config.nonceStateSeparator+encodeURIComponent(e):e=u,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.config.responseType?this.responseType=this.config.responseType:this.oidc&&this.requestAccessToken?this.responseType="id_token token":this.oidc&&!this.requestAccessToken?this.responseType="id_token":this.responseType="token";let f=s.loginUrl.indexOf("?")>-1?"&":"?",b=s.scope;this.oidc&&!b.match(/(^|\s)openid($|\s)/)&&(b="openid "+b);let y=s.loginUrl+f+"response_type="+encodeURIComponent(s.responseType)+"&client_id="+encodeURIComponent(s.clientId)+"&state="+encodeURIComponent(e)+"&redirect_uri="+encodeURIComponent(c)+"&scope="+encodeURIComponent(b);if(this.responseType.includes("code")&&!this.disablePKCE){let[x,D]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",D):this._storage.setItem("PKCE_verifier",D),y+="&code_challenge="+x,y+="&code_challenge_method=S256"}n&&(y+="&login_hint="+encodeURIComponent(n)),s.resource&&(y+="&resource="+encodeURIComponent(s.resource)),s.oidc&&(y+="&nonce="+encodeURIComponent(u)),r&&(y+="&prompt=none");for(let x of Object.keys(a))y+="&"+encodeURIComponent(x)+"="+encodeURIComponent(a[x]);if(this.customQueryParams)for(let x of Object.getOwnPropertyNames(this.customQueryParams))y+="&"+x+"="+encodeURIComponent(this.customQueryParams[x]);return y})}initImplicitFlowInternal(e="",n=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let o={},r=null;typeof n=="string"?r=n:typeof n=="object"&&(o=n),this.createLoginUrl(e,r,null,!1,o).then(this.config.openUri).catch(a=>{console.error("Error in initImplicitFlow",a),this.inImplicitFlow=!1})}initImplicitFlow(e="",n=""){this.loginUrl!==""?this.initImplicitFlowInternal(e,n):this.events.pipe(Oe(o=>o.type==="discovery_document_loaded")).subscribe(()=>this.initImplicitFlowInternal(e,n))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(e){let n=this;if(e.onTokenReceived){let o={idClaims:n.getIdentityClaims(),idToken:n.getIdToken(),accessToken:n.getAccessToken(),state:n.state};e.onTokenReceived(o)}}storeAccessTokenResponse(e,n,o,r,a){if(this._storage.setItem("access_token",e),r&&!Array.isArray(r)?this._storage.setItem("granted_scopes",JSON.stringify(r.split(" "))):r&&Array.isArray(r)&&this._storage.setItem("granted_scopes",JSON.stringify(r)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),o){let s=o*1e3,u=this.dateTimeService.new().getTime()+s;this._storage.setItem("expires_at",""+u)}n&&this._storage.setItem("refresh_token",n),a&&a.forEach((s,c)=>{this._storage.setItem(c,s)})}tryLogin(e=null){return this.config.responseType==="code"?this.tryLoginCodeFlow(e).then(()=>!0):this.tryLoginImplicitFlow(e)}parseQueryString(e){return!e||e.length===0?{}:(e.charAt(0)==="?"&&(e=e.substr(1)),this.urlHelper.parseQueryString(e))}tryLoginCodeFlow(e=null){return li(this,null,function*(){e=e||{};let n=e.customHashFragment?e.customHashFragment.substring(1):window.location.search,o=this.getCodePartsFromUrl(n),r=o.code,a=o.state,s=o.session_state;if(!e.preventClearHashAfterLogin){let f=location.origin+location.pathname+location.search.replace(/code=[^&$]*/,"").replace(/scope=[^&$]*/,"").replace(/state=[^&$]*/,"").replace(/session_state=[^&$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,f)}let[c,u]=this.parseState(a);if(this.state=u,o.error){this.debug("error trying to login"),this.handleLoginError(e,o);let f=new Ln("code_error",{},o);return this.eventsSubject.next(f),Promise.reject(f)}if(!e.disableNonceCheck){if(!c)return this.saveRequestedRoute(),Promise.resolve();if(!e.disableOAuth2StateCheck&&!this.validateNonce(c)){let b=new Ln("invalid_nonce_in_state",null);return this.eventsSubject.next(b),Promise.reject(b)}}return this.storeSessionState(s),r&&(yield this.getTokenFromCode(r,e),this.restoreRequestedRoute()),Promise.resolve()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){let e=this._storage.getItem("requested_route");e&&history.replaceState(null,"",window.location.origin+e)}getCodePartsFromUrl(e){return!e||e.length===0?this.urlHelper.getHashFragmentParams():(e.charAt(0)==="?"&&(e=e.substr(1)),this.urlHelper.parseQueryString(e))}getTokenFromCode(e,n){let o=new ee({encoder:new Jc}).set("grant_type","authorization_code").set("code",e).set("redirect_uri",n.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let r;this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?r=localStorage.getItem("PKCE_verifier"):r=this._storage.getItem("PKCE_verifier"),r?o=o.set("code_verifier",r):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(o,n)}fetchAndProcessToken(e,n){n=n||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let o=new xi().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let r=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+r)}return this.useHttpBasicAuth||(e=e.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(e=e.set("client_secret",this.dummyClientSecret)),new Promise((r,a)=>{if(this.customQueryParams)for(let s of Object.getOwnPropertyNames(this.customQueryParams))e=e.set(s,this.customQueryParams[s]);this.http.post(this.tokenEndpoint,e,{headers:o}).subscribe(s=>{this.debug("refresh tokenResponse",s),this.storeAccessTokenResponse(s.access_token,s.refresh_token,s.expires_in||this.fallbackAccessTokenExpirationTimeInSec,s.scope,this.extractRecognizedCustomParameters(s)),this.oidc&&s.id_token?this.processIdToken(s.id_token,s.access_token,n.disableNonceCheck).then(c=>{this.storeIdToken(c),this.eventsSubject.next(new co("token_received")),this.eventsSubject.next(new co("token_refreshed")),r(s)}).catch(c=>{this.eventsSubject.next(new Ln("token_validation_error",c)),console.error("Error validating tokens"),console.error(c),a(c)}):(this.eventsSubject.next(new co("token_received")),this.eventsSubject.next(new co("token_refreshed")),r(s))},s=>{console.error("Error getting token",s),this.eventsSubject.next(new Ln("token_error",s)),a(s)})})}tryLoginImplicitFlow(e=null){e=e||{};let n;e.customHashFragment?n=this.urlHelper.getHashFragmentParams(e.customHashFragment):n=this.urlHelper.getHashFragmentParams(),this.debug("parsed url",n);let o=n.state,[r,a]=this.parseState(o);if(this.state=a,n.error){this.debug("error trying to login"),this.handleLoginError(e,n);let b=new Ln("token_error",{},n);return this.eventsSubject.next(b),Promise.reject(b)}let s=n.access_token,c=n.id_token,u=n.session_state,f=n.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!s||this.requestAccessToken&&!e.disableOAuth2StateCheck&&!o||this.oidc&&!c)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!u&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!e.disableNonceCheck&&!this.validateNonce(r)){let y=new Ln("invalid_nonce_in_state",null);return this.eventsSubject.next(y),Promise.reject(y)}return this.requestAccessToken&&this.storeAccessTokenResponse(s,null,n.expires_in||this.fallbackAccessTokenExpirationTimeInSec,f),this.oidc?this.processIdToken(c,s,e.disableNonceCheck).then(b=>e.validationHandler?e.validationHandler({accessToken:s,idClaims:b.idTokenClaims,idToken:b.idToken,state:o}).then(()=>b):b).then(b=>(this.storeIdToken(b),this.storeSessionState(u),this.clearHashAfterLogin&&!e.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new co("token_received")),this.callOnTokenReceivedIfExists(e),this.inImplicitFlow=!1,!0)).catch(b=>(this.eventsSubject.next(new Ln("token_validation_error",b)),this.logger.error("Error validating tokens"),this.logger.error(b),Promise.reject(b))):(this.eventsSubject.next(new co("token_received")),this.clearHashAfterLogin&&!e.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(e),Promise.resolve(!0))}parseState(e){let n=e,o="";if(e){let r=e.indexOf(this.config.nonceStateSeparator);r>-1&&(n=e.substr(0,r),o=e.substr(r+this.config.nonceStateSeparator.length))}return[n,o]}validateNonce(e){let n;return this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?n=localStorage.getItem("nonce"):n=this._storage.getItem("nonce"),n!==e?(console.error("Validating access_token failed, wrong state/nonce.",n,e),!1):!0}storeIdToken(e){this._storage.setItem("id_token",e.idToken),this._storage.setItem("id_token_claims_obj",e.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+e.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(e){this._storage.setItem("session_state",e)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(e,n){e.onLoginError&&e.onLoginError(n),this.clearHashAfterLogin&&!e.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(e=6e5){return!this.clockSkewInSec&&this.clockSkewInSec!==0?e:this.clockSkewInSec*1e3}processIdToken(e,n,o=!1){let r=e.split("."),a=this.padBase64(r[0]),s=FS(a),c=JSON.parse(s),u=this.padBase64(r[1]),f=FS(u),b=JSON.parse(f),y;if(this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?y=localStorage.getItem("nonce"):y=this._storage.getItem("nonce"),Array.isArray(b.aud)){if(b.aud.every(pe=>pe!==this.clientId)){let pe="Wrong audience: "+b.aud.join(",");return this.logger.warn(pe),Promise.reject(pe)}}else if(b.aud!==this.clientId){let pe="Wrong audience: "+b.aud;return this.logger.warn(pe),Promise.reject(pe)}if(!b.sub){let pe="No sub claim in id_token";return this.logger.warn(pe),Promise.reject(pe)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==b.sub){let pe=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${b.sub}`;return this.logger.warn(pe),Promise.reject(pe)}if(!b.iat){let pe="No iat claim in id_token";return this.logger.warn(pe),Promise.reject(pe)}if(!this.skipIssuerCheck&&b.iss!==this.issuer){let pe="Wrong issuer: "+b.iss;return this.logger.warn(pe),Promise.reject(pe)}if(!o&&b.nonce!==y){let pe="Wrong nonce: "+b.nonce;return this.logger.warn(pe),Promise.reject(pe)}if(Object.prototype.hasOwnProperty.call(this,"responseType")&&(this.responseType==="code"||this.responseType==="id_token")&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!b.at_hash){let pe="An at_hash is needed!";return this.logger.warn(pe),Promise.reject(pe)}let x=this.dateTimeService.now(),D=b.iat*1e3,q=b.exp*1e3,Q=this.getClockSkewInMsec();if(D-Q>=x||q+Q-this.decreaseExpirationBySec<=x){let pe="Token has expired";return console.error(pe),console.error({now:x,issuedAtMSec:D,expiresAtMSec:q}),Promise.reject(pe)}let K={accessToken:n,idToken:e,jwks:this.jwks,idTokenClaims:b,idTokenHeader:c,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(K).then(()=>({idToken:e,idTokenClaims:b,idTokenClaimsJson:f,idTokenHeader:c,idTokenHeaderJson:s,idTokenExpiresAt:q})):this.checkAtHash(K).then(pe=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!pe){let ut="Wrong at_hash";return this.logger.warn(ut),Promise.reject(ut)}return this.checkSignature(K).then(()=>{let ut=!this.disableAtHashCheck,wt={idToken:e,idTokenClaims:b,idTokenClaimsJson:f,idTokenHeader:c,idTokenHeaderJson:s,idTokenExpiresAt:q};return ut?this.checkAtHash(K).then(Bt=>{if(this.requestAccessToken&&!Bt){let en="Wrong at_hash";return this.logger.warn(en),Promise.reject(en)}else return wt}):wt})})}getIdentityClaims(){let e=this._storage.getItem("id_token_claims_obj");return e?JSON.parse(e):null}getGrantedScopes(){let e=this._storage.getItem("granted_scopes");return e?JSON.parse(e):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(e){for(;e.length%4!==0;)e+="=";return e}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){let e=this._storage.getItem("expires_at"),n=this.dateTimeService.new();return!(e&&parseInt(e,10)-this.decreaseExpirationBySec=0&&this._storage.getItem(e)!==null?JSON.parse(this._storage.getItem(e)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(e={},n=""){let o=!1;typeof e=="boolean"&&(o=e,e={});let r=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(s=>this._storage.removeItem(s)),this.silentRefreshSubject=null,this.eventsSubject.next(new Nr("logout")),!this.logoutUrl||o)return;let a;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)a=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(r)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let s=new ee({encoder:new Jc});r&&(s=s.set("id_token_hint",r));let c=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";c&&(s=s.set("post_logout_redirect_uri",c),n&&(s=s.set("state",n)));for(let u in e)s=s.set(u,e[u]);a=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+s.toString()}this.config.openUri(a)}createAndSaveNonce(){let e=this;return this.createNonce().then(function(n){return e.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",n):e._storage.setItem("nonce",n),n})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();let e=this.document.getElementById(this.silentRefreshIFrameName);e&&e.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();let n=this.document.getElementById(this.sessionCheckIFrameName);n&&n.remove()}createNonce(){return new Promise(e=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",o=45,r="",a=typeof self>"u"?null:self.crypto||self.msCrypto;if(a){let s=new Uint8Array(o);a.getRandomValues(s),s.map||(s.map=Array.prototype.map),s=s.map(c=>n.charCodeAt(c%n.length)),r=String.fromCharCode.apply(null,s)}else for(;0o.type==="discovery_document_loaded")).subscribe(()=>this.initCodeFlowInternal(e,n))}initCodeFlowInternal(e="",n={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let o={},r=null;typeof n=="string"?r=n:typeof n=="object"&&(o=n),this.createLoginUrl(e,r,null,!1,o).then(this.config.openUri).catch(a=>{console.error("Error in initAuthorizationCodeFlow"),console.error(a)})}createChallangeVerifierPairForPKCE(){return li(this,null,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");let e=yield this.createNonce(),n=yield this.crypto.calcHash(e,"sha-256");return[VS(n),e]})}extractRecognizedCustomParameters(e){let n=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(o=>{e[o]&&n.set(o,JSON.stringify(e[o]))}),n}revokeTokenAndLogout(e={},n=!1){let o=this.revocationEndpoint,r=this.getAccessToken(),a=this.getRefreshToken();if(!r)return Promise.resolve();let s=new ee({encoder:new Jc}),c=new xi().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let u=btoa(`${this.clientId}:${this.dummyClientSecret}`);c=c.set("Authorization","Basic "+u)}if(this.useHttpBasicAuth||(s=s.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(s=s.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let u of Object.getOwnPropertyNames(this.customQueryParams))s=s.set(u,this.customQueryParams[u]);return new Promise((u,f)=>{let b,y;if(r){let x=s.set("token",r).set("token_type_hint","access_token");b=this.http.post(o,x,{headers:c})}else b=re(null);if(a){let x=s.set("token",a).set("token_type_hint","refresh_token");y=this.http.post(o,x,{headers:c})}else y=re(null);n&&(b=b.pipe(Xn(x=>x.status===0?re(null):Co(x))),y=y.pipe(Xn(x=>x.status===0?re(null):Co(x)))),Kn([b,y]).subscribe(x=>{this.logOut(e),u(x),this.logger.info("Token successfully revoked")},x=>{this.logger.error("Error revoking token",x),this.eventsSubject.next(new Ln("token_revoke_error",x)),f(x)})})}clearLocationHash(){location.hash!=""&&(location.hash="")}static{this.\u0275fac=function(n){return new(n||t)(be(se),be(kn),be(dp,8),be(up,8),be($1,8),be(BS),be(lp),be(mp,8),be(De),be(b0))}}static{this.\u0275prov=z({token:t,factory:t.\u0275fac})}}return t})(),pp=class{},t_=class{handleError(i){return Co(i)}},bQ=(()=>{class t{constructor(e,n,o){this.oAuthService=e,this.errorHandler=n,this.moduleConfig=o}checkUrl(e){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(e):this.moduleConfig.resourceServer.allowedUrls?!!this.moduleConfig.resourceServer.allowedUrls.find(n=>e.toLowerCase().startsWith(n.toLowerCase())):!0}intercept(e,n){let o=e.url.toLowerCase();return!this.moduleConfig||!this.moduleConfig.resourceServer||!this.checkUrl(o)?n.handle(e):this.moduleConfig.resourceServer.sendAccessToken?mt(re(this.oAuthService.getAccessToken()).pipe(Oe(a=>!!a)),this.oAuthService.events.pipe(Oe(a=>a.type==="token_received"),Z6(this.oAuthService.waitForTokenInMsec||0),Xn(()=>re(null)),ue(()=>this.oAuthService.getAccessToken()))).pipe(Ve(1),rn(a=>{if(a){let s="Bearer "+a,c=e.headers.set("Authorization",s);e=e.clone({headers:c})}return n.handle(e).pipe(Xn(s=>this.errorHandler.handleError(s)))})):n.handle(e).pipe(Xn(a=>this.errorHandler.handleError(a)))}static{this.\u0275fac=function(n){return new(n||t)(be(fp),be(pp),be(cp,8))}}static{this.\u0275prov=z({token:t,factory:t.\u0275fac})}}return t})();function vQ(){return console}function yQ(){return typeof sessionStorage<"u"?sessionStorage:new uQ}function CQ(t=null,i=sp){return ta([fp,BS,{provide:lp,useFactory:vQ},{provide:dp,useFactory:yQ},{provide:up,useClass:i},{provide:mp,useClass:_Q},{provide:pp,useClass:t_},{provide:cp,useValue:t},{provide:Km,useClass:bQ,multi:!0},{provide:b0,useClass:dQ}])}var gxe=(()=>{class t{static forRoot(e=null,n=sp){return{ngModule:t,providers:[CQ(e,n)]}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t})}static{this.\u0275inj=Z({imports:[ge]})}}return t})();var Ja={headers:{"Fineract-Platform-TenantId":Ge.fineractPlatformTenantId}},hp="Authorization",xQ="Fineract-Platform-TenantId",HS="Fineract-Platform-TFA-Token",US=(()=>{class t{constructor(){this.settingsService=d(Jt)}intercept(e,n){return this.settingsService.tenantIdentifier&&(Ja.headers["Fineract-Platform-TenantId"]=this.settingsService.tenantIdentifier),e=e.clone({setHeaders:Ja.headers}),n.handle(e)}setAuthorizationToken(e){Ge.oauth.enabled?Ja.headers[hp]=`Bearer ${e}`:Ja.headers[hp]=`Basic ${e}`}setTwoFactorAccessToken(e){Ja.headers[HS]=e}removeAuthorization(){delete Ja.headers[hp]}removeAuthorizationTenant(){delete Ja.headers[hp],delete Ja.headers[xQ]}removeTwoFactorAuthorization(){delete Ja.headers[HS]}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=z({token:t,factory:t.\u0275fac})}}return t})();var Oi=(function(t){return t.OAuth2="oauth2",t.OIDC="oidc",t.Basic="basic",t})(Oi||{});function n_(){return Ge.OIDC.oidcServerEnabled?Oi.OIDC:Ge.oauth.enabled?Oi.OAuth2:Oi.Basic}function $S(){switch(n_()){case Oi.OIDC:return MQ();case Oi.OAuth2:return wQ();default:return{clientId:""}}}function MQ(){let t=Ge.OIDC.oidcFrontUrl||window.location.origin;return{issuer:Ge.OIDC.oidcBaseUrl,clientId:Ge.OIDC.oidcClientId,redirectUri:`${t}/callback`,postLogoutRedirectUri:`${t}/#/login`,responseType:"code",scope:"openid profile email offline_access",oidc:!0,useSilentRefresh:!1,requireHttps:Ge.production,showDebugInformation:!Ge.production,sessionChecksEnabled:!1,clearHashAfterLogin:!1}}function wQ(){let t=window.location.origin;return{issuer:Ge.oauth.serverUrl,loginUrl:Ge.oauth.authorizeUrl,tokenEndpoint:Ge.oauth.tokenUrl,redirectUri:Ge.oauth.redirectUri,postLogoutRedirectUri:`${t}/#/login`,clientId:Ge.oauth.appId,responseType:"code",scope:Ge.oauth.scope,useSilentRefresh:!1,oidc:!1,skipIssuerCheck:!0,strictDiscoveryDocumentValidation:!1,requireHttps:Ge.production,showDebugInformation:!Ge.production,sessionChecksEnabled:!1,clearHashAfterLogin:!1}}var gp=(()=>{class t{changePassword(e,n){return this.http.put(`/users/${e}`,n)}constructor(){this.http=d(kn),this.alertService=d(zs),this.authenticationInterceptor=d(US),this.oauthService=d(fp),this.userLoggedIn$=new dt(!1),this.isAuthenticated$=this.userLoggedIn$.asObservable(),this.rememberMe=!1,this.storage=sessionStorage,this.dialogShown=!1,this.authMode=Oi.Basic,this.credentialsStorageKey="mifosXCredentials",this.twoFactorAuthenticationTokenStorageKey="mifosXTwoFactorAuthenticationToken",this.authMode=n_(),this.authMode!==Oi.Basic&&this.initializeOAuthService(),this.restoreSession()}initializeOAuthService(){this.oauthService.configure($S());let e=Ge.enableRememberMe?localStorage:sessionStorage;this.oauthService.setStorage(e),this.oauthService.setupAutomaticSilentRefresh(),this.oauthService.events.subscribe(n=>{(n.type==="token_received"||n.type==="token_refreshed")&&this.updateCredentialsToken()}),this.cleanupLegacyStorage()}restoreSession(){let e=this.getSavedCredentials();if(e)if(e.rememberMe&&(this.rememberMe=!0,this.storage=localStorage,this.oauthService.setStorage(this.storage)),this.authMode!==Oi.Basic)this.oauthService.hasValidAccessToken()?(this.authenticationInterceptor.setAuthorizationToken(this.oauthService.getAccessToken()),this.userLoggedIn$.next(!0)):this.oauthService.getRefreshToken()&&this.oauthService.refreshToken().then(()=>this.userLoggedIn$.next(!0)).catch(()=>this.logout().subscribe());else{this.authenticationInterceptor.setAuthorizationToken(e.base64EncodedAuthenticationKey);let n=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));n&&this.authenticationInterceptor.setTwoFactorAccessToken(n.token),this.userLoggedIn$.next(!0)}}updateCredentialsToken(){let e=this.oauthService.getAccessToken();if(!e)return;this.authenticationInterceptor.setAuthorizationToken(e);let n=this.getCredentials();n&&(n.accessToken=e,this.storage.setItem(this.credentialsStorageKey,JSON.stringify(n)))}getSavedCredentials(){let e=sessionStorage.getItem(this.credentialsStorageKey)||localStorage.getItem(this.credentialsStorageKey);return e?JSON.parse(e):null}login(e){if(this.alertService.alert({type:"Authentication Start",message:"Please wait..."}),this.authMode!==Oi.Basic)return this.oauthService.initCodeFlow(),re(!0);if(!e)throw new Error("loginContext is required when using Basic authentication");return this.rememberMe=Ge.enableRememberMe?e?.remember??!1:!1,this.storage=this.rememberMe?localStorage:sessionStorage,this.http.post("/authentication",{username:e.username,password:e.password,remember:this.rememberMe}).pipe(ue(n=>(this.onLoginSuccess(n),!0)))}getUserDetails(){return li(this,null,function*(){let e=this.oauthService.getAccessToken();return new Promise((n,o)=>{if(this.authMode===Oi.OIDC){let r=`${Ge.OIDC.oidcApiUrl}authentication/userdetails`;this.http.post(r,{token:e}).subscribe({next:a=>{let s=a.object;s.accessToken=e,this.onLoginSuccess(s),n()},error:a=>{console.error("Failed to fetch user details:",a),o(a)}})}else if(this.authMode===Oi.OAuth2){let r=new xi().set("Authorization",`Bearer ${e}`),a=`${Ge.oauth.serverUrl}/userdetails`;this.http.get(a,{headers:r}).subscribe({next:s=>{s.accessToken=e,this.onLoginSuccess(s),n()},error:s=>{console.error("Failed to fetch user details:",s),o(s)}})}})})}onLoginSuccess(e){this.userLoggedIn$.next(!0),e.rememberMe=this.rememberMe,this.authMode!==Oi.Basic?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)}handleOAuthCallback(){return li(this,null,function*(){try{let e=sessionStorage.getItem("oauth_callback_query");return e?(sessionStorage.removeItem("oauth_callback_query"),yield this.oauthService.tryLoginCodeFlow({customHashFragment:e})):yield this.oauthService.tryLoginCodeFlow(),this.oauthService.hasValidAccessToken()?(yield this.getUserDetails(),!0):!1}catch(e){return console.error("OAuth callback failed:",e),!1}})}logout(){let e=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));if(e&&(this.http.post("/twofactor/invalidate",{token:e.token}).subscribe(),this.authenticationInterceptor.removeTwoFactorAuthorization()),sessionStorage.removeItem("oauth_callback_query"),this.authenticationInterceptor.removeAuthorization(),this.setCredentials(),this.resetDialog(),this.userLoggedIn$.next(!1),this.authMode===Oi.OIDC)this.oauthService.logOut();else if(this.authMode===Oi.OAuth2){this.oauthService.logOut(!0);let n=window.open(Ge.oauth.logoutUrl,"_blank","width=100,height=100");setTimeout(()=>{n&&n.close(),window.location.href=`${window.location.origin}/#/login`},500)}return re(!0)}twoFactorAccessTokenIsValid(){let e=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));return e?new Date().getTime(){n.removeItem(this.credentialsStorageKey),n.removeItem(this.twoFactorAuthenticationTokenStorageKey)}),this.cleanupLegacyStorage())}cleanupLegacyStorage(){["mifosXZitadelTokenDetails","mifosXOAuthTokenDetails","token_start_time","refresh_expires_in","mifosXZitadel","auth_code"].forEach(n=>{localStorage.removeItem(n),sessionStorage.removeItem(n)})}getDeliveryMethods(){return this.http.get("/twofactor")}showDialog(){this.dialogShown=!0}resetDialog(){this.dialogShown=!1}hasDialogBeenShown(){return this.dialogShown}requestOTP(e){let n=new ee;return n=n.set("deliveryMethod",e.name),n=n.set("extendedToken",this.rememberMe.toString()),this.http.post("/twofactor",{},{params:n})}validateOTP(e){let n=new ee().set("token",e);return this.http.post("/twofactor/validate",{},{params:n}).pipe(ue(o=>{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(ue(()=>{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$.value}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=z({token:t,factory:t.\u0275fac})}}return t})();var Fs=(()=>{class t{constructor(){this.templateRef=d(it),this.viewContainer=d(pt),this.authenticationService=d(gp);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=R({type:t,selectors:[["","mifosxHasPermission",""]],inputs:{mifosxHasPermission:"mifosxHasPermission"}})}}return t})();var ZS=(()=>{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)(Me(Je),Me(X))};static \u0275dir=R({type:t})}return t})(),JS=(()=>{class t extends ZS{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=R({type:t,features:[ce]})}return t})(),fi=new L("");var DQ={provide:fi,useExisting:It(()=>wi),multi:!0};function SQ(){let t=Fo()?Fo().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var kQ=new L(""),wi=(()=>{class t extends ZS{_compositionMode;_composing=!1;constructor(e,n,o){super(e,n),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!SQ())}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)(Me(Je),Me(X),Me(kQ,8))};static \u0275dir=R({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([DQ]),ce]})}return t})();function a_(t){return t==null||s_(t)===0}function s_(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var Di=new L(""),tl=new L(""),EQ=/^(?=.{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])?)*$/,on=class{static min(i){return ek(i)}static max(i){return tk(i)}static required(i){return nk(i)}static requiredTrue(i){return IQ(i)}static email(i){return OQ(i)}static minLength(i){return ik(i)}static maxLength(i){return ok(i)}static pattern(i){return TQ(i)}static nullValidator(i){return bp()}static compose(i){return dk(i)}static composeAsync(i){return uk(i)}};function ek(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 nk(t){return a_(t.value)?{required:!0}:null}function IQ(t){return t.value===!0?null:{required:!0}}function OQ(t){return a_(t.value)||EQ.test(t.value)?null:{email:!0}}function ik(t){return i=>{let e=i.value?.length??s_(i.value);return e===null||e===0?null:e{let e=i.value?.length??s_(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function TQ(t){if(!t)return bp;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(a_(n.value))return null;let o=n.value;return i.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function bp(t){return null}function rk(t){return t!=null}function ak(t){return Ya(t)?Kt(t):t}function sk(t){let i={};return t.forEach(e=>{i=e!=null?Y(Y({},i),e):i}),Object.keys(i).length===0?null:i}function ck(t,i){return i.map(e=>e(t))}function PQ(t){return!t.validate}function lk(t){return t.map(i=>PQ(i)?i:e=>i.validate(e))}function dk(t){if(!t)return null;let i=t.filter(rk);return i.length==0?null:function(e){return sk(ck(e,i))}}function c_(t){return t!=null?dk(lk(t)):null}function uk(t){if(!t)return null;let i=t.filter(rk);return i.length==0?null:function(e){let n=ck(e,i).map(ak);return Ra(n).pipe(ue(sk))}}function l_(t){return t!=null?uk(lk(t)):null}function GS(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function mk(t){return t._rawValidators}function pk(t){return t._rawAsyncValidators}function i_(t){return t?Array.isArray(t)?t:[t]:[]}function vp(t,i){return Array.isArray(t)?t.includes(i):t===i}function WS(t,i){let e=i_(i);return i_(t).forEach(o=>{vp(e,o)||e.push(o)}),e}function qS(t,i){return i_(i).filter(e=>!vp(t,e))}var yp=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=c_(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=l_(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}},Mi=class extends yp{name;get formDirective(){return null}get path(){return null}},ii=class extends yp{_parent=null;name=null;valueAccessor=null},Cp=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}},LQ={"[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"},oMe=Ne(Y({},LQ),{"[class.ng-submitted]":"isSubmitted"}),fn=(()=>{class t extends Cp{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(Me(ii,2))};static \u0275dir=R({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})(),cr=(()=>{class t extends Cp{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(Me(Mi,10))};static \u0275dir=R({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 y0="VALID",_p="INVALID",G1="PENDING",C0="DISABLED",Bs=class{},xp=class extends Bs{value;source;constructor(i,e){super(),this.value=i,this.source=e}},M0=class extends Bs{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},w0=class extends Bs{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},W1=class extends Bs{status;source;constructor(i,e){super(),this.status=i,this.source=e}},Mp=class extends Bs{source;constructor(i){super(),this.source=i}},D0=class extends Bs{source;constructor(i){super(),this.source=i}};function d_(t){return(kp(t)?t.validators:t)||null}function AQ(t){return Array.isArray(t)?c_(t):t||null}function u_(t,i){return(kp(i)?i.asyncValidators:t)||null}function RQ(t){return Array.isArray(t)?l_(t):t||null}function kp(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function fk(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new fe(1e3,"");if(!n[e])throw new fe(1001,"")}function hk(t,i,e){t._forEachChild((n,o)=>{if(e[o]===void 0)throw new fe(1002,"")})}var q1=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 jn(this.statusReactive)}set status(i){jn(()=>this.statusReactive.set(i))}_status=ti(()=>this.statusReactive());statusReactive=Se(void 0);get valid(){return this.status===y0}get invalid(){return this.status===_p}get pending(){return this.status==G1}get disabled(){return this.status===C0}get enabled(){return this.status!==C0}errors;get pristine(){return jn(this.pristineReactive)}set pristine(i){jn(()=>this.pristineReactive.set(i))}_pristine=ti(()=>this.pristineReactive());pristineReactive=Se(!0);get dirty(){return!this.pristine}get touched(){return jn(this.touchedReactive)}set touched(i){jn(()=>this.touchedReactive.set(i))}_touched=ti(()=>this.touchedReactive());touchedReactive=Se(!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(WS(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(WS(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(qS(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(qS(i,this._rawAsyncValidators))}hasValidator(i){return vp(this._rawValidators,i)}hasAsyncValidator(i){return vp(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(Y({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new w0(!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 w0(!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(Y({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new M0(!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 M0(!0,n))}markAsPending(i={}){this.status=G1;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new W1(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.markAsPending(Ne(Y({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=C0,this.errors=null,this._forEachChild(o=>{o.disable(Ne(Y({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new xp(this.value,n)),this._events.next(new W1(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Ne(Y({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=y0,this._forEachChild(n=>{n.enable(Ne(Y({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Ne(Y({},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===y0||this.status===G1)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new xp(this.value,e)),this._events.next(new W1(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(Ne(Y({},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()?C0:y0}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=G1,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:i!==!1};let n=ak(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 W1(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new j,this.statusChanges=new j}_calculateStatus(){return this._allControlsDisabled()?C0:this.errors?_p:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(G1)?G1:this._anyControlsHaveStatus(_p)?_p:y0}_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 M0(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new w0(this.touched,e)),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){kp(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=AQ(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=RQ(this._rawAsyncValidators)}},el=class extends q1{constructor(i,e,n){super(d_(e),u_(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={}){hk(this,!0,i),Object.keys(i).forEach(n=>{fk(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 D0(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 gk=el;var o_=class extends el{};var Y1=new L("",{providedIn:"root",factory:()=>Ep}),Ep="always";function Ip(t,i){return[...i.path,t]}function S0(t,i,e=Ep){m_(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),NQ(t,i),VQ(t,i),FQ(t,i),zQ(t,i)}function wp(t,i,e=!0){let n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),Sp(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Dp(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function zQ(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function m_(t,i){let e=mk(t);i.validator!==null?t.setValidators(GS(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=pk(t);i.asyncValidator!==null?t.setAsyncValidators(GS(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let o=()=>t.updateValueAndValidity();Dp(i._rawValidators,o),Dp(i._rawAsyncValidators,o)}function Sp(t,i){let e=!1;if(t!==null){if(i.validator!==null){let o=mk(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=pk(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 Dp(i._rawValidators,n),Dp(i._rawAsyncValidators,n),e}function NQ(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&_k(t,i)})}function FQ(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&_k(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function _k(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function VQ(t,i){let e=(n,o)=>{i.valueAccessor.writeValue(n),o&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function bk(t,i){t==null,m_(t,i)}function BQ(t,i){return Sp(t,i)}function p_(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function jQ(t){return Object.getPrototypeOf(t.constructor)===JS}function vk(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function f_(t,i){if(!i)return null;Array.isArray(i);let e,n,o;return i.forEach(r=>{r.constructor===wi?e=r:jQ(r)?n=r:o=r}),o||n||e||null}function HQ(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var UQ={provide:Mi,useExisting:It(()=>Q1)},x0=Promise.resolve(),Q1=(()=>{class t extends Mi{callSetDisabledState;get submitted(){return jn(this.submittedReactive)}_submitted=ti(()=>this.submittedReactive());submittedReactive=Se(!1);_directives=new Set;form;ngSubmit=new j;options;constructor(e,n,o){super(),this.callSetDisabledState=o,this.form=new el({},c_(e),l_(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){x0.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),S0(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){x0.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){x0.then(()=>{let n=this._findContainer(e.path),o=new el({});bk(o,e),n.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){x0.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){x0.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),vk(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Mp(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)(Me(Di,10),Me(tl,10),Me(Y1,8))};static \u0275dir=R({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([UQ]),ce]})}return t})();function YS(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function QS(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Vs=class extends q1{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(d_(e),u_(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),kp(e)&&(e.nonNullable||e.initialValueIsDefault)&&(QS(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 D0(this))}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){YS(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){YS(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){QS(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}},Yi=Vs,$Q=t=>t instanceof Vs,GQ=(()=>{class t extends Mi{_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 Ip(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=Te(t)))(o||t)}})();static \u0275dir=R({type:t,standalone:!1,features:[ce]})}return t})();var WQ={provide:ii,useExisting:It(()=>qQ)},KS=Promise.resolve(),qQ=(()=>{class t extends ii{_changeDetectorRef;callSetDisabledState;control=new Vs;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=f_(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),p_(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(){S0(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){KS.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,o=n!==0&&H(n);KS.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Ip(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(Me(Mi,9),Me(Di,10),Me(tl,10),Me(fi,10),Me(we,8),Me(Y1,8))};static \u0275dir=R({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([WQ]),ce,ze]})}return t})();var js=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),YQ={provide:fi,useExisting:It(()=>QQ),multi:!0},QQ=(()=>{class t extends JS{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=Te(t)))(o||t)}})();static \u0275dir=R({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([YQ]),ce]})}return t})();var h_=new L(""),KQ={provide:ii,useExisting:It(()=>Ti)},Ti=(()=>{class t extends ii{_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=f_(this,o)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&wp(n,this,!1),S0(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}p_(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&wp(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)(Me(Di,10),Me(tl,10),Me(fi,10),Me(h_,8),Me(Y1,8))};static \u0275dir=R({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([KQ]),ce,ze]})}return t})(),XQ={provide:Mi,useExisting:It(()=>hi)},hi=(()=>{class t extends Mi{callSetDisabledState;get submitted(){return jn(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=ti(()=>this._submittedReactive());_submittedReactive=Se(!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&&(Sp(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 S0(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){wp(e.control||null,e,!1),HQ(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),vk(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Mp(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&&(wp(n||null,e),$Q(o)&&(S0(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);bk(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&BQ(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){m_(this.form,this),this._oldForm&&Sp(this._oldForm,this)}static \u0275fac=function(n){return new(n||t)(Me(Di,10),Me(tl,10),Me(Y1,8))};static \u0275dir=R({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([XQ]),ce,ze]})}return t})(),ZQ={provide:Mi,useExisting:It(()=>yk)},yk=(()=>{class t extends GQ{name=null;constructor(e,n,o){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(o)}_checkParentType(){xk(this._parent)}static \u0275fac=function(n){return new(n||t)(Me(Mi,13),Me(Di,10),Me(tl,10))};static \u0275dir=R({type:t,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[de([ZQ]),ce]})}return t})(),JQ={provide:Mi,useExisting:It(()=>Ck)},Ck=(()=>{class t extends Mi{_parent;name=null;constructor(e,n,o){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(o)}ngOnInit(){xk(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 Ip(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||t)(Me(Mi,13),Me(Di,10),Me(tl,10))};static \u0275dir=R({type:t,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[de([JQ]),ce]})}return t})();function xk(t){return!(t instanceof yk)&&!(t instanceof hi)&&!(t instanceof Ck)}var eK={provide:ii,useExisting:It(()=>jo)},jo=(()=>{class t extends ii{_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=f_(this,r)}ngOnChanges(e){this._added||this._setUpControl(),p_(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 Ip(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)(Me(Mi,13),Me(Di,10),Me(tl,10),Me(fi,10),Me(h_,8))};static \u0275dir=R({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[de([eK]),ce,ze]})}return t})();function Mk(t){return typeof t=="number"?t:parseInt(t,10)}function wk(t){return typeof t=="number"?t:parseFloat(t)}var k0=(()=>{class t{_validator=bp;_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):bp,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=R({type:t,features:[ze]})}return t})(),tK={provide:Di,useExisting:It(()=>nK),multi:!0},nK=(()=>{class t extends k0{max;inputName="max";normalizeInput=e=>wk(e);createValidator=e=>tk(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=R({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([tK]),ce]})}return t})(),iK={provide:Di,useExisting:It(()=>oK),multi:!0},oK=(()=>{class t extends k0{min;inputName="min";normalizeInput=e=>wk(e);createValidator=e=>ek(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=R({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([iK]),ce]})}return t})(),rK={provide:Di,useExisting:It(()=>Fr),multi:!0};var Fr=(()=>{class t extends k0{required;inputName="required";normalizeInput=H;createValidator=e=>nk;enabled(e){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=R({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([rK]),ce]})}return t})();var aK={provide:Di,useExisting:It(()=>sK),multi:!0},sK=(()=>{class t extends k0{minlength;inputName="minlength";normalizeInput=e=>Mk(e);createValidator=e=>ik(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=R({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([aK]),ce]})}return t})(),cK={provide:Di,useExisting:It(()=>lK),multi:!0},lK=(()=>{class t extends k0{maxlength;inputName="maxlength";normalizeInput=e=>Mk(e);createValidator=e=>ok(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=R({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([cK]),ce]})}return t})();var Dk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})(),r_=class extends q1{constructor(i,e,n){super(d_(e),u_(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={}){hk(this,!1,i),i.forEach((n,o)=>{fk(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 D0(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 XS(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var dK=(()=>{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 XS(n)?r=n:n!==null&&(r.validators=n.validator,r.asyncValidators=n.asyncValidator),new el(o,r)}record(e,n=null){let o=this._reduceControls(e);return new o_(o,n)}control(e,n,o){let r={};return this.useNonNullable?(XS(n)?r=n:(r.validators=n,r.asyncValidators=o),new Vs(e,Ne(Y({},r),{nonNullable:!0}))):new Vs(e,n,o)}array(e,n,o){let r=e.map(a=>this._createControl(a));return new r_(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 Vs)return e;if(e instanceof q1)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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Hs=(()=>{class t extends dK{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=Te(t)))(o||t)}})();static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Sk=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Y1,useValue:e.callSetDisabledState??Ep}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[Dk]})}return t})(),Ce=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:h_,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Y1,useValue:e.callSetDisabledState??Ep}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[Dk]})}return t})();var kk=(()=>{class t{constructor(){this.locale=d(Pr),this.el=d(X),this.control=d(ii),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:Vm(e,this.locale,this.displaySymbol,this.currencyCode,this.digitsInfo)+this.sufix}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=R({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 vMe=(()=>{class t{constructor(){this.control=d(ii),this.el=d(X)}onFocus(){this.control.control?.markAsTouched(),this.control.control?.updateValueAndValidity()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=R({type:t,selectors:[["","mifosxValidateOnFocus",""]],hostBindings:function(n,o){n&1&&N("focus",function(){return o.onFocus()})}})}}return t})();var Ek=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t})}static{this.\u0275inj=Z({imports:[ge]})}}return t})();var lr=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 es(t){return t.buttons===0||t.detail===0}function ts(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 g_;function Ik(){if(g_==null){let t=typeof document<"u"?document.head:null;g_=!!(t&&(t.createShadowRoot||t.attachShadow))}return g_}function nl(t){if(Ik()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function lo(){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 Hn(t){return t.composedPath?t.composedPath()[0]:t.target}var __;try{__=typeof Intl<"u"&&Intl.v8BreakIterator}catch{__=!1}var je=(()=>{class t{_platformId=d(Wc);isBrowser=this._platformId?XD(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||__)&&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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var E0;function Ok(){if(E0==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>E0=!0}))}finally{E0=E0||!1}return E0}function Us(t){return Ok()?t:!!t.capture}function vn(t,i=0){return Op(t)?Number(t):arguments.length===2?i:0}function Op(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function En(t){return t instanceof X?t.nativeElement:t}var Tk=new L("cdk-input-modality-detector-options"),Pk={ignoreKeys:[18,17,224,91,16]},Lk=650,b_={passive:!0,capture:!0},Ak=(()=>{class t{_platform=d(je);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new dt(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Hn(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(ts(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Hn(e)};constructor(){let e=d(se),n=d(De),o=d(Tk,{optional:!0});if(this._options=Y(Y({},Pk),o),this.modalityDetected=this._modality.pipe(kc(1)),this.modalityChanged=this.modalityDetected.pipe(Zl()),this._platform.isBrowser){let r=d(Tn).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[r.listen(n,"keydown",this._onKeydown,b_),r.listen(n,"mousedown",this._onMousedown,b_),r.listen(n,"touchstart",this._onTouchstart,b_)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),I0=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(I0||{}),Rk=new L("cdk-focus-monitor-default-options"),Tp=Us({passive:!0,capture:!0}),ln=(()=>{class t{_ngZone=d(se);_platform=d(je);_inputModalityDetector=d(Ak);_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(De);_stopInputModalityDetector=new B;constructor(){let e=d(Rk,{optional:!0});this._detectionMode=e?.detectionMode||I0.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=Hn(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=En(e);if(!this._platform.isBrowser||o.nodeType!==1)return re();let r=nl(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=En(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=En(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===I0.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===I0.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?Lk:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(e,n){let o=this._elementInfo.get(n),r=Hn(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,Tp),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,Tp)}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(xe(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,Tp),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Tp),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(X);_focusMonitor=d(ln);_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=R({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var Pp=new WeakMap,ct=(()=>{class t{_appRef;_injector=d(ye);_environmentInjector=d(Xt);load(e){let n=this._appRef=this._appRef||this._injector.get(pi),o=Pp.get(n);o||(o={loaders:new Set,refs:[]},Pp.set(n,o),n.onDestroy(()=>{Pp.get(n)?.refs.forEach(r=>r.destroy()),Pp.delete(n)})),o.loaders.has(e)||(o.loaders.add(e),o.refs.push(Dm(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Do=(()=>{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 Vr(t){return Array.isArray(t)?t:[t]}var zk=new Set,il,Lp=(()=>{class t{_platform=d(je);_nonce=d(x1,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):mK}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&uK(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function uK(t,i){if(!zk.has(t))try{il||(il=document.createElement("style"),i&&il.setAttribute("nonce",i),il.setAttribute("type","text/css"),document.head.appendChild(il)),il.sheet&&(il.sheet.insertRule(`@media ${t} {body{ }}`,0),zk.add(t))}catch(e){console.error(e)}}function mK(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var ol=(()=>{class t{_mediaMatcher=d(Lp);_zone=d(se);_queries=new Map;_destroySubject=new B;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Nk(Vr(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let o=Nk(Vr(e)).map(a=>this._registerQuery(a).observable),r=Kn(o);return r=Vi(r.pipe(Ve(1)),r.pipe(kc(1),To(0))),r.pipe(ue(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:u})=>{s.matches=s.matches||c,s.breakpoints[u]=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(Qe(n),ue(({matches:a})=>({query:e,matches:a})),xe(this._destroySubject)),mql:n};return this._queries.set(e,r),r}static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Nk(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function pK(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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Vk=(()=>{class t{_mutationObserverFactory=d(Fk);_observedElements=new Map;_ngZone=d(se);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){let n=En(e);return new Fe(o=>{let a=this._observeElement(n).pipe(ue(s=>s.filter(c=>!pK(c))),Oe(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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),T0=(()=>{class t{_contentObserver=d(Vk);_elementRef=d(X);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(To(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",H],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),K1=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[Fk]})}return t})();var Gs=(()=>{class t{_platform=d(je);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return hK(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=fK(MK(e));if(n&&(Bk(n)===-1||!this.isVisible(n)))return!1;let o=e.nodeName.toLowerCase(),r=Bk(e);return e.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!CK(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 xK(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function fK(t){try{return t.frameElement}catch{return null}}function hK(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function gK(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function _K(t){return vK(t)&&t.type=="hidden"}function bK(t){return yK(t)&&t.hasAttribute("href")}function vK(t){return t.nodeName.toLowerCase()=="input"}function yK(t){return t.nodeName.toLowerCase()=="a"}function Uk(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function Bk(t){if(!Uk(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function CK(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function xK(t){return _K(t)?!1:gK(t)||bK(t)||t.hasAttribute("contenteditable")||Uk(t)}function MK(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var Ap=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?xt(i,{injector:this._injector}):setTimeout(i)}},X1=(()=>{class t{_checker=d(Gs);_ngZone=d(se);_document=d(De);_injector=d(ye);constructor(){d(ct).load(Do)}create(e,n=!1){return new Ap(e,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),y_=(()=>{class t{_elementRef=d(X);_focusTrapFactory=d(X1);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=lo(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",H],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",H]},exportAs:["cdkTrapFocus"],features:[ze]})}return t})(),$k=new L("liveAnnouncerElement",{providedIn:"root",factory:Gk});function Gk(){return null}var Wk=new L("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),wK=0,P0=(()=>{class t{_ngZone=d(se);_defaultOptions=d(Wk,{optional:!0});_liveElement;_document=d(De);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=d($k,{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(De);_breakpointSubscription;constructor(){this._breakpointSubscription=d(ol).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return $s.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 $s.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return $s.BLACK_ON_WHITE}return $s.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(v_,jk,Hk),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===$s.BLACK_ON_WHITE?e.add(v_,jk):n===$s.WHITE_ON_BLACK&&e.add(v_,Hk)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ns=(()=>{class t{constructor(){d(Rp)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[K1]})}return t})();var C_={},He=(()=>{class t{_appId=d(Ts);getId(e){return this._appId!=="ng"&&(e+=this._appId),C_.hasOwnProperty(e)||(C_[e]=0),`${e}${C_[e]++}`}static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var DK=200,Z1=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:DK;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(Dt(e=>this._pressedLetters.push(e)),To(i),Oe(()=>this._pressedLetters.length>0),ue(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let n=1;nt[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var J1=class{_items;_activeItemIndex=Se(-1);_activeItem=Se(null);_wrap=!1;_typeaheadSubscription=Ee.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 On?this._itemChangesSubscription=i.changes.subscribe(n=>this._itemsChanged(n.toArray())):aa(i)&&(this._effectRef=pa(()=>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 Z1(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 rl=class extends J1{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var Br=class extends J1{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};function al(t){return di(t)?t:re(t)}var x_=class{_activeItemIndex=-1;_activeItem=null;_shouldActivationFollowFocus=!1;_horizontalOrientation="ltr";_skipPredicateFn=i=>!1;_trackByFn=i=>i;_items=[];_typeahead;_typeaheadSubscription=Ee.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()})):di(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 Z1(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()?al(this._activeItem.getChildren()).pipe(Ve(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=al(i.getChildren()):e=re(this._items.filter(n=>n.getParent()===null)),e.pipe(Ve(1)).subscribe(n=>{for(let o of n)o.expand()})}_activateCurrentItem(){this._activeItem?.activate()}};function SK(){return(t,i)=>new x_(t,i)}var Qk=new L("tree-key-manager",{providedIn:"root",factory:SK});var Xk=" ";function e2(t,i,e){let n=Vp(t,i);e=e.trim(),!n.some(o=>o.trim()===e)&&(n.push(e),t.setAttribute(i,n.join(Xk)))}function Ws(t,i,e){let n=Vp(t,i);e=e.trim();let o=n.filter(r=>r!==e);o.length?t.setAttribute(i,o.join(Xk)):t.removeAttribute(i)}function Vp(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var Zk="cdk-describedby-message",Fp="cdk-describedby-host",w_=0,t2=(()=>{class t{_platform=d(je);_document=d(De);_messageRegistry=new Map;_messagesContainer=null;_id=`${w_++}`;constructor(){d(ct).load(Do),this._id=d(Ts)+"-"+w_++}describe(e,n,o){if(!this._canBeDescribed(e,n))return;let r=M_(n,o);typeof n!="string"?(Kk(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=M_(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(`[${Fp}="${this._id}"]`);for(let n=0;no.indexOf(Zk)!=0);e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){let o=this._messageRegistry.get(n);e2(e,"aria-describedby",o.messageElement.id),e.setAttribute(Fp,this._id),o.referenceCount++}_removeMessageReference(e,n){let o=this._messageRegistry.get(n);o.referenceCount--,Ws(e,"aria-describedby",o.messageElement.id),e.removeAttribute(Fp)}_isElementDescribedByMessage(e,n){let o=Vp(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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function M_(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function Kk(t,i){t.id||(t.id=`${Zk}-${i}-${w_++}`)}var kK=["mat-internal-form-field",""],EK=["*"],n2=(()=>{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:kK,ngContentSelectors:EK,decls:1,vars:0,template:function(n,o){n&1&&(ke(),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 Jk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})(),Bp={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 IK=new L("MATERIAL_ANIMATIONS");var eE=null;function R0(){return d(IK,{optional:!0})?.animationsDisabled||d(Nd,{optional:!0})==="NoopAnimations"?"di-disabled":(eE??=d(Lp).matchMedia("(prefers-reduced-motion)").matches,eE?"reduced-motion":"enabled")}function Ue(){return R0()!=="enabled"}var dn=(()=>{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 jr=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(jr||{}),jp,sl;function Hp(){if(sl==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return sl=!1,sl;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)sl=!0;else{let t=Element.prototype.scrollTo;t?sl=!/\{\s*\[native code\]\s*\}/.test(t.toString()):sl=!1}}return sl}function i2(){if(typeof document!="object"||!document)return jr.NORMAL;if(jp==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),jp=jr.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,jp=t.scrollLeft===0?jr.NEGATED:jr.INVERTED),t.remove()}return jp}function D_(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var o2,tE=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function S_(){if(o2)return o2;if(typeof document!="object"||!document)return o2=new Set(tE),o2;let t=document.createElement("input");return o2=new Set(tE.filter(i=>(t.setAttribute("type",i),t.type===i))),o2}function Gn(t){return t==null?"":typeof t=="string"?t:`${t}px`}function yn(t){return t!=null&&`${t}`!="false"}function nE(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 mr=(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})(mr||{}),k_=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=mr.HIDDEN;constructor(i,e,n,o=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=o}fadeOut(){this._renderer.fadeOutRipple(this)}},iE=Us({passive:!0,capture:!0}),E_=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,iE)})}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,iE)))}_delegateEventHandler=i=>{let e=Hn(i);e&&this._events.get(i.type)?.forEach((n,o)=>{(o===e||o.contains(e))&&n.forEach(r=>r.handleEvent(i))})}},z0={enterDuration:225,exitDuration:150},OK=800,oE=Us({passive:!0,capture:!0}),rE=["mousedown","touchstart"],aE=["mouseup","mouseleave","touchend","touchcancel"],TK=(()=>{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})(),cl=class t{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new E_;constructor(i,e,n,o,r){this._target=i,this._ngZone=e,this._platform=o,o.isBrowser&&(this._containerElement=En(n)),r&&r.get(ct).load(TK)}fadeInRipple(i,e,n={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Y(Y({},z0),n.animation);n.centered&&(i=o.left+o.width/2,e=o.top+o.height/2);let a=n.radius||PK(i,e,o),s=i-o.left,c=e-o.top,u=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=`${u}ms`,this._containerElement.appendChild(f);let b=window.getComputedStyle(f),y=b.transitionProperty,x=b.transitionDuration,D=y==="none"||x==="0s"||x==="0s, 0s"||o.width===0&&o.height===0,q=new k_(this,f,n,D);f.style.transform="scale3d(1, 1, 1)",q.state=mr.FADING_IN,n.persistent||(this._mostRecentTransientRipple=q);let Q=null;return!D&&(u||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let K=()=>{Q&&(Q.fallbackTimer=null),clearTimeout(ut),this._finishRippleTransition(q)},pe=()=>this._destroyRipple(q),ut=setTimeout(pe,u+100);f.addEventListener("transitionend",K),f.addEventListener("transitioncancel",pe),Q={onTransitionEnd:K,onTransitionCancel:pe,fallbackTimer:ut}}),this._activeRipples.set(q,Q),(D||!u)&&this._finishRippleTransition(q),q}fadeOutRipple(i){if(i.state===mr.FADING_OUT||i.state===mr.HIDDEN)return;let e=i.element,n=Y(Y({},z0),i.config.animation);e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=mr.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=En(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,rE.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(()=>{aE.forEach(e=>{this._triggerElement.addEventListener(e,this,oE)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){i.state===mr.FADING_IN?this._startFadeOutTransition(i):i.state===mr.FADING_OUT&&this._destroyRipple(i)}_startFadeOutTransition(i){let e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=mr.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=mr.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=es(i),n=this._lastTouchStartEvent&&Date.now(){let e=i.state===mr.VISIBLE||i.config.terminateOnPointerUp&&i.state===mr.FADING_IN;!i.config.persistent&&e&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(rE.forEach(e=>t._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&(aE.forEach(e=>i.removeEventListener(e,this,oE)),this._pointerUpEventsRegistered=!1))}};function PK(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 ll=new L("mat-ripple-global-options"),gi=(()=>{class t{_elementRef=d(X);_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(ll,{optional:!0}),r=d(ye);this._globalOptions=o||{},this._rippleRenderer=new cl(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:Y(Y(Y({},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,Y(Y({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,Y(Y({},this.rippleConfig),e))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({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 LK=new L("cdk-dir-doc",{providedIn:"root",factory:AK});function AK(){return d(De)}var RK=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function sE(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?RK.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var vt=(()=>{class t{get value(){return this.valueSignal()}valueSignal=Se("ltr");change=new j;constructor(){let e=d(LK,{optional:!0});if(e){let n=e.body?e.body.dir:null,o=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(sE(n||o||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ha=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})();var he=(()=>{class t{constructor(){d(Rp)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[ha,ha]})}return t})();var zK=["input"],NK=["label"],FK=["*"],VK=new L("mat-checkbox-default-options",{providedIn:"root",factory:lE});function lE(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var Ki=(function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t})(Ki||{}),I_=class{source;checked},cE=lE(),dl=(()=>{class t{_elementRef=d(X);_changeDetectorRef=d(we);_ngZone=d(se);_animationsDisabled=Ue();_options=d(VK,{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=Ki.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){d(ct).load(dn);let e=d(new mn("tabindex"),{optional:!0});this._options=this._options||cE,this.color=this._options.color||cE.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(Ki.Indeterminate):this._transitionCheckState(this.checked?Ki.Checked:Ki.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=Se(!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?Ki.Checked:Ki.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 Ki.Init:if(n===Ki.Checked)return this._animationClasses.uncheckedToChecked;if(n==Ki.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Ki.Unchecked:return n===Ki.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Ki.Checked:return n===Ki.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Ki.Indeterminate:return n===Ki.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&&(me(zK,5),me(NK,5)),n&2){let r;G(r=W())&&(o._inputElement=r.first),G(r=W())&&(o._labelElement=r.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(n,o){n&2&&(At("id",o.id),ne("tabindex",null)("aria-label",null)("aria-labelledby",null),Pt(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:ft(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:fi,useExisting:It(()=>t),multi:!0},{provide:Di,useExisting:t,multi:!0}]),ze],ngContentSelectors:FK,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();ke(),h(0,"div",3),N("click",function(s){return U(r),$(o._preventBubblingFromLabel(s))}),h(1,"div",4,0)(3,"div",5),N("click",function(){return U(r),$(o._onTouchTargetClick())}),_(),h(4,"input",6,1),N("blur",function(){return U(r),$(o._onBlur())})("click",function(){return U(r),$(o._onInputClick())})("change",function(s){return U(r),$(o._onInteractionEvent(s))}),_(),F(6,"div",7),h(7,"div",8),Gt(),h(8,"svg",9),F(9,"path",10),_(),ir(),F(10,"div",11),_(),F(11,"div",12),_(),h(12,"label",13,2),ae(14),_()()}if(n&2){let r=Ft(2);S("labelPosition",o.labelPosition),p(4),oe("mdc-checkbox--selected",o.checked),S("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),S("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),p(),S("for",o.inputId)}},dependencies:[gi,n2],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})(),dE=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[dl,he,he]})}return t})();var ht="primary",Q0=Symbol("RouteTitle"),A_=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 pl(t){return new A_(t)}function vE(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 CE(t){return t.length>0?t[t.length-1]:null}function is(t){return di(t)?t:Ya(t)?Kt(Promise.resolve(t)):re(t)}var jK={exact:ME,subset:wE},xE={exact:HK,subset:UK,ignored:()=>!0};function mE(t,i,e){return jK[e.paths](t.root,i.root,e.matrixParams)&&xE[e.queryParams](t.queryParams,i.queryParams)&&!(e.fragment==="exact"&&t.fragment!==i.fragment)}function HK(t,i){return ga(t,i)}function ME(t,i,e){if(!ul(t.segments,i.segments)||!Gp(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(let n in i.children)if(!t.children[n]||!ME(t.children[n],i.children[n],e))return!1;return!0}function UK(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>yE(t[e],i[e]))}function wE(t,i,e){return DE(t,i,i.segments,e)}function DE(t,i,e,n){if(t.segments.length>e.length){let o=t.segments.slice(0,e.length);return!(!ul(o,e)||i.hasChildren()||!Gp(o,e,n))}else if(t.segments.length===e.length){if(!ul(t.segments,e)||!Gp(t.segments,e,n))return!1;for(let o in i.children)if(!t.children[o]||!wE(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!ul(t.segments,o)||!Gp(t.segments,o,n)||!t.children[ht]?!1:DE(t.children[ht],i,r,n)}}function Gp(t,i,e){return i.every((n,o)=>xE[e](t[o].parameters,n.parameters))}var ba=class{root;queryParams;fragment;_queryParamMap;constructor(i=new Wt([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=pl(this.queryParams),this._queryParamMap}toString(){return WK.serialize(this)}},Wt=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 Wp(this)}},qs=class{path;parameters;_parameterMap;constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap??=pl(this.parameters),this._parameterMap}toString(){return kE(this)}};function $K(t,i){return ul(t,i)&&t.every((e,n)=>ga(e.parameters,i[n].parameters))}function ul(t,i){return t.length!==i.length?!1:t.every((e,n)=>e.path===i[n].path)}function GK(t,i){let e=[];return Object.entries(t.children).forEach(([n,o])=>{n===ht&&(e=e.concat(i(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==ht&&(e=e.concat(i(o,n)))}),e}var fl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:()=>new Ys,providedIn:"root"})}return t})(),Ys=class{parse(i){let e=new N_(i);return new ba(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){let e=`/${N0(i.root,!0)}`,n=QK(i.queryParams),o=typeof i.fragment=="string"?`#${qK(i.fragment)}`:"";return`${e}${n}${o}`}},WK=new Ys;function Wp(t){return t.segments.map(i=>kE(i)).join("/")}function N0(t,i){if(!t.hasChildren())return Wp(t);if(i){let e=t.children[ht]?N0(t.children[ht],!1):"",n=[];return Object.entries(t.children).forEach(([o,r])=>{o!==ht&&n.push(`${o}:${N0(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=GK(t,(n,o)=>o===ht?[N0(t.children[ht],!1)]:[`${o}:${N0(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[ht]!=null?`${Wp(t)}/${e[0]}`:`${Wp(t)}/(${e.join("//")})`}}function SE(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Up(t){return SE(t).replace(/%3B/gi,";")}function qK(t){return encodeURI(t)}function z_(t){return SE(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function qp(t){return decodeURIComponent(t)}function pE(t){return qp(t.replace(/\+/g,"%20"))}function kE(t){return`${z_(t.path)}${YK(t.parameters)}`}function YK(t){return Object.entries(t).map(([i,e])=>`;${z_(i)}=${z_(e)}`).join("")}function QK(t){let i=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(o=>`${Up(e)}=${Up(o)}`).join("&"):`${Up(e)}=${Up(n)}`).filter(e=>e);return i.length?`?${i.join("&")}`:""}var KK=/^[^\/()?;#]+/;function O_(t){let i=t.match(KK);return i?i[0]:""}var XK=/^[^\/()?;=#]+/;function ZK(t){let i=t.match(XK);return i?i[0]:""}var JK=/^[^=?&#]+/;function eX(t){let i=t.match(JK);return i?i[0]:""}var tX=/^[^&#]+/;function nX(t){let i=t.match(tX);return i?i[0]:""}var N_=class{url;remaining;constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Wt([],{}):new Wt([],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[ht]=new Wt(i,e)),n}parseSegment(){let i=O_(this.remaining);if(i===""&&this.peekStartsWith(";"))throw new fe(4009,!1);return this.capture(i),new qs(qp(i),this.parseMatrixParams())}parseMatrixParams(){let i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){let e=ZK(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[qp(e)]=qp(n)}parseQueryParam(i){let e=eX(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let a=nX(this.remaining);a&&(n=a,this.capture(n))}let o=pE(e),r=pE(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 fe(4010,!1);let r;n.indexOf(":")>-1?(r=n.slice(0,n.indexOf(":")),this.capture(r),this.capture(":")):i&&(r=ht);let a=this.parseChildren();e[r??ht]=Object.keys(a).length===1&&a[ht]?a[ht]:new Wt([],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 fe(4011,!1)}};function EE(t){return t.segments.length>0?new Wt([],{[ht]:t}):t}function IE(t){let i={};for(let[n,o]of Object.entries(t.children)){let r=IE(o);if(n===ht&&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 Wt(t.segments,i);return iX(e)}function iX(t){if(t.numberOfChildren===1&&t.children[ht]){let i=t.children[ht];return new Wt(t.segments.concat(i.segments),i.children)}return t}function Qs(t){return t instanceof ba}function OE(t,i,e=null,n=null){let o=TE(t);return PE(o,i,e,n)}function TE(t){let i;function e(r){let a={};for(let c of r.children){let u=e(c);a[c.outlet]=u}let s=new Wt(r.url,a);return r===t&&(i=s),s}let n=e(t.root),o=EE(n);return i??o}function PE(t,i,e,n){let o=t;for(;o.parent;)o=o.parent;if(i.length===0)return T_(o,o,o,e,n);let r=oX(i);if(r.toRoot())return T_(o,o,new Wt([],{}),e,n);let a=rX(r,o,t),s=a.processChildren?V0(a.segmentGroup,a.index,r.commands):AE(a.segmentGroup,a.index,r.commands);return T_(o,a.segmentGroup,s,e,n)}function Yp(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function j0(t){return typeof t=="object"&&t!=null&&t.outlets}function T_(t,i,e,n,o){let r={};n&&Object.entries(n).forEach(([c,u])=>{r[c]=Array.isArray(u)?u.map(f=>`${f}`):`${u}`});let a;t===i?a=e:a=LE(t,i,e);let s=EE(IE(a));return new ba(s,r,o)}function LE(t,i,e){let n={};return Object.entries(t.children).forEach(([o,r])=>{r===i?n[o]=e:n[o]=LE(r,i,e)}),new Wt(t.segments,n)}var Qp=class{isAbsolute;numberOfDoubleDots;commands;constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&Yp(n[0]))throw new fe(4003,!1);let o=n.find(j0);if(o&&o!==CE(n))throw new fe(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function oX(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Qp(!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,u])=>{s[c]=typeof u=="string"?u.split("/"):u}),[...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 Qp(e,i,n)}var s2=class{segmentGroup;processChildren;index;constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}};function rX(t,i,e){if(t.isAbsolute)return new s2(i,!0,0);if(!e)return new s2(i,!1,NaN);if(e.parent===null)return new s2(e,!0,0);let n=Yp(t.commands[0])?0:1,o=e.segments.length-1+n;return aX(e,o,t.numberOfDoubleDots)}function aX(t,i,e){let n=t,o=i,r=e;for(;r>o;){if(r-=o,n=n.parent,!n)throw new fe(4005,!1);o=n.segments.length}return new s2(n,!1,o-r)}function sX(t){return j0(t[0])?t[0].outlets:{[ht]:t}}function AE(t,i,e){if(t??=new Wt([],{}),t.segments.length===0&&t.hasChildren())return V0(t,i,e);let n=cX(t,i,e),o=e.slice(n.commandIndex);if(n.match&&n.pathIndexr!==ht)&&t.children[ht]&&t.numberOfChildren===1&&t.children[ht].segments.length===0){let r=V0(t.children[ht],i,e);return new Wt(t.segments,r.children)}return Object.entries(n).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(o[r]=AE(t.children[r],i,a))}),Object.entries(t.children).forEach(([r,a])=>{n[r]===void 0&&(o[r]=a)}),new Wt(t.segments,o)}}function cX(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(j0(s))break;let c=`${s}`,u=n0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!hE(c,u,a))return r;n+=2}else{if(!hE(c,{},a))return r;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function F_(t,i,e){let n=t.segments.slice(0,i),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(i[e]=F_(new Wt([],{}),0,n))}),i}function fE(t){let i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function hE(t,i,e){return t==e.path&&ga(i,e.parameters)}var c2="imperative",_i=(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})(_i||{}),Uo=class{id;url;constructor(i,e){this.id=i,this.url=e}},Ks=class extends Uo{type=_i.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}')`}},$o=class extends Uo{urlAfterRedirects;type=_i.NavigationEnd;constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},mo=(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})(mo||{}),d2=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(d2||{}),_a=class extends Uo{reason;code;type=_i.NavigationCancel;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},va=class extends Uo{reason;code;type=_i.NavigationSkipped;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}},u2=class extends Uo{error;target;type=_i.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})`}},H0=class extends Uo{urlAfterRedirects;state;type=_i.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})`}},Kp=class extends Uo{urlAfterRedirects;state;type=_i.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})`}},Xp=class extends Uo{urlAfterRedirects;state;shouldActivate;type=_i.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})`}},Zp=class extends Uo{urlAfterRedirects;state;type=_i.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})`}},Jp=class extends Uo{urlAfterRedirects;state;type=_i.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})`}},ef=class{route;type=_i.RouteConfigLoadStart;constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},tf=class{route;type=_i.RouteConfigLoadEnd;constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},nf=class{snapshot;type=_i.ChildActivationStart;constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},of=class{snapshot;type=_i.ChildActivationEnd;constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},rf=class{snapshot;type=_i.ActivationStart;constructor(i){this.snapshot=i}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},af=class{snapshot;type=_i.ActivationEnd;constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},m2=class{routerEvent;position;anchor;type=_i.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}')`}},U0=class{},p2=class{url;navigationBehaviorOptions;constructor(i,e){this.url=i,this.navigationBehaviorOptions=e}};function dX(t){return!(t instanceof U0)&&!(t instanceof p2)}function uX(t,i){return t.providers&&!t._injector&&(t._injector=D1(t.providers,i,`Route: ${t.path}`)),t._injector??i}function Hr(t){return t.outlet||ht}function mX(t,i){let e=t.filter(n=>Hr(n)===i);return e.push(...t.filter(n=>Hr(n)!==i)),e}function g2(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 sf=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return g2(this.route?.snapshot)??this.rootInjector}constructor(i){this.rootInjector=i,this.children=new hl(this.rootInjector)}},hl=(()=>{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 sf(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(be(Xt))};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cf=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=V_(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){let e=V_(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){let e=B_(i,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return B_(i,this._root).map(e=>e.value)}};function V_(t,i){if(t===i.value)return i;for(let e of i.children){let n=V_(t,e);if(n)return n}return null}function B_(t,i){if(t===i.value)return[i];for(let e of i.children){let n=B_(t,e);if(n.length)return n.unshift(i),n}return[]}var Ho=class{value;children;constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}};function a2(t){let i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}var $0=class extends cf{snapshot;constructor(i,e){super(i),this.snapshot=e,Y_(this,i)}toString(){return this.snapshot.toString()}};function RE(t){let i=pX(t),e=new dt([new qs("",{})]),n=new dt({}),o=new dt({}),r=new dt({}),a=new dt(""),s=new po(e,n,r,a,o,ht,t,i.root);return s.snapshot=i.root,new $0(new Ho(s,[]),i)}function pX(t){let i={},e={},n={},r=new ml([],i,n,"",e,ht,t,null,{});return new G0("",new Ho(r,[]))}var po=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(ue(u=>u[Q0]))??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(ue(i=>pl(i))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ue(i=>pl(i))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function lf(t,i,e="emptyOnly"){let n,{routeConfig:o}=t;return i!==null&&(e==="always"||o?.path===""||!i.component&&!i.routeConfig?.loadComponent)?n={params:Y(Y({},i.params),t.params),data:Y(Y({},i.data),t.data),resolve:Y(Y(Y(Y({},t.data),i.data),o?.data),t._resolvedData)}:n={params:Y({},t.params),data:Y({},t.data),resolve:Y(Y({},t.data),t._resolvedData??{})},o&&NE(o)&&(n.resolve[Q0]=o.title),n}var ml=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Q0]}constructor(i,e,n,o,r,a,s,c,u){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=u}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??=pl(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=pl(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}')`}},G0=class extends cf{url;constructor(i,e){super(e),this.url=i,Y_(this,e)}toString(){return zE(this._root)}};function Y_(t,i){i.value._routerState=t,i.children.forEach(e=>Y_(t,e))}function zE(t){let i=t.children.length>0?` { ${t.children.map(zE).join(", ")} } `:"";return`${t.value}${i}`}function P_(t){if(t.snapshot){let i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,ga(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),ga(i.params,e.params)||t.paramsSubject.next(e.params),BK(i.url,e.url)||t.urlSubject.next(e.url),ga(i.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function j_(t,i){let e=ga(t.params,i.params)&&$K(t.url,i.url),n=!t.parent!=!i.parent;return e&&!n&&(!t.parent||j_(t.parent,i.parent))}function NE(t){return typeof t.title=="string"||t.title===null}var FE=new L(""),Q_=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=ht;activateEvents=new j;deactivateEvents=new j;attachEvents=new j;detachEvents=new j;routerOutletData=P1();parentContexts=d(hl);location=d(pt);changeDetector=d(we);inputBinder=d(K0,{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 fe(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new fe(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new fe(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 fe(4013,!1);this._activatedRoute=e;let o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new H_(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=R({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[ze]})}return t})(),H_=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===po?this.route:i===hl?this.childContexts:i===FE?this.outletData:this.parent.get(i,e)}},K0=new L(""),K_=(()=>{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=Kn([n.queryParams,n.params,n.data]).pipe(rt(([r,a,s],c)=>(s=Y(Y(Y({},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=gD(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=z({token:t,factory:t.\u0275fac})}return t})(),X_=(()=>{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:[Q_],encapsulation:2})}return t})();function Z_(t){let i=t.children&&t.children.map(Z_),e=i?Ne(Y({},t),{children:i}):Y({},t);return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==ht&&(e.component=X_),e}function fX(t,i,e){let n=W0(t,i._root,e?e._root:void 0);return new $0(n,i)}function W0(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=i.value;let o=hX(t,i,e);return new Ho(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=>W0(t,s)),a}}let n=gX(i.value),o=i.children.map(r=>W0(t,r));return new Ho(n,o)}}function hX(t,i,e){return i.children.map(n=>{for(let o of e.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return W0(t,n,o);return W0(t,n)})}function gX(t){return new po(new dt(t.url),new dt(t.params),new dt(t.queryParams),new dt(t.fragment),new dt(t.data),t.outlet,t.component,t)}var f2=class{redirectTo;navigationBehaviorOptions;constructor(i,e){this.redirectTo=i,this.navigationBehaviorOptions=e}},VE="ngNavigationCancelingError";function df(t,i){let{redirectTo:e,navigationBehaviorOptions:n}=Qs(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,o=BE(!1,mo.Redirect);return o.url=e,o.navigationBehaviorOptions=n,o}function BE(t,i){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[VE]=!0,e.cancellationCode=i,e}function _X(t){return jE(t)&&Qs(t.url)}function jE(t){return!!t&&t[VE]}var bX=(t,i,e,n)=>ue(o=>(new U_(i,o.targetRouterState,o.currentRouterState,e,n).activate(t),o)),U_=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),P_(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){let o=a2(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=a2(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=a2(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=a2(e);i.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],n),this.forwardEvent(new af(r.value.snapshot))}),i.children.length&&this.forwardEvent(new of(i.value.snapshot))}activateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(P_(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),P_(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)}},uf=class{path;route;constructor(i){this.path=i,this.route=this.path[this.path.length-1]}},l2=class{component;route;constructor(i,e){this.component=i,this.route=e}};function vX(t,i,e){let n=t._root,o=i?i._root:null;return F0(n,o,e,[n.value])}function yX(t){let i=t.routeConfig?t.routeConfig.canActivateChild:null;return!i||i.length===0?null:{node:t,guards:i}}function _2(t,i){let e=Symbol(),n=i.get(t,e);return n===e?typeof t=="function"&&!bg(t)?t:i.get(t):n}function F0(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=a2(i);return t.children.forEach(a=>{CX(a,r[a.value.outlet],e,n.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>B0(s,e.getContext(a),o)),o}function CX(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=xX(a,r,r.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new uf(n)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?F0(t,i,s?s.children:null,n,o):F0(t,i,e,n,o),c&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new l2(s.outlet.component,a))}else a&&B0(i,s,o),o.canActivateChecks.push(new uf(n)),r.component?F0(t,null,s?s.children:null,n,o):F0(t,null,e,n,o);return o}function xX(t,i,e){if(typeof e=="function")return e(t,i);switch(e){case"pathParamsChange":return!ul(t.url,i.url);case"pathParamsOrQueryParamsChange":return!ul(t.url,i.url)||!ga(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!j_(t,i)||!ga(t.queryParams,i.queryParams);case"paramsChange":default:return!j_(t,i)}}function B0(t,i,e){let n=a2(t),o=t.value;Object.entries(n).forEach(([r,a])=>{o.component?i?B0(a,i.children.getContext(r),e):B0(a,null,e):B0(a,i,e)}),o.component?i&&i.outlet&&i.outlet.isActivated?e.canDeactivateChecks.push(new l2(i.outlet.component,o)):e.canDeactivateChecks.push(new l2(null,o)):e.canDeactivateChecks.push(new l2(null,o))}function X0(t){return typeof t=="function"}function MX(t){return typeof t=="boolean"}function wX(t){return t&&X0(t.canLoad)}function DX(t){return t&&X0(t.canActivate)}function SX(t){return t&&X0(t.canActivateChild)}function kX(t){return t&&X0(t.canDeactivate)}function EX(t){return t&&X0(t.canMatch)}function HE(t){return t instanceof xr||t?.name==="EmptyError"}var $p=Symbol("INITIAL_VALUE");function h2(){return rt(t=>Kn(t.map(i=>i.pipe(Ve(1),Qe($p)))).pipe(ue(i=>{for(let e of i)if(e!==!0){if(e===$p)return $p;if(e===!1||IX(e))return e}return!0}),Oe(i=>i!==$p),Ve(1)))}function IX(t){return Qs(t)||t instanceof f2}function OX(t,i){return rn(e=>{let{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:a}}=e;return a.length===0&&r.length===0?re(Ne(Y({},e),{guardsResult:!0})):TX(a,n,o,t).pipe(rn(s=>s&&MX(s)?PX(n,r,t,i):re(s)),ue(s=>Ne(Y({},e),{guardsResult:s})))})}function TX(t,i,e,n){return Kt(t).pipe(rn(o=>NX(o.component,o.route,e,i,n)),xo(o=>o!==!0,!0))}function PX(t,i,e,n){return Kt(i).pipe(to(o=>Vi(AX(o.route.parent,n),LX(o.route,n),zX(t,o.path,e),RX(t,o.route,e))),xo(o=>o!==!0,!0))}function LX(t,i){return t!==null&&i&&i(new rf(t)),re(!0)}function AX(t,i){return t!==null&&i&&i(new nf(t)),re(!0)}function RX(t,i,e){let n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||n.length===0)return re(!0);let o=n.map(r=>Bi(()=>{let a=g2(i)??e,s=_2(r,a),c=DX(s)?s.canActivate(i,t):Ci(a,()=>s(i,t));return is(c).pipe(xo())}));return re(o).pipe(h2())}function zX(t,i,e){let n=i[i.length-1],r=i.slice(0,i.length-1).reverse().map(a=>yX(a)).filter(a=>a!==null).map(a=>Bi(()=>{let s=a.guards.map(c=>{let u=g2(a.node)??e,f=_2(c,u),b=SX(f)?f.canActivateChild(n,t):Ci(u,()=>f(n,t));return is(b).pipe(xo())});return re(s).pipe(h2())}));return re(r).pipe(h2())}function NX(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=g2(i)??o,u=_2(s,c),f=kX(u)?u.canDeactivate(t,i,e,n):Ci(c,()=>u(t,i,e,n));return is(f).pipe(xo())});return re(a).pipe(h2())}function FX(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=_2(a,t),c=wX(s)?s.canLoad(i,e):Ci(t,()=>s(i,e));return is(c)});return re(r).pipe(h2(),UE(n))}function UE(t){return W6(Dt(i=>{if(typeof i!="boolean")throw df(t,i)}),ue(i=>i===!0))}function VX(t,i,e,n){let o=i.canMatch;if(!o||o.length===0)return re(!0);let r=o.map(a=>{let s=_2(a,t),c=EX(s)?s.canMatch(i,e):Ci(t,()=>s(i,e));return is(c)});return re(r).pipe(h2(),UE(n))}var q0=class{segmentGroup;constructor(i){this.segmentGroup=i||null}},Y0=class extends Error{urlTree;constructor(i){super(),this.urlTree=i}};function r2(t){return Co(new q0(t))}function BX(t){return Co(new fe(4e3,!1))}function jX(t){return Co(BE(!1,mo.GuardRejected))}var $_=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[ht])return BX(`${i.redirectTo}`);o=o.children[ht]}}applyRedirectCommands(i,e,n,o,r){return HX(e,o,r).pipe(ue(a=>{if(a instanceof ba)throw new Y0(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),i,n);if(a[0]==="/")throw new Y0(s);return s}))}applyRedirectCreateUrlTree(i,e,n,o){let r=this.createSegmentGroup(i,e.root,n,o);return new ba(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 Wt(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 fe(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 HX(t,i,e){if(typeof t=="string")return re(t);let n=t,{queryParams:o,fragment:r,routeConfig:a,url:s,outlet:c,params:u,data:f,title:b}=i;return is(Ci(e,()=>n({params:u,data:f,queryParams:o,fragment:r,routeConfig:a,url:s,outlet:c,title:b})))}var G_={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function UX(t,i,e,n,o){let r=$E(t,i,e);return r.matched?(n=uX(i,n),VX(n,i,e,o).pipe(ue(a=>a===!0?r:Y({},G_)))):re(r)}function $E(t,i,e){if(i.path==="**")return $X(e);if(i.path==="")return i.pathMatch==="full"&&(t.hasChildren()||e.length>0)?Y({},G_):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let o=(i.matcher||vE)(e,t,i);if(!o)return Y({},G_);let r={};Object.entries(o.posParams??{}).forEach(([s,c])=>{r[s]=c.path});let a=o.consumed.length>0?Y(Y({},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 $X(t){return{matched:!0,parameters:t.length>0?CE(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function gE(t,i,e,n){return e.length>0&&qX(t,e,n)?{segmentGroup:new Wt(i,WX(n,new Wt(e,t.children))),slicedSegments:[]}:e.length===0&&YX(t,e,n)?{segmentGroup:new Wt(t.segments,GX(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new Wt(t.segments,t.children),slicedSegments:e}}function GX(t,i,e,n){let o={};for(let r of e)if(pf(t,i,r)&&!n[Hr(r)]){let a=new Wt([],{});o[Hr(r)]=a}return Y(Y({},n),o)}function WX(t,i){let e={};e[ht]=i;for(let n of t)if(n.path===""&&Hr(n)!==ht){let o=new Wt([],{});e[Hr(n)]=o}return e}function qX(t,i,e){return e.some(n=>pf(t,i,n)&&Hr(n)!==ht)}function YX(t,i,e){return e.some(n=>pf(t,i,n))}function pf(t,i,e){return(t.hasChildren()||i.length>0)&&e.pathMatch==="full"?!1:e.path===""}function QX(t,i,e){return i.length===0&&!t.children[e]}var W_=class{};function KX(t,i,e,n,o,r,a="emptyOnly"){return new q_(t,i,e,n,o,a,r).recognize()}var XX=31,q_=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 $_(this.urlSerializer,this.urlTree)}noMatchError(i){return new fe(4002,`'${i.segmentGroup}'`)}recognize(){let i=gE(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(i).pipe(ue(({children:e,rootSnapshot:n})=>{let o=new Ho(n,e),r=new G0("",o),a=OE(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 ml([],Object.freeze({}),Object.freeze(Y({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),ht,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,i,ht,e).pipe(ue(n=>({children:n,rootSnapshot:e})),Xn(n=>{if(n instanceof Y0)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof q0?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(ue(a=>a instanceof Ho?[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 Kt(r).pipe(to(a=>{let s=n.children[a],c=mX(e,a);return this.processSegmentGroup(i,c,s,a,o)}),ig((a,s)=>(a.push(...s),a)),Cs(null),ng(),rn(a=>{if(a===null)return r2(n);let s=GE(a);return ZX(s),re(s)}))}processSegment(i,e,n,o,r,a,s){return Kt(e).pipe(to(c=>this.processSegmentAgainstRoute(c._injector??i,e,c,n,o,r,a,s).pipe(Xn(u=>{if(u instanceof q0)return re(null);throw u}))),xo(c=>!!c),Xn(c=>{if(HE(c))return QX(n,o,r)?re(new W_):r2(n);throw c}))}processSegmentAgainstRoute(i,e,n,o,r,a,s,c){return Hr(n)!==a&&(a===ht||!pf(o,r,n))?r2(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):r2(o)}expandSegmentAgainstRouteUsingRedirect(i,e,n,o,r,a,s){let{matched:c,parameters:u,consumedSegments:f,positionalParamSegments:b,remainingSegments:y}=$E(e,o,r);if(!c)return r2(e);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>XX&&(this.allowRedirects=!1));let x=new ml(r,u,Object.freeze(Y({},this.urlTree.queryParams)),this.urlTree.fragment,_E(o),Hr(o),o.component??o._loadedComponent??null,o,bE(o)),D=lf(x,s,this.paramsInheritanceStrategy);return x.params=Object.freeze(D.params),x.data=Object.freeze(D.data),this.applyRedirects.applyRedirectCommands(f,o.redirectTo,b,x,i).pipe(rt(Q=>this.applyRedirects.lineralizeSegments(o,Q)),rn(Q=>this.processSegment(i,n,e,Q.concat(y),a,!1,s)))}matchSegmentAgainstRoute(i,e,n,o,r,a){let s=UX(e,n,o,i,this.urlSerializer);return n.path==="**"&&(e.children={}),s.pipe(rt(c=>c.matched?(i=n._injector??i,this.getChildConfig(i,n,o).pipe(rt(({routes:u})=>{let f=n._loadedInjector??i,{parameters:b,consumedSegments:y,remainingSegments:x}=c,D=new ml(y,b,Object.freeze(Y({},this.urlTree.queryParams)),this.urlTree.fragment,_E(n),Hr(n),n.component??n._loadedComponent??null,n,bE(n)),q=lf(D,a,this.paramsInheritanceStrategy);D.params=Object.freeze(q.params),D.data=Object.freeze(q.data);let{segmentGroup:Q,slicedSegments:K}=gE(e,y,x,u);if(K.length===0&&Q.hasChildren())return this.processChildren(f,u,Q,D).pipe(ue(ut=>new Ho(D,ut)));if(u.length===0&&K.length===0)return re(new Ho(D,[]));let pe=Hr(n)===r;return this.processSegment(f,u,Q,K,pe?ht:r,!0,D).pipe(ue(ut=>new Ho(D,ut instanceof Ho?[ut]:[])))}))):r2(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}):FX(i,e,n,this.urlSerializer).pipe(rn(o=>o?this.configLoader.loadChildren(i,e).pipe(Dt(r=>{e._loadedRoutes=r.routes,e._loadedInjector=r.injector})):jX(e))):re({routes:[],injector:i})}};function ZX(t){t.sort((i,e)=>i.value.outlet===ht?-1:e.value.outlet===ht?1:i.value.outlet.localeCompare(e.value.outlet))}function JX(t){let i=t.value.routeConfig;return i&&i.path===""}function GE(t){let i=[],e=new Set;for(let n of t){if(!JX(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=GE(n.children);i.push(new Ho(n.value,o))}return i.filter(n=>!e.has(n))}function _E(t){return t.data||{}}function bE(t){return t.resolve||{}}function eZ(t,i,e,n,o,r){return rn(a=>KX(t,i,e,n,a.extractedUrl,o,r).pipe(ue(({state:s,tree:c})=>Ne(Y({},a),{targetSnapshot:s,urlAfterRedirects:c}))))}function tZ(t,i){return rn(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 u of WE(c))a.add(u);let s=0;return Kt(a).pipe(to(c=>r.has(c)?nZ(c,n,t,i):(c.data=lf(c,c.parent,t).resolve,re(void 0))),Dt(()=>s++),Jl(1),rn(c=>s===a.size?re(e):Sn))})}function WE(t){let i=t.children.map(e=>WE(e)).flat();return[t,...i]}function nZ(t,i,e,n){let o=t.routeConfig,r=t._resolve;return o?.title!==void 0&&!NE(o)&&(r[Q0]=o.title),Bi(()=>(t.data=lf(t,t.parent,e).resolve,iZ(r,t,i,n).pipe(ue(a=>(t._resolvedData=a,t.data=Y(Y({},t.data),a),null)))))}function iZ(t,i,e,n){let o=R_(t);if(o.length===0)return re({});let r={};return Kt(o).pipe(rn(a=>oZ(t[a],i,e,n).pipe(xo(),Dt(s=>{if(s instanceof f2)throw df(new Ys,s);r[a]=s}))),Jl(1),ue(()=>r),Xn(a=>HE(a)?Sn:Co(a)))}function oZ(t,i,e,n){let o=g2(i)??n,r=_2(t,o),a=r.resolve?r.resolve(i,e):Ci(o,()=>r(i,e));return is(a)}function L_(t){return rt(i=>{let e=t(i);return e?Kt(e).pipe(ue(()=>i)):re(i)})}var J_=(()=>{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===ht);return n}getResolvedTitleForRoute(e){return e.data[Q0]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:()=>d(qE),providedIn:"root"})}return t})(),qE=(()=>{class t extends J_{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)(be(yS))};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Xs=new L("",{providedIn:"root",factory:()=>({})}),b2=new L(""),ff=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d(Y5);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=is(Ci(e,()=>n.loadComponent())).pipe(ue(QE),rt(KE),Dt(a=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=a}),Mr(()=>{this.componentLoaders.delete(n)})),r=new ys(o,()=>new B).pipe(Ul());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=YE(n,this.compiler,e,this.onLoadEndListener).pipe(Mr(()=>{this.childrenLoaders.delete(n)})),a=new ys(r,()=>new B).pipe(Ul());return this.childrenLoaders.set(n,a),a}static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function YE(t,i,e,n){return is(Ci(e,()=>t.loadChildren())).pipe(ue(QE),rt(KE),rn(o=>o instanceof am||Array.isArray(o)?re(o):Kt(i.compileModuleAsync(o))),ue(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(b2,[],{optional:!0,self:!0}).flat()),{routes:a.map(Z_),injector:r}}))}function rZ(t){return t&&typeof t=="object"&&"default"in t}function QE(t){return rZ(t)?t.default:t}function KE(t){return re(t)}var hf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:()=>d(aZ),providedIn:"root"})}return t})(),aZ=(()=>{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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),e9=new L(""),t9=new L("");function XE(t,i,e){let n=t.get(t9),o=t.get(De);if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let r,a=new Promise(u=>{r=u}),s=o.startViewTransition(()=>(r(),sZ(t)));s.ready.catch(u=>{});let{onViewTransitionCreated:c}=n;return c&&Ci(t,()=>c({transition:s,from:i,to:e})),a}function sZ(t){return new Promise(i=>{xt({read:()=>setTimeout(i)},{injector:t})})}var n9=new L(""),gf=(()=>{class t{currentNavigation=Se(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new B;transitionAbortWithErrorSubject=new B;configLoader=d(ff);environmentInjector=d(Xt);destroyRef=d($i);urlSerializer=d(fl);rootContexts=d(hl);location=d(ar);inputBindingEnabled=d(K0,{optional:!0})!==null;titleStrategy=d(J_);options=d(Xs,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(hf);createViewTransition=d(e9,{optional:!0});navigationErrorHandler=d(n9,{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 ef(o)),n=o=>this.events.next(new tf(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;jn(()=>{this.transitions?.next(Ne(Y({},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 dt(null),this.transitions.pipe(Oe(n=>n!==null),rt(n=>{let o=!1;return re(n).pipe(rt(r=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",mo.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(Y({},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 va(r.id,this.urlSerializer.serialize(r.rawUrl),"",d2.IgnoredSameUrlNavigation)),r.resolve(!1),Sn;if(this.urlHandlingStrategy.shouldProcessUrl(r.rawUrl))return re(r).pipe(rt(c=>(this.events.next(new Ks(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),c.id!==this.navigationId?Sn:Promise.resolve(c))),eZ(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Dt(c=>{n.targetSnapshot=c.targetSnapshot,n.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation.update(f=>(f.finalUrl=c.urlAfterRedirects,f));let u=new H0(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(r.currentRawUrl)){let{id:c,extractedUrl:u,source:f,restoredState:b,extras:y}=r,x=new Ks(c,this.urlSerializer.serialize(u),f,b);this.events.next(x);let D=RE(this.rootComponentType).snapshot;return this.currentTransition=n=Ne(Y({},r),{targetSnapshot:D,urlAfterRedirects:u,extras:Ne(Y({},y),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(q=>(q.finalUrl=u,q)),re(n)}else return this.events.next(new va(r.id,this.urlSerializer.serialize(r.extractedUrl),"",d2.IgnoredByUrlHandlingStrategy)),r.resolve(!1),Sn}),Dt(r=>{let a=new Kp(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects),r.targetSnapshot);this.events.next(a)}),ue(r=>(this.currentTransition=n=Ne(Y({},r),{guards:vX(r.targetSnapshot,r.currentSnapshot,this.rootContexts)}),n)),OX(this.environmentInjector,r=>this.events.next(r)),Dt(r=>{if(n.guardsResult=r.guardsResult,r.guardsResult&&typeof r.guardsResult!="boolean")throw df(this.urlSerializer,r.guardsResult);let a=new Xp(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects),r.targetSnapshot,!!r.guardsResult);this.events.next(a)}),Oe(r=>r.guardsResult?!0:(this.cancelNavigationTransition(r,"",mo.GuardRejected),!1)),L_(r=>{if(r.guards.canActivateChecks.length!==0)return re(r).pipe(Dt(a=>{let s=new Zp(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),rt(a=>{let s=!1;return re(a).pipe(tZ(this.paramsInheritanceStrategy,this.environmentInjector),Dt({next:()=>s=!0,complete:()=>{s||this.cancelNavigationTransition(a,"",mo.NoDataFromResolver)}}))}),Dt(a=>{let s=new Jp(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}))}),L_(r=>{let a=s=>{let c=[];if(s.routeConfig?.loadComponent){let u=g2(s)??this.environmentInjector;c.push(this.configLoader.loadComponent(u,s.routeConfig).pipe(Dt(f=>{s.component=f}),ue(()=>{})))}for(let u of s.children)c.push(...a(u));return c};return Kn(a(r.targetSnapshot.root)).pipe(Cs(null),Ve(1))}),L_(()=>this.afterPreactivation()),rt(()=>{let{currentSnapshot:r,targetSnapshot:a}=n,s=this.createViewTransition?.(this.environmentInjector,r.root,a.root);return s?Kt(s).pipe(ue(()=>n)):re(n)}),ue(r=>{let a=fX(e.routeReuseStrategy,r.targetSnapshot,r.currentRouterState);return this.currentTransition=n=Ne(Y({},r),{targetRouterState:a}),this.currentNavigation.update(s=>(s.targetRouterState=a,s)),n}),Dt(()=>{this.events.next(new U0)}),bX(this.rootContexts,e.routeReuseStrategy,r=>this.events.next(r),this.inputBindingEnabled),Ve(1),xe(new Fe(r=>{let a=n.abortController.signal,s=()=>r.next();return a.addEventListener("abort",s),()=>a.removeEventListener("abort",s)}).pipe(Oe(()=>!o&&!n.targetRouterState),Dt(()=>{this.cancelNavigationTransition(n,n.abortController.signal.reason+"",mo.Aborted)}))),Dt({next:r=>{o=!0,this.lastSuccessfulNavigation=jn(this.currentNavigation),this.events.next(new $o(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects))),this.titleStrategy?.updateTitle(r.targetRouterState.snapshot),r.resolve(!0)},complete:()=>{o=!0}}),xe(this.transitionAbortWithErrorSubject.pipe(Dt(r=>{throw r}))),Mr(()=>{o||this.cancelNavigationTransition(n,"",mo.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Xn(r=>{if(this.destroyed)return n.resolve(!1),Sn;if(o=!0,jE(r))this.events.next(new _a(n.id,this.urlSerializer.serialize(n.extractedUrl),r.message,r.cancellationCode)),_X(r)?this.events.next(new p2(r.url,r.navigationBehaviorOptions)):n.resolve(!1);else{let a=new u2(n.id,this.urlSerializer.serialize(n.extractedUrl),r,n.targetSnapshot??void 0);try{let s=Ci(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(s instanceof f2){let{message:c,cancellationCode:u}=df(this.urlSerializer,s);this.events.next(new _a(n.id,this.urlSerializer.serialize(n.extractedUrl),c,u)),this.events.next(new p2(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 _a(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=jn(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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function cZ(t){return t!==c2}var ZE=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:()=>d(lZ),providedIn:"root"})}return t})(),mf=class{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}},lZ=(()=>{class t extends mf{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),JE=(()=>{class t{urlSerializer=d(fl);options=d(Xs,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=d(ar);urlHandlingStrategy=d(hf);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new ba;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 ba?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=RE(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=z({token:t,factory:()=>d(dZ),providedIn:"root"})}return t})(),dZ=(()=>{class t extends JE{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 Ks?this.updateStateMemento():e instanceof va?this.commitTransition(n):e instanceof H0?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof U0?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof _a&&e.code!==mo.SupersededByNewNavigation&&e.code!==mo.Redirect?this.restoreHistory(n):e instanceof u2?this.restoreHistory(n,!0):e instanceof $o&&(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=Y(Y({},a),this.generateNgRouterState(o,s));this.location.replaceState(e,"",c)}else{let s=Y(Y({},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=Te(t)))(o||t)}})();static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _f(t,i){t.events.pipe(Oe(e=>e instanceof $o||e instanceof _a||e instanceof u2||e instanceof va),ue(e=>e instanceof $o||e instanceof va?0:(e instanceof _a?e.code===mo.Redirect||e.code===mo.SupersededByNewNavigation:!1)?2:1),Oe(e=>e!==2),Ve(1)).subscribe(()=>{i()})}var uZ={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},mZ={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},So=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(sm);stateManager=d(JE);options=d(Xs,{optional:!0})||{};pendingTasks=d(sa);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(gf);urlSerializer=d(fl);location=d(ar);urlHandlingStrategy=d(hf);injector=d(Xt);_events=new B;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(ZE);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(b2,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(K0,{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 Ee;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,r=jn(this.navigationTransitions.currentNavigation);if(o!==null&&r!==null){if(this.stateManager.handleRouterEvent(n,r),n instanceof _a&&n.code!==mo.Redirect&&n.code!==mo.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof $o)this.navigated=!0;else if(n instanceof p2){let a=n.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),c=Y({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||cZ(o.source)},a);this.scheduleNavigation(s,c2,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}dX(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),c2,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=Y({},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(oo)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return jn(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Z_),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,u=c?this.currentUrlTree.fragment:a,f=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":f=Y(Y({},this.currentUrlTree.queryParams),r);break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=r||null}f!==null&&(f=this.removeEmptyProps(f));let b;try{let y=o?o.snapshot:this.routerState.snapshot.root;b=TE(y)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),b=this.currentUrlTree.root}return PE(b,e,f,u??null)}navigateByUrl(e,n={skipLocationChange:!1}){let o=Qs(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,c2,null,n)}navigate(e,n={skipLocationChange:!1}){return pZ(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(Xo(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,n){let o;if(n===!0?o=Y({},uZ):n===!1?o=Y({},mZ):o=n,Qs(e))return mE(this.currentUrlTree,e,o);let r=this.parseUrl(e);return mE(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,u;a?(s=a.resolve,c=a.reject,u=a.promise):u=new Promise((b,y)=>{s=b,c=y});let f=this.pendingTasks.add();return _f(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:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(b=>Promise.reject(b))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function pZ(t){for(let i=0;i{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=Se(null);get href(){return jn(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new B;applicationErrorHandler=d(oo);options=d(Xs,{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 mn("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 $o&&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)):(Qs(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(u=>{this.applicationErrorHandler(u)}),!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:Qs(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)(Me(So),Me(po),zd("tabindex"),Me(Je),Me(X),Me(Ar))};static \u0275dir=R({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(),m5)("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:[ze]})}return t})(),fZ=(()=>{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 $o&&this.update()})}ngAfterContentInit(){re(this.links.changes,re(null)).pipe(Jr()).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=Kt(e).pipe(Jr()).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=hZ(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)(Me(So),Me(X),Me(Je),Me(we),Me(v2,8))};static \u0275dir=R({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,o,r){if(n&1&&Ie(r,v2,5),n&2){let a;G(a=W())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[ze]})}return t})();function hZ(t){return!!t.paths}var Z0=class{};var eI=(()=>{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(Oe(e=>e instanceof $o),to(()=>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=D1(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 Kt(o).pipe(Jr())}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(rn(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 Kt([r,a]).pipe(Jr())}else return r})}static \u0275fac=function(n){return new(n||t)(be(So),be(Xt),be(Z0),be(ff))};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),tI=new L(""),gZ=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=c2;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 Ks?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof $o?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof va&&e.code===d2.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 m2))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(()=>li(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new m2(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){Yc()};static \u0275prov=z({token:t,factory:t.\u0275fac})}return t})();function _Z(t){return t.routerState.root}function J0(t,i){return{\u0275kind:t,\u0275providers:i}}function bZ(){let t=d(ye);return i=>{let e=t.get(pi);if(i!==e.components[0])return;let n=t.get(So),o=t.get(nI);t.get(o9)===1&&n.initialNavigation(),t.get(rI,null,{optional:!0})?.setUpPreloading(),t.get(tI,null,{optional:!0})?.init(),n.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var nI=new L("",{factory:()=>new B}),o9=new L("",{providedIn:"root",factory:()=>1});function iI(){let t=[{provide:W4,useValue:!0},{provide:o9,useValue:0},dm(()=>{let i=d(ye);return i.get(u7,Promise.resolve()).then(()=>new Promise(n=>{let o=i.get(So),r=i.get(nI);_f(o,()=>{n(!0)}),i.get(gf).afterPreactivation=()=>(n(!0),r.closed?re(void 0):r),o.initialNavigation()}))})];return J0(2,t)}function oI(){let t=[dm(()=>{d(So).setUpLocationChangeListener()}),{provide:o9,useValue:2}];return J0(3,t)}var rI=new L("");function aI(t){return J0(0,[{provide:rI,useExisting:eI},{provide:Z0,useExisting:t}])}function sI(){return J0(8,[K_,{provide:K0,useExisting:K_}])}function cI(t){ma("NgRouterViewTransitions");let i=[{provide:e9,useValue:XE},{provide:t9,useValue:Y({skipNextTransition:!!t?.skipInitialTransition},t)}];return J0(9,i)}var lI=[ar,{provide:fl,useClass:Ys},So,hl,{provide:po,useFactory:_Z,deps:[So]},ff,[]],vZ=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[lI,[],{provide:b2,multi:!0,useValue:e},[],n?.errorHandler?{provide:n9,useValue:n.errorHandler}:[],{provide:Xs,useValue:n||{}},n?.useHash?CZ():xZ(),yZ(),n?.preloadingStrategy?aI(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?MZ(n):[],n?.bindToComponentInputs?sI().\u0275providers:[],n?.enableViewTransitions?cI().\u0275providers:[],wZ()]}}static forChild(e){return{ngModule:t,providers:[{provide:b2,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})();function yZ(){return{provide:tI,useFactory:()=>{let t=d(ZD),i=d(se),e=d(Xs),n=d(gf),o=d(fl);return e.scrollOffset&&t.setOffset(e.scrollOffset),new gZ(o,n,t,i,e)}}}function CZ(){return{provide:Ar,useClass:C7}}function xZ(){return{provide:Ar,useClass:Em}}function MZ(t){return[t.initialNavigation==="disabled"?oI().\u0275providers:[],t.initialNavigation==="enabledBlocking"?iI().\u0275providers:[]]}var i9=new L("");function wZ(){return[{provide:i9,useFactory:bZ},{provide:um,multi:!0,useExisting:i9}]}var SZ=["*"],kZ=[[["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",""]],"*"],EZ=[`mat-card-title, mat-card-subtitle, + `)}`:"",this.name="UnsubscriptionError",this.errors=e});function Sc(t,i){if(t){let e=t.indexOf(i);0<=e&&t.splice(e,1)}}var Ee=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(Ke(n))try{n()}catch(r){i=r instanceof C3?r.errors:[r]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let r of o)try{Ny(r)}catch(a){i=i??[],a instanceof C3?i=[...i,...a.errors]:i.push(a)}}if(i)throw new C3(i)}}add(i){var e;if(i&&i!==this)if(this.closed)Ny(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)&&Sc(e,i)}remove(i){let{_finalizers:e}=this;e&&Sc(e,i),i instanceof t&&i._removeParent(this)}};Ee.EMPTY=(()=>{let t=new Ee;return t.closed=!0,t})();var U6=Ee.EMPTY;function x3(t){return t instanceof Ee||t&&"closed"in t&&Ke(t.remove)&&Ke(t.add)&&Ke(t.unsubscribe)}function Ny(t){Ke(t)?t():t.unsubscribe()}var xr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var $l={setTimeout(t,i,...e){let{delegate:n}=$l;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){let{delegate:i}=$l;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function M3(t){$l.setTimeout(()=>{let{onUnhandledError:i}=xr;if(i)i(t);else throw t})}function kc(){}var Fy=$6("C",void 0,void 0);function Vy(t){return $6("E",void 0,t)}function By(t){return $6("N",t,void 0)}function $6(t,i,e){return{kind:t,value:i,error:e}}var Ec=null;function Gl(t){if(xr.useDeprecatedSynchronousErrorHandling){let i=!Ec;if(i&&(Ec={errorThrown:!1,error:null}),t(),i){let{errorThrown:e,error:n}=Ec;if(Ec=null,e)throw n}}else t()}function jy(t){xr.useDeprecatedSynchronousErrorHandling&&Ec&&(Ec.errorThrown=!0,Ec.error=t)}var Ic=class extends Ee{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,x3(i)&&i.add(this)):this.destination=_H}static create(i,e,n){return new Mr(i,e,n)}next(i){this.isStopped?W6(By(i),this):this._next(i)}error(i){this.isStopped?W6(Vy(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?W6(Fy,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()}}},hH=Function.prototype.bind;function G6(t,i){return hH.call(t,i)}var Y6=class{constructor(i){this.partialObserver=i}next(i){let{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){w3(n)}}error(i){let{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){w3(n)}else w3(i)}complete(){let{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){w3(e)}}},Mr=class extends Ic{constructor(i,e,n){super();let o;if(Ke(i)||!i)o={next:i??void 0,error:e??void 0,complete:n??void 0};else{let r;this&&xr.useDeprecatedNextContext?(r=Object.create(i),r.unsubscribe=()=>this.unsubscribe(),o={next:i.next&&G6(i.next,r),error:i.error&&G6(i.error,r),complete:i.complete&&G6(i.complete,r)}):o=i}this.destination=new Y6(o)}};function w3(t){xr.useDeprecatedSynchronousErrorHandling?jy(t):M3(t)}function gH(t){throw t}function W6(t,i){let{onStoppedNotification:e}=xr;e&&$l.setTimeout(()=>e(t,i))}var _H={closed:!0,next:kc,error:gH,complete:kc};var Wl=typeof Symbol=="function"&&Symbol.observable||"@@observable";function no(t){return t}function q6(...t){return Q6(t)}function Q6(t){return t.length===0?no: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=vH(e)?e:new Mr(e,n,o);return Gl(()=>{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=Hy(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)}[Wl](){return this}pipe(...e){return Q6(e)(this)}toPromise(e){return e=Hy(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 Hy(t){var i;return(i=t??xr.Promise)!==null&&i!==void 0?i:Promise}function bH(t){return t&&Ke(t.next)&&Ke(t.error)&&Ke(t.complete)}function vH(t){return t&&t instanceof Ic||bH(t)&&x3(t)}function K6(t){return Ke(t?.lift)}function qe(t){return i=>{if(K6(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 We(t,i,e,n,o){return new X6(t,i,e,n,o)}var X6=class extends Ic{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 Yl(){return qe((t,i)=>{let e=null;t._refCount++;let n=We(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 ws=class extends Fe{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,K6(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 Ee;let e=this.getSubject();i.add(this.source.subscribe(We(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=Ee.EMPTY)}return i}refCount(){return Yl()(this)}};var ql={schedule(t){let i=requestAnimationFrame,e=cancelAnimationFrame,{delegate:n}=ql;n&&(i=n.requestAnimationFrame,e=n.cancelAnimationFrame);let o=i(r=>{e=void 0,t(r)});return new Ee(()=>e?.(o))},requestAnimationFrame(...t){let{delegate:i}=ql;return(i?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:i}=ql;return(i?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var Uy=Ms(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 D3(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new Uy}next(e){Gl(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(e)}})}error(e){Gl(()=>{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(){Gl(()=>{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?U6:(this.currentObservers=null,r.push(e),new Ee(()=>{this.currentObservers=null,Sc(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 D3(i,e),t})(),D3=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:U6}};var dt=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 ld={now(){return(ld.delegate||Date).now()},delegate:void 0};var wr=class extends B{constructor(i=1/0,e=1/0,n=ld){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=ql.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&&(ql.cancelAnimationFrame(e),i._scheduled=void 0)}};var E3=class extends Xl{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 I3=new E3(k3);var kn=new Fe(t=>t.complete());function T3(t){return t&&Ke(t.schedule)}function Z6(t){return t[t.length-1]}function O3(t){return Ke(Z6(t))?t.pop():void 0}function na(t){return T3(Z6(t))?t.pop():void 0}function Gy(t,i){return typeof Z6(t)=="number"?t.pop():i}function k3e(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 Yy(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{u(n.next(f))}catch(g){a(g)}}function c(f){try{u(n.throw(f))}catch(g){a(g)}}function u(f){f.done?r(f.value):o(f.value).then(s,c)}u((n=n.apply(t,i||[])).next())})}function Wy(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 Tc(t){return this instanceof Tc?(this.v=t,this):new Tc(t)}function qy(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(x){return function(D){return Promise.resolve(D).then(x,g)}}function s(x,D){n[x]&&(o[x]=function(Y){return new Promise(function(Q,K){r.push([x,Y,Q,K])>1||c(x,Y)})},D&&(o[x]=D(o[x])))}function c(x,D){try{u(n[x](D))}catch(Y){y(r[0][3],Y)}}function u(x){x.value instanceof Tc?Promise.resolve(x.value.v).then(f,g):y(r[0][2],x)}function f(x){c("next",x)}function g(x){c("throw",x)}function y(x,D){x(D),r.shift(),r.length&&c(r[0][0],r[0][1])}}function Qy(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 Wy=="function"?Wy(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(u){r({value:u,done:s})},a)}}var Zl=t=>t&&typeof t.length=="number"&&typeof t!="function";function L3(t){return Ke(t?.then)}function P3(t){return Ke(t[Wl])}function A3(t){return Symbol.asyncIterator&&Ke(t?.[Symbol.asyncIterator])}function z3(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 yH(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var R3=yH();function N3(t){return Ke(t?.[R3])}function F3(t){return qy(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:n,done:o}=yield Tc(e.read());if(o)return yield Tc(void 0);yield yield Tc(n)}}finally{e.releaseLock()}})}function V3(t){return Ke(t?.getReader)}function Ot(t){if(t instanceof Fe)return t;if(t!=null){if(P3(t))return CH(t);if(Zl(t))return xH(t);if(L3(t))return MH(t);if(A3(t))return Ky(t);if(N3(t))return wH(t);if(V3(t))return DH(t)}throw z3(t)}function CH(t){return new Fe(i=>{let e=t[Wl]();if(Ke(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function xH(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 wH(t){return new Fe(i=>{for(let e of t)if(i.next(e),i.closed)return;i.complete()})}function Ky(t){return new Fe(i=>{SH(t,i).catch(e=>i.error(e))})}function DH(t){return Ky(F3(t))}function SH(t,i){var e,n,o,r;return Yy(this,void 0,void 0,function*(){try{for(e=Qy(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 Vi(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 B3(t,i=0){return qe((e,n)=>{e.subscribe(We(n,o=>Vi(n,t,()=>n.next(o),i),()=>Vi(n,t,()=>n.complete(),i),o=>Vi(n,t,()=>n.error(o),i)))})}function j3(t,i=0){return qe((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function Xy(t,i){return Ot(t).pipe(j3(i),B3(i))}function Zy(t,i){return Ot(t).pipe(j3(i),B3(i))}function Jy(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 eC(t,i){return new Fe(e=>{let n;return Vi(e,i,()=>{n=t[R3](),Vi(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)}),()=>Ke(n?.return)&&n.return()})}function H3(t,i){if(!t)throw new Error("Iterable cannot be null");return new Fe(e=>{Vi(e,i,()=>{let n=t[Symbol.asyncIterator]();Vi(e,i,()=>{n.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function tC(t,i){return H3(F3(t),i)}function nC(t,i){if(t!=null){if(P3(t))return Xy(t,i);if(Zl(t))return Jy(t,i);if(L3(t))return Zy(t,i);if(A3(t))return H3(t,i);if(N3(t))return eC(t,i);if(V3(t))return tC(t,i)}throw z3(t)}function Kt(t,i){return i?nC(t,i):Ot(t)}function re(...t){let i=na(t);return Kt(t,i)}function Do(t,i){let e=Ke(t)?t:()=>t,n=o=>o.error(e());return new Fe(i?o=>i.schedule(n,0,o):n)}function ui(t){return!!t&&(t instanceof Fe||Ke(t.lift)&&Ke(t.subscribe))}var Sr=Ms(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function J6(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 Sr)}});t.subscribe(r)})}function U3(t){return t instanceof Date&&!isNaN(t)}var kH=Ms(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function eg(t,i){let{first:e,each:n,with:o=EH,scheduler:r=i??Dr,meta:a=null}=U3(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&n==null)throw new TypeError("No timeout provided.");return qe((s,c)=>{let u,f,g=null,y=0,x=D=>{f=Vi(c,r,()=>{try{u.unsubscribe(),Ot(o({meta:a,lastValue:g,seen:y})).subscribe(c)}catch(Y){c.error(Y)}},D)};u=s.subscribe(We(c,D=>{f?.unsubscribe(),y++,c.next(g=D),n>0&&x(n)},void 0,void 0,()=>{f?.closed||f?.unsubscribe(),g=null})),!y&&x(e!=null?typeof e=="number"?e:+e-r.now():n)})}function EH(t){throw new kH(t)}function ue(t,i){return qe((e,n)=>{let o=0;e.subscribe(We(n,r=>{n.next(t.call(i,r,o++))}))})}var{isArray:IH}=Array;function TH(t,i){return IH(i)?t(...i):t(i)}function Jl(t){return ue(i=>TH(t,i))}var{isArray:OH}=Array,{getPrototypeOf:LH,prototype:PH,keys:AH}=Object;function $3(t){if(t.length===1){let i=t[0];if(OH(i))return{args:i,keys:null};if(zH(i)){let e=AH(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}function zH(t){return t&&typeof t=="object"&&LH(t)===PH}function G3(t,i){return t.reduce((e,n,o)=>(e[n]=i[o],e),{})}function Xn(...t){let i=na(t),e=O3(t),{args:n,keys:o}=$3(t);if(n.length===0)return Kt([],i);let r=new Fe(RH(n,i,o?a=>G3(o,a):no));return e?r.pipe(Jl(e)):r}function RH(t,i,e=no){return n=>{iC(i,()=>{let{length:o}=t,r=new Array(o),a=o,s=o;for(let c=0;c{let u=Kt(t[c],i),f=!1;u.subscribe(We(n,g=>{r[c]=g,f||(f=!0,s--),s||n.next(e(r.slice()))},()=>{--a||n.complete()}))},n)},n)}}function iC(t,i,e){t?Vi(e,t,i):i()}function oC(t,i,e,n,o,r,a,s){let c=[],u=0,f=0,g=!1,y=()=>{g&&!c.length&&!u&&i.complete()},x=Y=>u{r&&i.next(Y),u++;let Q=!1;Ot(e(Y,f++)).subscribe(We(i,K=>{o?.(K),r?x(K):i.next(K)},()=>{Q=!0},void 0,()=>{if(Q)try{for(u--;c.length&&uD(K)):D(K)}y()}catch(K){i.error(K)}}))};return t.subscribe(We(i,x,()=>{g=!0,y()})),()=>{s?.()}}function rn(t,i,e=1/0){return Ke(i)?rn((n,o)=>ue((r,a)=>i(n,r,o,a))(Ot(t(n,o))),e):(typeof i=="number"&&(e=i),qe((n,o)=>oC(n,o,t,e)))}function ia(t=1/0){return rn(no,t)}function rC(){return ia(1)}function Bi(...t){return rC()(Kt(t,na(t)))}function ji(t){return new Fe(i=>{Ot(t()).subscribe(i)})}function Va(...t){let i=O3(t),{args:e,keys:n}=$3(t),o=new Fe(r=>{let{length:a}=e;if(!a){r.complete();return}let s=new Array(a),c=a,u=a;for(let f=0;f{g||(g=!0,u--),s[f]=y},()=>c--,void 0,()=>{(!c||!g)&&(u||r.next(n?G3(n,s):s),r.complete())}))}});return i?o.pipe(Jl(i)):o}var NH=["addListener","removeListener"],FH=["addEventListener","removeEventListener"],VH=["on","off"];function ud(t,i,e,n){if(Ke(e)&&(n=e,e=void 0),n)return ud(t,i,e).pipe(Jl(n));let[o,r]=HH(t)?FH.map(a=>s=>t[a](i,s,e)):BH(t)?NH.map(aC(t,i)):jH(t)?VH.map(aC(t,i)):[];if(!o&&Zl(t))return rn(a=>ud(a,i,e))(Ot(t));if(!o)throw new TypeError("Invalid event target");return new Fe(a=>{let s=(...c)=>a.next(1r(s)})}function aC(t,i){return e=>n=>t[e](i,n)}function BH(t){return Ke(t.addListener)&&Ke(t.removeListener)}function jH(t){return Ke(t.on)&&Ke(t.off)}function HH(t){return Ke(t.addEventListener)&&Ke(t.removeEventListener)}function Ba(t=0,i,e=$y){let n=-1;return i!=null&&(T3(i)?e=i:n=i),new Fe(o=>{let r=U3(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 tg(t=0,i=Dr){return t<0&&(t=0),Ba(t,t,i)}function mt(...t){let i=na(t),e=Gy(t,1/0),n=t;return n.length?n.length===1?Ot(n[0]):ia(e)(Kt(n,i)):kn}var{isArray:UH}=Array;function sC(t){return t.length===1&&UH(t[0])?t[0]:t}function Te(t,i){return qe((e,n)=>{let o=0;e.subscribe(We(n,r=>t.call(i,r,o++)&&n.next(r)))})}function ng(...t){return t=sC(t),t.length===1?Ot(t[0]):new Fe($H(t))}function $H(t){return i=>{let e=[];for(let n=0;e&&!i.closed&&n{if(e){for(let r=0;r{let n=!1,o=null,r=null,a=!1,s=()=>{if(r?.unsubscribe(),r=null,n){n=!1;let u=o;o=null,e.next(u)}a&&e.complete()},c=()=>{r=null,a&&e.complete()};i.subscribe(We(e,u=>{n=!0,o=u,r||Ot(t(u)).subscribe(r=We(e,s,c))},()=>{a=!0,(!n||!r||r.closed)&&e.complete()}))})}function e1(t,i=Dr){return cC(()=>Ba(t,i))}function Zn(t){return qe((i,e)=>{let n=null,o=!1,r;n=i.subscribe(We(e,void 0,void 0,a=>{r=Ot(t(a,Zn(t)(i))),n?(n.unsubscribe(),n=null,r.subscribe(e)):o=!0})),o&&(n.unsubscribe(),n=null,r.subscribe(e))})}function W3(t,i,e,n,o){return(r,a)=>{let s=e,c=i,u=0;r.subscribe(We(a,f=>{let g=u++;c=s?t(c,f,g):(s=!0,f),n&&a.next(c)},o&&(()=>{s&&a.next(c),a.complete()})))}}function Y3(t,i){return qe(W3(t,i,arguments.length>=2,!1,!0))}function io(t,i){return Ke(i)?rn(t,i,1):rn(t,1)}function Ro(t,i=Dr){return qe((e,n)=>{let o=null,r=null,a=null,s=()=>{if(o){o.unsubscribe(),o=null;let u=r;r=null,n.next(u)}};function c(){let u=a+t,f=i.now();if(f{r=u,a=i.now(),o||(o=i.schedule(c,t),n.add(o))},()=>{s(),n.complete()},void 0,()=>{r=o=null}))})}function Ds(t){return qe((i,e)=>{let n=!1;i.subscribe(We(e,o=>{n=!0,e.next(o)},()=>{n||e.next(t),e.complete()}))})}function Ve(t){return t<=0?()=>kn:qe((i,e)=>{let n=0;i.subscribe(We(e,o=>{++n<=t&&(e.next(o),t<=n&&e.complete())}))})}function lC(){return qe((t,i)=>{t.subscribe(We(i,kc))})}function t1(t){return ue(()=>t)}function ig(t,i){return i?e=>Bi(i.pipe(Ve(1),lC()),e.pipe(ig(t))):rn((e,n)=>Ot(t(e,n)).pipe(Ve(1),t1(e)))}function ja(t,i=Dr){let e=Ba(t,i);return ig(()=>e)}function n1(t,i=no){return t=t??GH,qe((e,n)=>{let o,r=!0;e.subscribe(We(n,a=>{let s=i(a);(r||!t(o,s))&&(r=!1,o=s,n.next(a))}))})}function GH(t,i){return t===i}function q3(t=WH){return qe((i,e)=>{let n=!1;i.subscribe(We(e,o=>{n=!0,e.next(o)},()=>n?e.complete():e.error(t())))})}function WH(){return new Sr}function kr(t){return qe((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}function So(t,i){let e=arguments.length>=2;return n=>n.pipe(t?Te((o,r)=>t(o,r,n)):no,Ve(1),e?Ds(i):q3(()=>new Sr))}function i1(t){return t<=0?()=>kn:qe((i,e)=>{let n=[];i.subscribe(We(e,o=>{n.push(o),t{for(let o of n)e.next(o);e.complete()},void 0,()=>{n=null}))})}function og(t,i){let e=arguments.length>=2;return n=>n.pipe(t?Te((o,r)=>t(o,r,n)):no,i1(1),e?Ds(i):q3(()=>new Sr))}function Q3(){return qe((t,i)=>{let e,n=!1;t.subscribe(We(i,o=>{let r=e;e=o,n&&i.next([r,o]),n=!0}))})}function rg(t,i){return qe(W3(t,i,arguments.length>=2,!0))}function md(t={}){let{connector:i=()=>new B,resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return r=>{let a,s,c,u=0,f=!1,g=!1,y=()=>{s?.unsubscribe(),s=void 0},x=()=>{y(),a=c=void 0,f=g=!1},D=()=>{let Y=a;x(),Y?.unsubscribe()};return qe((Y,Q)=>{u++,!g&&!f&&y();let K=c=c??i();Q.add(()=>{u--,u===0&&!g&&!f&&(s=ag(D,o))}),K.subscribe(Q),!a&&u>0&&(a=new Mr({next:pe=>K.next(pe),error:pe=>{g=!0,y(),s=ag(x,e,pe),K.error(pe)},complete:()=>{f=!0,y(),s=ag(x,n),K.complete()}}),Ot(Y).subscribe(a))})(r)}}function ag(t,i,...e){if(i===!0){t();return}if(i===!1)return;let n=new Mr({next:()=>{n.unsubscribe(),t()}});return Ot(i(...e)).subscribe(n)}function Ss(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,md({connector:()=>new wr(n,i,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Oc(t){return Te((i,e)=>t<=e)}function Qe(...t){let i=na(t);return qe((e,n)=>{(i?Bi(t,e,i):Bi(t,e)).subscribe(n)})}function rt(t,i){return qe((e,n)=>{let o=null,r=0,a=!1,s=()=>a&&!o&&n.complete();e.subscribe(We(n,c=>{o?.unsubscribe();let u=0,f=r++;Ot(t(c,f)).subscribe(o=We(n,g=>n.next(i?i(c,g,f,u++):g),()=>{o=null,s()}))},()=>{a=!0,s()}))})}function xe(t){return qe((i,e)=>{Ot(t).subscribe(We(e,()=>e.complete(),kc)),!e.closed&&i.subscribe(e)})}function sg(t,i=!1){return qe((e,n)=>{let o=0;e.subscribe(We(n,r=>{let a=t(r,o++);(a||i)&&n.next(r),!a&&n.complete()}))})}function Dt(t,i,e){let n=Ke(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(We(r,c=>{var u;(u=n.next)===null||u===void 0||u.call(n,c),r.next(c)},()=>{var c;s=!1,(c=n.complete)===null||c===void 0||c.call(n),r.complete()},c=>{var u;s=!1,(u=n.error)===null||u===void 0||u.call(n,c),r.error(c)},()=>{var c,u;s&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):no}function dC(t){let i=nt(null);try{return t()}finally{nt(i)}}var uC=Ne(q({},xc),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function mC(t){if(t.dirty=!1,t.version>0&&!wc(t))return;t.version++;let i=Cs(t);try{t.cleanup(),t.fn()}finally{Mc(t,i)}}var J3="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",fe=class extends Error{code;constructor(i,e){super(tr(i,e)),this.code=i}};function YH(t){return`NG0${Math.abs(t)}`}function tr(t,i){return`${YH(t)}${i?": "+i:""}`}var Jn=globalThis;function Yt(t){for(let i in t)if(t[i]===Yt)return i;throw Error("")}function hC(t,i){for(let e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function Ua(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Ua).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 e4(t,i){return t?i?`${t} ${i}`:t:i||""}var qH=Yt({__forward_ref__:Yt});function It(t){return t.__forward_ref__=It,t.toString=function(){return Ua(this())},t}function mi(t){return vg(t)?t():t}function vg(t){return typeof t=="function"&&t.hasOwnProperty(qH)&&t.__forward_ref__===It}function R(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Z(t){return{providers:t.providers||[],imports:t.imports||[]}}function _d(t){return QH(t,t4)}function yg(t){return _d(t)!==null}function QH(t,i){return t.hasOwnProperty(i)&&t[i]||null}function KH(t){let i=t?.[t4]??null;return i||null}function lg(t){return t&&t.hasOwnProperty(X3)?t[X3]:null}var t4=Yt({\u0275prov:Yt}),X3=Yt({\u0275inj:Yt}),P=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 Cg(t){return t&&!!t.\u0275providers}var xg=Yt({\u0275cmp:Yt}),Mg=Yt({\u0275dir:Yt}),wg=Yt({\u0275pipe:Yt}),Dg=Yt({\u0275mod:Yt}),fd=Yt({\u0275fac:Yt}),Rc=Yt({__NG_ELEMENT_ID__:Yt}),pC=Yt({__NG_ENV_ID__:Yt});function Ui(t){return typeof t=="string"?t:t==null?"":String(t)}function gC(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Ui(t)}var _C=Yt({ngErrorCode:Yt}),XH=Yt({ngErrorMessage:Yt}),ZH=Yt({ngTokenPath:Yt});function Sg(t,i){return bC("",-200,i)}function n4(t,i){throw new fe(-201,!1)}function bC(t,i,e){let n=new fe(i,t);return n[_C]=i,n[XH]=t,e&&(n[ZH]=e),n}function JH(t){return t[_C]}var dg;function vC(){return dg}function oo(t){let i=dg;return dg=t,i}function kg(t,i,e){let n=_d(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;n4(t,"Injector")}var eU={},Lc=eU,ug="__NG_DI_FLAG__",mg=class{injector;constructor(i){this.injector=i}retrieve(i,e){let n=Pc(e)||0;try{return this.injector.get(i,n&8?null:Lc,n)}catch(o){if(Hl(o))return o;throw o}}};function tU(t,i=0){let e=m3();if(e===void 0)throw new fe(-203,!1);if(e===null)return kg(t,void 0,i);{let n=nU(i),o=e.retrieve(t,n);if(Hl(o)){if(n.optional)return null;throw o}return o}}function be(t,i=0){return(vC()||tU)(mi(t),i)}function d(t,i){return be(t,Pc(i))}function Pc(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function nU(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function pg(t){let i=[];for(let e=0;eArray.isArray(e)?i4(e,i):i(e))}function Ig(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function bd(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function xC(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 o4(t,i,e){let n=r1(t,i);return n>=0?t[n|1]=e:(n=~n,MC(t,n,i,e)),n}function r4(t,i){let e=r1(t,i);if(e>=0)return t[e|1]}function r1(t,i){return oU(t,i,1)}function oU(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 i4(i,a=>{let s=a;Z3(s,r,[],n)&&(o||=[],o.push(s))}),o!==void 0&&SC(o,r),e}function SC(t,i){for(let e=0;e{i(r,n)})}}function Z3(t,i,e,n){if(t=mi(t),!t)return!1;let o=null,r=lg(t),a=!r&&oa(t);if(!r&&!a){let c=t.ngModule;if(r=lg(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 u of c)Z3(u,i,e,n)}}else if(r){if(r.imports!=null&&!s){n.add(o);let u;try{i4(r.imports,f=>{Z3(f,i,e,n)&&(u||=[],u.push(f))})}finally{}u!==void 0&&SC(u,i)}if(!s){let u=ks(o)||(()=>new o);i({provide:o,useFactory:u,deps:Hi},o),i({provide:Og,useValue:o,multi:!0},o),i({provide:$a,useValue:()=>be(o),multi:!0},o)}let c=r.providers;if(c!=null&&!s){let u=t;Ag(c,f=>{i(f,u)})}}else return!1;return o!==t&&t.providers!==void 0}function Ag(t,i){for(let e of t)Cg(e)&&(e=e.\u0275providers),Array.isArray(e)?Ag(e,i):i(e)}var rU=Yt({provide:String,useValue:Yt});function kC(t){return t!==null&&typeof t=="object"&&rU in t}function aU(t){return!!(t&&t.useExisting)}function sU(t){return!!(t&&t.useFactory)}function Ac(t){return typeof t=="function"}function EC(t){return!!t.useClass}var vd=new P(""),K3={},fC={},cg;function a1(){return cg===void 0&&(cg=new hd),cg}var Xt=class{},zc=class extends Xt{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,hg(i,a=>this.processProvider(a)),this.records.set(Tg,o1(void 0,this)),o.has("environment")&&this.records.set(Xt,o1(void 0,this));let r=this.records.get(vd);r!=null&&typeof r.value=="string"&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(Og,Hi,{self:!0}))}retrieve(i,e){let n=Pc(e)||0;try{return this.get(i,Lc,n)}catch(o){if(Hl(o))return o;throw o}}destroy(){pd(this),this._destroyed=!0;let i=nt(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(),nt(i)}}onDestroy(i){return pd(this),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){pd(this);let e=ta(this),n=oo(void 0),o;try{return i()}finally{ta(e),oo(n)}}get(i,e=Lc,n){if(pd(this),i.hasOwnProperty(pC))return i[pC](this);let o=Pc(n),r,a=ta(this),s=oo(void 0);try{if(!(o&4)){let u=this.records.get(i);if(u===void 0){let f=mU(i)&&_d(i);f&&this.injectableDefInScope(f)?u=o1(fg(i),K3):u=null,this.records.set(i,u)}if(u!=null)return this.hydrate(i,u,o)}let c=o&2?a1():this.parent;return e=o&8&&e===Lc?null:e,c.get(i,e)}catch(c){let u=JH(c);throw u===-200||u===-201?new fe(u,null):c}finally{oo(s),ta(a)}}resolveInjectorInitializers(){let i=nt(null),e=ta(this),n=oo(void 0),o;try{let r=this.get($a,Hi,{self:!0});for(let a of r)a()}finally{ta(e),oo(n),nt(i)}}toString(){let i=[],e=this.records;for(let n of e.keys())i.push(Ua(n));return`R3Injector[${i.join(", ")}]`}processProvider(i){i=mi(i);let e=Ac(i)?i:mi(i&&i.provide),n=lU(i);if(!Ac(i)&&i.multi===!0){let o=this.records.get(e);o||(o=o1(void 0,K3,!0),o.factory=()=>pg(o.multi),this.records.set(e,o)),e=i,o.multi.push(i)}this.records.set(e,n)}hydrate(i,e,n){let o=nt(null);try{if(e.value===fC)throw Sg(Ua(i));return e.value===K3&&(e.value=fC,e.value=e.factory(void 0,n)),typeof e.value=="object"&&e.value&&uU(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{nt(o)}}injectableDefInScope(i){if(!i.providedIn)return!1;let e=mi(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 fg(t){let i=_d(t),e=i!==null?i.factory:ks(t);if(e!==null)return e;if(t instanceof P)throw new fe(204,!1);if(t instanceof Function)return cU(t);throw new fe(204,!1)}function cU(t){if(t.length>0)throw new fe(204,!1);let e=KH(t);return e!==null?()=>e.factory(t):()=>new t}function lU(t){if(kC(t))return o1(void 0,t.useValue);{let i=zg(t);return o1(i,K3)}}function zg(t,i,e){let n;if(Ac(t)){let o=mi(t);return ks(o)||fg(o)}else if(kC(t))n=()=>mi(t.useValue);else if(sU(t))n=()=>t.useFactory(...pg(t.deps||[]));else if(aU(t))n=(o,r)=>be(mi(t.useExisting),r!==void 0&&r&8?8:void 0);else{let o=mi(t&&(t.useClass||t.provide));if(dU(t))n=()=>new o(...pg(t.deps));else return ks(o)||fg(o)}return n}function pd(t){if(t.destroyed)throw new fe(205,!1)}function o1(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function dU(t){return!!t.deps}function uU(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function mU(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function hg(t,i){for(let e of t)Array.isArray(e)?hg(e,i):e&&Cg(e)?hg(e.\u0275providers,i):i(e)}function xi(t,i){let e;t instanceof zc?(pd(t),e=t):e=new mg(t);let n,o=ta(e),r=oo(void 0);try{return i()}finally{ta(o),oo(r)}}function Rg(){return vC()!==void 0||m3()!=null}var Ir=0,Ye=1,at=2,pi=3,nr=4,ro=5,Nc=6,s1=7,Vn=8,Ga=9,aa=10,Zt=11,c1=12,Ng=13,Fc=14,$i=15,Is=16,Vc=17,sa=18,yd=19,Fg=20,Ha=21,s4=22,Wa=23,No=24,Bc=25,jc=26,an=27,IC=1,Vg=6,Ts=7,Cd=8,Hc=9,Bn=10;function ca(t){return Array.isArray(t)&&typeof t[IC]=="object"}function Tr(t){return Array.isArray(t)&&t[IC]===!0}function Bg(t){return(t.flags&4)!==0}function Ya(t){return t.componentOffset>-1}function l1(t){return(t.flags&1)===1}function Or(t){return!!t.template}function d1(t){return(t[at]&512)!==0}function Uc(t){return(t[at]&256)===256}var jg="svg",TC="math";function ir(t){for(;Array.isArray(t);)t=t[Ir];return t}function Hg(t,i){return ir(i[t])}function or(t,i){return ir(i[t.index])}function xd(t,i){return t.data[i]}function u1(t,i){return t[i]}function Ug(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}function rr(t,i){let e=i[t];return ca(e)?e:e[Ir]}function OC(t){return(t[at]&4)===4}function c4(t){return(t[at]&128)===128}function LC(t){return Tr(t[pi])}function Fo(t,i){return i==null?null:t[i]}function $g(t){t[Vc]=0}function Gg(t){t[at]&1024||(t[at]|=1024,c4(t)&&Os(t))}function PC(t,i){for(;t>0;)i=i[Fc],t--;return i}function Md(t){return!!(t[at]&9216||t[No]?.dirty)}function l4(t){t[aa].changeDetectionScheduler?.notify(8),t[at]&64&&(t[at]|=1024),Md(t)&&Os(t)}function Os(t){t[aa].changeDetectionScheduler?.notify(0);let i=Es(t);for(;i!==null&&!(i[at]&8192||(i[at]|=8192,!c4(i)));)i=Es(i)}function Wg(t,i){if(Uc(t))throw new fe(911,!1);t[Ha]===null&&(t[Ha]=[]),t[Ha].push(i)}function AC(t,i){if(t[Ha]===null)return;let e=t[Ha].indexOf(i);e!==-1&&t[Ha].splice(e,1)}function Es(t){let i=t[pi];return Tr(i)?i[pi]:i}function Yg(t){return t[s1]??=[]}function qg(t){return t.cleanup??=[]}function zC(t,i,e,n){let o=Yg(i);o.push(e),t.firstCreatePass&&qg(t).push(n,o.length-1)}var Ct={lFrame:WC(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var gg=!1;function RC(){return Ct.lFrame.elementDepthCount}function NC(){Ct.lFrame.elementDepthCount++}function Qg(){Ct.lFrame.elementDepthCount--}function d4(){return Ct.bindingsEnabled}function Kg(){return Ct.skipHydrationRootTNode!==null}function Xg(t){return Ct.skipHydrationRootTNode===t}function Zg(){Ct.skipHydrationRootTNode=null}function ze(){return Ct.lFrame.lView}function sn(){return Ct.lFrame.tView}function U(t){return Ct.lFrame.contextLView=t,t[Vn]}function $(t){return Ct.lFrame.contextLView=null,t}function ei(){let t=Jg();for(;t!==null&&t.type===64;)t=t.parent;return t}function Jg(){return Ct.lFrame.currentTNode}function FC(){let t=Ct.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}function m1(t,i){let e=Ct.lFrame;e.currentTNode=t,e.isParent=i}function e8(){return Ct.lFrame.isParent}function t8(){Ct.lFrame.isParent=!1}function VC(){return Ct.lFrame.contextLView}function n8(){return gg}function p1(t){let i=gg;return gg=t,i}function qa(){let t=Ct.lFrame,i=t.bindingRootIndex;return i===-1&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function u4(){return Ct.lFrame.bindingIndex}function BC(t){return Ct.lFrame.bindingIndex=t}function la(){return Ct.lFrame.bindingIndex++}function f1(t){let i=Ct.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function jC(){return Ct.lFrame.inI18n}function HC(t,i){let e=Ct.lFrame;e.bindingIndex=e.bindingRootIndex=t,m4(i)}function UC(){return Ct.lFrame.currentDirectiveIndex}function m4(t){Ct.lFrame.currentDirectiveIndex=t}function $C(t){let i=Ct.lFrame.currentDirectiveIndex;return i===-1?null:t[i]}function p4(){return Ct.lFrame.currentQueryIndex}function wd(t){Ct.lFrame.currentQueryIndex=t}function pU(t){let i=t[Ye];return i.type===2?i.declTNode:i.type===1?t[ro]:null}function i8(t,i,e){if(e&4){let o=i,r=t;for(;o=o.parent,o===null&&!(e&1);)if(o=pU(r),o===null||(r=r[Fc],o.type&10))break;if(o===null)return!1;i=o,t=r}let n=Ct.lFrame=GC();return n.currentTNode=i,n.lView=t,!0}function f4(t){let i=GC(),e=t[Ye];Ct.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function GC(){let t=Ct.lFrame,i=t===null?null:t.child;return i===null?WC(t):i}function WC(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 YC(){let t=Ct.lFrame;return Ct.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var o8=YC;function h4(){let t=YC();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 qC(t){return(Ct.lFrame.contextLView=PC(t,Ct.lFrame.contextLView))[Vn]}function ar(){return Ct.lFrame.selectedIndex}function Ls(t){Ct.lFrame.selectedIndex=t}function h1(){let t=Ct.lFrame;return xd(t.tView,t.selectedIndex)}function Gt(){Ct.lFrame.currentNamespace=jg}function sr(){fU()}function fU(){Ct.lFrame.currentNamespace=null}function QC(){return Ct.lFrame.currentNamespace}var KC=!0;function g4(){return KC}function Dd(t){KC=t}function _g(t,i=null,e=null,n){let o=r8(t,i,e,n);return o.resolveInjectorInitializers(),o}function r8(t,i=null,e=null,n,o=new Set){let r=[e||Hi,DC(t)];return n=n||(typeof t=="object"?void 0:Ua(t)),new zc(r,i||a1(),n||null,o)}var ye=class t{static THROW_IF_NOT_FOUND=Lc;static NULL=new hd;static create(i,e){if(Array.isArray(i))return _g({name:""},e,i,"");{let n=i.name??"";return _g({name:n},i.parent,i.providers,n)}}static \u0275prov=R({token:t,providedIn:"any",factory:()=>be(Tg)});static __NG_ELEMENT_ID__=-1},De=new P(""),Gi=(()=>{class t{static __NG_ELEMENT_ID__=hU;static __NG_ENV_ID__=e=>e}return t})(),gd=class extends Gi{_lView;constructor(i){super(),this._lView=i}get destroyed(){return Uc(this._lView)}onDestroy(i){let e=this._lView;return Wg(e,i),()=>AC(e,i)}};function hU(){return new gd(ze())}var Ci=class{_console=console;handleError(i){this._console.error("ERROR",i)}},ao=new P("",{providedIn:"root",factory:()=>{let t=d(Xt),i;return e=>{t.destroyed&&!i?setTimeout(()=>{throw e}):(i??=t.get(Ci),i.handleError(e))}}}),XC={provide:$a,useValue:()=>void d(Ci),multi:!0};function da(t){return typeof t=="function"&&t[Kn]!==void 0}function Se(t,i){let[e,n,o]=j6(t,i?.equal),r=e,a=r[Kn];return r.set=n,r.update=o,r.asReadonly=_4.bind(r),r}function _4(){let t=this[Kn];if(t.readonlyFn===void 0){let i=()=>this();i[Kn]=t,t.readonlyFn=i}return t.readonlyFn}function a8(t){return da(t)&&typeof t.set=="function"}var $c=(()=>{class t{view;node;constructor(e,n){this.view=e,this.node=n}static __NG_ELEMENT_ID__=gU}return t})();function gU(){return new $c(ze(),ei())}var er=class{},Sd=new P("",{providedIn:"root",factory:()=>!1});var s8=new P(""),c8=new P(""),ua=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new dt(!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})(),g1=(()=>{class t{internalPendingTasks=d(ua);scheduler=d(er);errorHandler=d(ao);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 Gc(...t){}var kd=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>new bg})}return t})(),bg=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 w1(t){return{toString:t}.toString()}var b4="__parameters__";function xU(t){return function(...e){if(t){let n=t(...e);for(let o in n)this[o]=n[o]}}}function zx(t,i,e){return w1(()=>{let n=xU(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,u,f){let g=c.hasOwnProperty(b4)?c[b4]:Object.defineProperty(c,b4,{value:[]})[b4];for(;g.length<=f;)g.push(null);return(g[f]=g[f]||[]).push(a),c}}return o.prototype.ngMetadataName=t,o.annotationCls=o,o})}var cr=Eg(zx("Optional"),8);var fa=Eg(zx("SkipSelf"),4);function Rx(t){let i=Jn.ng;if(i&&i.\u0275compilerFacade)return i.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function MU(t){return typeof t=="function"}var T4=class{previousValue;currentValue;firstChange;constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}};function Nx(t,i,e,n){i!==null?i.applyValueToInputSignal(i,n):t[e]=n}var Re=(()=>{let t=()=>Fx;return t.ngInherit=!0,t})();function Fx(t){return t.type.prototype.ngOnChanges&&(t.setInput=DU),wU}function wU(){let t=Bx(this),i=t?.current;if(i){let e=t.previous;if(e===Er)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function DU(t,i,e,n,o){let r=this.declaredInputs[n],a=Bx(t)||SU(t,{previous:Er,current:null}),s=a.current||(a.current={}),c=a.previous,u=c[r];s[r]=new T4(u&&u.currentValue,e,c===Er),Nx(t,i,o,e)}var Vx="__ngSimpleChanges__";function Bx(t){return t[Vx]||null}function SU(t,i){return t[Vx]=i}var ZC=[];var cn=function(t,i=null,e){for(let n=0;n=n)break}else i[c]<0&&(t[Vc]+=65536),(s>14>16&&(t[at]&3)===i&&(t[at]+=16384,JC(s,r)):JC(s,r)}var b1=-1,Yc=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 IU(t){return(t.flags&8)!==0}function TU(t){return(t.flags&16)!==0}function OU(t,i,e){let n=0;for(;ni){a=r-1;break}}}for(;r>16}function L4(t,i){let e=PU(t),n=i;for(;e>0;)n=n[Fc],e--;return n}var v8=!0;function P4(t){let i=v8;return v8=t,i}var AU=256,Gx=AU-1,Wx=5,zU=0,ma={};function RU(t,i,e){let n;typeof e=="string"?n=e.charCodeAt(0)||0:e.hasOwnProperty(Rc)&&(n=e[Rc]),n==null&&(n=e[Rc]=zU++);let o=n&Gx,r=1<>Wx)]|=r}function A4(t,i){let e=Yx(t,i);if(e!==-1)return e;let n=i[Ye];n.firstCreatePass&&(t.injectorIndex=i.length,d8(n.data,t),d8(i,null),d8(n.blueprint,null));let o=o5(t,i),r=t.injectorIndex;if($x(o)){let a=O4(o),s=L4(o,i),c=s[Ye].data;for(let u=0;u<8;u++)i[r+u]=s[a+u]|c[a+u]}return i[r+8]=o,r}function d8(t,i){t.push(0,0,0,0,0,0,0,0,i)}function Yx(t,i){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||i[t.injectorIndex+8]===null?-1:t.injectorIndex}function o5(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=Zx(o),n===null)return b1;if(e++,o=o[Fc],n.injectorIndex!==-1)return n.injectorIndex|e<<16}return b1}function y8(t,i,e){RU(t,i,e)}function NU(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,g=n?s:s+f,y=o?s+f:u;for(let x=g;x=c&&D.type===e)return x}if(o){let x=a[c];if(x&&Or(x)&&x.type===e)return c}return null}function Od(t,i,e,n,o){let r=t[e],a=i.data;if(r instanceof Yc){let s=r;if(s.resolving){let x=gC(a[e]);throw Sg(x)}let c=P4(s.canSeeViewProviders);s.resolving=!0;let u=a[e].type||a[e],f,g=s.injectImpl?oo(s.injectImpl):null,y=i8(t,n,0);try{r=t[e]=s.factory(void 0,o,a,t,n),i.firstCreatePass&&e>=n.directiveStart&&kU(e,a[e],i)}finally{g!==null&&oo(g),P4(c),s.resolving=!1,o8()}}return r}function VU(t){if(typeof t=="string")return t.charCodeAt(0)||0;let i=t.hasOwnProperty(Rc)?t[Rc]:void 0;return typeof i=="number"?i>=0?i&Gx:BU:i}function tx(t,i,e){let n=1<>Wx)]&n)}function nx(t,i){return!(t&2)&&!(t&1&&i)}var Wc=class{_tNode;_lView;constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return Kx(this._tNode,this._lView,i,Pc(n),e)}};function BU(){return new Wc(ei(),ze())}function Oe(t){return w1(()=>{let i=t.prototype.constructor,e=i[fd]||C8(i),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let r=o[fd]||C8(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function C8(t){return vg(t)?()=>{let i=C8(mi(t));return i&&i()}:ks(t)}function jU(t,i,e,n,o){let r=t,a=i;for(;r!==null&&a!==null&&a[at]&2048&&!d1(a);){let s=Xx(r,a,e,n|2,ma);if(s!==ma)return s;let c=r.parent;if(!c){let u=a[Fg];if(u){let f=u.get(e,ma,n);if(f!==ma)return f}c=Zx(a),a=a[Fc]}r=c}return o}function Zx(t){let i=t[Ye],e=i.type;return e===2?i.declTNode:e===1?t[ro]:null}function Bd(t){return NU(ei(),t)}function HU(){return D1(ei(),ze())}function D1(t,i){return new X(or(t,i))}var X=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=HU}return t})();function Jx(t){return t instanceof X?t.nativeElement:t}function UU(){return this._results[Symbol.iterator]()}var On=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=CC(i);(this._changesDetected=!yC(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]=UU};function eM(t){return(t.flags&128)===128}var r5=(function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t})(r5||{}),tM=new Map,$U=0;function GU(){return $U++}function WU(t){tM.set(t[yd],t)}function x8(t){tM.delete(t[yd])}var ix="__ngContext__";function y1(t,i){ca(i)?(t[ix]=i[yd],WU(i)):t[ix]=i}function nM(t){return oM(t[c1])}function iM(t){return oM(t[nr])}function oM(t){for(;t!==null&&!Tr(t);)t=t[nr];return t}var M8;function a5(t){M8=t}function s5(){if(M8!==void 0)return M8;if(typeof document<"u")return document;throw new fe(210,!1)}var zs=new P("",{providedIn:"root",factory:()=>YU}),YU="ng",q4=new P(""),Kc=new P("",{providedIn:"platform",factory:()=>"unknown"});var jd=new P(""),S1=new P("",{providedIn:"root",factory:()=>s5().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var qU="h",QU="b";var rM="r";var aM="di";var sM=!1,cM=new P("",{providedIn:"root",factory:()=>sM});var Q4=new P("");var KU=(t,i,e,n)=>{};function XU(t,i,e,n){KU(t,i,e,n)}function K4(t){return(t.flags&32)===32}var ZU=()=>null;function lM(t,i,e=!1){return ZU(t,i,e)}function dM(t,i){let e=t.contentQueries;if(e!==null){let n=nt(null);try{for(let o=0;ot,createScript:t=>t,createScriptURL:t=>t})}catch{}return v4}function X4(t){return JU()?.createHTML(t)||t}var y4;function uM(){if(y4===void 0&&(y4=null,Jn.trustedTypes))try{y4=Jn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return y4}function ox(t){return uM()?.createHTML(t)||t}function rx(t){return uM()?.createScriptURL(t)||t}var Ka=class{changingThisBreaksApplicationSecurity;constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${J3})`}},D8=class extends Ka{getTypeName(){return"HTML"}},S8=class extends Ka{getTypeName(){return"Style"}},k8=class extends Ka{getTypeName(){return"Script"}},E8=class extends Ka{getTypeName(){return"URL"}},I8=class extends Ka{getTypeName(){return"ResourceURL"}};function Vo(t){return t instanceof Ka?t.changingThisBreaksApplicationSecurity:t}function ha(t,i){let e=mM(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 mM(t){return t instanceof Ka&&t.getTypeName()||null}function l5(t){return new D8(t)}function d5(t){return new S8(t)}function u5(t){return new k8(t)}function m5(t){return new E8(t)}function p5(t){return new I8(t)}function e$(t){let i=new O8(t);return t$()?new T8(i):i}var T8=class{inertDocumentHelper;constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{let e=new window.DOMParser().parseFromString(X4(i),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(i):(e.firstChild?.remove(),e)}catch{return null}}},O8=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=X4(i),e}};function t$(){try{return!!new window.DOMParser().parseFromString(X4(""),"text/html")}catch{return!1}}var n$=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Hd(t){return t=String(t),t.match(n$)?t:"unsafe:"+t}function Xa(t){let i={};for(let e of t.split(","))i[e]=!0;return i}function Ud(...t){let i={};for(let e of t)for(let n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}var pM=Xa("area,br,col,hr,img,wbr"),fM=Xa("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),hM=Xa("rp,rt"),i$=Ud(hM,fM),o$=Ud(fM,Xa("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")),r$=Ud(hM,Xa("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")),ax=Ud(pM,o$,r$,i$),gM=Xa("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),a$=Xa("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"),s$=Xa("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"),c$=Ud(gM,a$,s$),l$=Xa("script,style,template"),L8=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=m$(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=u$(e);if(r){e=r;break}e=o.pop()}}return this.buf.join("")}startElement(i){let e=sx(i).toLowerCase();if(!ax.hasOwnProperty(e))return this.sanitizedSomething=!0,!l$.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=i.attributes;for(let o=0;o"),!0}endElement(i){let e=sx(i).toLowerCase();ax.hasOwnProperty(e)&&!pM.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(cx(i))}};function d$(t,i){return(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function u$(t){let i=t.nextSibling;if(i&&t!==i.previousSibling)throw _M(i);return i}function m$(t){let i=t.firstChild;if(i&&d$(t,i))throw _M(i);return i}function sx(t){let i=t.nodeName;return typeof i=="string"?i:"FORM"}function _M(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var p$=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f$=/([^\#-~ |!])/g;function cx(t){return t.replace(/&/g,"&").replace(p$,function(i){let e=i.charCodeAt(0),n=i.charCodeAt(1);return"&#"+((e-55296)*1024+(n-56320)+65536)+";"}).replace(f$,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}var C4;function Z4(t,i){let e=null;try{C4=C4||e$(t);let n=i?String(i):"";e=C4.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=C4.getInertBodyElement(n)}while(n!==r);let s=new L8().sanitizeChildren(lx(e)||e);return X4(s)}finally{if(e){let n=lx(e)||e;for(;n.firstChild;)n.firstChild.remove()}}}function lx(t){return"content"in t&&h$(t)?t.content:null}function h$(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var g$=/^>|^->||--!>|)/g,b$="\u200B$1\u200B";function v$(t){return t.replace(g$,i=>i.replace(_$,b$))}function y$(t,i){return t.createText(i)}function C$(t,i,e){t.setValue(i,e)}function x$(t,i){return t.createComment(v$(i))}function bM(t,i,e){return t.createElement(i,e)}function z4(t,i,e,n,o){t.insertBefore(i,e,n,o)}function vM(t,i,e){t.appendChild(i,e)}function dx(t,i,e,n,o){n!==null?z4(t,i,e,n,o):vM(t,i,e)}function yM(t,i,e,n){t.removeChild(null,i,e,n)}function M$(t,i,e){t.setAttribute(i,"style",e)}function w$(t,i,e){e===""?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e)}function CM(t,i,e){let{mergedAttrs:n,classes:o,styles:r}=e;n!==null&&OU(t,i,n),o!==null&&w$(t,i,o),r!==null&&M$(t,i,r)}var jn=(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})(jn||{});function Xc(t){let i=h5();return i?ox(i.sanitize(jn.HTML,t)||""):ha(t,"HTML")?ox(Vo(t)):Z4(s5(),Ui(t))}function k1(t){let i=h5();return i?i.sanitize(jn.URL,t)||"":ha(t,"URL")?Vo(t):Hd(Ui(t))}function xM(t){let i=h5();if(i)return rx(i.sanitize(jn.RESOURCE_URL,t)||"");if(ha(t,"ResourceURL"))return rx(Vo(t));throw new fe(904,!1)}function D$(t,i){return i==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||i==="href"&&(t==="base"||t==="link")?xM:k1}function f5(t,i,e){return D$(i,e)(t)}function h5(){let t=ze();return t&&t[aa].sanitizer}function S$(t){return t.ownerDocument.defaultView}function k$(t){return t.ownerDocument}function MM(t){return t instanceof Function?t():t}function E$(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 wM="ng-template";function I$(t,i,e,n){let o=0;if(n){for(;o-1){let r;for(;++or?g="":g=o[f+1].toLowerCase(),n&2&&u!==g){if(Lr(n))return!1;a=!0}}}}return Lr(n)||a}function Lr(t){return(t&1)===0}function L$(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!==""&&!Lr(a)&&(i+=ux(r,o),o=""),n=a,r=r||!Lr(n);e++}return o!==""&&(i+=ux(r,o)),i}function F$(t){return t.map(N$).join(",")}function V$(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 Ee&&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=A8;function TM(t){let i,e;function n(){t=Gc;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 px(t){return queueMicrotask(()=>t()),()=>{t=Gc}}var C5="isAngularZone",R4=C5+"_ID",$$=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=IM}=i;if(typeof Zone>"u")throw new fe(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,Y$(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(C5)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new fe(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new fe(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,G$,Gc,Gc);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)}},G$={};function x5(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 W$(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function i(){TM(()=>{t.callbackScheduled=!1,z8(t),t.isCheckStableRunning=!0,x5(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{i()}):t._outer.run(()=>{i()}),z8(t)}function Y$(t){let i=()=>{W$(t)},e=$$++;t._inner=t._inner.fork({name:"angular",properties:{[C5]:!0,[R4]:e,[R4+e]:!0},onInvokeTask:(n,o,r,a,s,c)=>{if(q$(c))return n.invokeTask(r,a,s,c);try{return fx(t),n.invokeTask(r,a,s,c)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&i(),hx(t)}},onInvoke:(n,o,r,a,s,c,u)=>{try{return fx(t),n.invoke(r,a,s,c,u)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!Q$(c)&&i(),hx(t)}},onHasTask:(n,o,r,a)=>{n.hasTask(r,a),o===r&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,z8(t),x5(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 z8(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function fx(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function hx(t){t._nesting--,x5(t)}var Ld=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 q$(t){return OM(t,"__ignore_ng_zone__")}function Q$(t){return OM(t,"__scheduler_tick__")}function OM(t,i){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[i]===!0}function LM(t="zone.js",i){return t==="noop"?new Ld:t==="zone.js"?new se(i):t}var tm=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})(),M5=[0,1,2,3],w5=(()=>{class t{ngZone=d(se);scheduler=d(er);errorHandler=d(Ci,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){d(Rs,{optional:!0})}execute(){let e=this.sequences.size>0;e&&cn(16),this.executing=!0;for(let n of M5)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&&cn(17)}register(e){let{view:n}=e;n!==void 0?((n[Bc]??=[]).push(e),Os(n),n[at]|=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(em.AFTER_NEXT_RENDER,e):e()}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})(),Pd=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?.[Bc];i&&(this.view[Bc]=i.filter(e=>e!==this))}};function xt(t,i){let e=i?.injector??d(ye);return ga("NgAfterNextRender"),X$(t,e,i,!0)}function K$(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function X$(t,i,e,n){let o=i.get(tm);o.impl??=i.get(w5);let r=i.get(Rs,null,{optional:!0}),a=e?.manualCleanup!==!0?i.get(Gi):null,s=i.get($c,null,{optional:!0}),c=new Pd(o.impl,K$(t),s?.view,n,a,r?.snapshot(null));return o.impl.register(c),c}var PM=new P("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function AM(t,i,e){let n=t.get(PM);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 Z$(t,i){let e=t.get(PM);if(i.detachedLeaveAnimationFns){for(let n of i.detachedLeaveAnimationFns)e.queue.delete(n);i.detachedLeaveAnimationFns=void 0}}function J$(t,i){for(let[e,n]of i)AM(t,n.animateFns)}function gx(t,i,e,n){let o=t?.[jc]?.enter;i!==null&&o&&o.has(e.index)&&J$(n,o)}function _1(t,i,e,n,o,r,a,s){if(o!=null){let c,u=!1;Tr(o)?c=o:ca(o)&&(u=!0,o=o[Ir]);let f=ir(o);t===0&&n!==null?(gx(s,n,r,e),a==null?vM(i,n,f):z4(i,n,f,a||null,!0)):t===1&&n!==null?(gx(s,n,r,e),z4(i,n,f,a||null,!0)):t===2?_x(s,r,e,g=>{yM(i,f,u,g)}):t===3&&_x(s,r,e,()=>{i.destroyNode(f)}),c!=null&&dG(i,t,e,c,r,n,a)}}function eG(t,i){zM(t,i),i[Ir]=null,i[ro]=null}function tG(t,i,e,n,o,r){n[Ir]=o,n[ro]=i,im(t,n,e,1,o,r)}function zM(t,i){i[aa].changeDetectionScheduler?.notify(9),im(t,i,i[Zt],2,null,null)}function nG(t){let i=t[c1];if(!i)return u8(t[Ye],t);for(;i;){let e=null;if(ca(i))e=i[c1];else{let n=i[Bn];n&&(e=n)}if(!e){for(;i&&!i[nr]&&i!==t;)ca(i)&&u8(i[Ye],i),i=i[pi];i===null&&(i=t),ca(i)&&u8(i[Ye],i),e=i&&i[nr]}i=e}}function D5(t,i){let e=t[Hc],n=e.indexOf(i);e.splice(n,1)}function nm(t,i){if(Uc(i))return;let e=i[Zt];e.destroyNode&&im(t,i,e,3,null,null),nG(i)}function u8(t,i){if(Uc(i))return;let e=nt(null);try{i[at]&=-129,i[at]|=256,i[No]&&xs(i[No]),rG(t,i),oG(t,i),i[Ye].type===1&&i[Zt].destroy();let n=i[Is];if(n!==null&&Tr(i[pi])){n!==i[pi]&&D5(n,i);let o=i[sa];o!==null&&o.detachView(t)}x8(i)}finally{nt(e)}}function _x(t,i,e,n){let o=t?.[jc];if(o==null||o.leave==null||!o.leave.has(i.index))return n(!1);t&&qc.add(t),AM(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[jc].running=void 0,qc.delete(t),i(!0)});return}i(!1)}function oG(t,i){let e=t.cleanup,n=i[s1];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[s1]=null);let o=i[Ha];if(o!==null){i[Ha]=null;for(let a=0;aan&&EM(t,i,an,!1),cn(a?2:0,o,e),e(n,o)}finally{Ls(r),cn(a?3:1,o,e)}}function om(t,i,e){gG(t,i,e),(e.flags&64)===64&&_G(t,i,e)}function $d(t,i,e=or){let n=i.localNames;if(n!==null){let o=i.index+1;for(let r=0;rnull;function hG(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function jM(t,i,e,n,o,r){let a=i[Ye];if(rm(t,a,i,e,n)){Ya(t)&&UM(i,t.index);return}t.type&3&&(e=hG(e)),HM(t,i,e,n,o,r)}function HM(t,i,e,n,o,r){if(t.type&3){let a=or(t,i);n=r!=null?r(n,t.value||"",e):n,o.setProperty(a,e,n)}else t.type&12}function UM(t,i){let e=rr(i,t);e[at]&16||(e[at]|=64)}function gG(t,i,e){let n=e.directiveStart,o=e.directiveEnd;Ya(e)&&H$(i,e,t.data[n+e.componentOffset]),t.firstCreatePass||A4(e,i);let r=e.initialInputs;for(let a=n;a{Os(t.lView)},consumerOnSignalRead(){this.lView[No]=this}});function IG(t){let i=t[No]??Object.create(TG);return i.lView=t,i}var TG=Ne(q({},xc),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let i=Es(t.lView);for(;i&&!qM(i[Ye]);)i=Es(i);i&&Gg(i)},consumerOnSignalRead(){this.lView[No]=this}});function qM(t){return t.type!==2}function QM(t){if(t[Wa]===null)return;let i=!0;for(;i;){let e=!1;for(let n of t[Wa])n.dirty&&(e=!0,n.zone===null||Zone.current===n.zone?n.run():n.zone.run(()=>n.run()));i=e&&!!(t[at]&8192)}}var OG=100;function KM(t,i=0){let n=t[aa].rendererFactory,o=!1;o||n.begin?.();try{LG(t,i)}finally{o||n.end?.()}}function LG(t,i){let e=n8();try{p1(!0),N8(t,i);let n=0;for(;Md(t);){if(n===OG)throw new fe(103,!1);n++,N8(t,1)}}finally{p1(e)}}function PG(t,i,e,n){if(Uc(i))return;let o=i[at],r=!1,a=!1;f4(i);let s=!0,c=null,u=null;r||(qM(t)?(u=DG(i),c=Cs(u)):_3()===null?(s=!1,u=IG(i),c=Cs(u)):i[No]&&(xs(i[No]),i[No]=null));try{$g(i),BC(t.bindingStartIndex),e!==null&&BM(t,i,e,2,n);let f=(o&3)===3;if(!r)if(f){let x=t.preOrderCheckHooks;x!==null&&D4(i,x,null)}else{let x=t.preOrderHooks;x!==null&&S4(i,x,0,null),l8(i,0)}if(a||AG(i),QM(i),XM(i,0),t.contentQueries!==null&&dM(t,i),!r)if(f){let x=t.contentCheckHooks;x!==null&&D4(i,x)}else{let x=t.contentHooks;x!==null&&S4(i,x,1),l8(i,1)}RG(t,i);let g=t.components;g!==null&&JM(i,g,0);let y=t.viewQuery;if(y!==null&&w8(2,y,n),!r)if(f){let x=t.viewCheckHooks;x!==null&&D4(i,x)}else{let x=t.viewHooks;x!==null&&S4(i,x,2),l8(i,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),i[s4]){for(let x of i[s4])x();i[s4]=null}r||(WM(i),i[at]&=-73)}catch(f){throw r||Os(i),f}finally{u!==null&&(Mc(u,c),s&&kG(u)),h4()}}function XM(t,i){for(let e=nM(t);e!==null;e=iM(e))for(let n=Bn;n0&&(t[e-1][nr]=n[nr]);let r=bd(t,Bn+i);eG(n[Ye],n);let a=r[sa];a!==null&&a.detachView(r[Ye]),n[pi]=null,n[nr]=null,n[at]&=-129}return n}function NG(t,i,e,n){let o=Bn+n,r=e.length;n>0&&(e[o-1][nr]=i),n-1&&(zd(i,n),bd(e,n))}this._attachedToViewContainer=!1}nm(this._lView[Ye],this._lView)}onDestroy(i){Wg(this._lView,i)}markForCheck(){L5(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[at]&=-129}reattach(){l4(this._lView),this._lView[at]|=128}detectChanges(){this._lView[at]|=1024,KM(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new fe(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let i=d1(this._lView),e=this._lView[Is];e!==null&&!i&&D5(e,this._lView),zM(this._lView[Ye],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new fe(902,!1);this._appRef=i;let e=d1(this._lView),n=this._lView[Is];n!==null&&!e&&iw(n,this._lView),l4(this._lView)}};var it=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=FG;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=Gd(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:o});return new Ps(r)}}return t})();function FG(){return am(ei(),ze())}function am(t,i){return t.type&4?new it(i,t,D1(t,i)):null}function E1(t,i,e,n,o){let r=t.data[i];if(r===null)r=VG(t,i,e,n,o),jC()&&(r.flags|=32);else if(r.type&64){r.type=e,r.value=n,r.attrs=o;let a=FC();r.injectorIndex=a===null?-1:a.injectorIndex}return m1(r,!0),r}function VG(t,i,e,n,o){let r=Jg(),a=e8(),s=a?r:r&&r.parent,c=t.data[i]=jG(t,s,e,i,n,o);return BG(t,c,r,a),c}function BG(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 jG(t,i,e,n,o,r){let a=i?i.injectorIndex:-1,s=0;return Kg()&&(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 R8e=new RegExp(`^(\\d+)*(${QU}|${qU})*(.*)`);function HG(t){let i=t[Vg]??[],n=t[pi][Zt],o=[];for(let r of i)r.data[aM]!==void 0?o.push(r):UG(r,n);t[Vg]=o}function UG(t,i){let e=0,n=t.firstChild;if(n){let o=t.data[rM];for(;enull,GG=()=>null;function N4(t,i){return $G(t,i)}function ow(t,i,e){return GG(t,i,e)}var rw=class{},sm=class{},F8=class{resolveComponentFactory(i){throw new fe(917,!1)}},Yd=class{static NULL=new F8},Ln=class{},Je=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>WG()}return t})();function WG(){let t=ze(),i=ei(),e=rr(i.index,t);return(ca(e)?e:t)[Zt]}var aw=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>null})}return t})();var E4={},V8=class{injector;parentInjector;constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){let o=this.injector.get(i,E4,n);return o!==E4||e===E4?o:this.parentInjector.get(i,e,n)}};function F4(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 y=0;y0;){let e=t[--i];if(typeof e=="number"&&e<0)return e}return 0}function eW(t,i,e){if(e){if(i.exportAs)for(let n=0;nn(ir(Y[t.index])):t.index;pw(D,i,e,r,s,x,!1)}}return u}function oW(t){return t.startsWith("animation")||t.startsWith("transition")}function rW(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 pw(t,i,e,n,o,r,a){let s=i.firstCreatePass?qg(i):null,c=Yg(e),u=c.length;c.push(o,r),s&&s.push(n,t,u,(u+1)*(a?-1:1))}function Mx(t,i,e,n,o,r){let a=i[e],s=i[Ye],u=s.data[e].outputs[n],g=a[u].subscribe(r);pw(t.index,s,i,o,r,g,!0)}var B8=Symbol("BINDING");var V4=class extends Yd{ngModule;constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){let e=oa(i);return new As(e,this.ngModule)}};function aW(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 sW(t){return Object.keys(t).map(i=>({propName:t[i],templateName:i}))}function cW(t,i,e){let n=i instanceof Xt?i:i?.injector;return n&&t.getStandaloneInjector!==null&&(n=t.getStandaloneInjector(n)||n),n?new V8(e,n):e}function lW(t){let i=t.get(Ln,null);if(i===null)throw new fe(407,!1);let e=t.get(aw,null),n=t.get(er,null);return{rendererFactory:i,sanitizer:e,changeDetectionScheduler:n,ngReflect:!1}}function dW(t,i){let e=fw(t);return bM(i,e,e==="svg"?jg:e==="math"?TC:null)}function fw(t){return(t.selectors[0][0]||"div").toLowerCase()}var As=class extends sm{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=aW(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=sW(this.componentDef.outputs),this.cachedOutputs}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=F$(i.selectors),this.ngContentSelectors=i.ngContentSelectors??[],this.isBoundToModule=!!e}create(i,e,n,o,r,a){cn(22);let s=nt(null);try{let c=this.componentDef,u=uW(n,c,a,r),f=cW(c,o||this.ngModule,i),g=lW(f),y=g.rendererFactory.createRenderer(null,c),x=n?mG(y,n,c.encapsulation,f):dW(c,y),D=a?.some(wx)||r?.some(K=>typeof K!="function"&&K.bindings.some(wx)),Y=b5(null,u,null,512|SM(c),null,null,g,y,f,null,lM(x,f,!0));Y[an]=x,f4(Y);let Q=null;try{let K=P5(an,Y,2,"#host",()=>u.directiveRegistry,!0,0);CM(y,x,K),y1(x,Y),om(u,Y,K),c5(u,K,Y),A5(u,K),e!==void 0&&pW(K,this.ngContentSelectors,e),Q=rr(K.index,Y),Y[Vn]=Q[Vn],O5(u,Y,null)}catch(K){throw Q!==null&&x8(Q),x8(Y),K}finally{cn(23),h4()}return new B4(this.componentType,Y,!!D)}finally{nt(s)}}};function uW(t,i,e,n){let o=t?["ng-version","20.3.15"]:V$(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 wx(t){let i=t[B8].kind;return i==="input"||i==="twoWay"}var B4=class extends rw{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(i,e,n){super(),this._rootLView=e,this._hasInputBindings=n,this._tNode=xd(e[Ye],an),this.location=D1(this._tNode,e),this.instance=rr(this._tNode.index,e)[Vn],this.hostView=this.changeDetectorRef=new Ps(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=rm(n,o[Ye],o,i,e);this.previousInputValues.set(i,e);let a=rr(n.index,o);L5(a,1)}get injector(){return new Wc(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}};function pW(t,i,e){let n=t.projection=[];for(let o=0;o{class t{static __NG_ELEMENT_ID__=fW}return t})();function fW(){let t=ei();return gw(t,ze())}var hW=pt,hw=class extends hW{_lContainer;_hostTNode;_hostLView;constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return D1(this._hostTNode,this._hostLView)}get injector(){return new Wc(this._hostTNode,this._hostLView)}get parentInjector(){let i=o5(this._hostTNode,this._hostLView);if($x(i)){let e=L4(i,this._hostLView),n=O4(i),o=e[Ye].data[n+8];return new Wc(o,e)}else return new Wc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){let e=Dx(this._lContainer);return e!==null&&e[i]||null}get length(){return this._lContainer.length-Bn}createEmbeddedView(i,e,n){let o,r;typeof n=="number"?o=n:n!=null&&(o=n.index,r=n.injector);let a=N4(this._lContainer,i.ssrId),s=i.createEmbeddedViewImpl(e||{},r,a);return this.insertImpl(s,o,C1(this._hostTNode,a)),s}createComponent(i,e,n,o,r,a,s){let c=i&&!MU(i),u;if(c)u=e;else{let Q=e||{};u=Q.index,n=Q.injector,o=Q.projectableNodes,r=Q.environmentInjector||Q.ngModuleRef,a=Q.directives,s=Q.bindings}let f=c?i:new As(oa(i)),g=n||this.parentInjector;if(!r&&f.ngModule==null){let K=(c?g:this.parentInjector).get(Xt,null);K&&(r=K)}let y=oa(f.componentType??{}),x=N4(this._lContainer,y?.id??null),D=x?.firstChild??null,Y=f.create(g,o,D,r,a,s);return this.insertImpl(Y.hostView,u,C1(this._hostTNode,x)),Y}insert(i,e){return this.insertImpl(i,e,!0)}insertImpl(i,e,n){let o=i._lView;if(LC(o)){let s=this.indexOf(i);if(s!==-1)this.detach(s);else{let c=o[pi],u=new hw(c,c[ro],c[pi]);u.detach(u.indexOf(i))}}let r=this._adjustIndex(e),a=this._lContainer;return Wd(a,o,r,n),i.attachToViewContainerRef(),Ig(m8(a),r,i),i}move(i,e){return this.insert(i,e)}indexOf(i){let e=Dx(this._lContainer);return e!==null?e.indexOf(i):-1}remove(i){let e=this._adjustIndex(i,-1),n=zd(this._lContainer,e);n&&(bd(m8(this._lContainer),e),nm(n[Ye],n))}detach(i){let e=this._adjustIndex(i,-1),n=zd(this._lContainer,e);return n&&bd(m8(this._lContainer),e)!=null?new Ps(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function Dx(t){return t[Cd]}function m8(t){return t[Cd]||(t[Cd]=[])}function gw(t,i){let e,n=i[t.index];return Tr(n)?e=n:(e=ew(n,i,null,t),i[t.index]=e,v5(i,e)),_W(e,i,t,n),new hw(e,t,i)}function gW(t,i){let e=t[Zt],n=e.createComment(""),o=or(i,t),r=e.parentNode(o);return z4(e,r,n,e.nextSibling(o),!1),n}var _W=yW,bW=()=>!1;function vW(t,i,e){return bW(t,i,e)}function yW(t,i,e,n){if(t[Ts])return;let o;e.type&8?o=ir(n):o=gW(i,e),t[Ts]=o}var j8=class t{queryList;matches=null;constructor(i){this.queryList=i}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},H8=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 u=r[s+1],f=i[-c];for(let g=Bn;gi.trim())}function Cw(t,i,e){t.queries===null&&(t.queries=new U8),t.queries.track(new $8(i,e))}function SW(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 N5(t,i){return t.queries.getByIndex(i)}function xw(t,i){let e=t[Ye],n=N5(e,i);return n.crossesNgTemplate?G8(e,t,i,[]):_w(e,t,n,i)}function Mw(t,i,e){let n,o=sd(()=>{n._dirtyCounter();let r=kW(n,t);if(i&&r===void 0)throw new fe(-951,!1);return r});return n=o[Kn],n._dirtyCounter=Se(0),n._flatValue=void 0,o}function F5(t){return Mw(!0,!1,t)}function V5(t){return Mw(!0,!0,t)}function ww(t,i){let e=t[Kn];e._lView=ze(),e._queryIndex=i,e._queryList=R5(e._lView,i),e._queryList.onDirty(()=>e._dirtyCounter.update(n=>n+1))}function kW(t,i){let e=t._lView,n=t._queryIndex;if(e===void 0||n===void 0||e[at]&4)return i?void 0:Hi;let o=R5(e,n),r=xw(e,n);return o.reset(r,Jx),i?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}function Dw(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=>IW(o,s)))}return r}return H4.forEach((o,r)=>{let a=[];o.templateUrl&&a.push(n(o.templateUrl).then(u=>{o.template=u}));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 u=o.styles.length,f=o.styleUrls;o.styleUrls.forEach((g,y)=>{s.push(""),a.push(n(g).then(x=>{s[u+y]=x,f.splice(f.indexOf(g),1),f.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&a.push(n(o.styleUrl).then(u=>{s.push(u),o.styleUrl=void 0}));let c=Promise.all(a).then(()=>TW(r));i.push(c)}),Sw(),Promise.all(i).then(()=>{})}var H4=new Map,EW=new Set;function Sw(){let t=H4;return H4=new Map,t}function kw(){return H4.size===0}function IW(t,i){return typeof i=="string"?i:i.status!==void 0&&i.status!==200?Promise.reject(new fe(918,!1)):i.text()}function TW(t){EW.delete(t)}var pa=class{},lm=class{};var Nd=class extends pa{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new V4(this);constructor(i,e,n,o=!0){super(),this.ngModuleType=i,this._parent=e;let r=Lg(i);this._bootstrapComponents=MM(r.bootstrap),this._r3Injector=r8(i,e,[{provide:pa,useValue:this},{provide:Yd,useValue:this.componentFactoryResolver},...n],Ua(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)}},Fd=class extends lm{moduleType;constructor(i){super(),this.moduleType=i}create(i){return new Nd(this.moduleType,i,[])}};function Ew(t,i,e){return new Nd(t,i,e,!1)}var U4=class extends pa{injector;componentFactoryResolver=new V4(this);instance=null;constructor(i){super();let e=new zc([...i.providers,{provide:pa,useValue:this},{provide:Yd,useValue:this.componentFactoryResolver}],i.parent||a1(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}};function I1(t,i,e=null){return new U4({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}var OW=(()=>{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=Pg(!1,e.type),o=n.length>0?I1([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(be(Xt))})}return t})();function L(t){return w1(()=>{let i=Iw(t),e=Ne(q({},i),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===r5.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:i.standalone?o=>o.get(OW).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Qa.Emulated,styles:t.styles||Hi,_:null,schemas:t.schemas||null,tView:null,id:""});i.standalone&&ga("NgStandalone"),Tw(e);let n=t.dependencies;return e.directiveDefs=Sx(n,LW),e.pipeDefs=Sx(n,wC),e.id=zW(e),e})}function LW(t){return oa(t)||a4(t)}function J(t){return w1(()=>({type:t.type,bootstrap:t.bootstrap||Hi,declarations:t.declarations||Hi,imports:t.imports||Hi,exports:t.exports||Hi,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function PW(t,i){if(t==null)return Er;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 AW(t){if(t==null)return Er;let i={};for(let e in t)t.hasOwnProperty(e)&&(i[t[e]]=e);return i}function z(t){return w1(()=>{let i=Iw(t);return Tw(i),i})}function St(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 Iw(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||Er,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||Hi,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:PW(t.inputs,i),outputs:AW(t.outputs),debugInfo:null}}function Tw(t){t.features?.forEach(i=>i(t))}function Sx(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 zW(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 RW(t){return Object.getPrototypeOf(t.prototype).constructor}function ce(t){let i=RW(t.type),e=!0,n=[t];for(;i;){let o;if(Or(t))o=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new fe(903,!1);o=i.\u0275dir}if(o){if(e){n.push(o);let a=t;a.inputs=p8(t.inputs),a.declaredInputs=p8(t.declaredInputs),a.outputs=p8(t.outputs);let s=o.hostBindings;s&&jW(t,s);let c=o.viewQuery,u=o.contentQueries;if(c&&VW(t,c),u&&BW(t,u),NW(t,o),hC(t.outputs,o.outputs),Or(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=v1(o.hostAttrs,e=v1(e,o.hostAttrs))}}function p8(t){return t===Er?{}:t===Hi?[]:t}function VW(t,i){let e=t.viewQuery;e?t.viewQuery=(n,o)=>{i(n,o),e(n,o)}:t.viewQuery=i}function BW(t,i){let e=t.contentQueries;e?t.contentQueries=(n,o,r)=>{i(n,o,r),e(n,o,r)}:t.contentQueries=i}function jW(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=HW,e.hostDirectives=n?t.map(W8):[t]):n?e.hostDirectives.unshift(...t.map(W8)):e.hostDirectives.unshift(t)};return i.ngInherit=!0,i}function HW(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 um=new P(""),T1=new P(""),Qd=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(e,n,o){this._ngZone=e,this.registry=n,Rg()&&(this._destroyRef=d(Gi,{optional:!0})??void 0),j5||(Pw(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)(be(se),be(Kd),be(T1))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Kd=(()=>{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 j5?.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 Pw(t){j5=t}var j5;function Za(t){return!!t&&typeof t.then=="function"}function mm(t){return!!t&&typeof t.subscribe=="function"}var H5=new P("");function pm(t){return ra([{provide:H5,multi:!0,useValue:t}])}var U5=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n});appInits=d(H5,{optional:!0})??[];injector=d(ye);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let o of this.appInits){let r=xi(this.injector,o);if(Za(r))e.push(r);else if(mm(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})(),fm=new P("");function Aw(){B6(()=>{let t="";throw new fe(600,t)})}function zw(t){return t.isBoundToModule}var YW=10;function $5(t,i){return Array.isArray(i)?i.reduce($5,t):q(q({},t),i)}var fi=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=d(ao);afterRenderManager=d(tm);zonelessEnabled=d(Sd);rootEffectScheduler=d(kd);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(ua);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(ue(e=>!e))}constructor(){d(Rs,{optional:!0})}whenStable(){let e;return new Promise(n=>{e=this.isStable.subscribe({next:o=>{o&&n()}})}).finally(()=>{e.unsubscribe()})}_injector=d(Xt);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,n){return this.bootstrapImpl(e,n)}bootstrapImpl(e,n,o=ye.NULL){return this._injector.get(se).run(()=>{cn(10);let a=e instanceof sm;if(!this._injector.get(U5).done){let D="";throw new fe(405,D)}let c;a?c=e:c=this._injector.get(Yd).resolveComponentFactory(e),this.componentTypes.push(c.componentType);let u=zw(c)?void 0:this._injector.get(pa),f=n||c.selector,g=c.create(o,[],f,u),y=g.location.nativeElement,x=g.injector.get(um,null);return x?.registerApplication(y),g.onDestroy(()=>{this.detachView(g.hostView),Id(this.components,g),x?.unregisterApplication(y)}),this._loadComponent(g),cn(11,g),g})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){cn(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(em.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new fe(101,!1);let e=nt(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,nt(e),this.afterTick.next(),cn(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Ln,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++Md(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;Id(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(fm,[]).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),()=>Id(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new fe(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 Id(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function O1(t,i){let e=ze(),n=la();if(so(e,n,i)){let o=sn(),r=h1();if(rm(r,o,e,t,i))Ya(r)&&UM(e,r.index);else{let s=or(r,e);$M(e[Zt],s,null,r.value,t,i,null)}}return O1}function ne(t,i,e,n){let o=ze(),r=la();if(so(o,r,i)){let a=sn(),s=h1();vG(s,o,t,i,e,n)}return ne}var U8e=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function G5(){return ze()[$i][Vn]}var Y8=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 f8(t,i,e,n,o){return t===e&&Object.is(i,n)?1:Object.is(o(t,i),o(e,n))?-1:0}function qW(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 u=t.at(r),f=i[r],g=f8(r,u,r,f,e);if(g!==0){g<0&&t.updateValue(r,f),r++;continue}let y=t.at(a),x=i[c],D=f8(a,y,c,x,e);if(D!==0){D<0&&t.updateValue(a,x),a--,c--;continue}let Y=e(r,u),Q=e(a,y),K=e(r,f);if(Object.is(K,Q)){let pe=e(c,x);Object.is(pe,Y)?(t.swap(r,a),t.updateValue(a,x),c--,a--):t.move(a,r),t.updateValue(r,f),r++;continue}if(n??=new $4,o??=Tx(t,r,a,e),q8(t,n,r,K))t.updateValue(r,f),r++,a++;else if(o.has(K))n.set(Y,t.detach(r)),a--;else{let pe=t.create(r,i[r]);t.attach(r,pe),r++,a++}}for(;r<=c;)Ix(t,n,e,r,i[r]),r++}else if(i!=null){let c=i[Symbol.iterator](),u=c.next();for(;!u.done&&r<=a;){let f=t.at(r),g=u.value,y=f8(r,f,r,g,e);if(y!==0)y<0&&t.updateValue(r,g),r++,u=c.next();else{n??=new $4,o??=Tx(t,r,a,e);let x=e(r,g);if(q8(t,n,r,x))t.updateValue(r,g),r++,a++,u=c.next();else if(!o.has(x))t.attach(r,t.create(r,g)),r++,a++,u=c.next();else{let D=e(r,f);n.set(D,t.detach(r)),a--}}}for(;!u.done;)Ix(t,n,e,t.length,u.value),u=c.next()}for(;r<=a;)t.destroy(t.detach(a--));n?.forEach(c=>{t.destroy(c)})}function q8(t,i,e,n){return i!==void 0&&i.has(n)?(t.attach(e,i.get(n)),i.delete(n),!0):!1}function Ix(t,i,e,n,o){if(q8(t,i,n,e(n,o)))t.updateValue(n,o);else{let r=t.create(n,o);t.attach(n,r)}}function Tx(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 $4=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 I(t,i,e,n,o,r,a,s){ga("NgControlFlow");let c=ze(),u=sn(),f=Fo(u.consts,r);return x1(c,u,t,i,e,n,o,f,256,a,s),W5}function W5(t,i,e,n,o,r,a,s){ga("NgControlFlow");let c=ze(),u=sn(),f=Fo(u.consts,r);return x1(c,u,t,i,e,n,o,f,512,a,s),W5}function T(t,i){ga("NgControlFlow");let e=ze(),n=la(),o=e[n]!==ti?e[n]:-1,r=o!==-1?G4(e,an+o):void 0,a=0;if(so(e,n,t)){let s=nt(null);try{if(r!==void 0&&nw(r,a),t!==-1){let c=an+t,u=G4(e,c),f=Z8(e[Ye],c),g=ow(u,f,e),y=Gd(e,f,i,{dehydratedView:g});Wd(u,y,a,C1(f,g))}}finally{nt(s)}}else if(r!==void 0){let s=tw(r,a);s!==void 0&&(s[Vn]=i)}}var Q8=class{lContainer;$implicit;$index;constructor(i,e,n){this.lContainer=i,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-Bn}};function gt(t,i){return i}var K8=class{hasEmptyBlock;trackByFn;liveCollection;constructor(i,e,n){this.hasEmptyBlock=i,this.trackByFn=e,this.liveCollection=n}};function et(t,i,e,n,o,r,a,s,c,u,f,g,y){ga("NgControlFlow");let x=ze(),D=sn(),Y=c!==void 0,Q=ze(),K=s?a.bind(Q[$i][Vn]):a,pe=new K8(Y,K);Q[an+t]=pe,x1(x,D,t+1,i,e,n,o,Fo(D.consts,r),256),Y&&x1(x,D,t+2,c,u,f,g,Fo(D.consts,y),512)}var X8=class extends Y8{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-Bn}at(i){return this.getLView(i)[Vn].$implicit}attach(i,e){let n=e[Nc];this.needsIndexUpdate||=i!==this.length,Wd(this.lContainer,e,i,C1(this.templateTNode,n)),QW(this.lContainer,i)}detach(i){return this.needsIndexUpdate||=i!==this.length-1,KW(this.lContainer,i),XW(this.lContainer,i)}create(i,e){let n=N4(this.lContainer,this.templateTNode.tView.ssrId),o=Gd(this.hostLView,this.templateTNode,new Q8(this.lContainer,e,i),{dehydratedView:n});return this.operationsCounter?.recordCreate(),o}destroy(i){nm(i[Ye],i),this.operationsCounter?.recordDestroy()}updateValue(i,e){this.getLView(i)[Vn].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i0){let r=n[Ga];Z$(r,o),qc.delete(n),o.detachedLeaveAnimationFns=void 0}}function KW(t,i){if(t.length<=Bn)return;let e=Bn+i,n=t[e],o=n?n[jc]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function XW(t,i){return zd(t,i)}function ZW(t,i){return tw(t,i)}function Z8(t,i){return xd(t,i)}function S(t,i,e){let n=ze(),o=la();if(so(n,o,i)){let r=sn(),a=h1();jM(a,n,t,i,n[Zt],e)}return S}function J8(t,i,e,n,o){rm(i,t,e,o?"class":"style",n)}function h(t,i,e,n){let o=ze(),r=o[Ye],a=t+an,s=r.firstCreatePass?P5(a,o,2,i,E5,d4(),e,n):r.data[a];if(I5(s,o,t,i,Rw),l1(s)){let c=o[Ye];om(c,o,s),c5(c,s,o)}return n!=null&&$d(o,s),h}function b(){let t=sn(),i=ei(),e=T5(i);return t.firstCreatePass&&A5(t,e),Xg(e)&&Zg(),Qg(),e.classesWithoutHost!=null&&IU(e)&&J8(t,e,ze(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&TU(e)&&J8(t,e,ze(),e.stylesWithoutHost,!1),b}function F(t,i,e,n){return h(t,i,e,n),b(),F}function ot(t,i,e,n){let o=ze(),r=o[Ye],a=t+an,s=r.firstCreatePass?nW(a,r,2,i,e,n):r.data[a];return I5(s,o,t,i,Rw),n!=null&&$d(o,s),ot}function st(){let t=ei(),i=T5(t);return Xg(i)&&Zg(),Qg(),st}function Pn(t,i,e,n){return ot(t,i,e,n),st(),Pn}var Rw=(t,i,e,n,o)=>(Dd(!0),bM(i[Zt],n,QC()));function Wi(t,i,e){let n=ze(),o=n[Ye],r=t+an,a=o.firstCreatePass?P5(r,n,8,"ng-container",E5,d4(),i,e):o.data[r];if(I5(a,n,t,"ng-container",JW),l1(a)){let s=n[Ye];om(s,n,a),c5(s,a,n)}return e!=null&&$d(n,a),Wi}function Yi(){let t=sn(),i=ei(),e=T5(i);return t.firstCreatePass&&A5(t,e),Yi}function jt(t,i,e){return Wi(t,i,e),Yi(),jt}var JW=(t,i,e,n,o)=>(Dd(!0),x$(i[Zt],""));function le(){return ze()}function At(t,i,e){let n=ze(),o=la();if(so(n,o,i)){let r=sn(),a=h1();HM(a,n,t,i,n[Zt],e)}return At}var x4=void 0;function eY(t){let i=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return i===1&&e===0?1:5}var tY=["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"]],x4,[["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"]],x4,[["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}",x4,"{1} 'at' {0}",x4],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",eY],Td={};function Y5(t,i,e){typeof i!="string"&&(e=i,i=t[bn.LocaleId]),i=i.toLowerCase().replace(/_/g,"-"),Td[i]=t,e&&(Td[i][bn.ExtraData]=e)}function co(t){let i=nY(t),e=Ox(i);if(e)return e;let n=i.split("-")[0];if(e=Ox(n),e)return e;if(n==="en")return tY;throw new fe(701,!1)}function Ox(t){return t in Td||(Td[t]=Jn.ng&&Jn.ng.common&&Jn.ng.common.locales&&Jn.ng.common.locales[t]),Td[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 nY(t){return t.toLowerCase().replace(/_/g,"-")}var Xd="en-US",iY="USD";var oY=Xd;function Nw(t){typeof t=="string"&&(oY=t.toLowerCase().replace(/_/g,"-"))}function N(t,i,e){let n=ze(),o=sn(),r=ei();return Fw(o,n,n[Zt],r,t,i,e),N}function hm(t,i,e){let n=ze(),o=sn(),r=ei();return(r.type&3||e)&&mw(r,o,n,e,n[Zt],t,i,I4(r,n,i)),hm}function Fw(t,i,e,n,o,r,a){let s=!0,c=null;if((n.type&3||a)&&(c??=I4(n,i,r),mw(n,t,i,a,e,o,r,c)&&(s=!1)),s){let u=n.outputs?.[o],f=n.hostDirectiveOutputs?.[o];if(f&&f.length)for(let g=0;g>17&32767}function sY(t){return(t&2)==2}function cY(t,i){return t&131071|i<<17}function e5(t){return t|2}function M1(t){return(t&131068)>>2}function h8(t,i){return t&-131069|i<<2}function lY(t){return(t&1)===1}function t5(t){return t|1}function dY(t,i,e,n,o,r){let a=r?i.classBindings:i.styleBindings,s=Qc(a),c=M1(a);t[n]=e;let u=!1,f;if(Array.isArray(e)){let g=e;f=g[1],(f===null||r1(g,f)>0)&&(u=!0)}else f=e;if(o)if(c!==0){let y=Qc(t[s+1]);t[n+1]=M4(y,s),y!==0&&(t[y+1]=h8(t[y+1],n)),t[s+1]=cY(t[s+1],n)}else t[n+1]=M4(s,0),s!==0&&(t[s+1]=h8(t[s+1],n)),s=n;else t[n+1]=M4(c,0),s===0?s=n:t[c+1]=h8(t[c+1],n),c=n;u&&(t[n+1]=e5(t[n+1])),Lx(t,f,n,!0),Lx(t,f,n,!1),uY(i,f,t,n,r),a=M4(s,c),r?i.classBindings=a:i.styleBindings=a}function uY(t,i,e,n,o){let r=o?t.residualClasses:t.residualStyles;r!=null&&typeof i=="string"&&r1(r,i)>=0&&(e[n+1]=t5(e[n+1]))}function Lx(t,i,e,n){let o=t[e+1],r=i===null,a=n?Qc(o):M1(o),s=!1;for(;a!==0&&(s===!1||r);){let c=t[a],u=t[a+1];mY(c,i)&&(s=!0,t[a+1]=n?t5(u):e5(u)),a=n?Qc(u):M1(u)}s&&(t[e+1]=n?e5(o):t5(o))}function mY(t,i){return t===null||i==null||(Array.isArray(t)?t[1]:t)===i?!0:Array.isArray(t)&&typeof i=="string"?r1(t,i)>=0:!1}var Pr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function pY(t){return t.substring(Pr.key,Pr.keyEnd)}function fY(t){return hY(t),Vw(t,Bw(t,0,Pr.textEnd))}function Vw(t,i){let e=Pr.textEnd;return e===i?-1:(i=Pr.keyEnd=gY(t,Pr.key=i,e),Bw(t,i,e))}function hY(t){Pr.key=0,Pr.keyEnd=0,Pr.value=0,Pr.valueEnd=0,Pr.textEnd=t.length}function Bw(t,i,e){for(;i32;)i++;return i}function zt(t,i,e){return jw(t,i,e,!1),zt}function oe(t,i){return jw(t,i,null,!0),oe}function Lt(t){bY(wY,_Y,t,!0)}function _Y(t,i){for(let e=fY(i);e>=0;e=Vw(i,e))o4(t,pY(i),!0)}function jw(t,i,e,n){let o=ze(),r=sn(),a=f1(2);if(r.firstUpdatePass&&Uw(r,t,a,n),i!==ti&&so(o,a,i)){let s=r.data[ar()];$w(r,s,o,o[Zt],t,o[a+1]=SY(i,e),n,a)}}function bY(t,i,e,n){let o=sn(),r=f1(2);o.firstUpdatePass&&Uw(o,null,r,n);let a=ze();if(e!==ti&&so(a,r,e)){let s=o.data[ar()];if(Gw(s,n)&&!Hw(o,r)){let c=n?s.classesWithoutHost:s.stylesWithoutHost;c!==null&&(e=e4(c,e||"")),J8(o,s,a,e,n)}else DY(o,s,a,a[Zt],a[r+1],a[r+1]=MY(t,i,e),n,r)}}function Hw(t,i){return i>=t.expandoStartIndex}function Uw(t,i,e,n){let o=t.data;if(o[e+1]===null){let r=o[ar()],a=Hw(t,e);Gw(r,n)&&i===null&&!a&&(i=!1),i=vY(o,r,i,n),dY(o,r,i,e,a,n)}}function vY(t,i,e,n){let o=$C(t),r=n?i.residualClasses:i.residualStyles;if(o===null)(n?i.classBindings:i.styleBindings)===0&&(e=g8(null,t,i,e,n),e=Vd(e,i.attrs,n),r=null);else{let a=i.directiveStylingLast;if(a===-1||t[a]!==o)if(e=g8(o,t,i,e,n),r===null){let c=yY(t,i,n);c!==void 0&&Array.isArray(c)&&(c=g8(null,t,i,c[1],n),c=Vd(c,i.attrs,n),CY(t,i,n,c))}else r=xY(t,i,n)}return r!==void 0&&(n?i.residualClasses=r:i.residualStyles=r),e}function yY(t,i,e){let n=e?i.classBindings:i.styleBindings;if(M1(n)!==0)return t[Qc(n)]}function CY(t,i,e,n){let o=e?i.classBindings:i.styleBindings;t[Qc(o)]=n}function xY(t,i,e){let n,o=i.directiveEnd;for(let r=1+i.directiveStylingLast;r0;){let c=t[o],u=Array.isArray(c),f=u?c[1]:c,g=f===null,y=e[o+1];y===ti&&(y=g?Hi:void 0);let x=g?r4(y,n):f===n?y:void 0;if(u&&!W4(x)&&(x=r4(c,n)),W4(x)&&(s=x,a))return s;let D=t[o+1];o=a?Qc(D):M1(D)}if(i!==null){let c=r?i.residualClasses:i.residualStyles;c!=null&&(s=r4(c,n))}return s}function W4(t){return t!==void 0}function SY(t,i){return t==null||t===""||(typeof i=="string"?t=t+i:typeof t=="object"&&(t=Ua(Vo(t)))),t}function Gw(t,i){return(t.flags&(i?8:16))!==0}function C(t,i=""){let e=ze(),n=sn(),o=t+an,r=n.firstCreatePass?E1(n,o,1,i,null):n.data[o],a=kY(n,e,r,i,t);e[o]=a,g4()&&S5(n,e,a,r),m1(r,!1)}var kY=(t,i,e,n,o)=>(Dd(!0),y$(i[Zt],n));function Ww(t,i,e,n=""){return so(t,la(),e)?i+Ui(e)+n:ti}function Yw(t,i,e,n,o,r=""){let a=u4(),s=Rd(t,a,e,o);return f1(2),s?i+Ui(e)+n+Ui(o)+r:ti}function EY(t,i,e,n,o,r,a,s=""){let c=u4(),u=dw(t,c,e,o,a);return f1(3),u?i+Ui(e)+n+Ui(o)+r+Ui(a)+s:ti}function IY(t,i,e,n,o,r,a,s,c,u=""){let f=u4(),g=uw(t,f,e,o,a,c);return f1(4),g?i+Ui(e)+n+Ui(o)+r+Ui(a)+s+Ui(c)+u:ti}function O(t){return te("",t),O}function te(t,i,e){let n=ze(),o=Ww(n,t,i,e);return o!==ti&&_m(n,ar(),o),te}function Et(t,i,e,n,o){let r=ze(),a=Yw(r,t,i,e,n,o);return a!==ti&&_m(r,ar(),a),Et}function Ja(t,i,e,n,o,r,a){let s=ze(),c=EY(s,t,i,e,n,o,r,a);return c!==ti&&_m(s,ar(),c),Ja}function qw(t,i,e,n,o,r,a,s,c){let u=ze(),f=IY(u,t,i,e,n,o,r,a,s,c);return f!==ti&&_m(u,ar(),f),qw}function _m(t,i,e){let n=Hg(i,t);C$(t[Zt],n,e)}function P1(t,i,e){a8(i)&&(i=i());let n=ze(),o=la();if(so(n,o,i)){let r=sn(),a=h1();jM(a,n,t,i,n[Zt],e)}return P1}function Zd(t,i){let e=a8(t);return e&&t.set(i),e}function A1(t,i){let e=ze(),n=sn(),o=ei();return Fw(n,e,e[Zt],o,t,i),A1}function Vt(t){return so(ze(),la(),t)?Ui(t):ti}function Jc(t,i,e=""){return Ww(ze(),t,i,e)}function bm(t,i,e,n,o=""){return Yw(ze(),t,i,e,n,o)}function TY(t,i,e){let n=sn();if(n.firstCreatePass){let o=Or(t);n5(e,n.data,n.blueprint,o,!0),n5(i,n.data,n.blueprint,o,!1)}}function n5(t,i,e,n,o){if(t=mi(t),Array.isArray(t))for(let r=0;r>20;if(Ac(t)||!t.multi){let x=new Yc(u,o,Me,null),D=b8(c,i,o?f:f+y,g);D===-1?(y8(A4(s,a),r,c),_8(r,t,i.length),i.push(c),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(x),a.push(x)):(e[D]=x,a[D]=x)}else{let x=b8(c,i,f+y,g),D=b8(c,i,f,f+y),Y=x>=0&&e[x],Q=D>=0&&e[D];if(o&&!Q||!o&&!Y){y8(A4(s,a),r,c);let K=PY(o?LY:OY,e.length,o,n,u,t);!o&&Q&&(e[D].providerFactory=K),_8(r,t,i.length,0),i.push(c),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(K),a.push(K)}else{let K=Qw(e[o?D:x],u,!o&&n);_8(r,t,x>-1?x:D,K)}!o&&n&&Q&&e[D].componentProviders++}}}function _8(t,i,e,n){let o=Ac(i),r=EC(i);if(o||r){let c=(r?mi(i.useClass):i).prototype.ngOnDestroy;if(c){let u=t.destroyHooks||(t.destroyHooks=[]);if(!o&&i.multi){let f=u.indexOf(e);f===-1?u.push(e,[n,c]):u[f+1].push(n,c)}else u.push(e,c)}}}function Qw(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function b8(t,i,e,n){for(let o=e;o{e.providersResolver=(n,o)=>TY(n,o?o(t):t,i)}}function Bo(t,i,e){let n=qa()+t,o=ze();return o[n]===ti?qd(o,n,e?i.call(e):i()):iW(o,n)}function jo(t,i,e,n){return Kw(ze(),qa(),t,i,e,n)}function z1(t,i,e,n,o){return Xw(ze(),qa(),t,i,e,n,o)}function Q5(t,i,e,n,o,r){return Zw(ze(),qa(),t,i,e,n,o,r)}function vm(t,i){let e=t[i];return e===ti?void 0:e}function Kw(t,i,e,n,o,r){let a=i+e;return so(t,a,o)?qd(t,a+1,r?n.call(r,o):n(o)):vm(t,a+1)}function Xw(t,i,e,n,o,r,a){let s=i+e;return Rd(t,s,o,r)?qd(t,s+2,a?n.call(a,o,r):n(o,r)):vm(t,s+2)}function Zw(t,i,e,n,o,r,a,s){let c=i+e;return dw(t,c,o,r,a)?qd(t,c+3,s?n.call(s,o,r,a):n(o,r,a)):vm(t,c+3)}function AY(t,i,e,n,o,r,a,s,c){let u=i+e;return uw(t,u,o,r,a,s)?qd(t,u+4,c?n.call(c,o,r,a,s):n(o,r,a,s)):vm(t,u+4)}function k(t,i){let e=sn(),n,o=t+an;e.firstCreatePass?(n=zY(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=ks(n.type,!0)),a,s=oo(Me);try{let c=P4(!1),u=r();return P4(c),Ug(e,ze(),o,u),u}finally{oo(s)}}function zY(t,i){if(i)for(let e=i.length-1;e>=0;e--){let n=i[e];if(t===n.name)return n}}function E(t,i,e){let n=t+an,o=ze(),r=u1(o,n);return Cm(o,n)?Kw(o,qa(),i,r.transform,e,r):r.transform(e)}function lr(t,i,e,n){let o=t+an,r=ze(),a=u1(r,o);return Cm(r,o)?Xw(r,qa(),i,a.transform,e,n,a):a.transform(e,n)}function RY(t,i,e,n,o){let r=t+an,a=ze(),s=u1(a,r);return Cm(a,r)?Zw(a,qa(),i,s.transform,e,n,o,s):s.transform(e,n,o)}function ym(t,i,e,n,o,r){let a=t+an,s=ze(),c=u1(s,a);return Cm(s,a)?AY(s,qa(),i,c.transform,e,n,o,r,c):c.transform(e,n,o,r)}function Cm(t,i){return t[Ye].data[i].pure}function Ns(t,i){return am(t,i)}var w4=null;function Jw(t){w4!==null&&(t.defaultEncapsulation!==w4.defaultEncapsulation||t.preserveWhitespaces!==w4.preserveWhitespaces)||(w4=t)}var Y4=class{ngModuleFactory;componentFactories;constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}},K5=(()=>{class t{compileModuleSync(e){return new Fd(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let n=this.compileModuleSync(e),o=Lg(e),r=MM(o.declarations).reduce((a,s)=>{let c=oa(s);return c&&a.push(new As(c)),a},[]);return new Y4(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})(),eD=new P("");var NY=(()=>{class t{zone=d(se);changeDetectionScheduler=d(er);applicationRef=d(fi);applicationErrorHandler=d(ao);_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 tD({ngZoneFactory:t,ignoreChangesOutsideZone:i,scheduleInRootZone:e}){return t??=()=>new se(Ne(q({},X5()),{scheduleInRootZone:e})),[{provide:se,useFactory:t},{provide:$a,multi:!0,useFactory:()=>{let n=d(NY,{optional:!0});return()=>n.initialize()}},{provide:$a,multi:!0,useFactory:()=>{let n=d(FY);return()=>{n.initialize()}}},i===!0?{provide:s8,useValue:!0}:[],{provide:c8,useValue:e??IM},{provide:ao,useFactory:()=>{let n=d(se),o=d(Xt),r;return a=>{n.runOutsideAngular(()=>{o.destroyed&&!r?setTimeout(()=>{throw a}):(r??=o.get(Ci),r.handleError(a))})}}}]}function X5(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var FY=(()=>{class t{subscription=new Ee;initialized=!1;zone=d(se);pendingTasks=d(ua);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 nD=(()=>{class t{applicationErrorHandler=d(ao);appRef=d(fi);taskService=d(ua);ngZone=d(se);zonelessEnabled=d(Sd);tracing=d(Rs,{optional:!0});disableScheduling=d(s8,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ee;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(R4):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(d(c8,{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 Ld||!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?px:TM;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(R4+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,px(()=>{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 VY(){return typeof $localize<"u"&&$localize.locale||Xd}var Rr=new P("",{providedIn:"root",factory:()=>d(Rr,{optional:!0,skipSelf:!0})||VY()}),Z5=new P("",{providedIn:"root",factory:()=>iY});var xm=class{destroyed=!1;listeners=null;errorHandler=d(Ci,{optional:!0});destroyRef=d(Gi);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(i){if(this.destroyed)throw new fe(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(tr(953,!1));return}if(this.listeners===null)return;let e=nt(null);try{for(let n of this.listeners)try{n(i)}catch(o){this.errorHandler?.handleError(o)}}finally{nt(e)}}};function Hn(t){return dC(t)}function ni(t,i){return sd(t,i?.equal)}var J5=class{[Kn];constructor(i){this[Kn]=i}destroy(){this[Kn].destroy()}};function _a(t,i){let e=i?.injector??d(ye),n=i?.manualCleanup!==!0?e.get(Gi):null,o,r=e.get($c,null,{optional:!0}),a=e.get(er);return r!==null?(o=HY(r.view,a,t),n instanceof gd&&n._lView===r.view&&(n=null)):o=UY(t,e.get(kd),a),o.injector=e,n!==null&&(o.onDestroyFn=n.onDestroy(()=>o.destroy())),new J5(o)}var iD=Ne(q({},uC),{cleanupFns:void 0,zone:null,onDestroyFn:Gc,run(){let t=p1(!1);try{mC(this)}finally{p1(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=nt(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],nt(t)}}}),BY=Ne(q({},iD),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){xs(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}}),jY=Ne(q({},iD),{consumerMarkedDirty(){this.view[at]|=8192,Os(this.view),this.notifier.notify(13)},destroy(){xs(this),this.onDestroyFn(),this.cleanup(),this.view[Wa]?.delete(this)}});function HY(t,i,e){let n=Object.create(jY);return n.view=t,n.zone=typeof Zone<"u"?Zone.current:null,n.notifier=i,n.fn=oD(n,e),t[Wa]??=new Set,t[Wa].add(n),n.consumerMarkedDirty(n),n}function UY(t,i,e){let n=Object.create(BY);return n.fn=oD(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 oD(t,i){return()=>{i(e=>(t.cleanupFns??=[]).push(e))}}var Sm=Symbol("InputSignalNode#UNSET"),gD=Ne(q({},cd),{transformFn:void 0,applyValueToInputSignal(t,i){Dc(t,i)}});function _D(t,i){let e=Object.create(gD);e.value=t,e.transformFn=i?.transform;function n(){if(ys(e),e.value===Sm){let o=null;throw new fe(-950,o)}return e.value}return n[Kn]=e,n}var mn=class{attributeName;constructor(i){this.attributeName=i}__NG_ELEMENT_ID__=()=>Bd(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},bD=new P("");bD.__NG_ELEMENT_ID__=t=>{let i=ei();if(i===null)throw new fe(204,!1);if(i.type&2)return i.value;if(t&8)return null;throw new fe(204,!1)};function rD(t,i){return _D(t,i)}function ZY(t){return _D(Sm,t)}var R1=(rD.required=ZY,rD);function aD(t,i){return F5(i)}function JY(t,i){return V5(i)}var e0=(aD.required=JY,aD);function sD(t,i){return F5(i)}function eq(t,i){return V5(i)}var vD=(sD.required=eq,sD);function yD(t,i){let e=Object.create(gD),n=new xm;e.value=t;function o(){return ys(e),cD(e.value),e.value}return o[Kn]=e,o.asReadonly=_4.bind(o),o.set=r=>{e.equal(e.value,r)||(Dc(e,r),n.emit(r))},o.update=r=>{cD(e.value),o.set(r(e.value))},o.subscribe=n.subscribe.bind(n),o.destroyRef=n.destroyRef,o}function cD(t){if(t===Sm)throw new fe(952,!1)}function lD(t,i){return yD(t,i)}function tq(t){return yD(Sm,t)}var lo=(lD.required=tq,lD);function nq(t,i,e){let n=new Fd(e);return Promise.resolve(n)}function dD(t){for(let i=t.length-1;i>=0;i--)if(t[i]!==void 0)return t[i]}var Mm=new P(""),iq=new P("");function Jd(t){return!t.moduleRef}function oq(t){let i=Jd(t)?t.r3Injector:t.moduleRef.injector,e=i.get(se);return e.run(()=>{Jd(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=i.get(ao),o;if(e.runOutsideAngular(()=>{o=e.onError.subscribe({next:n})}),Jd(t)){let r=()=>i.destroy(),a=t.platformInjector.get(Mm);a.add(r),i.onDestroy(()=>{o.unsubscribe(),a.delete(r)})}else{let r=()=>t.moduleRef.destroy(),a=t.platformInjector.get(Mm);a.add(r),t.moduleRef.onDestroy(()=>{Id(t.allPlatformModules,t.moduleRef),o.unsubscribe(),a.delete(r)})}return aq(n,e,()=>{let r=i.get(ua),a=r.add(),s=i.get(U5);return s.runInitializers(),s.donePromise.then(()=>{let c=i.get(Rr,Xd);if(Nw(c||Xd),!i.get(iq,!0))return Jd(t)?i.get(fi):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Jd(t)){let f=i.get(fi);return t.rootComponent!==void 0&&f.bootstrap(t.rootComponent),f}else return CD?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>void r.remove(a))})})}var CD;function uD(){CD=rq}function rq(t,i){let e=t.injector.get(fi);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>e.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new fe(-403,!1);i.push(t)}function aq(t,i,e){try{let n=e();return Za(n)?n.catch(o=>{throw i.runOutsideAngular(()=>t(o)),o}):n}catch(n){throw i.runOutsideAngular(()=>t(n)),n}}var xD=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(e){this._injector=e}bootstrapModuleFactory(e,n){let o=n?.scheduleInRootZone,r=()=>LM(n?.ngZone,Ne(q({},X5({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),a=n?.ignoreChangesOutsideZone,s=[tD({ngZoneFactory:r,ignoreChangesOutsideZone:a}),{provide:er,useExisting:nD},XC],c=Ew(e.moduleType,this.injector,s);return uD(),oq({moduleRef:c,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,n=[]){let o=$5({},n);return uD(),nq(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 fe(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let e=this._injector.get(Mm,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(n){return new(n||t)(be(ye))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),l7=null;function sq(t){if(u7())throw new fe(400,!1);Aw(),l7=t;let i=t.get(xD);return dq(t),i}function d7(t,i,e=[]){let n=`Platform: ${i}`,o=new P(n);return(r=[])=>{let a=u7();if(!a){let s=[...e,...r,{provide:o,useValue:!0}];a=t?.(s)??sq(cq(s,n))}return lq(o)}}function cq(t=[],i){return ye.create({name:i,providers:[{provide:vd,useValue:"platform"},{provide:Mm,useValue:new Set([()=>l7=null])},...t]})}function lq(t){let i=u7();if(!i)throw new fe(-401,!1);return i}function u7(){return l7?.get(xD)??null}function dq(t){let i=t.get(q4,null);xi(t,()=>{i?.forEach(e=>e())})}var we=(()=>{class t{static __NG_ELEMENT_ID__=uq}return t})();function uq(t){return mq(ei(),ze(),(t&16)===16)}function mq(t,i,e){if(Ya(t)&&!e){let n=rr(t.index,i);return new Ps(n,n)}else if(t.type&175){let n=i[$i];return new Ps(n,i)}return null}var t7=class{constructor(){}supports(i){return z5(i)}create(i){return new n7(i)}},pq=(t,i)=>i,n7=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||pq}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 i7(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 wm),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 wm),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}},i7=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}},o7=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}},wm=class{map=new Map;put(i){let e=i.trackById,n=this.map.get(e);n||(n=new o7,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 mD(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 s7(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))}},s7=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(i){this.key=i}};function pD(){return new Ho([new t7])}var Ho=(()=>{class t{factories;static \u0275prov=R({token:t,providedIn:"root",factory:pD});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||pD())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n!=null)return n;throw new fe(901,!1)}}return t})();function fD(){return new km([new r7])}var km=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:fD});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||fD())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n)return n;throw new fe(901,!1)}}return t})();var MD=d7(null,"core",[]),wD=(()=>{class t{constructor(e){}static \u0275fac=function(n){return new(n||t)(be(fi))};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})();function H(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ft(t,i=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):i}var e7=Symbol("NOT_SET"),DD=new Set,fq=Ne(q({},cd),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:e7,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(ys(u),u.value),u.signal[Kn]=u,u.registerCleanupFn=f=>(u.cleanup??=new Set).add(f),this.nodes[s]=u,this.hooks[s]=f=>u.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??DD)e()}finally{xs(i)}}};function SD(t,i){let e=i?.injector??d(ye),n=e.get(er),o=e.get(tm),r=e.get(Rs,null,{optional:!0});o.impl??=e.get(w5);let a=t;typeof a=="function"&&(a={mixedReadWrite:t});let s=e.get($c,null,{optional:!0}),c=new c7(o.impl,[a.earlyRead,a.write,a.mixedReadWrite,a.read],s?.view,n,e,r?.snapshot(null));return o.impl.register(c),c}function Em(t,i){let e=oa(t),n=i.elementInjector||a1();return new As(e).create(n,i.projectableNodes,i.hostElement,i.environmentInjector,i.directives,i.bindings)}function kD(t){let i=oa(t);if(!i)return null;let e=new As(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 TD=null;function Uo(){return TD}function m7(t){TD??=t}var t0=class{},n0=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>d(OD),providedIn:"platform"})}return t})(),p7=new P(""),OD=(()=>{class t extends n0{_location;_history;_doc=d(De);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Uo().getBaseHref(this._doc)}onPopState(e){let n=Uo().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=Uo().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 Im(t,i){return t?i?t.endsWith("/")?i.startsWith("/")?t+i.slice(1):t+i:i.startsWith("/")?t+i:`${t}/${i}`:t:i}function ED(t){let i=t.search(/#|\?|$/);return t[i-1]==="/"?t.slice(0,i-1)+t.slice(i):t}function Nr(t){return t&&t[0]!=="?"?`?${t}`:t}var Fr=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>d(Om),providedIn:"root"})}return t})(),Tm=new P(""),Om=(()=>{class t extends Fr{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??d(De).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 Im(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+Nr(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${n}${o}`:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+Nr(r));this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+Nr(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)(be(n0),be(Tm,8))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),dr=(()=>{class t{_subject=new B;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=_q(ED(ID(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+Nr(n))}normalize(e){return t.stripTrailingSlash(gq(this._basePath,ID(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+Nr(n)),o)}replaceState(e,n="",o=null){this._locationStrategy.replaceState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Nr(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=Nr;static joinWithSlash=Im;static stripTrailingSlash=ED;static \u0275fac=function(n){return new(n||t)(be(Fr))};static \u0275prov=R({token:t,factory:()=>hq(),providedIn:"root"})}return t})();function hq(){return new dr(be(Fr))}function gq(t,i){if(!t||!i.startsWith(t))return i;let e=i.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:i}function ID(t){return t.replace(/\/index.html$/,"")}function _q(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var M7=(()=>{class t extends Fr{_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=Im(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+Nr(r))||this._platformLocation.pathname;this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+Nr(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)(be(n0),be(Tm,8))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),VD={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]},jm=(function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t})(jm||{});var qi=(function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t})(qi||{}),nn=(function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t})(nn||{}),ko=(function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t})(ko||{}),Ti={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 BD(t){return co(t)[bn.LocaleId]}function jD(t,i,e){let n=co(t),o=[n[bn.DayPeriodsFormat],n[bn.DayPeriodsStandalone]],r=ur(o,i);return ur(r,e)}function HD(t,i,e){let n=co(t),o=[n[bn.DaysFormat],n[bn.DaysStandalone]],r=ur(o,i);return ur(r,e)}function UD(t,i,e){let n=co(t),o=[n[bn.MonthsFormat],n[bn.MonthsStandalone]],r=ur(o,i);return ur(r,e)}function $D(t,i){let n=co(t)[bn.Eras];return ur(n,i)}function i0(t,i){let e=co(t);return ur(e[bn.DateFormat],i)}function o0(t,i){let e=co(t);return ur(e[bn.TimeFormat],i)}function r0(t,i){let n=co(t)[bn.DateTimeFormat];return ur(n,i)}function Br(t,i){let e=co(t),n=e[bn.NumberSymbols][i];if(typeof n>"u"){if(i===Ti.CurrencyDecimal)return e[bn.NumberSymbols][Ti.Decimal];if(i===Ti.CurrencyGroup)return e[bn.NumberSymbols][Ti.Group]}return n}function w7(t,i){return co(t)[bn.NumberFormats][i]}function bq(t){return co(t)[bn.Currencies]}function GD(t){if(!t[bn.ExtraData])throw new fe(2303,!1)}function WD(t){let i=co(t);return GD(i),(i[bn.ExtraData][2]||[]).map(n=>typeof n=="string"?f7(n):[f7(n[0]),f7(n[1])])}function YD(t,i,e){let n=co(t);GD(n);let o=[n[bn.ExtraData][0],n[bn.ExtraData][1]],r=ur(o,i)||[];return ur(r,e)||[]}function ur(t,i){for(let e=i;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new fe(2304,!1)}function f7(t){let[i,e]=t.split(":");return{hours:+i,minutes:+e}}function qD(t,i,e="en"){let n=bq(e)[t]||VD[t]||[],o=n[1];return i==="narrow"&&typeof o=="string"?o:n[0]||t}var vq=2;function QD(t){let i,e=VD[t];return e&&(i=e[2]),typeof i=="number"?i:vq}var yq=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Lm={},Cq=/((?:[^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 KD(t,i,e,n){let o=Tq(t);i=es(e,i)||i;let a=[],s;for(;i;)if(s=Cq.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=ZD(n,c),o=Iq(o,n));let u="";return a.forEach(f=>{let g=kq(f);u+=g?g(o,e,c):f==="''"?"'":f.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function Nm(t,i,e){let n=new Date(0);return n.setFullYear(t,i,e),n.setHours(0,0,0),n}function es(t,i){let e=BD(t);if(Lm[e]??={},Lm[e][i])return Lm[e][i];let n="";switch(i){case"shortDate":n=i0(t,ko.Short);break;case"mediumDate":n=i0(t,ko.Medium);break;case"longDate":n=i0(t,ko.Long);break;case"fullDate":n=i0(t,ko.Full);break;case"shortTime":n=o0(t,ko.Short);break;case"mediumTime":n=o0(t,ko.Medium);break;case"longTime":n=o0(t,ko.Long);break;case"fullTime":n=o0(t,ko.Full);break;case"short":let o=es(t,"shortTime"),r=es(t,"shortDate");n=Pm(r0(t,ko.Short),[o,r]);break;case"medium":let a=es(t,"mediumTime"),s=es(t,"mediumDate");n=Pm(r0(t,ko.Medium),[a,s]);break;case"long":let c=es(t,"longTime"),u=es(t,"longDate");n=Pm(r0(t,ko.Long),[c,u]);break;case"full":let f=es(t,"fullTime"),g=es(t,"fullDate");n=Pm(r0(t,ko.Full),[f,g]);break}return n&&(Lm[e][i]=n),n}function Pm(t,i){return i&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return i!=null&&n in i?i[n]:e})),t}function Vr(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 xq(s,i);let c=Br(a,Ti.MinusSign);return Vr(s,i,c,n,o)}}function Mq(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 fe(2301,!1)}}function pn(t,i,e=qi.Format,n=!1){return function(o,r){return wq(o,r,t,i,e,n)}}function wq(t,i,e,n,o,r){switch(e){case 2:return UD(i,o,n)[t.getMonth()];case 1:return HD(i,o,n)[t.getDay()];case 0:let a=t.getHours(),s=t.getMinutes();if(r){let u=WD(i),f=YD(i,o,n),g=u.findIndex(y=>{if(Array.isArray(y)){let[x,D]=y,Y=a>=x.hours&&s>=x.minutes,Q=a0?Math.floor(o/60):Math.ceil(o/60);switch(t){case 0:return(o>=0?"+":"")+Vr(a,2,r)+Vr(Math.abs(o%60),2,r);case 1:return"GMT"+(o>=0?"+":"")+Vr(a,1,r);case 2:return"GMT"+(o>=0?"+":"")+Vr(a,2,r)+":"+Vr(Math.abs(o%60),2,r);case 3:return n===0?"Z":(o>=0?"+":"")+Vr(a,2,r)+":"+Vr(Math.abs(o%60),2,r);default:throw new fe(2310,!1)}}}var Dq=0,Rm=4;function Sq(t){let i=Nm(t,Dq,1).getDay();return Nm(t,0,1+(i<=Rm?Rm:Rm+7)-i)}function XD(t){let i=t.getDay(),e=i===0?-3:Rm-i;return Nm(t.getFullYear(),t.getMonth(),t.getDate()+e)}function h7(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=XD(e),a=Sq(r.getFullYear()),s=r.getTime()-a.getTime();o=1+Math.round(s/6048e5)}return Vr(o,t,Br(n,Ti.MinusSign))}}function zm(t,i=!1){return function(e,n){let r=XD(e).getFullYear();return Vr(r,t,Br(n,Ti.MinusSign),i)}}var g7={};function kq(t){if(g7[t])return g7[t];let i;switch(t){case"G":case"GG":case"GGG":i=pn(3,nn.Abbreviated);break;case"GGGG":i=pn(3,nn.Wide);break;case"GGGGG":i=pn(3,nn.Narrow);break;case"y":i=ii(0,1,0,!1,!0);break;case"yy":i=ii(0,2,0,!0,!0);break;case"yyy":i=ii(0,3,0,!1,!0);break;case"yyyy":i=ii(0,4,0,!1,!0);break;case"Y":i=zm(1);break;case"YY":i=zm(2,!0);break;case"YYY":i=zm(3);break;case"YYYY":i=zm(4);break;case"M":case"L":i=ii(1,1,1);break;case"MM":case"LL":i=ii(1,2,1);break;case"MMM":i=pn(2,nn.Abbreviated);break;case"MMMM":i=pn(2,nn.Wide);break;case"MMMMM":i=pn(2,nn.Narrow);break;case"LLL":i=pn(2,nn.Abbreviated,qi.Standalone);break;case"LLLL":i=pn(2,nn.Wide,qi.Standalone);break;case"LLLLL":i=pn(2,nn.Narrow,qi.Standalone);break;case"w":i=h7(1);break;case"ww":i=h7(2);break;case"W":i=h7(1,!0);break;case"d":i=ii(2,1);break;case"dd":i=ii(2,2);break;case"c":case"cc":i=ii(7,1);break;case"ccc":i=pn(1,nn.Abbreviated,qi.Standalone);break;case"cccc":i=pn(1,nn.Wide,qi.Standalone);break;case"ccccc":i=pn(1,nn.Narrow,qi.Standalone);break;case"cccccc":i=pn(1,nn.Short,qi.Standalone);break;case"E":case"EE":case"EEE":i=pn(1,nn.Abbreviated);break;case"EEEE":i=pn(1,nn.Wide);break;case"EEEEE":i=pn(1,nn.Narrow);break;case"EEEEEE":i=pn(1,nn.Short);break;case"a":case"aa":case"aaa":i=pn(0,nn.Abbreviated);break;case"aaaa":i=pn(0,nn.Wide);break;case"aaaaa":i=pn(0,nn.Narrow);break;case"b":case"bb":case"bbb":i=pn(0,nn.Abbreviated,qi.Standalone,!0);break;case"bbbb":i=pn(0,nn.Wide,qi.Standalone,!0);break;case"bbbbb":i=pn(0,nn.Narrow,qi.Standalone,!0);break;case"B":case"BB":case"BBB":i=pn(0,nn.Abbreviated,qi.Format,!0);break;case"BBBB":i=pn(0,nn.Wide,qi.Format,!0);break;case"BBBBB":i=pn(0,nn.Narrow,qi.Format,!0);break;case"h":i=ii(3,1,-12);break;case"hh":i=ii(3,2,-12);break;case"H":i=ii(3,1);break;case"HH":i=ii(3,2);break;case"m":i=ii(4,1);break;case"mm":i=ii(4,2);break;case"s":i=ii(5,1);break;case"ss":i=ii(5,2);break;case"S":i=ii(6,1);break;case"SS":i=ii(6,2);break;case"SSS":i=ii(6,3);break;case"Z":case"ZZ":case"ZZZ":i=Am(0);break;case"ZZZZZ":i=Am(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=Am(1);break;case"OOOO":case"ZZZZ":case"zzzz":i=Am(2);break;default:return null}return g7[t]=i,i}function ZD(t,i){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?i:e}function Eq(t,i){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+i),t}function Iq(t,i,e){let o=t.getTimezoneOffset(),r=ZD(i,o);return Eq(t,-1*(r-o))}function Tq(t){if(LD(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 Nm(o,r-1,a)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(yq))return Oq(n)}let i=new Date(t);if(!LD(i))throw new fe(2311,!1);return i}function Oq(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),u=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return r.call(i,a,s,c,u),i}function LD(t){return t instanceof Date&&!isNaN(t.valueOf())}var Lq=/^(\d+)?\.((\d+)(-(\d+))?)?$/,PD=22,Fm=".",a0="0",Pq=";",Aq=",",_7="#",AD="\xA4";function JD(t,i,e,n,o,r,a=!1){let s="",c=!1;if(!isFinite(t))s=Br(e,Ti.Infinity);else{let u=Rq(t);a&&(u=zq(u));let f=i.minInt,g=i.minFrac,y=i.maxFrac;if(r){let pe=r.match(Lq);if(pe===null)throw new fe(2306,!1);let ut=pe[1],wt=pe[3],Bt=pe[5];ut!=null&&(f=b7(ut)),wt!=null&&(g=b7(wt)),Bt!=null?y=b7(Bt):wt!=null&&g>y&&(y=g)}Nq(u,g,y);let x=u.digits,D=u.integerLen,Y=u.exponent,Q=[];for(c=x.every(pe=>!pe);D0?Q=x.splice(D,x.length):(Q=x,x=[0]);let K=[];for(x.length>=i.lgSize&&K.unshift(x.splice(-i.lgSize,x.length).join(""));x.length>i.gSize;)K.unshift(x.splice(-i.gSize,x.length).join(""));x.length&&K.unshift(x.join("")),s=K.join(Br(e,n)),Q.length&&(s+=Br(e,o)+Q.join("")),Y&&(s+=Br(e,Ti.Exponential)+"+"+Y)}return t<0&&!c?s=i.negPre+s+i.negSuf:s=i.posPre+s+i.posSuf,s}function Hm(t,i,e,n,o){let r=w7(i,jm.Currency),a=tS(r,Br(i,Ti.MinusSign));return a.minFrac=QD(n),a.maxFrac=a.minFrac,JD(t,a,i,Ti.CurrencyGroup,Ti.CurrencyDecimal,o).replace(AD,e).replace(AD,"").trim()}function eS(t,i,e){let n=w7(i,jm.Decimal),o=tS(n,Br(i,Ti.MinusSign));return JD(t,o,i,Ti.Group,Ti.Decimal,e)}function tS(t,i="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(Pq),o=n[0],r=n[1],a=o.indexOf(Fm)!==-1?o.split(Fm):[o.substring(0,o.lastIndexOf(a0)+1),o.substring(o.lastIndexOf(a0)+1)],s=a[0],c=a[1]||"";e.posPre=s.substring(0,s.indexOf(_7));for(let f=0;f-1&&(i=i.replace(Fm,"")),(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)===a0;r++);if(r===(s=i.length))n=[0],o=1;else{for(s--;i.charAt(s)===a0;)s--;for(o-=r,n=[],a=0;r<=s;r++,a++)n[a]=Number(i.charAt(r))}return o>PD&&(n=n.splice(0,PD-1),e=o-1,o=1),{digits:n,exponent:e,integerLen:o}}function Nq(t,i,e){if(i>e)throw new fe(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 g=a;g=5)if(a-1<0){for(let g=0;g>a;g--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[a-1]++;for(;o=u?D.pop():c=!1),y>=10?1:0},0);f&&(n.unshift(f),t.integerLen++)}function b7(t){let i=parseInt(t);if(isNaN(i))throw new fe(2305,!1);return i}var v7=/\s+/,zD=[],Gn=(()=>{class t{_ngEl;_renderer;initialClasses=zD;rawClass;stateMap=new Map;constructor(e,n){this._ngEl=e,this._renderer=n}set klass(e){this.initialClasses=e!=null?e.trim().split(v7):zD}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(v7):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(v7).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)(Me(X),Me(Je))};static \u0275dir=z({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var Vm=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}},nS=(()=>{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 Vm(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),RD(s,o)}});for(let o=0,r=n.length;o{let r=n.get(o.currentIndex);RD(r,o)})}static ngTemplateContextGuard(e,n){return!0}static \u0275fac=function(n){return new(n||t)(Me(pt),Me(it),Me(Ho))};static \u0275dir=z({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function RD(t,i){t.context.$implicit=i.item}var D7=(()=>{class t{_viewContainer;_context=new Bm;_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){ND(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){ND(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)(Me(pt),Me(it))};static \u0275dir=z({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),Bm=class{$implicit=null;ngIf=null};function ND(t,i){if(t&&!t.createEmbeddedView)throw new fe(2020,!1)}var y7=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()}},iS=(()=>{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})(),Fq=(()=>{class t{ngSwitch;_view;ngSwitchCase;constructor(e,n,o){this.ngSwitch=o,o._addCase(),this._view=new y7(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(n){return new(n||t)(Me(pt),Me(it),Me(iS,9))};static \u0275dir=z({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return t})();var S7=(()=>{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:Ar.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)(Me(X),Me(km),Me(Je))};static \u0275dir=z({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),Fs=(()=>{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)(Me(pt))};static \u0275dir=z({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Re]})}return t})();function N1(t,i){return new fe(2100,!1)}var C7=class{createSubscription(i,e,n){return Hn(()=>i.subscribe({next:e,error:n}))}dispose(i){Hn(()=>i.unsubscribe())}},x7=class{createSubscription(i,e,n){return i.then(o=>e?.(o),o=>n?.(o)),{unsubscribe:()=>{e=null,n=null}}}dispose(i){i.unsubscribe()}},Vq=new x7,Bq=new C7,s0=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=d(ao);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(Za(e))return Vq;if(mm(e))return Bq;throw N1(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)(Me(we,16))};static \u0275pipe=St({name:"async",type:t,pure:!1})}return t})(),jq=(()=>{class t{transform(e){if(e==null)return null;if(typeof e!="string")throw N1(t,e);return e.toLowerCase()}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=St({name:"lowercase",type:t,pure:!0})}return t})(),Hq=/(?:[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,k7=(()=>{class t{transform(e){if(e==null)return null;if(typeof e!="string")throw N1(t,e);return e.replace(Hq,n=>n[0].toUpperCase()+n.slice(1).toLowerCase())}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=St({name:"titlecase",type:t,pure:!0})}return t})();var Uq="mediumDate",oS=new P(""),rS=new P(""),F1=(()=>{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??Uq,s=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return KD(e,a,r||this.locale,s)}catch(a){throw N1(t,a.message)}}static \u0275fac=function(n){return new(n||t)(Me(Rr,16),Me(oS,24),Me(rS,24))};static \u0275pipe=St({name:"date",type:t,pure:!0})}return t})();function $q(t,i){return{key:t,value:i}}var Gq=(()=>{class t{differs;constructor(e){this.differs=e}differ;keyValues=[];compareFn=FD;transform(e,n=FD){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($q(a.key,a.currentValue))})),(o||r)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||t)(Me(km,16))};static \u0275pipe=St({name:"keyvalue",type:t,pure:!1})}return t})();function FD(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(!aS(e))return null;o||=this._locale;try{let r=sS(e);return eS(r,o,n)}catch(r){throw N1(t,r.message)}}static \u0275fac=function(n){return new(n||t)(Me(Rr,16))};static \u0275pipe=St({name:"number",type:t,pure:!0})}return t})();var E7=(()=>{class t{_locale;_defaultCurrencyCode;constructor(e,n="USD"){this._locale=e,this._defaultCurrencyCode=n}transform(e,n=this._defaultCurrencyCode,o="symbol",r,a){if(!aS(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=qD(s,o==="symbol"?"wide":"narrow",a):s=o);try{let c=sS(e);return Hm(c,a,s,n,r)}catch(c){throw N1(t,c.message)}}static \u0275fac=function(n){return new(n||t)(Me(Rr,16),Me(Z5,16))};static \u0275pipe=St({name:"currency",type:t,pure:!0})}return t})();function aS(t){return!(t==null||t===""||t!==t)}function sS(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new fe(2309,!1);return t}var ge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})();function l0(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 el=class{};function sye(t,i,e){return Y5(t,i,e)}var T7="browser";function cS(t){return t===T7}var lS=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>new I7(d(De),window)})}return t})(),I7=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=Wq(this.document,i);n&&(this.scrollToElement(n,e),n.focus())}setHistoryScrollRestoration(i){try{this.window.history.scrollRestoration=i}catch{console.warn(tr(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 Wq(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 d0=class{_doc;constructor(i){this._doc=i}manager},Um=(()=>{class t extends d0{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)(be(De))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Gm=new P(""),z7=(()=>{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 Um));this._plugins=o.slice().reverse();let r=e.find(a=>a instanceof Um);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 fe(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(be(Gm),be(se))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),O7="ng-app-id";function dS(t){for(let i of t)i.remove()}function uS(t,i){let e=i.createElement("style");return e.textContent=t,e}function Yq(t,i,e,n){let o=t.head?.querySelectorAll(`style[${O7}="${i}"],link[${O7}="${i}"]`);if(o)for(let r of o)r.removeAttribute(O7),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 P7(t,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var R7=(()=>{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,Yq(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let o of e)this.addUsage(o,this.inline,uS);n?.forEach(o=>this.addUsage(o,this.external,P7))}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&&(dS(o.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])dS(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:o}]of this.inline)o.push(this.addElement(e,uS(n,this.doc)));for(let[n,{elements:o}]of this.external)o.push(this.addElement(e,P7(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)(be(De),be(zs),be(S1,8),be(Kc))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),L7={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"},N7=/%COMP%/g;var pS="%COMP%",qq=`_nghost-${pS}`,Qq=`_ngcontent-${pS}`,Kq=!0,Xq=new P("",{providedIn:"root",factory:()=>Kq});function Zq(t){return Qq.replace(N7,t)}function Jq(t){return qq.replace(N7,t)}function fS(t,i){return i.map(e=>e.replace(N7,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,u=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.ngZone=s,this.nonce=c,this.tracingService=u,this.platformIsServer=!1,this.defaultRenderer=new u0(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 $m?o.applyToHost(e):o instanceof m0&&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,u=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,g=this.platformIsServer,y=this.tracingService;switch(n.encapsulation){case Qa.Emulated:r=new $m(c,u,n,this.appId,f,a,s,g,y);break;case Qa.ShadowDom:return new A7(c,u,e,n,a,s,this.nonce,g,y);default:r=new m0(c,u,n,f,a,s,g,y);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)(be(z7),be(R7),be(zs),be(Xq),be(De),be(se),be(S1),be(Rs,8))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),u0=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(L7[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(mS(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(mS(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 fe(-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=L7[o];r?i.setAttributeNS(r,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){let o=L7[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&(Ar.DashCase|Ar.Important)?i.style.setProperty(e,n,o&Ar.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&Ar.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=Uo().getGlobalEventTarget(this.doc,i),!i))throw new fe(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 mS(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var A7=class extends u0{sharedStylesHost;hostEl;shadowRoot;constructor(i,e,n,o,r,a,s,c,u){super(i,r,a,c,u),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let f=o.styles;f=fS(o.id,f);for(let y of f){let x=document.createElement("style");s&&x.setAttribute("nonce",s),x.textContent=y,this.shadowRoot.appendChild(x)}let g=o.getExternalStyles?.();if(g)for(let y of g){let x=P7(y,r);s&&x.setAttribute("nonce",s),this.shadowRoot.appendChild(x)}}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)}},m0=class extends u0{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,n,o,r,a,s,c,u){super(i,r,a,s,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let f=n.styles;this.styles=u?fS(u,f):f,this.styleUrls=n.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&qc.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},$m=class extends m0{contentAttr;hostAttr;constructor(i,e,n,o,r,a,s,c,u){let f=o+"-"+n.id;super(i,e,n,r,a,s,c,u,f),this.contentAttr=Zq(f),this.hostAttr=Jq(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 Wm=class t extends t0{supportsDOMEvents=!0;static makeCurrent(){m7(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=eQ();return e==null?null:tQ(e)}resetBaseElement(){p0=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return l0(document.cookie,i)}},p0=null;function eQ(){return p0=p0||document.head.querySelector("base"),p0?p0.getAttribute("href"):null}function tQ(t){return new URL(t,document.baseURI).pathname}var Ym=class{addToWindow(i){Jn.getAngularTestability=(n,o=!0)=>{let r=i.findTestabilityInTree(n,o);if(r==null)throw new fe(5103,!1);return r},Jn.getAllAngularTestabilities=()=>i.getAllTestabilities(),Jn.getAllAngularRootElements=()=>i.getAllRootElements();let e=n=>{let o=Jn.getAllAngularTestabilities(),r=o.length,a=function(){r--,r==0&&n()};o.forEach(s=>{s.whenStable(a)})};Jn.frameworkStabilizers||(Jn.frameworkStabilizers=[]),Jn.frameworkStabilizers.push(e)}findTestabilityInTree(i,e,n){if(e==null)return null;let o=i.getTestability(e);return o??(n?Uo().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},nQ=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),hS=["alt","control","meta","shift"],iQ={"\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"},oQ={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},gS=(()=>{class t extends d0{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(()=>Uo().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."),hS.forEach(u=>{let f=n.indexOf(u);f>-1&&(n.splice(f,1),a+=u+".")}),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=iQ[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"),hS.forEach(a=>{if(a!==o){let s=oQ[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)(be(De))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function rQ(){Wm.makeCurrent()}function aQ(){return new Ci}function sQ(){return a5(document),document}var cQ=[{provide:Kc,useValue:T7},{provide:q4,useValue:rQ,multi:!0},{provide:De,useFactory:sQ}],lQ=d7(MD,"browser",cQ);var dQ=[{provide:T1,useClass:Ym},{provide:um,useClass:Qd,deps:[se,Kd,T1]},{provide:Qd,useClass:Qd,deps:[se,Kd,T1]}],uQ=[{provide:vd,useValue:"root"},{provide:Ci,useFactory:aQ},{provide:Gm,useClass:Um,multi:!0,deps:[De]},{provide:Gm,useClass:gS,multi:!0,deps:[De]},F7,R7,z7,{provide:Ln,useExisting:F7},{provide:el,useClass:nQ},[]],mQ=(()=>{class t{constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[...uQ,...dQ],imports:[ge,wD]})}return t})();var j1=class{},f0=class{},Mi=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 Qm=class{encodeKey(i){return _S(i)}encodeValue(i){return _S(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function pQ(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 fQ=/%(\d[a-f0-9])/gi,hQ={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function _S(t){return encodeURIComponent(t).replace(fQ,(i,e)=>hQ[e]??i)}function qm(t){return`${t}`}var ee=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new Qm,i.fromString){if(i.fromObject)throw new fe(2805,!1);this.map=pQ(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(qm):[qm(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(qm(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(qm(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 Km=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 gQ(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function bS(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function vS(t){return typeof Blob<"u"&&t instanceof Blob}function yS(t){return typeof FormData<"u"&&t instanceof FormData}function _Q(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var CS="Content-Type",xS="Accept",wS="X-Request-URL",DS="text/plain",SS="application/json",bQ=`${SS}, ${DS}, */*`,V1=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(gQ(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 fe(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 Mi,this.context??=new Km,!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?"?":sBt.set(en,i.setHeaders[en]),pe)),i.setParams&&(ut=Object.keys(i.setParams).reduce((Bt,en)=>Bt.set(en,i.setParams[en]),ut)),new t(e,n,Y,{params:ut,headers:pe,context:wt,reportProgress:K,responseType:o,withCredentials:Q,transferCache:x,keepalive:r,cache:s,priority:a,timeout:D,mode:c,redirect:u,credentials:f,referrer:g,integrity:y})}},tl=(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})(tl||{}),H1=class{headers;status;statusText;url;ok;type;redirected;constructor(i,e=200,n="OK"){this.headers=i.headers||new Mi,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}},Xm=class t extends H1{constructor(i={}){super(i)}type=tl.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})}},h0=class t extends H1{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=tl.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})}},B1=class extends H1{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}},vQ=200,yQ=204;function V7(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 En=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,o={}){let r;if(e instanceof V1)r=e;else{let c;o.headers instanceof Mi?c=o.headers:c=new Mi(o.headers);let u;o.params&&(o.params instanceof ee?u=o.params:u=new ee({fromObject:o.params})),r=new V1(e,n,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,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(io(c=>this.handler.handle(c)));if(e instanceof V1||o.observe==="events")return a;let s=a.pipe(Te(c=>c instanceof h0));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(ue(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new fe(2806,!1);return c.body}));case"blob":return s.pipe(ue(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new fe(2807,!1);return c.body}));case"text":return s.pipe(ue(c=>{if(c.body!==null&&typeof c.body!="string")throw new fe(2808,!1);return c.body}));case"json":default:return s.pipe(ue(c=>c.body))}case"response":return s;default:throw new fe(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,V7(o,n))}post(e,n,o={}){return this.request("POST",e,V7(o,n))}put(e,n,o={}){return this.request("PUT",e,V7(o,n))}static \u0275fac=function(n){return new(n||t)(be(j1))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var CQ=new P("");function kS(t,i){return i(t)}function xQ(t,i){return(e,n)=>i.intercept(e,{handle:o=>t(o,n)})}function MQ(t,i,e){return(n,o)=>xi(e,()=>i(n,r=>t(r,o)))}var Jm=new P(""),j7=new P(""),ES=new P(""),H7=new P("",{providedIn:"root",factory:()=>!0});function wQ(){let t=null;return(i,e)=>{t===null&&(t=(d(Jm,{optional:!0})??[]).reduceRight(xQ,kS));let n=d(g1);if(d(H7)){let r=n.add();return t(i,e).pipe(kr(r))}else return t(i,e)}}var Zm=(()=>{class t extends j1{backend;injector;chain=null;pendingTasks=d(g1);contributeToStability=d(H7);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(j7),...this.injector.get(ES,[])]));this.chain=n.reduceRight((o,r)=>MQ(o,r,this.injector),kS)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(kr(n))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(be(f0),be(Xt))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var DQ=/^\)\]\}',?\n/,SQ=RegExp(`^${wS}:`,"m");function kQ(t){return"responseURL"in t&&t.responseURL?t.responseURL:SQ.test(t.getAllResponseHeaders())?t.getResponseHeader(wS):null}var B7=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new fe(-2800,!1);let n=this.xhrFactory;return re(null).pipe(rt(()=>new Fe(r=>{let a=n.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((Q,K)=>a.setRequestHeader(Q,K.join(","))),e.headers.has(xS)||a.setRequestHeader(xS,bQ),!e.headers.has(CS)){let Q=e.detectContentTypeHeader();Q!==null&&a.setRequestHeader(CS,Q)}if(e.timeout&&(a.timeout=e.timeout),e.responseType){let Q=e.responseType.toLowerCase();a.responseType=Q!=="json"?Q:"text"}let s=e.serializeBody(),c=null,u=()=>{if(c!==null)return c;let Q=a.statusText||"OK",K=new Mi(a.getAllResponseHeaders()),pe=kQ(a)||e.url;return c=new Xm({headers:K,status:a.status,statusText:Q,url:pe}),c},f=()=>{let{headers:Q,status:K,statusText:pe,url:ut}=u(),wt=null;K!==yQ&&(wt=typeof a.response>"u"?a.responseText:a.response),K===0&&(K=wt?vQ:0);let Bt=K>=200&&K<300;if(e.responseType==="json"&&typeof wt=="string"){let en=wt;wt=wt.replace(DQ,"");try{wt=wt!==""?JSON.parse(wt):null}catch(Xo){wt=en,Bt&&(Bt=!1,wt={error:Xo,text:wt})}}Bt?(r.next(new h0({body:wt,headers:Q,status:K,statusText:pe,url:ut||void 0})),r.complete()):r.error(new B1({error:wt,headers:Q,status:K,statusText:pe,url:ut||void 0}))},g=Q=>{let{url:K}=u(),pe=new B1({error:Q,status:a.status||0,statusText:a.statusText||"Unknown Error",url:K||void 0});r.error(pe)},y=g;e.timeout&&(y=Q=>{let{url:K}=u(),pe=new B1({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:K||void 0});r.error(pe)});let x=!1,D=Q=>{x||(r.next(u()),x=!0);let K={type:tl.DownloadProgress,loaded:Q.loaded};Q.lengthComputable&&(K.total=Q.total),e.responseType==="text"&&a.responseText&&(K.partialText=a.responseText),r.next(K)},Y=Q=>{let K={type:tl.UploadProgress,loaded:Q.loaded};Q.lengthComputable&&(K.total=Q.total),r.next(K)};return a.addEventListener("load",f),a.addEventListener("error",g),a.addEventListener("timeout",y),a.addEventListener("abort",g),e.reportProgress&&(a.addEventListener("progress",D),s!==null&&a.upload&&a.upload.addEventListener("progress",Y)),a.send(s),r.next({type:tl.Sent}),()=>{a.removeEventListener("error",g),a.removeEventListener("abort",g),a.removeEventListener("load",f),a.removeEventListener("timeout",y),e.reportProgress&&(a.removeEventListener("progress",D),s!==null&&a.upload&&a.upload.removeEventListener("progress",Y)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(n){return new(n||t)(be(el))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),IS=new P(""),EQ="XSRF-TOKEN",IQ=new P("",{providedIn:"root",factory:()=>EQ}),TQ="X-XSRF-TOKEN",OQ=new P("",{providedIn:"root",factory:()=>TQ}),g0=class{},LQ=(()=>{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=l0(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)(be(De),be(IQ))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),PQ=/^(?:https?:)?\/\//i;function AQ(t,i){if(!d(IS)||t.method==="GET"||t.method==="HEAD"||PQ.test(t.url))return i(t);let e=d(g0).getToken(),n=d(OQ);return e!=null&&!t.headers.has(n)&&(t=t.clone({headers:t.headers.set(n,e)})),i(t)}var U7=(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})(U7||{});function zQ(t,i){return{\u0275kind:t,\u0275providers:i}}function RQ(...t){let i=[En,B7,Zm,{provide:j1,useExisting:Zm},{provide:f0,useFactory:()=>d(CQ,{optional:!0})??d(B7)},{provide:j7,useValue:AQ,multi:!0},{provide:IS,useValue:!0},{provide:g0,useClass:LQ}];for(let e of t)i.push(...e.\u0275providers);return ra(i)}var MS=new P("");function NQ(){return zQ(U7.LegacyInterceptors,[{provide:MS,useFactory:wQ},{provide:j7,useExisting:MS,multi:!0}])}var OS=(()=>{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)(be(De))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ts=(()=>{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=be(FQ),o},providedIn:"root"})}return t})(),FQ=(()=>{class t extends ts{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case jn.NONE:return n;case jn.HTML:return ha(n,"HTML")?Vo(n):Z4(this._doc,String(n)).toString();case jn.STYLE:return ha(n,"Style")?Vo(n):n;case jn.SCRIPT:if(ha(n,"Script"))return Vo(n);throw new fe(5200,!1);case jn.URL:return ha(n,"URL")?Vo(n):Hd(String(n));case jn.RESOURCE_URL:if(ha(n,"ResourceURL"))return Vo(n);throw new fe(5201,!1);default:throw new fe(5202,!1)}}bypassSecurityTrustHtml(e){return l5(e)}bypassSecurityTrustStyle(e){return d5(e)}bypassSecurityTrustScript(e){return u5(e)}bypassSecurityTrustUrl(e){return m5(e)}bypassSecurityTrustResourceUrl(e){return p5(e)}static \u0275fac=function(n){return new(n||t)(be(De))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var U1=class{},PS=(()=>{class t extends U1{getTranslation(e){return re({})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),b0=class{},AS=(()=>{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 tp(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{y0(i[n])?n in t?e[n]=$7(t[n],i[n]):Object.assign(e,{[n]:i[n]}):Object.assign(e,{[n]:i[n]})}),e):$7({},i)}function G7(t,i){let e=i.split(".");i="";do i+=e.shift(),Vs(t)&&Vs(t[i])&&(y0(t[i])||K7(t[i])||!e.length)?(t=t[i],i=""):e.length?i+=".":t=void 0;while(e.length);return t}function BQ(t,i,e){let n=i.split("."),o=t;for(let r=0;r{class t extends $1{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,n){if(X7(e))return this.interpolateString(e,n);if(VQ(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=G7(n,r);return Vs(a)?a:o}):e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),G1=class{},RS=(()=>{class t extends G1{compile(e,n){return e}compileTranslations(e,n){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),v0=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new j;onLangChange=new j;onDefaultLangChange=new j},W7=new P("ISOLATE_TRANSLATE_SERVICE"),Y7=new P("USE_DEFAULT_LANG"),q7=new P("DEFAULT_LANGUAGE"),Q7=new P("USE_EXTEND"),_0=t=>ui(t)?t:re(t),uo=(()=>{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,u=!1,f){this.store=e,this.currentLoader=n,this.compiler=o,this.parser=r,this.missingTranslationHandler=a,this.useDefaultLang=s,this.extend=u,c&&(this.store=new v0),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(Ve(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 ui(n)?(n.pipe(Ve(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(Ss(1),Ve(1));return this.loadingTranslations=n.pipe(ue(o=>this.compiler.compileTranslations(o,e)),Ss(1),Ve(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]=$7(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(G7(e,n),o)),r===void 0&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(r=this.runInterpolation(G7(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(K7(e))return e.map(o=>this.runInterpolation(o,n));if(y0(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||ui(r[c]);if(!a)return r;let s=n.map(c=>_0(r[c]));return Va(s).pipe(ue(c=>{let u={};return c.forEach((f,g)=>{u[n[g]]=f}),u}))}return this.getParsedResultForKey(e,n,o)}get(e,n){if(!Vs(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(io(o=>_0(this.getParsedResult(o,e,n)))):_0(this.getParsedResult(this.translations[this.currentLang],e,n))}getStreamOnTranslationChange(e,n){if(!Vs(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return Bi(ji(()=>this.get(e,n)),this.onTranslationChange.pipe(rt(o=>{let r=this.getParsedResult(o.translations,e,n);return _0(r)})))}stream(e,n){if(!Vs(e)||!e.length)throw new Error('Parameter "key" required');return Bi(ji(()=>this.get(e,n)),this.onLangChange.pipe(rt(o=>{let r=this.getParsedResult(o.translations,e,n);return _0(r)})))}instant(e,n){if(!Vs(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 ui(o)?Array.isArray(e)?e.reduce((r,a)=>(r[a]=a,r),{}):e:o}set(e,n,o=this.currentLang){BQ(this.translations[o],e,X7(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)(be(v0),be(U1),be(G1),be($1),be(b0),be(Y7),be(W7),be(Q7),be(q7))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Le=(()=>{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);ui(a)?a.subscribe(r):r(a)}this.translate.get(e,n).subscribe(r)}transform(e,...n){if(!e||!e.length)return e;if(tp(e,this.lastKey)&&tp(n,this.lastParams))return this.value;let o;if(Vs(n[0])&&n.length)if(X7(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 y0(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)(Me(uo,16),Me(we,16))};static \u0275pipe=St({name:"translate",type:t,pure:!1});static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var Z7=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:U1,useClass:PS},e.compiler||{provide:G1,useClass:RS},e.parser||{provide:$1,useClass:zS},e.missingTranslationHandler||{provide:b0,useClass:AS},v0,{provide:W7,useValue:e.isolate},{provide:Y7,useValue:e.useDefaultLang},{provide:Q7,useValue:e.extend},{provide:q7,useValue:e.defaultLanguage},uo]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:U1,useClass:PS},e.compiler||{provide:G1,useClass:RS},e.parser||{provide:$1,useClass:zS},e.missingTranslationHandler||{provide:b0,useClass:AS},{provide:W7,useValue:e.isolate},{provide:Y7,useValue:e.useDefaultLang},{provide:Q7,useValue:e.extend},{provide:q7,useValue:e.defaultLanguage},uo]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})();var J7={mifos_x:{version:"251222",hash:"12d00ca"},allow_switching_backend_instance:!0};var $t=window.env||{},Ge={production:!0,version:J7.mifos_x.version,hash:J7.mifos_x.hash,fineractPlatformTenantId:$t.fineractPlatformTenantId||"default",fineractPlatformTenantIds:$t.fineractPlatformTenantIds||"default",baseApiUrls:$t.fineractApiUrls||"https://sandbox.mifos.community,https://demo.mifos.community,https://localhost:8443,"+window.location.origin,baseApiUrl:$t.fineractApiUrl||($t.fineractApiUrls?.length>0?$t.fineractApiUrls.split(",")[0]:window.location.origin),oauthServerUrl:$t.oauthServerUrl||$t.fineractApiUrl+$t.apiProvider,allowServerSwitch:$t.allowServerSwitch||"true",apiProvider:$t.apiProvider||"/fineract-provider/api",apiVersion:$t.apiVersion||"/v1",apiActuator:$t.apiActuator||"/fineract-provider",serverUrl:"",oauth:{enabled:$t.oauthServerEnabled===!0,serverUrl:$t.oauthServerUrl||"",logoutUrl:$t.oauthServerLogoutUrl||"",appId:$t.oauthAppId||"",authorizeUrl:$t.oauthAuthorizeUrl||"",tokenUrl:$t.oauthTokenUrl||"",redirectUri:$t.oauthRedirectUri||"",scope:$t.oauthScope||""},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:$t.defaultLanguage||"en-US",supportedLanguages:$t.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:$t.preloadClients||!0,defaultCharDelimiter:$t.defaultCharDelimiter||",",displayBackEndInfo:$t.displayBackEndInfo||"true",displayTenantSelector:$t.displayTenantSelector||"true",waitTimeForNotifications:$t.waitTimeForNotifications||60,waitTimeForCOBCatchUp:$t.waitTimeForCOBCatchUp||30,session:{timeout:{idleTimeout:$t.sessionIdleTimeout||3e5}},httpCacheEnabled:$t.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:$t.minPasswordLength||12,OIDC:{oidcServerEnabled:window.env.oidcServerEnabled===!0||window.env.oidcServerEnabled==="true",oidcBaseUrl:window.env.oidcBaseUrl||"",oidcClientId:window.env.oidcClientId||"",oidcApiUrl:window.env.oidcApiUrl||"",oidcFrontUrl:window.env.oidcFrontUrl||""}};Ge.serverUrl=`${Ge.baseApiUrl}${Ge.apiProvider}${Ge.apiVersion}`;var NS=(()=>{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=St({name:"accountsFilter",type:t,pure:!0})}}return t})();var FS=(()=>{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=St({name:"chargesFilter",type:t,pure:!0})}}return t})();var VS=(()=>{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=St({name:"chargesPenaltyFilter",type:t,pure:!0})}}return t})();var Bs=(()=>{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 Y1=to(mo());var Eo=(()=>{class t{constructor(){this.datePipe=d(F1)}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 F1(this.language.code).transform(e,n)}formatDateAsString(e,n){return(0,Y1.default)(e).format(n)}parseDate(e){return e instanceof Array?(0,Y1.default)(e.join("-"),"YYYY-MM-DD").toDate():(0,Y1.default)(e).toDate()}parseDatetime(e){return(0,Y1.default)(e).toDate()}convertToDate(e,n){return(0,Y1.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 Jt=(()=>{class t{constructor(){this.alertService=d(Bs),this.dateUtils=d(Eo),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=Ge.defaultLanguage?Ge.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"):Ge.baseApiUrl&&Ge.baseApiUrl!==""?Ge.baseApiUrl:this.servers()[0]}get baseServerUrl(){return this.server+Ge.apiProvider}get serverUrl(){return this.server+Ge.apiProvider+Ge.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 np=to(mo()),mxe=to(jS()),pxe=to(US()),fxe=to(GS()),hxe=to(YS()),gxe=to(QS()),_xe=to(XS()),bxe=to(JS()),vxe=to(tk()),yxe=to(ik()),Cxe=to(rk()),xxe=to(sk());var $o=(()=>{class t{constructor(){this.settingsService=d(Jt),this.translateService=d(uo),this.onLangChange=this.translateService.onLangChange.subscribe(()=>{})}ngOnDestroy(){this.onLangChange&&this.onLangChange.unsubscribe()}transform(e,n){let o=this.settingsService.dateFormat.replace("dd","DD");if(typeof e>"u"||e===null)return"";let r=this.settingsService.language.code,a;r?r.includes("-")?a=r.split("-")[0]:a=r:a="en",np.default.locale(a);let s;return Array.isArray(e)?s=(0,np.default)(e.join("-"),"YYYY-MM-DD"):s=(0,np.default)(e),s.isValid()?n?s.format(n):s.format(o):""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=St({name:"dateFormat",type:t,pure:!1})}}return t})();var C0=to(mo());var ba=(()=>{class t{transform(e,n){if(e==null||e==="")return"";let o;if(Array.isArray(e)){let[a,s,c,u,f,g]=e;u!=null?o=(0,C0.default)({year:a,month:(s??1)-1,date:c,hour:u,minute:f??0,second:g??0}):o=(0,C0.default)({year:a,month:(s??1)-1,date:c})}else typeof e=="number"&&e<1e12?o=C0.default.unix(e):o=(0,C0.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=St({name:"datetimeFormat",type:t,pure:!0})}}return t})();var op=(()=>{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=St({name:"externalIdentifier",type:t,pure:!0})}}return t})();var ck=new WeakMap,lk=(()=>{class t{constructor(){this.sanitizer=d(ts)}transform(e,n,o,r){if(!n||!o||e===null||e===void 0)return"";let a=ck.get(n);a||(a=new Map,ck.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),u=c?c[r]??"":"";return typeof u=="string"?this.sanitizer.sanitize(jn.HTML,u)||"":String(u||"")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=St({name:"find",type:t,pure:!0})}}return t})();var js=(()=>{class t{constructor(){this.decimalFormat=d(c0),this.settingsService=d(Jt)}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=St({name:"formatNumber",type:t,pure:!0})}}return t})();var mk=to(uk());var ap=(()=>{class t{transform(e){if(e.charAt(0)==="{"&&e.charAt(e.length-1)==="}")try{return mk.json(e)}catch{return e}return e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=St({name:"prettyPrint",type:t,pure:!0})}}return t})();var pk=(()=>{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=St({name:"statusLookup",type:t,pure:!0})}}return t})();var nl=(()=>{class t{constructor(){this.translateService=d(uo),this.onLangChange=this.translateService.onLangChange.subscribe(()=>{})}ngOnDestroy(){this.onLangChange&&this.onLangChange.unsubscribe()}transform(e,n,o="labels"){if(!e)return e;let r=`${o}.${n}.${e}`;return this.translateService.instant(r)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=St({name:"translateKey",type:t,pure:!1})}}return t})();var sp=(()=>{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=St({name:"truncateText",type:t,pure:!0})}}return t})();var hk=(()=>{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=St({name:"urlToString",type:t,pure:!0})}}return t})();var cp=(()=>{class t{constructor(){this.translateService=d(uo)}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=St({name:"yesNo",type:t,pure:!0})}}return t})();var gk=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t})}static{this.\u0275inj=Z({providers:[pk,NS,FS,VS,lk,hk,$o,ba,op,js,cp,ap,nl,sp],imports:[ge]})}}return t})();var lp=class{validateSignature(i){return Promise.resolve(null)}validateAtHash(i){return Promise.resolve(!0)}},dp=class{};var x0=class{},UQ=(()=>{class t extends x0{now(){return Date.now()}new(){return new Date}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})()}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();var up=class{},mp=class{},$Q=(()=>{class t{constructor(){this.data=new Map}getItem(e){return this.data.get(e)}removeItem(e){this.data.delete(e)}setItem(e,n){this.data.set(e,n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();var M0=class{constructor(i){this.type=i}},po=class extends M0{constructor(i,e=null){super(i),this.info=e}},jr=class extends M0{constructor(i,e=null){super(i),this.info=e}},An=class extends M0{constructor(i,e,n=null){super(i),this.reason=e,this.params=n}};function _k(t){let i=t.replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(i).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function bk(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var q1=class{constructor(i){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=1e3*20,this.silentRefreshTimeout=1e3*20,this.dummyClientSecret="",this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3*1e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.decreaseExpirationBySec=0,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.disableIdTokenTimer=!1,this.checkOrigin=!1,this.openUri=e=>{location.href=e},i&&Object.assign(this,i)}},il=class{encodeKey(i){return encodeURIComponent(i)}encodeValue(i){return encodeURIComponent(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}},pp=class{};var vk=(()=>{class t{getHashFragmentParams(e){let n=e||window.location.hash;if(n=decodeURIComponent(n),n.indexOf("#")!==0)return{};let o=n.indexOf("?");return o>-1?n=n.substr(o+1):n=n.substr(1),this.parseQueryString(n)}parseQueryString(e){let n={},o,r,a,s,c,u;if(e===null)return n;let f=e.split("&");for(let g=0;g=64;){for(r=i[0],a=i[1],s=i[2],c=i[3],u=i[4],f=i[5],g=i[6],y=i[7],D=0;D<16;D++)Y=n+D*4,t[D]=(e[Y]&255)<<24|(e[Y+1]&255)<<16|(e[Y+2]&255)<<8|e[Y+3]&255;for(D=16;D<64;D++)x=t[D-2],Q=(x>>>17|x<<15)^(x>>>19|x<<13)^x>>>10,x=t[D-15],K=(x>>>7|x<<25)^(x>>>18|x<<14)^x>>>3,t[D]=(Q+t[D-7]|0)+(K+t[D-16]|0);for(D=0;D<64;D++)Q=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&f^~u&g)|0)+(y+(WQ[D]+t[D]|0)|0)|0,K=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&a^r&s^a&s)|0,y=g,g=f,f=u,u=c+Q|0,c=s,s=a,a=r,r=Q+K|0;i[0]+=r,i[1]+=a,i[2]+=s,i[3]+=c,i[4]+=u,i[5]+=f,i[6]+=g,i[7]+=y,n+=64,o-=64}return n}var p_=class{constructor(){this.digestLength=yk,this.blockSize=GQ,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}reset(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this}clean(){for(let i=0;i0){for(;this.bufferLength<64&&e>0;)this.buffer[this.bufferLength++]=i[n++],e--;this.bufferLength===64&&(m_(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(e>=64&&(n=m_(this.temp,this.state,i,n,e),e%=64);e>0;)this.buffer[this.bufferLength++]=i[n++],e--;return this}finish(i){if(!this.finished){let e=this.bytesHashed,n=this.bufferLength,o=e/536870912|0,r=e<<3,a=e%64<56?64:128;this.buffer[n]=128;for(let s=n+1;s>>24&255,this.buffer[a-7]=o>>>16&255,this.buffer[a-6]=o>>>8&255,this.buffer[a-5]=o>>>0&255,this.buffer[a-4]=r>>>24&255,this.buffer[a-3]=r>>>16&255,this.buffer[a-2]=r>>>8&255,this.buffer[a-1]=r>>>0&255,m_(this.temp,this.state,this.buffer,0,a),this.finished=!0}for(let e=0;e<8;e++)i[e*4+0]=this.state[e]>>>24&255,i[e*4+1]=this.state[e]>>>16&255,i[e*4+2]=this.state[e]>>>8&255,i[e*4+3]=this.state[e]>>>0&255;return this}digest(){let i=new Uint8Array(this.digestLength);return this.finish(i),i}_saveState(i){for(let e=0;e{class t{calcHash(e,n){return di(this,null,function*(){return QQ(YQ(qQ(e)))})}toHashString2(e){let n="";for(let o of e)n+=String.fromCharCode(o);return n}toHashString(e){let n=new Uint8Array(e),o="";for(let r of n)o+=String.fromCharCode(r);return o}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})(),gp=(()=>{class t extends q1{constructor(e,n,o,r,a,s,c,u,f,g){super(),this.ngZone=e,this.http=n,this.config=a,this.urlHelper=s,this.logger=c,this.crypto=u,this.dateTimeService=g,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new B,this.discoveryDocumentLoadedSubject=new B,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=f,a||(a={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),r&&(this.tokenValidationHandler=r),a&&this.configure(a);try{o?this.setStorage(o):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(y){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",y)}if(this.checkLocalStorageAccessable()){let y=window?.navigator?.userAgent;(y?.includes("MSIE ")||y?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;let e="test";try{return typeof window.localStorage>"u"?!1:(localStorage.setItem(e,e),localStorage.removeItem(e),!0)}catch{return!1}}configure(e){Object.assign(this,new q1,e),this.config=Object.assign({},new q1,e),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe(Te(e=>e.type==="token_received")).subscribe(()=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(e={},n,o=!0){let r=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe(Dt(a=>{a.type==="token_received"?r=!0:a.type==="logout"&&(r=!1)}),Te(a=>a.type==="token_expires"&&(n==null||n==="any"||a.info===n)),Ro(1e3)).subscribe(()=>{r&&this.refreshInternal(e,o).catch(()=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(e,n){return!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken():this.silentRefresh(e,n)}loadDiscoveryDocumentAndTryLogin(e=null){return this.loadDiscoveryDocument().then(()=>this.tryLogin(e))}loadDiscoveryDocumentAndLogin(e=null){return e=e||{},this.loadDiscoveryDocumentAndTryLogin(e).then(()=>{if(!this.hasValidIdToken()||!this.hasValidAccessToken()){let n=typeof e.state=="string"?e.state:"";return this.initLoginFlow(n),!1}else return!0})}debug(...e){this.showDebugInformation&&this.logger.debug(...e)}validateUrlFromDiscoveryDocument(e){let n=[],o=this.validateUrlForHttps(e),r=this.validateUrlAgainstIssuer(e);return o||n.push("https for all urls required. Also for urls received by discovery."),r||n.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),n}validateUrlForHttps(e){if(!e)return!0;let n=e.toLowerCase();return this.requireHttps===!1||(n.match(/^http:\/\/localhost($|[:/])/)||n.match(/^http:\/\/localhost($|[:/])/))&&this.requireHttps==="remoteOnly"?!0:n.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(e,n){if(!e)throw new Error(`'${n}' should not be null`);if(!this.validateUrlForHttps(e))throw new Error(`'${n}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(e){return!this.strictDiscoveryDocumentValidation||!e?!0:e.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){if(typeof window>"u"){this.debug("timer not supported on this plattform");return}(this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe(Te(e=>e.type==="token_received")).subscribe(()=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),!this.disableIdTokenTimer&&this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){let e=this.getAccessTokenExpiration(),n=this.getAccessTokenStoredAt(),o=this.calcTimeout(n,e);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=re(new jr("token_expires","access_token")).pipe(ja(o)).subscribe(r=>{this.ngZone.run(()=>{this.eventsSubject.next(r)})})})}setupIdTokenTimer(){let e=this.getIdTokenExpiration(),n=this.getIdTokenStoredAt(),o=this.calcTimeout(n,e);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=re(new jr("token_expires","id_token")).pipe(ja(o)).subscribe(r=>{this.ngZone.run(()=>{this.eventsSubject.next(r)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(e,n){let o=this.dateTimeService.now(),r=(n-e)*this.timeoutFactor-(o-e),a=Math.max(0,r),s=2147483647;return a>s?s:a}setStorage(e){this._storage=e,this.configChanged()}loadDiscoveryDocument(e=null){return new Promise((n,o)=>{if(e||(e=this.issuer||"",e.endsWith("/")||(e+="/"),e+=".well-known/openid-configuration"),!this.validateUrlForHttps(e)){o("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return}this.http.get(e).subscribe(r=>{if(!this.validateDiscoveryDocument(r)){this.eventsSubject.next(new An("discovery_document_validation_error",null)),o("discovery_document_validation_error");return}this.loginUrl=r.authorization_endpoint,this.logoutUrl=r.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=r.grant_types_supported,this.issuer=r.issuer,this.tokenEndpoint=r.token_endpoint,this.userinfoEndpoint=r.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=r.jwks_uri,this.sessionCheckIFrameUrl=r.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(r),this.revocationEndpoint=r.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(a=>{let s={discoveryDocument:r,jwks:a},c=new po("discovery_document_loaded",s);this.eventsSubject.next(c),n(c)}).catch(a=>{this.eventsSubject.next(new An("discovery_document_load_error",a)),o(a)})},r=>{this.logger.error("error loading discovery document",r),this.eventsSubject.next(new An("discovery_document_load_error",r)),o(r)})})}loadJwks(){return new Promise((e,n)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(o=>{this.jwks=o,e(o)},o=>{this.logger.error("error loading jwks",o),this.eventsSubject.next(new An("jwks_load_error",o)),n(o)}):e(null)})}validateDiscoveryDocument(e){let n;return!this.skipIssuerCheck&&e.issuer!==this.issuer?(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+e.issuer),!1):(n=this.validateUrlFromDiscoveryDocument(e.authorization_endpoint),n.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",n),!1):(n=this.validateUrlFromDiscoveryDocument(e.end_session_endpoint),n.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",n),!1):(n=this.validateUrlFromDiscoveryDocument(e.token_endpoint),n.length>0&&this.logger.error("error validating token_endpoint in discovery document",n),n=this.validateUrlFromDiscoveryDocument(e.revocation_endpoint),n.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",n),n=this.validateUrlFromDiscoveryDocument(e.userinfo_endpoint),n.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",n),!1):(n=this.validateUrlFromDiscoveryDocument(e.jwks_uri),n.length>0?(this.logger.error("error validating jwks_uri in discovery document",n),!1):(this.sessionChecksEnabled&&!e.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0)))))}fetchTokenUsingPasswordFlowAndLoadUserProfile(e,n,o=new Mi){return this.fetchTokenUsingPasswordFlow(e,n,o).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((e,n)=>{let o=new Mi().set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:o,observe:"response",responseType:"text"}).subscribe(r=>{if(this.debug("userinfo received",JSON.stringify(r)),r.headers.get("content-type").startsWith("application/json")){let a=JSON.parse(r.body),s=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!s.sub||a.sub!==s.sub)){n(`if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc. +if you are not using oidc but just oauth2 password flow set oidc to false`);return}a=Object.assign({},s,a),this._storage.setItem("id_token_claims_obj",JSON.stringify(a)),this.eventsSubject.next(new po("user_profile_loaded")),e({info:a})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new po("user_profile_loaded")),e(JSON.parse(r.body))},r=>{this.logger.error("error loading user info",r),this.eventsSubject.next(new An("user_profile_load_error",r)),n(r)})})}fetchTokenUsingPasswordFlow(e,n,o=new Mi){let r={username:e,password:n};return this.fetchTokenUsingGrant("password",r,o)}fetchTokenUsingGrant(e,n,o=new Mi){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let r=new ee({encoder:new il}).set("grant_type",e).set("scope",this.scope);if(this.useHttpBasicAuth){let a=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+a)}if(this.useHttpBasicAuth||(r=r.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(r=r.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let a of Object.getOwnPropertyNames(this.customQueryParams))r=r.set(a,this.customQueryParams[a]);for(let a of Object.keys(n))r=r.set(a,n[a]);return o=o.set("Content-Type","application/x-www-form-urlencoded"),new Promise((a,s)=>{this.http.post(this.tokenEndpoint,r,{headers:o}).subscribe(c=>{this.debug("tokenResponse",c),this.storeAccessTokenResponse(c.access_token,c.refresh_token,c.expires_in||this.fallbackAccessTokenExpirationTimeInSec,c.scope,this.extractRecognizedCustomParameters(c)),this.oidc&&c.id_token&&this.processIdToken(c.id_token,c.access_token).then(u=>{this.storeIdToken(u),a(c)}),this.eventsSubject.next(new po("token_received")),a(c)},c=>{this.logger.error("Error performing ${grantType} flow",c),this.eventsSubject.next(new An("token_error",c)),s(c)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((e,n)=>{let o=new ee({encoder:new il}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),r=new Mi().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let a=btoa(`${this.clientId}:${this.dummyClientSecret}`);r=r.set("Authorization","Basic "+a)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let a of Object.getOwnPropertyNames(this.customQueryParams))o=o.set(a,this.customQueryParams[a]);this.http.post(this.tokenEndpoint,o,{headers:r}).pipe(rt(a=>this.oidc&&a.id_token?Kt(this.processIdToken(a.id_token,a.access_token,!0)).pipe(Dt(s=>this.storeIdToken(s)),ue(()=>a)):re(a))).subscribe(a=>{this.debug("refresh tokenResponse",a),this.storeAccessTokenResponse(a.access_token,a.refresh_token,a.expires_in||this.fallbackAccessTokenExpirationTimeInSec,a.scope,this.extractRecognizedCustomParameters(a)),this.eventsSubject.next(new po("token_received")),this.eventsSubject.next(new po("token_refreshed")),e(a)},a=>{this.logger.error("Error refreshing token",a),this.eventsSubject.next(new An("token_refresh_error",a)),n(a)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=e=>{let n=this.processMessageEventMessage(e);this.checkOrigin&&e.origin!==location.origin&&console.error("wrong origin requested silent refresh!"),this.tryLogin({customHashFragment:n,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(o=>this.debug("tryLogin during silent refresh failed",o))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(e={},n=!0){let o=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(e.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");let r=this.document.getElementById(this.silentRefreshIFrameName);r&&this.document.body.removeChild(r),this.silentRefreshSubject=o.sub;let a=this.document.createElement("iframe");a.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener();let s=this.silentRefreshRedirectUri||this.redirectUri;this.createLoginUrl(null,null,s,n,e).then(g=>{a.setAttribute("src",g),this.silentRefreshShowIFrame||(a.style.display="none"),this.document.body.appendChild(a)});let c=this.events.pipe(Te(g=>g instanceof An),So()),u=this.events.pipe(Te(g=>g.type==="token_received"),So()),f=re(new An("silent_refresh_timeout",null)).pipe(ja(this.silentRefreshTimeout));return ng([c,u,f]).pipe(ue(g=>{if(g instanceof An)throw g.type==="silent_refresh_timeout"?this.eventsSubject.next(g):(g=new An("silent_refresh_error",g),this.eventsSubject.next(g)),g;return g.type==="token_received"&&(g=new po("silently_refreshed"),this.eventsSubject.next(g)),g})).toPromise()}initImplicitFlowInPopup(e){return this.initLoginFlowInPopup(e)}initLoginFlowInPopup(e){return e=e||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(n=>new Promise((o,r)=>{let s=null;e.windowRef?e.windowRef&&!e.windowRef.closed&&(s=e.windowRef,s.location.href=n):s=window.open(n,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(e));let c,u=D=>{this.tryLogin({customHashFragment:D,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{g(),o(!0)},Y=>{g(),r(Y)})},f=()=>{(!s||s.closed)&&(g(),r(new An("popup_closed",{})))};s?c=window.setInterval(f,500):r(new An("popup_blocked",{}));let g=()=>{window.clearInterval(c),window.removeEventListener("storage",x),window.removeEventListener("message",y),s!==null&&s.close(),s=null},y=D=>{let Y=this.processMessageEventMessage(D);Y&&Y!==null?(window.removeEventListener("storage",x),u(Y)):console.log("false event firing")},x=D=>{D.key==="auth_hash"&&(window.removeEventListener("message",y),u(D.newValue))};window.addEventListener("message",y),window.addEventListener("storage",x)}))}calculatePopupFeatures(e){let n=e.height||470,o=e.width||500,r=window.screenLeft+(window.outerWidth-o)/2,a=window.screenTop+(window.outerHeight-n)/2;return`location=no,toolbar=no,width=${o},height=${n},top=${a},left=${r}`}processMessageEventMessage(e){let n="#";if(this.silentRefreshMessagePrefix&&(n+=this.silentRefreshMessagePrefix),!e||!e.data||typeof e.data!="string")return;let o=e.data;if(o.startsWith(n))return"#"+o.substr(n.length)}canPerformSessionCheck(){return this.sessionChecksEnabled?this.sessionCheckIFrameUrl?this.getSessionState()?!(typeof this.document>"u"):(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1):!1}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=e=>{let n=e.origin.toLowerCase(),o=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),!o.startsWith(n)){this.debug("sessionCheckEventListener","wrong origin",n,"expected",o,"event",e);return}switch(e.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()});break}this.debug("got info from session check inframe",e)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new jr("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new jr("session_changed")),this.stopSessionCheckTimer(),!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken().then(()=>{this.debug("token refresh after session change worked")}).catch(()=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new jr("session_terminated")),this.logOut(!0)}):this.silentRefreshRedirectUri?(this.silentRefresh().catch(()=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new jr("session_terminated")),this.logOut(!0))}waitForSilentRefreshAfterSessionChange(){this.events.pipe(Te(e=>e.type==="silently_refreshed"||e.type==="silent_refresh_timeout"||e.type==="silent_refresh_error"),So()).subscribe(e=>{e.type!=="silently_refreshed"&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new jr("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new jr("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;let e=this.document.getElementById(this.sessionCheckIFrameName);e&&this.document.body.removeChild(e);let n=this.document.createElement("iframe");n.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener();let o=this.sessionCheckIFrameUrl;n.setAttribute("src",o),n.style.display="none",this.document.body.appendChild(n),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){let e=this.document.getElementById(this.sessionCheckIFrameName);e||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);let n=this.getSessionState();n||this.stopSessionCheckTimer();let o=this.clientId+" "+n;e.contentWindow.postMessage(o,this.issuer)}createLoginUrl(){return di(this,arguments,function*(e="",n="",o="",r=!1,a={}){let s=this,c;o?c=o:c=this.redirectUri;let u=yield this.createAndSaveNonce();if(e?e=u+this.config.nonceStateSeparator+encodeURIComponent(e):e=u,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.config.responseType?this.responseType=this.config.responseType:this.oidc&&this.requestAccessToken?this.responseType="id_token token":this.oidc&&!this.requestAccessToken?this.responseType="id_token":this.responseType="token";let f=s.loginUrl.indexOf("?")>-1?"&":"?",g=s.scope;this.oidc&&!g.match(/(^|\s)openid($|\s)/)&&(g="openid "+g);let y=s.loginUrl+f+"response_type="+encodeURIComponent(s.responseType)+"&client_id="+encodeURIComponent(s.clientId)+"&state="+encodeURIComponent(e)+"&redirect_uri="+encodeURIComponent(c)+"&scope="+encodeURIComponent(g);if(this.responseType.includes("code")&&!this.disablePKCE){let[x,D]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",D):this._storage.setItem("PKCE_verifier",D),y+="&code_challenge="+x,y+="&code_challenge_method=S256"}n&&(y+="&login_hint="+encodeURIComponent(n)),s.resource&&(y+="&resource="+encodeURIComponent(s.resource)),s.oidc&&(y+="&nonce="+encodeURIComponent(u)),r&&(y+="&prompt=none");for(let x of Object.keys(a))y+="&"+encodeURIComponent(x)+"="+encodeURIComponent(a[x]);if(this.customQueryParams)for(let x of Object.getOwnPropertyNames(this.customQueryParams))y+="&"+x+"="+encodeURIComponent(this.customQueryParams[x]);return y})}initImplicitFlowInternal(e="",n=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let o={},r=null;typeof n=="string"?r=n:typeof n=="object"&&(o=n),this.createLoginUrl(e,r,null,!1,o).then(this.config.openUri).catch(a=>{console.error("Error in initImplicitFlow",a),this.inImplicitFlow=!1})}initImplicitFlow(e="",n=""){this.loginUrl!==""?this.initImplicitFlowInternal(e,n):this.events.pipe(Te(o=>o.type==="discovery_document_loaded")).subscribe(()=>this.initImplicitFlowInternal(e,n))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(e){let n=this;if(e.onTokenReceived){let o={idClaims:n.getIdentityClaims(),idToken:n.getIdToken(),accessToken:n.getAccessToken(),state:n.state};e.onTokenReceived(o)}}storeAccessTokenResponse(e,n,o,r,a){if(this._storage.setItem("access_token",e),r&&!Array.isArray(r)?this._storage.setItem("granted_scopes",JSON.stringify(r.split(" "))):r&&Array.isArray(r)&&this._storage.setItem("granted_scopes",JSON.stringify(r)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),o){let s=o*1e3,u=this.dateTimeService.new().getTime()+s;this._storage.setItem("expires_at",""+u)}n&&this._storage.setItem("refresh_token",n),a&&a.forEach((s,c)=>{this._storage.setItem(c,s)})}tryLogin(e=null){return this.config.responseType==="code"?this.tryLoginCodeFlow(e).then(()=>!0):this.tryLoginImplicitFlow(e)}parseQueryString(e){return!e||e.length===0?{}:(e.charAt(0)==="?"&&(e=e.substr(1)),this.urlHelper.parseQueryString(e))}tryLoginCodeFlow(e=null){return di(this,null,function*(){e=e||{};let n=e.customHashFragment?e.customHashFragment.substring(1):window.location.search,o=this.getCodePartsFromUrl(n),r=o.code,a=o.state,s=o.session_state;if(!e.preventClearHashAfterLogin){let f=location.origin+location.pathname+location.search.replace(/code=[^&$]*/,"").replace(/scope=[^&$]*/,"").replace(/state=[^&$]*/,"").replace(/session_state=[^&$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,f)}let[c,u]=this.parseState(a);if(this.state=u,o.error){this.debug("error trying to login"),this.handleLoginError(e,o);let f=new An("code_error",{},o);return this.eventsSubject.next(f),Promise.reject(f)}if(!e.disableNonceCheck){if(!c)return this.saveRequestedRoute(),Promise.resolve();if(!e.disableOAuth2StateCheck&&!this.validateNonce(c)){let g=new An("invalid_nonce_in_state",null);return this.eventsSubject.next(g),Promise.reject(g)}}return this.storeSessionState(s),r&&(yield this.getTokenFromCode(r,e),this.restoreRequestedRoute()),Promise.resolve()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){let e=this._storage.getItem("requested_route");e&&history.replaceState(null,"",window.location.origin+e)}getCodePartsFromUrl(e){return!e||e.length===0?this.urlHelper.getHashFragmentParams():(e.charAt(0)==="?"&&(e=e.substr(1)),this.urlHelper.parseQueryString(e))}getTokenFromCode(e,n){let o=new ee({encoder:new il}).set("grant_type","authorization_code").set("code",e).set("redirect_uri",n.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let r;this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?r=localStorage.getItem("PKCE_verifier"):r=this._storage.getItem("PKCE_verifier"),r?o=o.set("code_verifier",r):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(o,n)}fetchAndProcessToken(e,n){n=n||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let o=new Mi().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let r=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+r)}return this.useHttpBasicAuth||(e=e.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(e=e.set("client_secret",this.dummyClientSecret)),new Promise((r,a)=>{if(this.customQueryParams)for(let s of Object.getOwnPropertyNames(this.customQueryParams))e=e.set(s,this.customQueryParams[s]);this.http.post(this.tokenEndpoint,e,{headers:o}).subscribe(s=>{this.debug("refresh tokenResponse",s),this.storeAccessTokenResponse(s.access_token,s.refresh_token,s.expires_in||this.fallbackAccessTokenExpirationTimeInSec,s.scope,this.extractRecognizedCustomParameters(s)),this.oidc&&s.id_token?this.processIdToken(s.id_token,s.access_token,n.disableNonceCheck).then(c=>{this.storeIdToken(c),this.eventsSubject.next(new po("token_received")),this.eventsSubject.next(new po("token_refreshed")),r(s)}).catch(c=>{this.eventsSubject.next(new An("token_validation_error",c)),console.error("Error validating tokens"),console.error(c),a(c)}):(this.eventsSubject.next(new po("token_received")),this.eventsSubject.next(new po("token_refreshed")),r(s))},s=>{console.error("Error getting token",s),this.eventsSubject.next(new An("token_error",s)),a(s)})})}tryLoginImplicitFlow(e=null){e=e||{};let n;e.customHashFragment?n=this.urlHelper.getHashFragmentParams(e.customHashFragment):n=this.urlHelper.getHashFragmentParams(),this.debug("parsed url",n);let o=n.state,[r,a]=this.parseState(o);if(this.state=a,n.error){this.debug("error trying to login"),this.handleLoginError(e,n);let g=new An("token_error",{},n);return this.eventsSubject.next(g),Promise.reject(g)}let s=n.access_token,c=n.id_token,u=n.session_state,f=n.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!s||this.requestAccessToken&&!e.disableOAuth2StateCheck&&!o||this.oidc&&!c)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!u&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!e.disableNonceCheck&&!this.validateNonce(r)){let y=new An("invalid_nonce_in_state",null);return this.eventsSubject.next(y),Promise.reject(y)}return this.requestAccessToken&&this.storeAccessTokenResponse(s,null,n.expires_in||this.fallbackAccessTokenExpirationTimeInSec,f),this.oidc?this.processIdToken(c,s,e.disableNonceCheck).then(g=>e.validationHandler?e.validationHandler({accessToken:s,idClaims:g.idTokenClaims,idToken:g.idToken,state:o}).then(()=>g):g).then(g=>(this.storeIdToken(g),this.storeSessionState(u),this.clearHashAfterLogin&&!e.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new po("token_received")),this.callOnTokenReceivedIfExists(e),this.inImplicitFlow=!1,!0)).catch(g=>(this.eventsSubject.next(new An("token_validation_error",g)),this.logger.error("Error validating tokens"),this.logger.error(g),Promise.reject(g))):(this.eventsSubject.next(new po("token_received")),this.clearHashAfterLogin&&!e.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(e),Promise.resolve(!0))}parseState(e){let n=e,o="";if(e){let r=e.indexOf(this.config.nonceStateSeparator);r>-1&&(n=e.substr(0,r),o=e.substr(r+this.config.nonceStateSeparator.length))}return[n,o]}validateNonce(e){let n;return this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?n=localStorage.getItem("nonce"):n=this._storage.getItem("nonce"),n!==e?(console.error("Validating access_token failed, wrong state/nonce.",n,e),!1):!0}storeIdToken(e){this._storage.setItem("id_token",e.idToken),this._storage.setItem("id_token_claims_obj",e.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+e.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(e){this._storage.setItem("session_state",e)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(e,n){e.onLoginError&&e.onLoginError(n),this.clearHashAfterLogin&&!e.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(e=6e5){return!this.clockSkewInSec&&this.clockSkewInSec!==0?e:this.clockSkewInSec*1e3}processIdToken(e,n,o=!1){let r=e.split("."),a=this.padBase64(r[0]),s=_k(a),c=JSON.parse(s),u=this.padBase64(r[1]),f=_k(u),g=JSON.parse(f),y;if(this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?y=localStorage.getItem("nonce"):y=this._storage.getItem("nonce"),Array.isArray(g.aud)){if(g.aud.every(pe=>pe!==this.clientId)){let pe="Wrong audience: "+g.aud.join(",");return this.logger.warn(pe),Promise.reject(pe)}}else if(g.aud!==this.clientId){let pe="Wrong audience: "+g.aud;return this.logger.warn(pe),Promise.reject(pe)}if(!g.sub){let pe="No sub claim in id_token";return this.logger.warn(pe),Promise.reject(pe)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==g.sub){let pe=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${g.sub}`;return this.logger.warn(pe),Promise.reject(pe)}if(!g.iat){let pe="No iat claim in id_token";return this.logger.warn(pe),Promise.reject(pe)}if(!this.skipIssuerCheck&&g.iss!==this.issuer){let pe="Wrong issuer: "+g.iss;return this.logger.warn(pe),Promise.reject(pe)}if(!o&&g.nonce!==y){let pe="Wrong nonce: "+g.nonce;return this.logger.warn(pe),Promise.reject(pe)}if(Object.prototype.hasOwnProperty.call(this,"responseType")&&(this.responseType==="code"||this.responseType==="id_token")&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!g.at_hash){let pe="An at_hash is needed!";return this.logger.warn(pe),Promise.reject(pe)}let x=this.dateTimeService.now(),D=g.iat*1e3,Y=g.exp*1e3,Q=this.getClockSkewInMsec();if(D-Q>=x||Y+Q-this.decreaseExpirationBySec<=x){let pe="Token has expired";return console.error(pe),console.error({now:x,issuedAtMSec:D,expiresAtMSec:Y}),Promise.reject(pe)}let K={accessToken:n,idToken:e,jwks:this.jwks,idTokenClaims:g,idTokenHeader:c,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(K).then(()=>({idToken:e,idTokenClaims:g,idTokenClaimsJson:f,idTokenHeader:c,idTokenHeaderJson:s,idTokenExpiresAt:Y})):this.checkAtHash(K).then(pe=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!pe){let ut="Wrong at_hash";return this.logger.warn(ut),Promise.reject(ut)}return this.checkSignature(K).then(()=>{let ut=!this.disableAtHashCheck,wt={idToken:e,idTokenClaims:g,idTokenClaimsJson:f,idTokenHeader:c,idTokenHeaderJson:s,idTokenExpiresAt:Y};return ut?this.checkAtHash(K).then(Bt=>{if(this.requestAccessToken&&!Bt){let en="Wrong at_hash";return this.logger.warn(en),Promise.reject(en)}else return wt}):wt})})}getIdentityClaims(){let e=this._storage.getItem("id_token_claims_obj");return e?JSON.parse(e):null}getGrantedScopes(){let e=this._storage.getItem("granted_scopes");return e?JSON.parse(e):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(e){for(;e.length%4!==0;)e+="=";return e}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){let e=this._storage.getItem("expires_at"),n=this.dateTimeService.new();return!(e&&parseInt(e,10)-this.decreaseExpirationBySec=0&&this._storage.getItem(e)!==null?JSON.parse(this._storage.getItem(e)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(e={},n=""){let o=!1;typeof e=="boolean"&&(o=e,e={});let r=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(s=>this._storage.removeItem(s)),this.silentRefreshSubject=null,this.eventsSubject.next(new jr("logout")),!this.logoutUrl||o)return;let a;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)a=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(r)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let s=new ee({encoder:new il});r&&(s=s.set("id_token_hint",r));let c=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";c&&(s=s.set("post_logout_redirect_uri",c),n&&(s=s.set("state",n)));for(let u in e)s=s.set(u,e[u]);a=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+s.toString()}this.config.openUri(a)}createAndSaveNonce(){let e=this;return this.createNonce().then(function(n){return e.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",n):e._storage.setItem("nonce",n),n})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();let e=this.document.getElementById(this.silentRefreshIFrameName);e&&e.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();let n=this.document.getElementById(this.sessionCheckIFrameName);n&&n.remove()}createNonce(){return new Promise(e=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",o=45,r="",a=typeof self>"u"?null:self.crypto||self.msCrypto;if(a){let s=new Uint8Array(o);a.getRandomValues(s),s.map||(s.map=Array.prototype.map),s=s.map(c=>n.charCodeAt(c%n.length)),r=String.fromCharCode.apply(null,s)}else for(;0o.type==="discovery_document_loaded")).subscribe(()=>this.initCodeFlowInternal(e,n))}initCodeFlowInternal(e="",n={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let o={},r=null;typeof n=="string"?r=n:typeof n=="object"&&(o=n),this.createLoginUrl(e,r,null,!1,o).then(this.config.openUri).catch(a=>{console.error("Error in initAuthorizationCodeFlow"),console.error(a)})}createChallangeVerifierPairForPKCE(){return di(this,null,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");let e=yield this.createNonce(),n=yield this.crypto.calcHash(e,"sha-256");return[bk(n),e]})}extractRecognizedCustomParameters(e){let n=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(o=>{e[o]&&n.set(o,JSON.stringify(e[o]))}),n}revokeTokenAndLogout(e={},n=!1){let o=this.revocationEndpoint,r=this.getAccessToken(),a=this.getRefreshToken();if(!r)return Promise.resolve();let s=new ee({encoder:new il}),c=new Mi().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let u=btoa(`${this.clientId}:${this.dummyClientSecret}`);c=c.set("Authorization","Basic "+u)}if(this.useHttpBasicAuth||(s=s.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(s=s.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let u of Object.getOwnPropertyNames(this.customQueryParams))s=s.set(u,this.customQueryParams[u]);return new Promise((u,f)=>{let g,y;if(r){let x=s.set("token",r).set("token_type_hint","access_token");g=this.http.post(o,x,{headers:c})}else g=re(null);if(a){let x=s.set("token",a).set("token_type_hint","refresh_token");y=this.http.post(o,x,{headers:c})}else y=re(null);n&&(g=g.pipe(Zn(x=>x.status===0?re(null):Do(x))),y=y.pipe(Zn(x=>x.status===0?re(null):Do(x)))),Xn([g,y]).subscribe(x=>{this.logOut(e),u(x),this.logger.info("Token successfully revoked")},x=>{this.logger.error("Error revoking token",x),this.eventsSubject.next(new An("token_revoke_error",x)),f(x)})})}clearLocationHash(){location.hash!=""&&(location.hash="")}static{this.\u0275fac=function(n){return new(n||t)(be(se),be(En),be(mp,8),be(pp,8),be(q1,8),be(vk),be(up),be(fp,8),be(De),be(x0))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})(),hp=class{},f_=class{handleError(i){return Do(i)}},XQ=(()=>{class t{constructor(e,n,o){this.oAuthService=e,this.errorHandler=n,this.moduleConfig=o}checkUrl(e){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(e):this.moduleConfig.resourceServer.allowedUrls?!!this.moduleConfig.resourceServer.allowedUrls.find(n=>e.toLowerCase().startsWith(n.toLowerCase())):!0}intercept(e,n){let o=e.url.toLowerCase();return!this.moduleConfig||!this.moduleConfig.resourceServer||!this.checkUrl(o)?n.handle(e):this.moduleConfig.resourceServer.sendAccessToken?mt(re(this.oAuthService.getAccessToken()).pipe(Te(a=>!!a)),this.oAuthService.events.pipe(Te(a=>a.type==="token_received"),eg(this.oAuthService.waitForTokenInMsec||0),Zn(()=>re(null)),ue(()=>this.oAuthService.getAccessToken()))).pipe(Ve(1),rn(a=>{if(a){let s="Bearer "+a,c=e.headers.set("Authorization",s);e=e.clone({headers:c})}return n.handle(e).pipe(Zn(s=>this.errorHandler.handleError(s)))})):n.handle(e).pipe(Zn(a=>this.errorHandler.handleError(a)))}static{this.\u0275fac=function(n){return new(n||t)(be(gp),be(hp),be(dp,8))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();function ZQ(){return console}function JQ(){return typeof sessionStorage<"u"?sessionStorage:new $Q}function eK(t=null,i=lp){return ra([gp,vk,{provide:up,useFactory:ZQ},{provide:mp,useFactory:JQ},{provide:pp,useClass:i},{provide:fp,useClass:KQ},{provide:hp,useClass:f_},{provide:dp,useValue:t},{provide:Jm,useClass:XQ,multi:!0},{provide:x0,useClass:UQ}])}var bMe=(()=>{class t{static forRoot(e=null,n=lp){return{ngModule:t,providers:[eK(e,n)]}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t})}static{this.\u0275inj=Z({imports:[ge]})}}return t})();var is={headers:{"Fineract-Platform-TenantId":Ge.fineractPlatformTenantId}},_p="Authorization",tK="Fineract-Platform-TenantId",Ck="Fineract-Platform-TFA-Token",xk=(()=>{class t{constructor(){this.settingsService=d(Jt)}intercept(e,n){return this.settingsService.tenantIdentifier&&(is.headers["Fineract-Platform-TenantId"]=this.settingsService.tenantIdentifier),e=e.clone({setHeaders:is.headers}),n.handle(e)}setAuthorizationToken(e){Ge.oauth.enabled?is.headers[_p]=`Bearer ${e}`:is.headers[_p]=`Basic ${e}`}setTwoFactorAccessToken(e){is.headers[Ck]=e}removeAuthorization(){delete is.headers[_p]}removeAuthorizationTenant(){delete is.headers[_p],delete is.headers[tK]}removeTwoFactorAuthorization(){delete is.headers[Ck]}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();var Oi=(function(t){return t.OAuth2="oauth2",t.OIDC="oidc",t.Basic="basic",t})(Oi||{});function h_(){return Ge.OIDC.oidcServerEnabled?Oi.OIDC:Ge.oauth.enabled?Oi.OAuth2:Oi.Basic}function Mk(){switch(h_()){case Oi.OIDC:return nK();case Oi.OAuth2:return iK();default:return{clientId:""}}}function nK(){let t=Ge.OIDC.oidcFrontUrl||window.location.origin;return{issuer:Ge.OIDC.oidcBaseUrl,clientId:Ge.OIDC.oidcClientId,redirectUri:`${t}/callback`,postLogoutRedirectUri:`${t}/#/login`,responseType:"code",scope:"openid profile email offline_access",oidc:!0,useSilentRefresh:!1,requireHttps:Ge.production,showDebugInformation:!Ge.production,sessionChecksEnabled:!1,clearHashAfterLogin:!1}}function iK(){let t=window.location.origin;return{issuer:Ge.oauth.serverUrl,loginUrl:Ge.oauth.authorizeUrl,tokenEndpoint:Ge.oauth.tokenUrl,redirectUri:Ge.oauth.redirectUri,postLogoutRedirectUri:`${t}/#/login`,clientId:Ge.oauth.appId,responseType:"code",scope:Ge.oauth.scope,useSilentRefresh:!1,oidc:!1,skipIssuerCheck:!0,strictDiscoveryDocumentValidation:!1,requireHttps:Ge.production,showDebugInformation:!Ge.production,sessionChecksEnabled:!1,clearHashAfterLogin:!1}}var bp=(()=>{class t{changePassword(e,n){return this.http.put(`/users/${e}`,n)}constructor(){this.http=d(En),this.alertService=d(Bs),this.authenticationInterceptor=d(xk),this.oauthService=d(gp),this.userLoggedIn$=new dt(!1),this.isAuthenticated$=this.userLoggedIn$.asObservable(),this.rememberMe=!1,this.storage=sessionStorage,this.dialogShown=!1,this.authMode=Oi.Basic,this.credentialsStorageKey="mifosXCredentials",this.twoFactorAuthenticationTokenStorageKey="mifosXTwoFactorAuthenticationToken",this.authMode=h_(),this.authMode!==Oi.Basic&&this.initializeOAuthService(),this.restoreSession()}initializeOAuthService(){this.oauthService.configure(Mk());let e=Ge.enableRememberMe?localStorage:sessionStorage;this.oauthService.setStorage(e),this.oauthService.setupAutomaticSilentRefresh(),this.oauthService.events.subscribe(n=>{(n.type==="token_received"||n.type==="token_refreshed")&&this.updateCredentialsToken()}),this.cleanupLegacyStorage()}restoreSession(){let e=this.getSavedCredentials();if(e)if(e.rememberMe&&(this.rememberMe=!0,this.storage=localStorage,this.oauthService.setStorage(this.storage)),this.authMode!==Oi.Basic)this.oauthService.hasValidAccessToken()?(this.authenticationInterceptor.setAuthorizationToken(this.oauthService.getAccessToken()),this.userLoggedIn$.next(!0)):this.oauthService.getRefreshToken()&&this.oauthService.refreshToken().then(()=>this.userLoggedIn$.next(!0)).catch(()=>this.logout().subscribe());else{this.authenticationInterceptor.setAuthorizationToken(e.base64EncodedAuthenticationKey);let n=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));n&&this.authenticationInterceptor.setTwoFactorAccessToken(n.token),this.userLoggedIn$.next(!0)}}updateCredentialsToken(){let e=this.oauthService.getAccessToken();if(!e)return;this.authenticationInterceptor.setAuthorizationToken(e);let n=this.getCredentials();n&&(n.accessToken=e,this.storage.setItem(this.credentialsStorageKey,JSON.stringify(n)))}getSavedCredentials(){let e=sessionStorage.getItem(this.credentialsStorageKey)||localStorage.getItem(this.credentialsStorageKey);return e?JSON.parse(e):null}login(e){if(this.alertService.alert({type:"Authentication Start",message:"Please wait..."}),this.authMode!==Oi.Basic)return this.oauthService.initCodeFlow(),re(!0);if(!e)throw new Error("loginContext is required when using Basic authentication");return this.rememberMe=Ge.enableRememberMe?e?.remember??!1:!1,this.storage=this.rememberMe?localStorage:sessionStorage,this.http.post("/authentication",{username:e.username,password:e.password,remember:this.rememberMe}).pipe(ue(n=>(this.onLoginSuccess(n),!0)))}getUserDetails(){return di(this,null,function*(){let e=this.oauthService.getAccessToken();return new Promise((n,o)=>{if(this.authMode===Oi.OIDC){let r=`${Ge.OIDC.oidcApiUrl}authentication/userdetails`;this.http.post(r,{token:e}).subscribe({next:a=>{let s=a.object;s.accessToken=e,this.onLoginSuccess(s),n()},error:a=>{console.error("Failed to fetch user details:",a),o(a)}})}else if(this.authMode===Oi.OAuth2){let r=new Mi().set("Authorization",`Bearer ${e}`),a=`${Ge.oauth.serverUrl}/userdetails`;this.http.get(a,{headers:r}).subscribe({next:s=>{s.accessToken=e,this.onLoginSuccess(s),n()},error:s=>{console.error("Failed to fetch user details:",s),o(s)}})}})})}onLoginSuccess(e){this.userLoggedIn$.next(!0),e.rememberMe=this.rememberMe,this.authMode!==Oi.Basic?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)}handleOAuthCallback(){return di(this,null,function*(){try{let e=sessionStorage.getItem("oauth_callback_query");return e?(sessionStorage.removeItem("oauth_callback_query"),yield this.oauthService.tryLoginCodeFlow({customHashFragment:e})):yield this.oauthService.tryLoginCodeFlow(),this.oauthService.hasValidAccessToken()?(yield this.getUserDetails(),!0):!1}catch(e){return console.error("OAuth callback failed:",e),!1}})}logout(){let e=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));if(e&&(this.http.post("/twofactor/invalidate",{token:e.token}).subscribe(),this.authenticationInterceptor.removeTwoFactorAuthorization()),sessionStorage.removeItem("oauth_callback_query"),this.authenticationInterceptor.removeAuthorization(),this.setCredentials(),this.resetDialog(),this.userLoggedIn$.next(!1),this.authMode===Oi.OIDC)this.oauthService.logOut();else if(this.authMode===Oi.OAuth2){this.oauthService.logOut(!0);let n=window.open(Ge.oauth.logoutUrl,"_blank","width=100,height=100");setTimeout(()=>{n&&n.close(),window.location.href=`${window.location.origin}/#/login`},500)}return re(!0)}twoFactorAccessTokenIsValid(){let e=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));return e?new Date().getTime(){n.removeItem(this.credentialsStorageKey),n.removeItem(this.twoFactorAuthenticationTokenStorageKey)}),this.cleanupLegacyStorage())}cleanupLegacyStorage(){["mifosXZitadelTokenDetails","mifosXOAuthTokenDetails","token_start_time","refresh_expires_in","mifosXZitadel","auth_code"].forEach(n=>{localStorage.removeItem(n),sessionStorage.removeItem(n)})}getDeliveryMethods(){return this.http.get("/twofactor")}showDialog(){this.dialogShown=!0}resetDialog(){this.dialogShown=!1}hasDialogBeenShown(){return this.dialogShown}requestOTP(e){let n=new ee;return n=n.set("deliveryMethod",e.name),n=n.set("extendedToken",this.rememberMe.toString()),this.http.post("/twofactor",{},{params:n})}validateOTP(e){let n=new ee().set("token",e);return this.http.post("/twofactor/validate",{},{params:n}).pipe(ue(o=>{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(ue(()=>{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$.value}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();var Hs=(()=>{class t{constructor(){this.templateRef=d(it),this.viewContainer=d(pt),this.authenticationService=d(bp);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 Ok=(()=>{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)(Me(Je),Me(X))};static \u0275dir=z({type:t})}return t})(),Lk=(()=>{class t extends Ok{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275dir=z({type:t,features:[ce]})}return t})(),hi=new P("");var oK={provide:hi,useExisting:It(()=>Di),multi:!0};function rK(){let t=Uo()?Uo().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var aK=new P(""),Di=(()=>{class t extends Ok{_compositionMode;_composing=!1;constructor(e,n,o){super(e,n),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!rK())}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)(Me(Je),Me(X),Me(aK,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([oK]),ce]})}return t})();function v_(t){return t==null||y_(t)===0}function y_(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var Si=new P(""),rl=new P(""),sK=/^(?=.{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])?)*$/,on=class{static min(i){return Pk(i)}static max(i){return Ak(i)}static required(i){return zk(i)}static requiredTrue(i){return cK(i)}static email(i){return lK(i)}static minLength(i){return Rk(i)}static maxLength(i){return Nk(i)}static pattern(i){return dK(i)}static nullValidator(i){return yp()}static compose(i){return Uk(i)}static composeAsync(i){return $k(i)}};function Pk(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 zk(t){return v_(t.value)?{required:!0}:null}function cK(t){return t.value===!0?null:{required:!0}}function lK(t){return v_(t.value)||sK.test(t.value)?null:{email:!0}}function Rk(t){return i=>{let e=i.value?.length??y_(i.value);return e===null||e===0?null:e{let e=i.value?.length??y_(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function dK(t){if(!t)return yp;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(v_(n.value))return null;let o=n.value;return i.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function yp(t){return null}function Fk(t){return t!=null}function Vk(t){return Za(t)?Kt(t):t}function Bk(t){let i={};return t.forEach(e=>{i=e!=null?q(q({},i),e):i}),Object.keys(i).length===0?null:i}function jk(t,i){return i.map(e=>e(t))}function uK(t){return!t.validate}function Hk(t){return t.map(i=>uK(i)?i:e=>i.validate(e))}function Uk(t){if(!t)return null;let i=t.filter(Fk);return i.length==0?null:function(e){return Bk(jk(e,i))}}function C_(t){return t!=null?Uk(Hk(t)):null}function $k(t){if(!t)return null;let i=t.filter(Fk);return i.length==0?null:function(e){let n=jk(e,i).map(Vk);return Va(n).pipe(ue(Bk))}}function x_(t){return t!=null?$k(Hk(t)):null}function wk(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function Gk(t){return t._rawValidators}function Wk(t){return t._rawAsyncValidators}function g_(t){return t?Array.isArray(t)?t:[t]:[]}function Cp(t,i){return Array.isArray(t)?t.includes(i):t===i}function Dk(t,i){let e=g_(i);return g_(t).forEach(o=>{Cp(e,o)||e.push(o)}),e}function Sk(t,i){return g_(i).filter(e=>!Cp(t,e))}var xp=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=C_(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=x_(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}},wi=class extends xp{name;get formDirective(){return null}get path(){return null}},oi=class extends xp{_parent=null;name=null;valueAccessor=null},Mp=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}},mK={"[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"},awe=Ne(q({},mK),{"[class.ng-submitted]":"isSubmitted"}),fn=(()=>{class t extends Mp{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(Me(oi,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})(),mr=(()=>{class t extends Mp{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(Me(wi,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 w0="VALID",vp="INVALID",Q1="PENDING",D0="DISABLED",$s=class{},wp=class extends $s{value;source;constructor(i,e){super(),this.value=i,this.source=e}},k0=class extends $s{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},E0=class extends $s{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},K1=class extends $s{status;source;constructor(i,e){super(),this.status=i,this.source=e}},Dp=class extends $s{source;constructor(i){super(),this.source=i}},I0=class extends $s{source;constructor(i){super(),this.source=i}};function M_(t){return(Ip(t)?t.validators:t)||null}function pK(t){return Array.isArray(t)?C_(t):t||null}function w_(t,i){return(Ip(i)?i.asyncValidators:t)||null}function fK(t){return Array.isArray(t)?x_(t):t||null}function Ip(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function Yk(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new fe(1e3,"");if(!n[e])throw new fe(1001,"")}function qk(t,i,e){t._forEachChild((n,o)=>{if(e[o]===void 0)throw new fe(1002,"")})}var X1=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 Hn(this.statusReactive)}set status(i){Hn(()=>this.statusReactive.set(i))}_status=ni(()=>this.statusReactive());statusReactive=Se(void 0);get valid(){return this.status===w0}get invalid(){return this.status===vp}get pending(){return this.status==Q1}get disabled(){return this.status===D0}get enabled(){return this.status!==D0}errors;get pristine(){return Hn(this.pristineReactive)}set pristine(i){Hn(()=>this.pristineReactive.set(i))}_pristine=ni(()=>this.pristineReactive());pristineReactive=Se(!0);get dirty(){return!this.pristine}get touched(){return Hn(this.touchedReactive)}set touched(i){Hn(()=>this.touchedReactive.set(i))}_touched=ni(()=>this.touchedReactive());touchedReactive=Se(!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(Dk(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(Dk(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(Sk(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(Sk(i,this._rawAsyncValidators))}hasValidator(i){return Cp(this._rawValidators,i)}hasAsyncValidator(i){return Cp(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 E0(!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 E0(!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 k0(!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 k0(!0,n))}markAsPending(i={}){this.status=Q1;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new K1(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=D0,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 wp(this.value,n)),this._events.next(new K1(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=w0,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===w0||this.status===Q1)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new wp(this.value,e)),this._events.next(new K1(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()?D0:w0}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=Q1,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:i!==!1};let n=Vk(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 K1(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new j,this.statusChanges=new j}_calculateStatus(){return this._allControlsDisabled()?D0:this.errors?vp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Q1)?Q1:this._anyControlsHaveStatus(vp)?vp:w0}_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 k0(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new E0(this.touched,e)),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Ip(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=pK(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=fK(this._rawAsyncValidators)}},ol=class extends X1{constructor(i,e,n){super(M_(e),w_(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={}){qk(this,!0,i),Object.keys(i).forEach(n=>{Yk(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 I0(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 Qk=ol;var __=class extends ol{};var Z1=new P("",{providedIn:"root",factory:()=>Tp}),Tp="always";function Op(t,i){return[...i.path,t]}function T0(t,i,e=Tp){D_(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),gK(t,i),bK(t,i),_K(t,i),hK(t,i)}function Sp(t,i,e=!0){let n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),Ep(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function kp(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function hK(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function D_(t,i){let e=Gk(t);i.validator!==null?t.setValidators(wk(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=Wk(t);i.asyncValidator!==null?t.setAsyncValidators(wk(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let o=()=>t.updateValueAndValidity();kp(i._rawValidators,o),kp(i._rawAsyncValidators,o)}function Ep(t,i){let e=!1;if(t!==null){if(i.validator!==null){let o=Gk(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=Wk(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 kp(i._rawValidators,n),kp(i._rawAsyncValidators,n),e}function gK(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Kk(t,i)})}function _K(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Kk(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function Kk(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function bK(t,i){let e=(n,o)=>{i.valueAccessor.writeValue(n),o&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function Xk(t,i){t==null,D_(t,i)}function vK(t,i){return Ep(t,i)}function S_(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function yK(t){return Object.getPrototypeOf(t.constructor)===Lk}function Zk(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function k_(t,i){if(!i)return null;Array.isArray(i);let e,n,o;return i.forEach(r=>{r.constructor===Di?e=r:yK(r)?n=r:o=r}),o||n||e||null}function CK(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var xK={provide:wi,useExisting:It(()=>J1)},S0=Promise.resolve(),J1=(()=>{class t extends wi{callSetDisabledState;get submitted(){return Hn(this.submittedReactive)}_submitted=ni(()=>this.submittedReactive());submittedReactive=Se(!1);_directives=new Set;form;ngSubmit=new j;options;constructor(e,n,o){super(),this.callSetDisabledState=o,this.form=new ol({},C_(e),x_(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){S0.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),T0(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){S0.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){S0.then(()=>{let n=this._findContainer(e.path),o=new ol({});Xk(o,e),n.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){S0.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){S0.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),Zk(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Dp(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)(Me(Si,10),Me(rl,10),Me(Z1,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([xK]),ce]})}return t})();function kk(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function Ek(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Us=class extends X1{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(M_(e),w_(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ip(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Ek(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 I0(this))}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){kk(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){kk(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){Ek(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}},Qi=Us,MK=t=>t instanceof Us,wK=(()=>{class t extends wi{_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 Op(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=Oe(t)))(o||t)}})();static \u0275dir=z({type:t,standalone:!1,features:[ce]})}return t})();var DK={provide:oi,useExisting:It(()=>SK)},Ik=Promise.resolve(),SK=(()=>{class t extends oi{_changeDetectorRef;callSetDisabledState;control=new Us;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=k_(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),S_(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(){T0(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){Ik.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,o=n!==0&&H(n);Ik.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Op(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(Me(wi,9),Me(Si,10),Me(rl,10),Me(hi,10),Me(we,8),Me(Z1,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([DK]),ce,Re]})}return t})();var Gs=(()=>{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})(),kK={provide:hi,useExisting:It(()=>EK),multi:!0},EK=(()=>{class t extends Lk{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=Oe(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([kK]),ce]})}return t})();var E_=new P(""),IK={provide:oi,useExisting:It(()=>Li)},Li=(()=>{class t extends oi{_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=k_(this,o)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&Sp(n,this,!1),T0(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}S_(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Sp(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)(Me(Si,10),Me(rl,10),Me(hi,10),Me(E_,8),Me(Z1,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([IK]),ce,Re]})}return t})(),TK={provide:wi,useExisting:It(()=>gi)},gi=(()=>{class t extends wi{callSetDisabledState;get submitted(){return Hn(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=ni(()=>this._submittedReactive());_submittedReactive=Se(!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&&(Ep(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 T0(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){Sp(e.control||null,e,!1),CK(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),Zk(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Dp(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&&(Sp(n||null,e),MK(o)&&(T0(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);Xk(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&vK(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){D_(this.form,this),this._oldForm&&Ep(this._oldForm,this)}static \u0275fac=function(n){return new(n||t)(Me(Si,10),Me(rl,10),Me(Z1,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([TK]),ce,Re]})}return t})(),OK={provide:wi,useExisting:It(()=>Jk)},Jk=(()=>{class t extends wK{name=null;constructor(e,n,o){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(o)}_checkParentType(){tE(this._parent)}static \u0275fac=function(n){return new(n||t)(Me(wi,13),Me(Si,10),Me(rl,10))};static \u0275dir=z({type:t,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[de([OK]),ce]})}return t})(),LK={provide:wi,useExisting:It(()=>eE)},eE=(()=>{class t extends wi{_parent;name=null;constructor(e,n,o){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(o)}ngOnInit(){tE(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 Op(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||t)(Me(wi,13),Me(Si,10),Me(rl,10))};static \u0275dir=z({type:t,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[de([LK]),ce]})}return t})();function tE(t){return!(t instanceof Jk)&&!(t instanceof gi)&&!(t instanceof eE)}var PK={provide:oi,useExisting:It(()=>Go)},Go=(()=>{class t extends oi{_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=k_(this,r)}ngOnChanges(e){this._added||this._setUpControl(),S_(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 Op(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)(Me(wi,13),Me(Si,10),Me(rl,10),Me(hi,10),Me(E_,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([PK]),ce,Re]})}return t})();function nE(t){return typeof t=="number"?t:parseInt(t,10)}function iE(t){return typeof t=="number"?t:parseFloat(t)}var O0=(()=>{class t{_validator=yp;_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):yp,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})(),AK={provide:Si,useExisting:It(()=>zK),multi:!0},zK=(()=>{class t extends O0{max;inputName="max";normalizeInput=e=>iE(e);createValidator=e=>Ak(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(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([AK]),ce]})}return t})(),RK={provide:Si,useExisting:It(()=>NK),multi:!0},NK=(()=>{class t extends O0{min;inputName="min";normalizeInput=e=>iE(e);createValidator=e=>Pk(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(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([RK]),ce]})}return t})(),FK={provide:Si,useExisting:It(()=>Hr),multi:!0};var Hr=(()=>{class t extends O0{required;inputName="required";normalizeInput=H;createValidator=e=>zk;enabled(e){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(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([FK]),ce]})}return t})();var VK={provide:Si,useExisting:It(()=>BK),multi:!0},BK=(()=>{class t extends O0{minlength;inputName="minlength";normalizeInput=e=>nE(e);createValidator=e=>Rk(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(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([VK]),ce]})}return t})(),jK={provide:Si,useExisting:It(()=>HK),multi:!0},HK=(()=>{class t extends O0{maxlength;inputName="maxlength";normalizeInput=e=>nE(e);createValidator=e=>Nk(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(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([jK]),ce]})}return t})();var oE=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})(),b_=class extends X1{constructor(i,e,n){super(M_(e),w_(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={}){qk(this,!1,i),i.forEach((n,o)=>{Yk(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 I0(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 Tk(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var UK=(()=>{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 Tk(n)?r=n:n!==null&&(r.validators=n.validator,r.asyncValidators=n.asyncValidator),new ol(o,r)}record(e,n=null){let o=this._reduceControls(e);return new __(o,n)}control(e,n,o){let r={};return this.useNonNullable?(Tk(n)?r=n:(r.validators=n,r.asyncValidators=o),new Us(e,Ne(q({},r),{nonNullable:!0}))):new Us(e,n,o)}array(e,n,o){let r=e.map(a=>this._createControl(a));return new b_(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 Us)return e;if(e instanceof X1)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 Ws=(()=>{class t extends UK{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=Oe(t)))(o||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var rE=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Z1,useValue:e.callSetDisabledState??Tp}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[oE]})}return t})(),Ce=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:E_,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Z1,useValue:e.callSetDisabledState??Tp}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[oE]})}return t})();var aE=(()=>{class t{constructor(){this.locale=d(Rr),this.el=d(X),this.control=d(oi),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:Hm(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 Cwe=(()=>{class t{constructor(){this.control=d(oi),this.el=d(X)}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 sE=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t})}static{this.\u0275inj=Z({imports:[ge]})}}return t})();var pr=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 os(t){return t.buttons===0||t.detail===0}function rs(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 I_;function cE(){if(I_==null){let t=typeof document<"u"?document.head:null;I_=!!(t&&(t.createShadowRoot||t.attachShadow))}return I_}function al(t){if(cE()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function fo(){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 Un(t){return t.composedPath?t.composedPath()[0]:t.target}var T_;try{T_=typeof Intl<"u"&&Intl.v8BreakIterator}catch{T_=!1}var je=(()=>{class t{_platformId=d(Kc);isBrowser=this._platformId?cS(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||T_)&&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 L0;function lE(){if(L0==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>L0=!0}))}finally{L0=L0||!1}return L0}function Ys(t){return lE()?t:!!t.capture}function vn(t,i=0){return Lp(t)?Number(t):arguments.length===2?i:0}function Lp(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function In(t){return t instanceof X?t.nativeElement:t}var dE=new P("cdk-input-modality-detector-options"),uE={ignoreKeys:[18,17,224,91,16]},mE=650,O_={passive:!0,capture:!0},pE=(()=>{class t{_platform=d(je);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new dt(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Un(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(rs(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Un(e)};constructor(){let e=d(se),n=d(De),o=d(dE,{optional:!0});if(this._options=q(q({},uE),o),this.modalityDetected=this._modality.pipe(Oc(1)),this.modalityChanged=this.modalityDetected.pipe(n1()),this._platform.isBrowser){let r=d(Ln).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[r.listen(n,"keydown",this._onKeydown,O_),r.listen(n,"mousedown",this._onMousedown,O_),r.listen(n,"touchstart",this._onTouchstart,O_)])}}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})(),P0=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(P0||{}),fE=new P("cdk-focus-monitor-default-options"),Pp=Ys({passive:!0,capture:!0}),ln=(()=>{class t{_ngZone=d(se);_platform=d(je);_inputModalityDetector=d(pE);_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(De);_stopInputModalityDetector=new B;constructor(){let e=d(fE,{optional:!0});this._detectionMode=e?.detectionMode||P0.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=Un(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=In(e);if(!this._platform.isBrowser||o.nodeType!==1)return re();let r=al(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=In(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=In(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===P0.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===P0.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?mE:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(e,n){let o=this._elementInfo.get(n),r=Un(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(xe(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(X);_focusMonitor=d(ln);_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 Ap=new WeakMap,ct=(()=>{class t{_appRef;_injector=d(ye);_environmentInjector=d(Xt);load(e){let n=this._appRef=this._appRef||this._injector.get(fi),o=Ap.get(n);o||(o={loaders:new Set,refs:[]},Ap.set(n,o),n.onDestroy(()=>{Ap.get(n)?.refs.forEach(r=>r.destroy()),Ap.delete(n)})),o.loaders.has(e)||(o.loaders.add(e),o.refs.push(Em(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 Io=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({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 Ur(t){return Array.isArray(t)?t:[t]}var hE=new Set,sl,zp=(()=>{class t{_platform=d(je);_nonce=d(S1,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):GK}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&$K(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 $K(t,i){if(!hE.has(t))try{sl||(sl=document.createElement("style"),i&&sl.setAttribute("nonce",i),sl.setAttribute("type","text/css"),document.head.appendChild(sl)),sl.sheet&&(sl.sheet.insertRule(`@media ${t} {body{ }}`,0),hE.add(t))}catch(e){console.error(e)}}function GK(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var cl=(()=>{class t{_mediaMatcher=d(zp);_zone=d(se);_queries=new Map;_destroySubject=new B;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return gE(Ur(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let o=gE(Ur(e)).map(a=>this._registerQuery(a).observable),r=Xn(o);return r=Bi(r.pipe(Ve(1)),r.pipe(Oc(1),Ro(0))),r.pipe(ue(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:u})=>{s.matches=s.matches||c,s.breakpoints[u]=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(Qe(n),ue(({matches:a})=>({query:e,matches:a})),xe(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 gE(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function WK(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})(),bE=(()=>{class t{_mutationObserverFactory=d(_E);_observedElements=new Map;_ngZone=d(se);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){let n=In(e);return new Fe(o=>{let a=this._observeElement(n).pipe(ue(s=>s.filter(c=>!WK(c))),Te(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})(),z0=(()=>{class t{_contentObserver=d(bE);_elementRef=d(X);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(Ro(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})(),e2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[_E]})}return t})();var Qs=(()=>{class t{_platform=d(je);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return qK(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=YK(nX(e));if(n&&(vE(n)===-1||!this.isVisible(n)))return!1;let o=e.nodeName.toLowerCase(),r=vE(e);return e.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!eX(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 tX(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 YK(t){try{return t.frameElement}catch{return null}}function qK(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function QK(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function KK(t){return ZK(t)&&t.type=="hidden"}function XK(t){return JK(t)&&t.hasAttribute("href")}function ZK(t){return t.nodeName.toLowerCase()=="input"}function JK(t){return t.nodeName.toLowerCase()=="a"}function xE(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function vE(t){if(!xE(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function eX(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function tX(t){return KK(t)?!1:QK(t)||XK(t)||t.hasAttribute("contenteditable")||xE(t)}function nX(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var Rp=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?xt(i,{injector:this._injector}):setTimeout(i)}},t2=(()=>{class t{_checker=d(Qs);_ngZone=d(se);_document=d(De);_injector=d(ye);constructor(){d(ct).load(Io)}create(e,n=!1){return new Rp(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})(),P_=(()=>{class t{_elementRef=d(X);_focusTrapFactory=d(t2);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=fo(),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})(),ME=new P("liveAnnouncerElement",{providedIn:"root",factory:wE});function wE(){return null}var DE=new P("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),iX=0,R0=(()=>{class t{_ngZone=d(se);_defaultOptions=d(DE,{optional:!0});_liveElement;_document=d(De);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=d(ME,{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(De);_breakpointSubscription;constructor(){this._breakpointSubscription=d(cl).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return qs.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 qs.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return qs.BLACK_ON_WHITE}return qs.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(L_,yE,CE),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===qs.BLACK_ON_WHITE?e.add(L_,yE):n===qs.WHITE_ON_BLACK&&e.add(L_,CE)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),as=(()=>{class t{constructor(){d(Np)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[e2]})}return t})();var A_={},He=(()=>{class t{_appId=d(zs);getId(e){return this._appId!=="ng"&&(e+=this._appId),A_.hasOwnProperty(e)||(A_[e]=0),`${e}${A_[e]++}`}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var oX=200,n2=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:oX;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(Dt(e=>this._pressedLetters.push(e)),Ro(i),Te(()=>this._pressedLetters.length>0),ue(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let n=1;nt[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var i2=class{_items;_activeItemIndex=Se(-1);_activeItem=Se(null);_wrap=!1;_typeaheadSubscription=Ee.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 On?this._itemChangesSubscription=i.changes.subscribe(n=>this._itemsChanged(n.toArray())):da(i)&&(this._effectRef=_a(()=>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 n2(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 ll=class extends i2{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var $r=class extends i2{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};function dl(t){return ui(t)?t:re(t)}var z_=class{_activeItemIndex=-1;_activeItem=null;_shouldActivationFollowFocus=!1;_horizontalOrientation="ltr";_skipPredicateFn=i=>!1;_trackByFn=i=>i;_items=[];_typeahead;_typeaheadSubscription=Ee.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()})):ui(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 n2(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()?dl(this._activeItem.getChildren()).pipe(Ve(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=dl(i.getChildren()):e=re(this._items.filter(n=>n.getParent()===null)),e.pipe(Ve(1)).subscribe(n=>{for(let o of n)o.expand()})}_activateCurrentItem(){this._activeItem?.activate()}};function rX(){return(t,i)=>new z_(t,i)}var EE=new P("tree-key-manager",{providedIn:"root",factory:rX});var TE=" ";function o2(t,i,e){let n=jp(t,i);e=e.trim(),!n.some(o=>o.trim()===e)&&(n.push(e),t.setAttribute(i,n.join(TE)))}function Ks(t,i,e){let n=jp(t,i);e=e.trim();let o=n.filter(r=>r!==e);o.length?t.setAttribute(i,o.join(TE)):t.removeAttribute(i)}function jp(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var OE="cdk-describedby-message",Bp="cdk-describedby-host",N_=0,r2=(()=>{class t{_platform=d(je);_document=d(De);_messageRegistry=new Map;_messagesContainer=null;_id=`${N_++}`;constructor(){d(ct).load(Io),this._id=d(zs)+"-"+N_++}describe(e,n,o){if(!this._canBeDescribed(e,n))return;let r=R_(n,o);typeof n!="string"?(IE(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=R_(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(`[${Bp}="${this._id}"]`);for(let n=0;no.indexOf(OE)!=0);e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){let o=this._messageRegistry.get(n);o2(e,"aria-describedby",o.messageElement.id),e.setAttribute(Bp,this._id),o.referenceCount++}_removeMessageReference(e,n){let o=this._messageRegistry.get(n);o.referenceCount--,Ks(e,"aria-describedby",o.messageElement.id),e.removeAttribute(Bp)}_isElementDescribedByMessage(e,n){let o=jp(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 R_(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function IE(t,i){t.id||(t.id=`${OE}-${i}-${N_++}`)}var aX=["mat-internal-form-field",""],sX=["*"],a2=(()=>{class t{labelPosition;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({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:aX,ngContentSelectors:sX,decls:1,vars:0,template:function(n,o){n&1&&(ke(),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 LE=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})(),Hp={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 cX=new P("MATERIAL_ANIMATIONS");var PE=null;function V0(){return d(cX,{optional:!0})?.animationsDisabled||d(jd,{optional:!0})==="NoopAnimations"?"di-disabled":(PE??=d(zp).matchMedia("(prefers-reduced-motion)").matches,PE?"reduced-motion":"enabled")}function Ue(){return V0()!=="enabled"}var dn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({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 Gr=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(Gr||{}),Up,ul;function $p(){if(ul==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return ul=!1,ul;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)ul=!0;else{let t=Element.prototype.scrollTo;t?ul=!/\{\s*\[native code\]\s*\}/.test(t.toString()):ul=!1}}return ul}function s2(){if(typeof document!="object"||!document)return Gr.NORMAL;if(Up==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),Up=Gr.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,Up=t.scrollLeft===0?Gr.NEGATED:Gr.INVERTED),t.remove()}return Up}function F_(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var c2,AE=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function V_(){if(c2)return c2;if(typeof document!="object"||!document)return c2=new Set(AE),c2;let t=document.createElement("input");return c2=new Set(AE.filter(i=>(t.setAttribute("type",i),t.type===i))),c2}function Wn(t){return t==null?"":typeof t=="string"?t:`${t}px`}function yn(t){return t!=null&&`${t}`!="false"}function zE(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 gr=(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})(gr||{}),B_=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=gr.HIDDEN;constructor(i,e,n,o=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=o}fadeOut(){this._renderer.fadeOutRipple(this)}},RE=Ys({passive:!0,capture:!0}),j_=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,RE)})}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,RE)))}_delegateEventHandler=i=>{let e=Un(i);e&&this._events.get(i.type)?.forEach((n,o)=>{(o===e||o.contains(e))&&n.forEach(r=>r.handleEvent(i))})}},B0={enterDuration:225,exitDuration:150},lX=800,NE=Ys({passive:!0,capture:!0}),FE=["mousedown","touchstart"],VE=["mouseup","mouseleave","touchend","touchcancel"],dX=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({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})(),ml=class t{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new j_;constructor(i,e,n,o,r){this._target=i,this._ngZone=e,this._platform=o,o.isBrowser&&(this._containerElement=In(n)),r&&r.get(ct).load(dX)}fadeInRipple(i,e,n={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=q(q({},B0),n.animation);n.centered&&(i=o.left+o.width/2,e=o.top+o.height/2);let a=n.radius||uX(i,e,o),s=i-o.left,c=e-o.top,u=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=`${u}ms`,this._containerElement.appendChild(f);let g=window.getComputedStyle(f),y=g.transitionProperty,x=g.transitionDuration,D=y==="none"||x==="0s"||x==="0s, 0s"||o.width===0&&o.height===0,Y=new B_(this,f,n,D);f.style.transform="scale3d(1, 1, 1)",Y.state=gr.FADING_IN,n.persistent||(this._mostRecentTransientRipple=Y);let Q=null;return!D&&(u||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let K=()=>{Q&&(Q.fallbackTimer=null),clearTimeout(ut),this._finishRippleTransition(Y)},pe=()=>this._destroyRipple(Y),ut=setTimeout(pe,u+100);f.addEventListener("transitionend",K),f.addEventListener("transitioncancel",pe),Q={onTransitionEnd:K,onTransitionCancel:pe,fallbackTimer:ut}}),this._activeRipples.set(Y,Q),(D||!u)&&this._finishRippleTransition(Y),Y}fadeOutRipple(i){if(i.state===gr.FADING_OUT||i.state===gr.HIDDEN)return;let e=i.element,n=q(q({},B0),i.config.animation);e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=gr.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=In(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,FE.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(()=>{VE.forEach(e=>{this._triggerElement.addEventListener(e,this,NE)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){i.state===gr.FADING_IN?this._startFadeOutTransition(i):i.state===gr.FADING_OUT&&this._destroyRipple(i)}_startFadeOutTransition(i){let e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=gr.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=gr.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=os(i),n=this._lastTouchStartEvent&&Date.now(){let e=i.state===gr.VISIBLE||i.config.terminateOnPointerUp&&i.state===gr.FADING_IN;!i.config.persistent&&e&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(FE.forEach(e=>t._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&(VE.forEach(e=>i.removeEventListener(e,this,NE)),this._pointerUpEventsRegistered=!1))}};function uX(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 pl=new P("mat-ripple-global-options"),_i=(()=>{class t{_elementRef=d(X);_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(pl,{optional:!0}),r=d(ye);this._globalOptions=o||{},this._rippleRenderer=new ml(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 mX=new P("cdk-dir-doc",{providedIn:"root",factory:pX});function pX(){return d(De)}var fX=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function BE(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?fX.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var vt=(()=>{class t{get value(){return this.valueSignal()}valueSignal=Se("ltr");change=new j;constructor(){let e=d(mX,{optional:!0});if(e){let n=e.body?e.body.dir:null,o=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(BE(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 va=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})();var he=(()=>{class t{constructor(){d(Np)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[va,va]})}return t})();var hX=["input"],gX=["label"],_X=["*"],bX=new P("mat-checkbox-default-options",{providedIn:"root",factory:HE});function HE(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var Xi=(function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t})(Xi||{}),H_=class{source;checked},jE=HE(),fl=(()=>{class t{_elementRef=d(X);_changeDetectorRef=d(we);_ngZone=d(se);_animationsDisabled=Ue();_options=d(bX,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let n=new H_;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=Xi.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){d(ct).load(dn);let e=d(new mn("tabindex"),{optional:!0});this._options=this._options||jE,this.color=this._options.color||jE.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(Xi.Indeterminate):this._transitionCheckState(this.checked?Xi.Checked:Xi.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=Se(!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?Xi.Checked:Xi.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 Xi.Init:if(n===Xi.Checked)return this._animationClasses.uncheckedToChecked;if(n==Xi.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Xi.Unchecked:return n===Xi.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Xi.Checked:return n===Xi.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Xi.Indeterminate:return n===Xi.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=L({type:t,selectors:[["mat-checkbox"]],viewQuery:function(n,o){if(n&1&&(me(hX,5),me(gX,5)),n&2){let r;G(r=W())&&(o._inputElement=r.first),G(r=W())&&(o._labelElement=r.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(n,o){n&2&&(At("id",o.id),ne("tabindex",null)("aria-label",null)("aria-labelledby",null),Lt(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:ft(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:hi,useExisting:It(()=>t),multi:!0},{provide:Si,useExisting:t,multi:!0}]),Re],ngContentSelectors:_X,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();ke(),h(0,"div",3),N("click",function(s){return U(r),$(o._preventBubblingFromLabel(s))}),h(1,"div",4,0)(3,"div",5),N("click",function(){return U(r),$(o._onTouchTargetClick())}),b(),h(4,"input",6,1),N("blur",function(){return U(r),$(o._onBlur())})("click",function(){return U(r),$(o._onInputClick())})("change",function(s){return U(r),$(o._onInteractionEvent(s))}),b(),F(6,"div",7),h(7,"div",8),Gt(),h(8,"svg",9),F(9,"path",10),b(),sr(),F(10,"div",11),b(),F(11,"div",12),b(),h(12,"label",13,2),ae(14),b()()}if(n&2){let r=Ft(2);S("labelPosition",o.labelPosition),p(4),oe("mdc-checkbox--selected",o.checked),S("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),S("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),p(),S("for",o.inputId)}},dependencies:[_i,a2],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})(),UE=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[fl,he,he]})}return t})();var ht="primary",J0=Symbol("RouteTitle"),Y_=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 _l(t){return new Y_(t)}function ZE(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 eI(t){return t.length>0?t[t.length-1]:null}function ss(t){return ui(t)?t:Za(t)?Kt(Promise.resolve(t)):re(t)}var yX={exact:nI,subset:iI},tI={exact:CX,subset:xX,ignored:()=>!0};function GE(t,i,e){return yX[e.paths](t.root,i.root,e.matrixParams)&&tI[e.queryParams](t.queryParams,i.queryParams)&&!(e.fragment==="exact"&&t.fragment!==i.fragment)}function CX(t,i){return ya(t,i)}function nI(t,i,e){if(!hl(t.segments,i.segments)||!Yp(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(let n in i.children)if(!t.children[n]||!nI(t.children[n],i.children[n],e))return!1;return!0}function xX(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>JE(t[e],i[e]))}function iI(t,i,e){return oI(t,i,i.segments,e)}function oI(t,i,e,n){if(t.segments.length>e.length){let o=t.segments.slice(0,e.length);return!(!hl(o,e)||i.hasChildren()||!Yp(o,e,n))}else if(t.segments.length===e.length){if(!hl(t.segments,e)||!Yp(t.segments,e,n))return!1;for(let o in i.children)if(!t.children[o]||!iI(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!hl(t.segments,o)||!Yp(t.segments,o,n)||!t.children[ht]?!1:oI(t.children[ht],i,r,n)}}function Yp(t,i,e){return i.every((n,o)=>tI[e](t[o].parameters,n.parameters))}var xa=class{root;queryParams;fragment;_queryParamMap;constructor(i=new Wt([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=_l(this.queryParams),this._queryParamMap}toString(){return DX.serialize(this)}},Wt=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 qp(this)}},Xs=class{path;parameters;_parameterMap;constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap??=_l(this.parameters),this._parameterMap}toString(){return aI(this)}};function MX(t,i){return hl(t,i)&&t.every((e,n)=>ya(e.parameters,i[n].parameters))}function hl(t,i){return t.length!==i.length?!1:t.every((e,n)=>e.path===i[n].path)}function wX(t,i){let e=[];return Object.entries(t.children).forEach(([n,o])=>{n===ht&&(e=e.concat(i(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==ht&&(e=e.concat(i(o,n)))}),e}var bl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>new Zs,providedIn:"root"})}return t})(),Zs=class{parse(i){let e=new K_(i);return new xa(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){let e=`/${j0(i.root,!0)}`,n=EX(i.queryParams),o=typeof i.fragment=="string"?`#${SX(i.fragment)}`:"";return`${e}${n}${o}`}},DX=new Zs;function qp(t){return t.segments.map(i=>aI(i)).join("/")}function j0(t,i){if(!t.hasChildren())return qp(t);if(i){let e=t.children[ht]?j0(t.children[ht],!1):"",n=[];return Object.entries(t.children).forEach(([o,r])=>{o!==ht&&n.push(`${o}:${j0(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=wX(t,(n,o)=>o===ht?[j0(t.children[ht],!1)]:[`${o}:${j0(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[ht]!=null?`${qp(t)}/${e[0]}`:`${qp(t)}/(${e.join("//")})`}}function rI(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Gp(t){return rI(t).replace(/%3B/gi,";")}function SX(t){return encodeURI(t)}function Q_(t){return rI(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Qp(t){return decodeURIComponent(t)}function WE(t){return Qp(t.replace(/\+/g,"%20"))}function aI(t){return`${Q_(t.path)}${kX(t.parameters)}`}function kX(t){return Object.entries(t).map(([i,e])=>`;${Q_(i)}=${Q_(e)}`).join("")}function EX(t){let i=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(o=>`${Gp(e)}=${Gp(o)}`).join("&"):`${Gp(e)}=${Gp(n)}`).filter(e=>e);return i.length?`?${i.join("&")}`:""}var IX=/^[^\/()?;#]+/;function U_(t){let i=t.match(IX);return i?i[0]:""}var TX=/^[^\/()?;=#]+/;function OX(t){let i=t.match(TX);return i?i[0]:""}var LX=/^[^=?&#]+/;function PX(t){let i=t.match(LX);return i?i[0]:""}var AX=/^[^&#]+/;function zX(t){let i=t.match(AX);return i?i[0]:""}var K_=class{url;remaining;constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Wt([],{}):new Wt([],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[ht]=new Wt(i,e)),n}parseSegment(){let i=U_(this.remaining);if(i===""&&this.peekStartsWith(";"))throw new fe(4009,!1);return this.capture(i),new Xs(Qp(i),this.parseMatrixParams())}parseMatrixParams(){let i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){let e=OX(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let o=U_(this.remaining);o&&(n=o,this.capture(n))}i[Qp(e)]=Qp(n)}parseQueryParam(i){let e=PX(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let a=zX(this.remaining);a&&(n=a,this.capture(n))}let o=WE(e),r=WE(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=U_(this.remaining),o=this.remaining[n.length];if(o!=="/"&&o!==")"&&o!==";")throw new fe(4010,!1);let r;n.indexOf(":")>-1?(r=n.slice(0,n.indexOf(":")),this.capture(r),this.capture(":")):i&&(r=ht);let a=this.parseChildren();e[r??ht]=Object.keys(a).length===1&&a[ht]?a[ht]:new Wt([],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 fe(4011,!1)}};function sI(t){return t.segments.length>0?new Wt([],{[ht]:t}):t}function cI(t){let i={};for(let[n,o]of Object.entries(t.children)){let r=cI(o);if(n===ht&&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 Wt(t.segments,i);return RX(e)}function RX(t){if(t.numberOfChildren===1&&t.children[ht]){let i=t.children[ht];return new Wt(t.segments.concat(i.segments),i.children)}return t}function Js(t){return t instanceof xa}function lI(t,i,e=null,n=null){let o=dI(t);return uI(o,i,e,n)}function dI(t){let i;function e(r){let a={};for(let c of r.children){let u=e(c);a[c.outlet]=u}let s=new Wt(r.url,a);return r===t&&(i=s),s}let n=e(t.root),o=sI(n);return i??o}function uI(t,i,e,n){let o=t;for(;o.parent;)o=o.parent;if(i.length===0)return $_(o,o,o,e,n);let r=NX(i);if(r.toRoot())return $_(o,o,new Wt([],{}),e,n);let a=FX(r,o,t),s=a.processChildren?U0(a.segmentGroup,a.index,r.commands):pI(a.segmentGroup,a.index,r.commands);return $_(o,a.segmentGroup,s,e,n)}function Kp(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function G0(t){return typeof t=="object"&&t!=null&&t.outlets}function $_(t,i,e,n,o){let r={};n&&Object.entries(n).forEach(([c,u])=>{r[c]=Array.isArray(u)?u.map(f=>`${f}`):`${u}`});let a;t===i?a=e:a=mI(t,i,e);let s=sI(cI(a));return new xa(s,r,o)}function mI(t,i,e){let n={};return Object.entries(t.children).forEach(([o,r])=>{r===i?n[o]=e:n[o]=mI(r,i,e)}),new Wt(t.segments,n)}var Xp=class{isAbsolute;numberOfDoubleDots;commands;constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&Kp(n[0]))throw new fe(4003,!1);let o=n.find(G0);if(o&&o!==eI(n))throw new fe(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function NX(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Xp(!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,u])=>{s[c]=typeof u=="string"?u.split("/"):u}),[...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 Xp(e,i,n)}var u2=class{segmentGroup;processChildren;index;constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}};function FX(t,i,e){if(t.isAbsolute)return new u2(i,!0,0);if(!e)return new u2(i,!1,NaN);if(e.parent===null)return new u2(e,!0,0);let n=Kp(t.commands[0])?0:1,o=e.segments.length-1+n;return VX(e,o,t.numberOfDoubleDots)}function VX(t,i,e){let n=t,o=i,r=e;for(;r>o;){if(r-=o,n=n.parent,!n)throw new fe(4005,!1);o=n.segments.length}return new u2(n,!1,o-r)}function BX(t){return G0(t[0])?t[0].outlets:{[ht]:t}}function pI(t,i,e){if(t??=new Wt([],{}),t.segments.length===0&&t.hasChildren())return U0(t,i,e);let n=jX(t,i,e),o=e.slice(n.commandIndex);if(n.match&&n.pathIndexr!==ht)&&t.children[ht]&&t.numberOfChildren===1&&t.children[ht].segments.length===0){let r=U0(t.children[ht],i,e);return new Wt(t.segments,r.children)}return Object.entries(n).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(o[r]=pI(t.children[r],i,a))}),Object.entries(t.children).forEach(([r,a])=>{n[r]===void 0&&(o[r]=a)}),new Wt(t.segments,o)}}function jX(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(G0(s))break;let c=`${s}`,u=n0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!qE(c,u,a))return r;n+=2}else{if(!qE(c,{},a))return r;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function X_(t,i,e){let n=t.segments.slice(0,i),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(i[e]=X_(new Wt([],{}),0,n))}),i}function YE(t){let i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function qE(t,i,e){return t==e.path&&ya(i,e.parameters)}var m2="imperative",bi=(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})(bi||{}),Yo=class{id;url;constructor(i,e){this.id=i,this.url=e}},ec=class extends Yo{type=bi.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}')`}},qo=class extends Yo{urlAfterRedirects;type=bi.NavigationEnd;constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},go=(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})(go||{}),f2=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(f2||{}),Ca=class extends Yo{reason;code;type=bi.NavigationCancel;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Ma=class extends Yo{reason;code;type=bi.NavigationSkipped;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}},h2=class extends Yo{error;target;type=bi.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})`}},W0=class extends Yo{urlAfterRedirects;state;type=bi.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})`}},Zp=class extends Yo{urlAfterRedirects;state;type=bi.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})`}},Jp=class extends Yo{urlAfterRedirects;state;shouldActivate;type=bi.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})`}},ef=class extends Yo{urlAfterRedirects;state;type=bi.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})`}},tf=class extends Yo{urlAfterRedirects;state;type=bi.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})`}},nf=class{route;type=bi.RouteConfigLoadStart;constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},of=class{route;type=bi.RouteConfigLoadEnd;constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},rf=class{snapshot;type=bi.ChildActivationStart;constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},af=class{snapshot;type=bi.ChildActivationEnd;constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},sf=class{snapshot;type=bi.ActivationStart;constructor(i){this.snapshot=i}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},cf=class{snapshot;type=bi.ActivationEnd;constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},g2=class{routerEvent;position;anchor;type=bi.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}')`}},Y0=class{},_2=class{url;navigationBehaviorOptions;constructor(i,e){this.url=i,this.navigationBehaviorOptions=e}};function UX(t){return!(t instanceof Y0)&&!(t instanceof _2)}function $X(t,i){return t.providers&&!t._injector&&(t._injector=I1(t.providers,i,`Route: ${t.path}`)),t._injector??i}function Wr(t){return t.outlet||ht}function GX(t,i){let e=t.filter(n=>Wr(n)===i);return e.push(...t.filter(n=>Wr(n)!==i)),e}function y2(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 lf=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return y2(this.route?.snapshot)??this.rootInjector}constructor(i){this.rootInjector=i,this.children=new vl(this.rootInjector)}},vl=(()=>{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 lf(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(be(Xt))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),df=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=Z_(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){let e=Z_(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){let e=J_(i,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return J_(i,this._root).map(e=>e.value)}};function Z_(t,i){if(t===i.value)return i;for(let e of i.children){let n=Z_(t,e);if(n)return n}return null}function J_(t,i){if(t===i.value)return[i];for(let e of i.children){let n=J_(t,e);if(n.length)return n.unshift(i),n}return[]}var Wo=class{value;children;constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}};function d2(t){let i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}var q0=class extends df{snapshot;constructor(i,e){super(i),this.snapshot=e,s9(this,i)}toString(){return this.snapshot.toString()}};function fI(t){let i=WX(t),e=new dt([new Xs("",{})]),n=new dt({}),o=new dt({}),r=new dt({}),a=new dt(""),s=new _o(e,n,r,a,o,ht,t,i.root);return s.snapshot=i.root,new q0(new Wo(s,[]),i)}function WX(t){let i={},e={},n={},r=new gl([],i,n,"",e,ht,t,null,{});return new Q0("",new Wo(r,[]))}var _o=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(ue(u=>u[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(ue(i=>_l(i))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ue(i=>_l(i))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function uf(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&&gI(o)&&(n.resolve[J0]=o.title),n}var gl=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,u){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=u}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??=_l(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=_l(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}')`}},Q0=class extends df{url;constructor(i,e){super(e),this.url=i,s9(this,e)}toString(){return hI(this._root)}};function s9(t,i){i.value._routerState=t,i.children.forEach(e=>s9(t,e))}function hI(t){let i=t.children.length>0?` { ${t.children.map(hI).join(", ")} } `:"";return`${t.value}${i}`}function G_(t){if(t.snapshot){let i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,ya(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),ya(i.params,e.params)||t.paramsSubject.next(e.params),vX(i.url,e.url)||t.urlSubject.next(e.url),ya(i.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function e9(t,i){let e=ya(t.params,i.params)&&MX(t.url,i.url),n=!t.parent!=!i.parent;return e&&!n&&(!t.parent||e9(t.parent,i.parent))}function gI(t){return typeof t.title=="string"||t.title===null}var _I=new P(""),c9=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=ht;activateEvents=new j;deactivateEvents=new j;attachEvents=new j;detachEvents=new j;routerOutletData=R1();parentContexts=d(vl);location=d(pt);changeDetector=d(we);inputBinder=d(eu,{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 fe(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new fe(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new fe(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 fe(4013,!1);this._activatedRoute=e;let o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new t9(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})(),t9=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===_o?this.route:i===vl?this.childContexts:i===_I?this.outletData:this.parent.get(i,e)}},eu=new P(""),l9=(()=>{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=Xn([n.queryParams,n.params,n.data]).pipe(rt(([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=kD(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})(),d9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,o){n&1&&F(0,"router-outlet")},dependencies:[c9],encapsulation:2})}return t})();function u9(t){let i=t.children&&t.children.map(u9),e=i?Ne(q({},t),{children:i}):q({},t);return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==ht&&(e.component=d9),e}function YX(t,i,e){let n=K0(t,i._root,e?e._root:void 0);return new q0(n,i)}function K0(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=i.value;let o=qX(t,i,e);return new Wo(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=>K0(t,s)),a}}let n=QX(i.value),o=i.children.map(r=>K0(t,r));return new Wo(n,o)}}function qX(t,i,e){return i.children.map(n=>{for(let o of e.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return K0(t,n,o);return K0(t,n)})}function QX(t){return new _o(new dt(t.url),new dt(t.params),new dt(t.queryParams),new dt(t.fragment),new dt(t.data),t.outlet,t.component,t)}var b2=class{redirectTo;navigationBehaviorOptions;constructor(i,e){this.redirectTo=i,this.navigationBehaviorOptions=e}},bI="ngNavigationCancelingError";function mf(t,i){let{redirectTo:e,navigationBehaviorOptions:n}=Js(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,o=vI(!1,go.Redirect);return o.url=e,o.navigationBehaviorOptions=n,o}function vI(t,i){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[bI]=!0,e.cancellationCode=i,e}function KX(t){return yI(t)&&Js(t.url)}function yI(t){return!!t&&t[bI]}var XX=(t,i,e,n)=>ue(o=>(new n9(i,o.targetRouterState,o.currentRouterState,e,n).activate(t),o)),n9=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),G_(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){let o=d2(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=d2(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=d2(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=d2(e);i.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],n),this.forwardEvent(new cf(r.value.snapshot))}),i.children.length&&this.forwardEvent(new af(i.value.snapshot))}activateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(G_(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),G_(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)}},pf=class{path;route;constructor(i){this.path=i,this.route=this.path[this.path.length-1]}},p2=class{component;route;constructor(i,e){this.component=i,this.route=e}};function ZX(t,i,e){let n=t._root,o=i?i._root:null;return H0(n,o,e,[n.value])}function JX(t){let i=t.routeConfig?t.routeConfig.canActivateChild:null;return!i||i.length===0?null:{node:t,guards:i}}function C2(t,i){let e=Symbol(),n=i.get(t,e);return n===e?typeof t=="function"&&!yg(t)?t:i.get(t):n}function H0(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=d2(i);return t.children.forEach(a=>{eZ(a,r[a.value.outlet],e,n.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>$0(s,e.getContext(a),o)),o}function eZ(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=tZ(a,r,r.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new pf(n)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?H0(t,i,s?s.children:null,n,o):H0(t,i,e,n,o),c&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new p2(s.outlet.component,a))}else a&&$0(i,s,o),o.canActivateChecks.push(new pf(n)),r.component?H0(t,null,s?s.children:null,n,o):H0(t,null,e,n,o);return o}function tZ(t,i,e){if(typeof e=="function")return e(t,i);switch(e){case"pathParamsChange":return!hl(t.url,i.url);case"pathParamsOrQueryParamsChange":return!hl(t.url,i.url)||!ya(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!e9(t,i)||!ya(t.queryParams,i.queryParams);case"paramsChange":default:return!e9(t,i)}}function $0(t,i,e){let n=d2(t),o=t.value;Object.entries(n).forEach(([r,a])=>{o.component?i?$0(a,i.children.getContext(r),e):$0(a,null,e):$0(a,i,e)}),o.component?i&&i.outlet&&i.outlet.isActivated?e.canDeactivateChecks.push(new p2(i.outlet.component,o)):e.canDeactivateChecks.push(new p2(null,o)):e.canDeactivateChecks.push(new p2(null,o))}function tu(t){return typeof t=="function"}function nZ(t){return typeof t=="boolean"}function iZ(t){return t&&tu(t.canLoad)}function oZ(t){return t&&tu(t.canActivate)}function rZ(t){return t&&tu(t.canActivateChild)}function aZ(t){return t&&tu(t.canDeactivate)}function sZ(t){return t&&tu(t.canMatch)}function CI(t){return t instanceof Sr||t?.name==="EmptyError"}var Wp=Symbol("INITIAL_VALUE");function v2(){return rt(t=>Xn(t.map(i=>i.pipe(Ve(1),Qe(Wp)))).pipe(ue(i=>{for(let e of i)if(e!==!0){if(e===Wp)return Wp;if(e===!1||cZ(e))return e}return!0}),Te(i=>i!==Wp),Ve(1)))}function cZ(t){return Js(t)||t instanceof b2}function lZ(t,i){return rn(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})):dZ(a,n,o,t).pipe(rn(s=>s&&nZ(s)?uZ(n,r,t,i):re(s)),ue(s=>Ne(q({},e),{guardsResult:s})))})}function dZ(t,i,e,n){return Kt(t).pipe(rn(o=>gZ(o.component,o.route,e,i,n)),So(o=>o!==!0,!0))}function uZ(t,i,e,n){return Kt(i).pipe(io(o=>Bi(pZ(o.route.parent,n),mZ(o.route,n),hZ(t,o.path,e),fZ(t,o.route,e))),So(o=>o!==!0,!0))}function mZ(t,i){return t!==null&&i&&i(new sf(t)),re(!0)}function pZ(t,i){return t!==null&&i&&i(new rf(t)),re(!0)}function fZ(t,i,e){let n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||n.length===0)return re(!0);let o=n.map(r=>ji(()=>{let a=y2(i)??e,s=C2(r,a),c=oZ(s)?s.canActivate(i,t):xi(a,()=>s(i,t));return ss(c).pipe(So())}));return re(o).pipe(v2())}function hZ(t,i,e){let n=i[i.length-1],r=i.slice(0,i.length-1).reverse().map(a=>JX(a)).filter(a=>a!==null).map(a=>ji(()=>{let s=a.guards.map(c=>{let u=y2(a.node)??e,f=C2(c,u),g=rZ(f)?f.canActivateChild(n,t):xi(u,()=>f(n,t));return ss(g).pipe(So())});return re(s).pipe(v2())}));return re(r).pipe(v2())}function gZ(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=y2(i)??o,u=C2(s,c),f=aZ(u)?u.canDeactivate(t,i,e,n):xi(c,()=>u(t,i,e,n));return ss(f).pipe(So())});return re(a).pipe(v2())}function _Z(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=C2(a,t),c=iZ(s)?s.canLoad(i,e):xi(t,()=>s(i,e));return ss(c)});return re(r).pipe(v2(),xI(n))}function xI(t){return q6(Dt(i=>{if(typeof i!="boolean")throw mf(t,i)}),ue(i=>i===!0))}function bZ(t,i,e,n){let o=i.canMatch;if(!o||o.length===0)return re(!0);let r=o.map(a=>{let s=C2(a,t),c=sZ(s)?s.canMatch(i,e):xi(t,()=>s(i,e));return ss(c)});return re(r).pipe(v2(),xI(n))}var X0=class{segmentGroup;constructor(i){this.segmentGroup=i||null}},Z0=class extends Error{urlTree;constructor(i){super(),this.urlTree=i}};function l2(t){return Do(new X0(t))}function vZ(t){return Do(new fe(4e3,!1))}function yZ(t){return Do(vI(!1,go.GuardRejected))}var i9=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[ht])return vZ(`${i.redirectTo}`);o=o.children[ht]}}applyRedirectCommands(i,e,n,o,r){return CZ(e,o,r).pipe(ue(a=>{if(a instanceof xa)throw new Z0(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),i,n);if(a[0]==="/")throw new Z0(s);return s}))}applyRedirectCreateUrlTree(i,e,n,o){let r=this.createSegmentGroup(i,e.root,n,o);return new xa(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 Wt(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 fe(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 CZ(t,i,e){if(typeof t=="string")return re(t);let n=t,{queryParams:o,fragment:r,routeConfig:a,url:s,outlet:c,params:u,data:f,title:g}=i;return ss(xi(e,()=>n({params:u,data:f,queryParams:o,fragment:r,routeConfig:a,url:s,outlet:c,title:g})))}var o9={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function xZ(t,i,e,n,o){let r=MI(t,i,e);return r.matched?(n=$X(i,n),bZ(n,i,e,o).pipe(ue(a=>a===!0?r:q({},o9)))):re(r)}function MI(t,i,e){if(i.path==="**")return MZ(e);if(i.path==="")return i.pathMatch==="full"&&(t.hasChildren()||e.length>0)?q({},o9):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let o=(i.matcher||ZE)(e,t,i);if(!o)return q({},o9);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 MZ(t){return{matched:!0,parameters:t.length>0?eI(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function QE(t,i,e,n){return e.length>0&&SZ(t,e,n)?{segmentGroup:new Wt(i,DZ(n,new Wt(e,t.children))),slicedSegments:[]}:e.length===0&&kZ(t,e,n)?{segmentGroup:new Wt(t.segments,wZ(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new Wt(t.segments,t.children),slicedSegments:e}}function wZ(t,i,e,n){let o={};for(let r of e)if(hf(t,i,r)&&!n[Wr(r)]){let a=new Wt([],{});o[Wr(r)]=a}return q(q({},n),o)}function DZ(t,i){let e={};e[ht]=i;for(let n of t)if(n.path===""&&Wr(n)!==ht){let o=new Wt([],{});e[Wr(n)]=o}return e}function SZ(t,i,e){return e.some(n=>hf(t,i,n)&&Wr(n)!==ht)}function kZ(t,i,e){return e.some(n=>hf(t,i,n))}function hf(t,i,e){return(t.hasChildren()||i.length>0)&&e.pathMatch==="full"?!1:e.path===""}function EZ(t,i,e){return i.length===0&&!t.children[e]}var r9=class{};function IZ(t,i,e,n,o,r,a="emptyOnly"){return new a9(t,i,e,n,o,a,r).recognize()}var TZ=31,a9=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 i9(this.urlSerializer,this.urlTree)}noMatchError(i){return new fe(4002,`'${i.segmentGroup}'`)}recognize(){let i=QE(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(i).pipe(ue(({children:e,rootSnapshot:n})=>{let o=new Wo(n,e),r=new Q0("",o),a=lI(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 gl([],Object.freeze({}),Object.freeze(q({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),ht,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,i,ht,e).pipe(ue(n=>({children:n,rootSnapshot:e})),Zn(n=>{if(n instanceof Z0)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof X0?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(ue(a=>a instanceof Wo?[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 Kt(r).pipe(io(a=>{let s=n.children[a],c=GX(e,a);return this.processSegmentGroup(i,c,s,a,o)}),rg((a,s)=>(a.push(...s),a)),Ds(null),og(),rn(a=>{if(a===null)return l2(n);let s=wI(a);return OZ(s),re(s)}))}processSegment(i,e,n,o,r,a,s){return Kt(e).pipe(io(c=>this.processSegmentAgainstRoute(c._injector??i,e,c,n,o,r,a,s).pipe(Zn(u=>{if(u instanceof X0)return re(null);throw u}))),So(c=>!!c),Zn(c=>{if(CI(c))return EZ(n,o,r)?re(new r9):l2(n);throw c}))}processSegmentAgainstRoute(i,e,n,o,r,a,s,c){return Wr(n)!==a&&(a===ht||!hf(o,r,n))?l2(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):l2(o)}expandSegmentAgainstRouteUsingRedirect(i,e,n,o,r,a,s){let{matched:c,parameters:u,consumedSegments:f,positionalParamSegments:g,remainingSegments:y}=MI(e,o,r);if(!c)return l2(e);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>TZ&&(this.allowRedirects=!1));let x=new gl(r,u,Object.freeze(q({},this.urlTree.queryParams)),this.urlTree.fragment,KE(o),Wr(o),o.component??o._loadedComponent??null,o,XE(o)),D=uf(x,s,this.paramsInheritanceStrategy);return x.params=Object.freeze(D.params),x.data=Object.freeze(D.data),this.applyRedirects.applyRedirectCommands(f,o.redirectTo,g,x,i).pipe(rt(Q=>this.applyRedirects.lineralizeSegments(o,Q)),rn(Q=>this.processSegment(i,n,e,Q.concat(y),a,!1,s)))}matchSegmentAgainstRoute(i,e,n,o,r,a){let s=xZ(e,n,o,i,this.urlSerializer);return n.path==="**"&&(e.children={}),s.pipe(rt(c=>c.matched?(i=n._injector??i,this.getChildConfig(i,n,o).pipe(rt(({routes:u})=>{let f=n._loadedInjector??i,{parameters:g,consumedSegments:y,remainingSegments:x}=c,D=new gl(y,g,Object.freeze(q({},this.urlTree.queryParams)),this.urlTree.fragment,KE(n),Wr(n),n.component??n._loadedComponent??null,n,XE(n)),Y=uf(D,a,this.paramsInheritanceStrategy);D.params=Object.freeze(Y.params),D.data=Object.freeze(Y.data);let{segmentGroup:Q,slicedSegments:K}=QE(e,y,x,u);if(K.length===0&&Q.hasChildren())return this.processChildren(f,u,Q,D).pipe(ue(ut=>new Wo(D,ut)));if(u.length===0&&K.length===0)return re(new Wo(D,[]));let pe=Wr(n)===r;return this.processSegment(f,u,Q,K,pe?ht:r,!0,D).pipe(ue(ut=>new Wo(D,ut instanceof Wo?[ut]:[])))}))):l2(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}):_Z(i,e,n,this.urlSerializer).pipe(rn(o=>o?this.configLoader.loadChildren(i,e).pipe(Dt(r=>{e._loadedRoutes=r.routes,e._loadedInjector=r.injector})):yZ(e))):re({routes:[],injector:i})}};function OZ(t){t.sort((i,e)=>i.value.outlet===ht?-1:e.value.outlet===ht?1:i.value.outlet.localeCompare(e.value.outlet))}function LZ(t){let i=t.value.routeConfig;return i&&i.path===""}function wI(t){let i=[],e=new Set;for(let n of t){if(!LZ(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=wI(n.children);i.push(new Wo(n.value,o))}return i.filter(n=>!e.has(n))}function KE(t){return t.data||{}}function XE(t){return t.resolve||{}}function PZ(t,i,e,n,o,r){return rn(a=>IZ(t,i,e,n,a.extractedUrl,o,r).pipe(ue(({state:s,tree:c})=>Ne(q({},a),{targetSnapshot:s,urlAfterRedirects:c}))))}function AZ(t,i){return rn(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 u of DI(c))a.add(u);let s=0;return Kt(a).pipe(io(c=>r.has(c)?zZ(c,n,t,i):(c.data=uf(c,c.parent,t).resolve,re(void 0))),Dt(()=>s++),i1(1),rn(c=>s===a.size?re(e):kn))})}function DI(t){let i=t.children.map(e=>DI(e)).flat();return[t,...i]}function zZ(t,i,e,n){let o=t.routeConfig,r=t._resolve;return o?.title!==void 0&&!gI(o)&&(r[J0]=o.title),ji(()=>(t.data=uf(t,t.parent,e).resolve,RZ(r,t,i,n).pipe(ue(a=>(t._resolvedData=a,t.data=q(q({},t.data),a),null)))))}function RZ(t,i,e,n){let o=q_(t);if(o.length===0)return re({});let r={};return Kt(o).pipe(rn(a=>NZ(t[a],i,e,n).pipe(So(),Dt(s=>{if(s instanceof b2)throw mf(new Zs,s);r[a]=s}))),i1(1),ue(()=>r),Zn(a=>CI(a)?kn:Do(a)))}function NZ(t,i,e,n){let o=y2(i)??n,r=C2(t,o),a=r.resolve?r.resolve(i,e):xi(o,()=>r(i,e));return ss(a)}function W_(t){return rt(i=>{let e=t(i);return e?Kt(e).pipe(ue(()=>i)):re(i)})}var m9=(()=>{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===ht);return n}getResolvedTitleForRoute(e){return e.data[J0]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>d(SI),providedIn:"root"})}return t})(),SI=(()=>{class t extends m9{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)(be(OS))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),tc=new P("",{providedIn:"root",factory:()=>({})}),x2=new P(""),gf=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d(K5);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=ss(xi(e,()=>n.loadComponent())).pipe(ue(EI),rt(II),Dt(a=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=a}),kr(()=>{this.componentLoaders.delete(n)})),r=new ws(o,()=>new B).pipe(Yl());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=kI(n,this.compiler,e,this.onLoadEndListener).pipe(kr(()=>{this.childrenLoaders.delete(n)})),a=new ws(r,()=>new B).pipe(Yl());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 kI(t,i,e,n){return ss(xi(e,()=>t.loadChildren())).pipe(ue(EI),rt(II),rn(o=>o instanceof lm||Array.isArray(o)?re(o):Kt(i.compileModuleAsync(o))),ue(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(x2,[],{optional:!0,self:!0}).flat()),{routes:a.map(u9),injector:r}}))}function FZ(t){return t&&typeof t=="object"&&"default"in t}function EI(t){return FZ(t)?t.default:t}function II(t){return re(t)}var _f=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>d(VZ),providedIn:"root"})}return t})(),VZ=(()=>{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})(),p9=new P(""),f9=new P("");function TI(t,i,e){let n=t.get(f9),o=t.get(De);if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let r,a=new Promise(u=>{r=u}),s=o.startViewTransition(()=>(r(),BZ(t)));s.ready.catch(u=>{});let{onViewTransitionCreated:c}=n;return c&&xi(t,()=>c({transition:s,from:i,to:e})),a}function BZ(t){return new Promise(i=>{xt({read:()=>setTimeout(i)},{injector:t})})}var h9=new P(""),bf=(()=>{class t{currentNavigation=Se(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new B;transitionAbortWithErrorSubject=new B;configLoader=d(gf);environmentInjector=d(Xt);destroyRef=d(Gi);urlSerializer=d(bl);rootContexts=d(vl);location=d(dr);inputBindingEnabled=d(eu,{optional:!0})!==null;titleStrategy=d(m9);options=d(tc,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(_f);createViewTransition=d(p9,{optional:!0});navigationErrorHandler=d(h9,{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 nf(o)),n=o=>this.events.next(new of(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;Hn(()=>{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 dt(null),this.transitions.pipe(Te(n=>n!==null),rt(n=>{let o=!1;return re(n).pipe(rt(r=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",go.SupersededByNewNavigation),kn;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 Ma(r.id,this.urlSerializer.serialize(r.rawUrl),"",f2.IgnoredSameUrlNavigation)),r.resolve(!1),kn;if(this.urlHandlingStrategy.shouldProcessUrl(r.rawUrl))return re(r).pipe(rt(c=>(this.events.next(new ec(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),c.id!==this.navigationId?kn:Promise.resolve(c))),PZ(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Dt(c=>{n.targetSnapshot=c.targetSnapshot,n.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation.update(f=>(f.finalUrl=c.urlAfterRedirects,f));let u=new W0(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(r.currentRawUrl)){let{id:c,extractedUrl:u,source:f,restoredState:g,extras:y}=r,x=new ec(c,this.urlSerializer.serialize(u),f,g);this.events.next(x);let D=fI(this.rootComponentType).snapshot;return this.currentTransition=n=Ne(q({},r),{targetSnapshot:D,urlAfterRedirects:u,extras:Ne(q({},y),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(Y=>(Y.finalUrl=u,Y)),re(n)}else return this.events.next(new Ma(r.id,this.urlSerializer.serialize(r.extractedUrl),"",f2.IgnoredByUrlHandlingStrategy)),r.resolve(!1),kn}),Dt(r=>{let a=new Zp(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects),r.targetSnapshot);this.events.next(a)}),ue(r=>(this.currentTransition=n=Ne(q({},r),{guards:ZX(r.targetSnapshot,r.currentSnapshot,this.rootContexts)}),n)),lZ(this.environmentInjector,r=>this.events.next(r)),Dt(r=>{if(n.guardsResult=r.guardsResult,r.guardsResult&&typeof r.guardsResult!="boolean")throw mf(this.urlSerializer,r.guardsResult);let a=new Jp(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects),r.targetSnapshot,!!r.guardsResult);this.events.next(a)}),Te(r=>r.guardsResult?!0:(this.cancelNavigationTransition(r,"",go.GuardRejected),!1)),W_(r=>{if(r.guards.canActivateChecks.length!==0)return re(r).pipe(Dt(a=>{let s=new ef(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),rt(a=>{let s=!1;return re(a).pipe(AZ(this.paramsInheritanceStrategy,this.environmentInjector),Dt({next:()=>s=!0,complete:()=>{s||this.cancelNavigationTransition(a,"",go.NoDataFromResolver)}}))}),Dt(a=>{let s=new tf(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}))}),W_(r=>{let a=s=>{let c=[];if(s.routeConfig?.loadComponent){let u=y2(s)??this.environmentInjector;c.push(this.configLoader.loadComponent(u,s.routeConfig).pipe(Dt(f=>{s.component=f}),ue(()=>{})))}for(let u of s.children)c.push(...a(u));return c};return Xn(a(r.targetSnapshot.root)).pipe(Ds(null),Ve(1))}),W_(()=>this.afterPreactivation()),rt(()=>{let{currentSnapshot:r,targetSnapshot:a}=n,s=this.createViewTransition?.(this.environmentInjector,r.root,a.root);return s?Kt(s).pipe(ue(()=>n)):re(n)}),ue(r=>{let a=YX(e.routeReuseStrategy,r.targetSnapshot,r.currentRouterState);return this.currentTransition=n=Ne(q({},r),{targetRouterState:a}),this.currentNavigation.update(s=>(s.targetRouterState=a,s)),n}),Dt(()=>{this.events.next(new Y0)}),XX(this.rootContexts,e.routeReuseStrategy,r=>this.events.next(r),this.inputBindingEnabled),Ve(1),xe(new Fe(r=>{let a=n.abortController.signal,s=()=>r.next();return a.addEventListener("abort",s),()=>a.removeEventListener("abort",s)}).pipe(Te(()=>!o&&!n.targetRouterState),Dt(()=>{this.cancelNavigationTransition(n,n.abortController.signal.reason+"",go.Aborted)}))),Dt({next:r=>{o=!0,this.lastSuccessfulNavigation=Hn(this.currentNavigation),this.events.next(new qo(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects))),this.titleStrategy?.updateTitle(r.targetRouterState.snapshot),r.resolve(!0)},complete:()=>{o=!0}}),xe(this.transitionAbortWithErrorSubject.pipe(Dt(r=>{throw r}))),kr(()=>{o||this.cancelNavigationTransition(n,"",go.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Zn(r=>{if(this.destroyed)return n.resolve(!1),kn;if(o=!0,yI(r))this.events.next(new Ca(n.id,this.urlSerializer.serialize(n.extractedUrl),r.message,r.cancellationCode)),KX(r)?this.events.next(new _2(r.url,r.navigationBehaviorOptions)):n.resolve(!1);else{let a=new h2(n.id,this.urlSerializer.serialize(n.extractedUrl),r,n.targetSnapshot??void 0);try{let s=xi(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(s instanceof b2){let{message:c,cancellationCode:u}=mf(this.urlSerializer,s);this.events.next(new Ca(n.id,this.urlSerializer.serialize(n.extractedUrl),c,u)),this.events.next(new _2(s.redirectTo,s.navigationBehaviorOptions))}else throw this.events.next(a),r}catch(s){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(s)}}return kn}))}))}cancelNavigationTransition(e,n,o){let r=new Ca(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=Hn(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 jZ(t){return t!==m2}var OI=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>d(HZ),providedIn:"root"})}return t})(),ff=class{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}},HZ=(()=>{class t extends ff{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),LI=(()=>{class t{urlSerializer=d(bl);options=d(tc,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=d(dr);urlHandlingStrategy=d(_f);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new xa;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 xa?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=fI(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(UZ),providedIn:"root"})}return t})(),UZ=(()=>{class t extends LI{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 ec?this.updateStateMemento():e instanceof Ma?this.commitTransition(n):e instanceof W0?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Y0?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Ca&&e.code!==go.SupersededByNewNavigation&&e.code!==go.Redirect?this.restoreHistory(n):e instanceof h2?this.restoreHistory(n,!0):e instanceof qo&&(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=Oe(t)))(o||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function vf(t,i){t.events.pipe(Te(e=>e instanceof qo||e instanceof Ca||e instanceof h2||e instanceof Ma),ue(e=>e instanceof qo||e instanceof Ma?0:(e instanceof Ca?e.code===go.Redirect||e.code===go.SupersededByNewNavigation:!1)?2:1),Te(e=>e!==2),Ve(1)).subscribe(()=>{i()})}var $Z={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},GZ={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},To=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(dm);stateManager=d(LI);options=d(tc,{optional:!0})||{};pendingTasks=d(ua);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(bf);urlSerializer=d(bl);location=d(dr);urlHandlingStrategy=d(_f);injector=d(Xt);_events=new B;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(OI);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(x2,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(eu,{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 Ee;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,r=Hn(this.navigationTransitions.currentNavigation);if(o!==null&&r!==null){if(this.stateManager.handleRouterEvent(n,r),n instanceof Ca&&n.code!==go.Redirect&&n.code!==go.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof qo)this.navigated=!0;else if(n instanceof _2){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"||jZ(o.source)},a);this.scheduleNavigation(s,m2,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}UX(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),m2,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(ao)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Hn(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(u9),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,u=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 g;try{let y=o?o.snapshot:this.routerState.snapshot.root;g=dI(y)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),g=this.currentUrlTree.root}return uI(g,e,f,u??null)}navigateByUrl(e,n={skipLocationChange:!1}){let o=Js(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,m2,null,n)}navigate(e,n={skipLocationChange:!1}){return WZ(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(tr(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,n){let o;if(n===!0?o=q({},$Z):n===!1?o=q({},GZ):o=n,Js(e))return GE(this.currentUrlTree,e,o);let r=this.parseUrl(e);return GE(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,u;a?(s=a.resolve,c=a.reject,u=a.promise):u=new Promise((g,y)=>{s=g,c=y});let f=this.pendingTasks.add();return vf(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:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(g=>Promise.reject(g))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function WZ(t){for(let i=0;i{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=Se(null);get href(){return Hn(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new B;applicationErrorHandler=d(ao);options=d(tc,{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 mn("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 qo&&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)):(Js(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(u=>{this.applicationErrorHandler(u)}),!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:Js(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)(Me(To),Me(_o),Bd("tabindex"),Me(Je),Me(X),Me(Fr))};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(),f5)("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})(),YZ=(()=>{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 qo&&this.update()})}ngAfterContentInit(){re(this.links.changes,re(null)).pipe(ia()).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=Kt(e).pipe(ia()).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=qZ(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)(Me(To),Me(X),Me(Je),Me(we),Me(M2,8))};static \u0275dir=z({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,o,r){if(n&1&&Ie(r,M2,5),n&2){let a;G(a=W())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Re]})}return t})();function qZ(t){return!!t.paths}var nu=class{};var PI=(()=>{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(Te(e=>e instanceof qo),io(()=>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=I1(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 Kt(o).pipe(ia())}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(rn(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 Kt([r,a]).pipe(ia())}else return r})}static \u0275fac=function(n){return new(n||t)(be(To),be(Xt),be(nu),be(gf))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),AI=new P(""),QZ=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=m2;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 ec?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof qo?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Ma&&e.code===f2.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 g2))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(()=>di(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new g2(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){Zc()};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function KZ(t){return t.routerState.root}function iu(t,i){return{\u0275kind:t,\u0275providers:i}}function XZ(){let t=d(ye);return i=>{let e=t.get(fi);if(i!==e.components[0])return;let n=t.get(To),o=t.get(zI);t.get(_9)===1&&n.initialNavigation(),t.get(FI,null,{optional:!0})?.setUpPreloading(),t.get(AI,null,{optional:!0})?.init(),n.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var zI=new P("",{factory:()=>new B}),_9=new P("",{providedIn:"root",factory:()=>1});function RI(){let t=[{provide:Q4,useValue:!0},{provide:_9,useValue:0},pm(()=>{let i=d(ye);return i.get(p7,Promise.resolve()).then(()=>new Promise(n=>{let o=i.get(To),r=i.get(zI);vf(o,()=>{n(!0)}),i.get(bf).afterPreactivation=()=>(n(!0),r.closed?re(void 0):r),o.initialNavigation()}))})];return iu(2,t)}function NI(){let t=[pm(()=>{d(To).setUpLocationChangeListener()}),{provide:_9,useValue:2}];return iu(3,t)}var FI=new P("");function VI(t){return iu(0,[{provide:FI,useExisting:PI},{provide:nu,useExisting:t}])}function BI(){return iu(8,[l9,{provide:eu,useExisting:l9}])}function jI(t){ga("NgRouterViewTransitions");let i=[{provide:p9,useValue:TI},{provide:f9,useValue:q({skipNextTransition:!!t?.skipInitialTransition},t)}];return iu(9,i)}var HI=[dr,{provide:bl,useClass:Zs},To,vl,{provide:_o,useFactory:KZ,deps:[To]},gf,[]],ZZ=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[HI,[],{provide:x2,multi:!0,useValue:e},[],n?.errorHandler?{provide:h9,useValue:n.errorHandler}:[],{provide:tc,useValue:n||{}},n?.useHash?eJ():tJ(),JZ(),n?.preloadingStrategy?VI(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?nJ(n):[],n?.bindToComponentInputs?BI().\u0275providers:[],n?.enableViewTransitions?jI().\u0275providers:[],iJ()]}}static forChild(e){return{ngModule:t,providers:[{provide:x2,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})();function JZ(){return{provide:AI,useFactory:()=>{let t=d(lS),i=d(se),e=d(tc),n=d(bf),o=d(bl);return e.scrollOffset&&t.setOffset(e.scrollOffset),new QZ(o,n,t,i,e)}}}function eJ(){return{provide:Fr,useClass:M7}}function tJ(){return{provide:Fr,useClass:Om}}function nJ(t){return[t.initialNavigation==="disabled"?NI().\u0275providers:[],t.initialNavigation==="enabledBlocking"?RI().\u0275providers:[]]}var g9=new P("");function iJ(){return[{provide:g9,useFactory:XZ},{provide:fm,multi:!0,useExisting:g9}]}var rJ=["*"],aJ=[[["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",""]],"*"],sJ=[`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]`,"*"],IZ=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],OZ=["[mat-card-avatar], [matCardAvatar]",`mat-card-title, mat-card-subtitle, + [mat-card-xl-image], [matCardImageXLarge]`,"*"],cJ=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],lJ=["[mat-card-avatar], [matCardAvatar]",`mat-card-title, mat-card-subtitle, [mat-card-title], [mat-card-subtitle], - [matCardTitle], [matCardSubtitle]`,"*"],TZ=new L("MAT_CARD_CONFIG"),dI=(()=>{class t{appearance;constructor(){let e=d(TZ,{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:SZ,decls:1,vars:0,template:function(n,o){n&1&&(ke(),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})(),Dke=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return t})(),Ske=(()=>{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:EZ,decls:4,vars:0,template:function(n,o){n&1&&(ke(kZ),ot(0,"div"),ae(1),st(),ae(2,1),ae(3,2))},encapsulation:2,changeDetection:0})}return t})(),uI=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return t})(),kke=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return t})(),Eke=(()=>{class t{align="start";static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({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})(),Ike=(()=>{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:OZ,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(n,o){n&1&&(ke(IZ),ae(0),ot(1,"div",0),ae(2,1),st(),ae(3,2))},encapsulation:2,changeDetection:0})}return t})();var Oke=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-mdc-card-image","mdc-card__media"]})}return t})();var Tke=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-mdc-card-md-image","mdc-card__media"]})}return t})();var mI=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,he]})}return t})();var r9=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(Oe(e=>e.some(n=>n.target===i)),xs({bufferSize:1,refCount:!0}),xe(this._destroyed))),this._elementObservables.get(i)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},bf=(()=>{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 r9(o)),this._observers.get(o).observe(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var LZ=["notch"],AZ=["matFormFieldNotchedOutline",""],RZ=["*"],pI=["iconPrefixContainer"],fI=["textPrefixContainer"],hI=["iconSuffixContainer"],gI=["textSuffixContainer"],zZ=["textField"],NZ=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],FZ=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function VZ(t,i){t&1&&F(0,"span",21)}function BZ(t,i){if(t&1&&(h(0,"label",20),ae(1,1),I(2,VZ,1,0,"span",21),_()),t&2){let e=w(2);S("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),ne("for",e._control.disableAutomaticLabeling?null:e._control.id),p(2),O(!e.hideRequiredMarker&&e._control.required?2:-1)}}function jZ(t,i){if(t&1&&I(0,BZ,3,5,"label",20),t&2){let e=w();O(e._hasFloatingLabel()?0:-1)}}function HZ(t,i){t&1&&F(0,"div",7)}function UZ(t,i){}function $Z(t,i){if(t&1&&Xe(0,UZ,0,0,"ng-template",13),t&2){w(2);let e=Ft(1);S("ngTemplateOutlet",e)}}function GZ(t,i){if(t&1&&(h(0,"div",9),I(1,$Z,1,1,null,13),_()),t&2){let e=w();S("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),p(),O(e._forceDisplayInfixLabel()?-1:1)}}function WZ(t,i){t&1&&(h(0,"div",10,2),ae(2,2),_())}function qZ(t,i){t&1&&(h(0,"div",11,3),ae(2,3),_())}function YZ(t,i){}function QZ(t,i){if(t&1&&Xe(0,YZ,0,0,"ng-template",13),t&2){w();let e=Ft(1);S("ngTemplateOutlet",e)}}function KZ(t,i){t&1&&(h(0,"div",14,4),ae(2,4),_())}function XZ(t,i){t&1&&(h(0,"div",15,5),ae(2,5),_())}function ZZ(t,i){t&1&&F(0,"div",16)}function JZ(t,i){t&1&&(h(0,"div",18),ae(1,6),_())}function eJ(t,i){if(t&1&&(h(0,"mat-hint",22),C(1),_()),t&2){let e=w(2);S("id",e._hintLabelId),p(),T(e.hintLabel)}}function tJ(t,i){if(t&1&&(h(0,"div",19),I(1,eJ,2,2,"mat-hint",22),ae(2,7),F(3,"div",23),ae(4,8),_()),t&2){let e=w();p(),O(e.hintLabel?1:-1)}}var Cn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["mat-label"]]})}return t})(),a9=new L("MatError"),fo=(()=>{class t{id=d(He).getId("mat-mdc-error-");constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({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&&At("id",o.id)},inputs:{id:"id"},features:[de([{provide:a9,useExisting:t}])]})}return t})(),eu=(()=>{class t{align="start";id=d(He).getId("mat-mdc-hint-");static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({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&&(At("id",o.id),ne("align",null),oe("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),s9=new L("MatPrefix"),tu=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[de([{provide:s9,useExisting:t}])]})}return t})(),c9=new L("MatSuffix"),os=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[de([{provide:c9,useExisting:t}])]})}return t})(),MI=new L("FloatingLabelParent"),_I=(()=>{class t{_elementRef=d(X);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(bf);_ngZone=d(se);_parent=d(MI);_resizeSubscription=new Ee;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return nJ(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=R({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 nJ(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 bI="mdc-line-ripple--active",vf="mdc-line-ripple--deactivating",vI=(()=>{class t{_elementRef=d(X);_cleanupTransitionEnd;constructor(){let e=d(se),n=d(Je);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=n.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(vf),e.add(bI)}deactivate(){this._elementRef.nativeElement.classList.add(vf)}_handleTransitionEnd=e=>{let n=this._elementRef.nativeElement.classList,o=n.contains(vf);e.propertyName==="opacity"&&o&&n.remove(bI,vf)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),yI=(()=>{class t{_elementRef=d(X);_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&&me(LZ,5),n&2){let r;G(r=W())&&(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:AZ,ngContentSelectors:RZ,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&&(ke(),Pn(0,"div",1),ot(1,"div",2,0),ae(3),st(),Pn(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),gl=(()=>{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=R({type:t})}return t})();var ya=new L("MatFormField"),yf=new L("MAT_FORM_FIELD_DEFAULT_OPTIONS"),CI="fill",iJ="auto",xI="fixed",oJ="translateY(-50%)",Ht=(()=>{class t{_elementRef=d(X);_changeDetectorRef=d(we);_platform=d(je);_idGenerator=d(He);_ngZone=d(se);_defaults=d(yf,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=Kd("iconPrefixContainer");_textPrefixContainerSignal=Kd("textPrefixContainer");_iconSuffixContainerSignal=Kd("iconSuffixContainer");_textSuffixContainerSignal=Kd("textSuffixContainer");_prefixSuffixContainers=ti(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=cD(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||iJ}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||CI;this._appearanceSignal.set(n)}_appearanceSignal=Se(CI);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||xI}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||xI}_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(vt);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),pa(()=>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=ti(()=>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(Qe([void 0,void 0]),ue(()=>[n.errorState,n.userAriaDescribedBy]),W3(),Oe(([[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(xe(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(),mt(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(){hD({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=ti(()=>!!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,u=r?.getBoundingClientRect().width??0,f=this._currentDirection==="rtl"?"-1":"1",b=`${a+s}px`,x=`calc(${f} * (${b} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,D=`var(--mat-mdc-form-field-label-transform, ${oJ} translateX(${x}))`,q=a+s+c+u;return[D,q]}_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&&(W5(r,o._labelChild,Cn,5),Ie(r,gl,5),Ie(r,s9,5),Ie(r,c9,5),Ie(r,a9,5),Ie(r,eu,5)),n&2){pm();let a;G(a=W())&&(o._formFieldControl=a.first),G(a=W())&&(o._prefixChildren=a),G(a=W())&&(o._suffixChildren=a),G(a=W())&&(o._errorChildren=a),G(a=W())&&(o._hintChildren=a)}},viewQuery:function(n,o){if(n&1&&(E1(o._iconPrefixContainerSignal,pI,5),E1(o._textPrefixContainerSignal,fI,5),E1(o._iconSuffixContainerSignal,hI,5),E1(o._textSuffixContainerSignal,gI,5),me(zZ,5),me(pI,5),me(fI,5),me(hI,5),me(gI,5),me(_I,5),me(yI,5),me(vI,5)),n&2){pm(4);let r;G(r=W())&&(o._textField=r.first),G(r=W())&&(o._iconPrefixContainer=r.first),G(r=W())&&(o._textPrefixContainer=r.first),G(r=W())&&(o._iconSuffixContainer=r.first),G(r=W())&&(o._textSuffixContainer=r.first),G(r=W())&&(o._floatingLabel=r.first),G(r=W())&&(o._notchedOutline=r.first),G(r=W())&&(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:ya,useExisting:t},{provide:MI,useExisting:t}])],ngContentSelectors:FZ,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();ke(NZ),Xe(0,jZ,1,1,"ng-template",null,0,Ls),h(2,"div",6,1),N("click",function(s){return U(r),$(o._control.onContainerClick(s))}),I(4,HZ,1,0,"div",7),h(5,"div",8),I(6,GZ,2,2,"div",9),I(7,WZ,3,0,"div",10),I(8,qZ,3,0,"div",11),h(9,"div",12),I(10,QZ,1,1,null,13),ae(11),_(),I(12,KZ,3,0,"div",14),I(13,XZ,3,0,"div",15),_(),I(14,ZZ,1,0,"div",16),_(),h(15,"div",17),I(16,JZ,2,0,"div",18)(17,tJ,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),O(!o._hasOutline()&&!o._control.disabled?4:-1),p(2),O(o._hasOutline()?6:-1),p(),O(o._hasIconPrefix?7:-1),p(),O(o._hasTextPrefix?8:-1),p(2),O(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),p(2),O(o._hasTextSuffix?12:-1),p(),O(o._hasIconSuffix?13:-1),p(),O(o._hasOutline()?-1:14),p(),oe("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic");let a=o._getSubscriptMessageType();p(),O((r=a)==="error"?16:r==="hint"?17:-1)}},dependencies:[_I,yI,As,vI,eu],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 Zs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,K1,Ht,he]})}return t})();var wI=(()=>{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})(),rJ={passive:!0},DI=(()=>{class t{_platform=d(je);_ngZone=d(se);_renderer=d(Tn).createRenderer(null,null);_styleLoader=d(ct);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return Sn;this._styleLoader.load(wI);let n=En(e),o=this._monitoredElements.get(n);if(o)return o.subject;let r=new B,a="cdk-text-field-autofilled",s=u=>{u.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(a)?(n.classList.add(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!0}))):u.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!1})))},c=this._ngZone.runOutsideAngular(()=>(n.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(n,"animationstart",s,rJ)));return this._monitoredElements.set(n,{subject:r,unlisten:c}),r}stopMonitoring(e){let n=En(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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Cf=(()=>{class t{_elementRef=d(X);_platform=d(je);_ngZone=d(se);_renderer=d(Je);_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(De);_hasFocus;_isViewInited=!1;constructor(){d(ct).load(wI),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(Kl(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=R({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})(),SI=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})();var xf=new L("MAT_INPUT_VALUE_ACCESSOR");var Ca=(()=>{class t{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var y2=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 aJ=["button","checkbox","file","hidden","image","radio","range","reset","submit"],sJ=new L("MAT_INPUT_CONFIG"),oi=(()=>{class t{_elementRef=d(X);_platform=d(je);ngControl=d(ii,{optional:!0,self:!0});_autofillMonitor=d(DI);_ngZone=d(se);_formField=d(ya,{optional:!0});_renderer=d(Je);_uid=d(He).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=d(sJ,{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(on.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&&S_().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=>S_().has(e));constructor(){let e=d(Q1,{optional:!0}),n=d(hi,{optional:!0}),o=d(Ca),r=d(xf,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();r?aa(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 y2(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&&pa(()=>{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(){aJ.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=R({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&&(At("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:gl,useExisting:t}]),ze]})}return t})(),kI=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,Zs,Zs,SI,he]})}return t})();var Mf=(()=>{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 cJ=["text"],lJ=[[["mat-icon"]],"*"],dJ=["mat-icon","*"];function uJ(t,i){if(t&1&&F(0,"mat-pseudo-checkbox",1),t&2){let e=w();S("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function mJ(t,i){if(t&1&&F(0,"mat-pseudo-checkbox",3),t&2){let e=w();S("disabled",e.disabled)}}function pJ(t,i){if(t&1&&(h(0,"span",4),C(1),_()),t&2){let e=w();p(),te("(",e.group.label,")")}}var x2=new L("MAT_OPTION_PARENT_COMPONENT"),M2=new L("MatOptgroup");var C2=class{source;isUserInput;constructor(i,e=!1){this.source=i,this.isUserInput=e}},un=(()=>{class t{_element=d(X);_changeDetectorRef=d(we);_parent=d(x2,{optional:!0});group=d(M2,{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=Se(!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(ct);e.load(dn),e.load(Do),this._signalDisableRipple=!!this._parent&&aa(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)&&!kt(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 C2(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&&me(cJ,7),n&2){let r;G(r=W())&&(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&&(At("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:dJ,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&&(ke(lJ),I(0,uJ,1,2,"mat-pseudo-checkbox",1),ae(1),h(2,"span",2,0),ae(4,1),_(),I(5,mJ,1,1,"mat-pseudo-checkbox",3),I(6,pJ,2,1,"span",4),F(7,"div",5)),n&2&&(O(o.multiple?0:-1),p(5),O(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),p(),O(o.group&&o.group._inert?6:-1),p(),S("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[Mf,gi],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 nu(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 Js=class{};function _l(t){return t&&typeof t.connect=="function"&&!(t instanceof ys)}var ec=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(ec||{}),w2=new L("_ViewRepeater");var fJ=20,pr=(()=>{class t{_ngZone=d(se);_platform=d(je);_renderer=d(Tn).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=fJ){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(Kl(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(Oe(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=En(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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ur=(()=>{class t{elementRef=d(X);scrollDispatcher=d(pr);ngZone=d(se);dir=d(vt,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new B;_renderer=d(Je);_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&&i2()!=jr.NORMAL?(e.left!=null&&(e.right=n.scrollWidth-n.clientWidth-e.left),i2()==jr.INVERTED?e.left=e.right:i2()==jr.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;Hp()?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&&i2()==jr.INVERTED?e==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&i2()==jr.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=R({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),hJ=20,Wn=(()=>{class t{_platform=d(je);_listeners;_viewportSize;_change=new B;_document=d(De);constructor(){let e=d(se),n=d(Tn).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=hJ){return e>0?this._change.pipe(Kl(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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Si=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})(),ou=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[ha,Si,ha,Si]})}return t})();var ru=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}},Eo=class extends ru{component;viewContainerRef;injector;projectableNodes;constructor(i,e,n,o){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.projectableNodes=o}},qn=class extends ru{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()}},l9=class extends ru{element;constructor(i){super(),this.element=i instanceof X?i.nativeElement:i}},tc=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof Eo)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof qn)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof l9)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)}},au=class extends tc{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(la,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||ye.NULL,r=o.get(Xt,n.injector);e=Dm(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]}},II=(()=>{class t extends qn{constructor(){let e=d(it),n=d(pt);super(e,n)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[ce]})}return t})();var ki=(()=>{class t extends tc{_moduleRef=d(la,{optional:!0});_document=d(De);_viewContainerRef=d(pt);_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=R({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ce]})}return t})();var ho=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})();var OI=Hp();function nc(t){return new wf(t.get(Wn),t.get(De))}var wf=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=Gn(-this._previousScrollPosition.left),i.style.top=Gn(-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"),OI&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),OI&&(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 NI(t,i){return new Df(t.get(pr),t.get(se),t.get(Wn),i)}var Df=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(Oe(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 su=class{enable(){}disable(){}attach(){}};function d9(t,i){return i.some(e=>{let n=t.bottome.bottom,r=t.righte.right;return n||o||r||a})}function TI(t,i){return i.some(e=>{let n=t.tope.bottom,r=t.lefte.right;return n||o||r||a})}function bi(t,i){return new Sf(t.get(pr),t.get(Wn),t.get(se),i)}var Sf=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();d9(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}},FI=(()=>{class t{_injector=d(ye);constructor(){}noop=()=>new su;close=e=>NI(this._injector,e);block=()=>nc(this._injector);reposition=e=>bi(this._injector,e);static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),go=class{positionStrategy;scrollStrategy=new su;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 kf=class{connectionPair;scrollableViewProperties;constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}};var VI=(()=>{class t{_attachedOverlays=[];_document=d(De);_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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),BI=(()=>{class t extends VI{_ngZone=d(se);_renderer=d(Tn).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=Te(t)))(o||t)}})();static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),jI=(()=>{class t extends VI{_platform=d(je);_ngZone=d(se);_renderer=d(Tn).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=Hn(e)};_clickListener=e=>{let n=Hn(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(PI(s.overlayElement,n)||PI(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=Te(t)))(o||t)}})();static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function PI(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 HI=(()=>{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})(),If=(()=>{class t{_platform=d(je);_containerElement;_document=d(De);_styleLoader=d(ct);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||D_()){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()}},D2=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=Ee.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new B;_outsidePointerEvents=new B;_afterNextRenderRef;constructor(i,e,n,o,r,a,s,c,u,f=!1,b,y){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=u,this._animationsDisabled=f,this._injector=b,this._renderer=y,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=xt(()=>{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=Y(Y({},this._config),i),this._updateElementSize()}setDirection(i){this._config=Ne(Y({},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=Gn(this._config.width),i.height=Gn(this._config.height),i.minWidth=Gn(this._config.minWidth),i.minHeight=Gn(this._config.minHeight),i.maxWidth=Gn(this._config.maxWidth),i.maxHeight=Gn(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new u9(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=Vr(e||[]).filter(r=>!!r);o.length&&(n?i.classList.add(...o):i.classList.remove(...o))}_detachContentWhenEmpty(){let i=!1;try{this._detachContentAfterRenderRef=xt(()=>{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?.()}},LI="cdk-overlay-connected-position-bounding-box",gJ=/([A-Za-z%]+)$/;function $r(t,i){return new S2(i,t.get(Wn),t.get(De),t.get(je),t.get(If))}var S2=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=Ee.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(LI),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),u=this._getOverlayPoint(c,e,s),f=this._getOverlayFit(u,e,n,s);if(f.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,c);return}if(this._canFitWithFlexibleDimensions(f,u,n)){r.push({position:s,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,s)});continue}(!a||a.overlayFit.visibleAreac&&(c=f,s=u)}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&&bl(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(LI),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=RI(e),{x:a,y:s}=i,c=this._getOffset(o,"x"),u=this._getOffset(o,"y");c&&(a+=c),u&&(s+=u);let f=0-a,b=a+r.width-n.width,y=0-s,x=s+r.height-n.height,D=this._subtractOverflows(r.width,f,b),q=this._subtractOverflows(r.height,y,x),Q=D*q;return{visibleArea:Q,isCompletelyWithinViewport:r.width*r.height===Q,fitsInViewportVertically:q===r.height,fitsInViewportHorizontally:D==r.width}}_canFitWithFlexibleDimensions(i,e,n){if(this._hasFlexibleDimensions){let o=n.bottom-e.y,r=n.right-e.x,a=AI(this._overlayRef.getConfig().minHeight),s=AI(this._overlayRef.getConfig().minWidth),c=i.fitsInViewportVertically||a!=null&&a<=o,u=i.fitsInViewportHorizontally||s!=null&&s<=r;return c&&u}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=RI(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),u=Math.max(r.left-n.left-i.x,0),f=0,b=0;return o.width<=r.width?f=u||-a:f=i.xD&&!this._isInitialRender&&!this._growAfterOpen&&(a=i.y-D/2)}let c=e.overlayX==="start"&&!o||e.overlayX==="end"&&o,u=e.overlayX==="end"&&!o||e.overlayX==="start"&&o,f,b,y;if(u)y=n.width-i.x+this._viewportMargin*2,f=i.x-this._viewportMargin;else if(c)b=i.x,f=n.right-i.x;else{let x=Math.min(n.right-i.x+n.left,i.x),D=this._lastBoundingBoxSize.width;f=x*2,b=i.x-x,f>D&&!this._isInitialRender&&!this._growAfterOpen&&(b=i.x-D/2)}return{top:a,left:b,bottom:s,right:y,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=Gn(n.height),o.top=Gn(n.top),o.bottom=Gn(n.bottom),o.width=Gn(n.width),o.left=Gn(n.left),o.right=Gn(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=Gn(r)),a&&(o.maxWidth=Gn(a))}this._lastBoundingBoxSize=n,bl(this._boundingBox.style,o)}_resetBoundingBoxStyles(){bl(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){bl(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();bl(n,this._getExactOverlayY(e,i,f)),bl(n,this._getExactOverlayX(e,i,f))}else n.position="static";let s="",c=this._getOffset(e,"x"),u=this._getOffset(e,"y");c&&(s+=`translateX(${c}px) `),u&&(s+=`translateY(${u}px)`),n.transform=s.trim(),a.maxHeight&&(o?n.maxHeight=Gn(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(o?n.maxWidth=Gn(a.maxWidth):r&&(n.maxWidth="")),bl(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=Gn(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=Gn(r.x);return o}_getScrollVisibility(){let i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:TI(i,n),isOriginOutsideView:d9(i,n),isOverlayClipped:TI(e,n),isOverlayOutsideView:d9(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&&Vr(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 X)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 bl(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function AI(t){if(typeof t!="number"&&t!=null){let[i,e]=t.split(gJ);return!e||e==="px"?parseFloat(i):null}return t||null}function RI(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 _J(t,i){return t===i?!0:t.isOriginClipped===i.isOriginClipped&&t.isOriginOutsideView===i.isOriginOutsideView&&t.isOverlayClipped===i.isOverlayClipped&&t.isOverlayOutsideView===i.isOverlayOutsideView}var zI="cdk-global-overlay-wrapper";function xa(t){return new Ef}var Ef=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(zI),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"),u=(r==="100%"||r==="100vh")&&(!s||s==="100%"||s==="100vh"),f=this._xPosition,b=this._xOffset,y=this._overlayRef.getConfig().direction==="rtl",x="",D="",q="";c?q="flex-start":f==="center"?(q="center",y?D=b:x=b):y?f==="left"||f==="end"?(q="flex-end",x=b):(f==="right"||f==="start")&&(q="flex-start",D=b):f==="left"||f==="start"?(q="flex-start",x=b):(f==="right"||f==="end")&&(q="flex-end",D=b),i.position=this._cssPosition,i.marginLeft=c?"0":x,i.marginTop=u?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=c?"0":D,e.justifyContent=q,e.alignItems=u?"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(zI),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},UI=(()=>{class t{_injector=d(ye);constructor(){}global(){return xa()}flexibleConnectedTo(e){return $r(this._injector,e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _o(t,i){t.get(ct).load(HI);let e=t.get(If),n=t.get(De),o=t.get(He),r=t.get(pi),a=t.get(vt),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 u=new au(c,r,t),f=new go(i),b=t.get(Je,null,{optional:!0})||t.get(Tn).createRenderer(null,null);return f.direction=f.direction||a.value,new D2(u,s,c,f,t.get(se),t.get(BI),n,t.get(ar),t.get(jI),i?.disableAnimations??t.get(Nd,null,{optional:!0})==="NoopAnimations",t.get(Xt),b)}var $I=(()=>{class t{scrollStrategies=d(FI);_positionBuilder=d(UI);_injector=d(ye);constructor(){}create(e){return _o(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),bJ=[{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"}],GI=new L("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(ye);return()=>bi(t)}}),k2=(()=>{class t{elementRef=d(X);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),Of=(()=>{class t{_dir=d(vt,{optional:!0});_injector=d(ye);_overlayRef;_templatePortal;_backdropSubscription=Ee.EMPTY;_attachSubscription=Ee.EMPTY;_detachSubscription=Ee.EMPTY;_positionSubscription=Ee.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=d(GI);_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(it),n=d(pt);this._templatePortal=new qn(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=bJ);let e=this._overlayRef=_o(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&&!kt(n)&&(n.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let o=this._getOriginElement(),r=Hn(n);(!o||o!==r&&!o.contains(r))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new go({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=$r(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof k2?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof k2?this.origin.elementRef.nativeElement:this.origin instanceof X?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(rg(()=>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=R({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:[ze]})}return t})();function vJ(t){let i=d(ye);return()=>bi(i)}var yJ={provide:GI,useFactory:vJ},Li=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[$I,yJ],imports:[ha,ho,ou,ou]})}return t})();var vl=(()=>{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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var yl=class{applyChanges(i,e,n,o,r){i.forEachOperation((a,s,c)=>{let u,f;if(a.previousIndex==null){let b=n(a,s,c);u=e.createEmbeddedView(b.templateRef,b.context,b.index),f=ec.INSERTED}else c==null?(e.remove(s),f=ec.REMOVED):(u=e.get(s),e.move(u,c),f=ec.MOVED);r&&r({context:u?.context,operation:f,record:a})})}detach(){}};var bo=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 Ei=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,he]})}return t})();var Tf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he]})}return t})();var E2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[Ei,he,Tf,un]})}return t})();var CJ=["trigger"],xJ=["panel"],MJ=[[["mat-select-trigger"]],"*"],wJ=["mat-select-trigger","*"];function DJ(t,i){if(t&1&&(h(0,"span",4),C(1),_()),t&2){let e=w();p(),T(e.placeholder)}}function SJ(t,i){t&1&&ae(0)}function kJ(t,i){if(t&1&&(h(0,"span",11),C(1),_()),t&2){let e=w(2);p(),T(e.triggerValue)}}function EJ(t,i){if(t&1&&(h(0,"span",5),I(1,SJ,1,0)(2,kJ,2,1,"span",11),_()),t&2){let e=w();p(),O(e.customTrigger?1:2)}}function IJ(t,i){if(t&1){let e=le();h(0,"div",12,1),N("keydown",function(o){U(e);let r=w();return $(r._handleKeydown(o))}),ae(2,1),_()}if(t&2){let e=w();Pt(Qc("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme())),oe("mat-select-panel-animations-enabled",!e._animationsDisabled),S("ngClass",e.panelClass),ne("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var m9=new L("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(ye);return()=>bi(t)}});function qI(t){let i=d(ye);return()=>bi(i)}var YI=new L("MAT_SELECT_CONFIG"),QI={provide:m9,deps:[],useFactory:qI},KI=new L("MatSelectTrigger"),Pf=class{source;value;constructor(i,e){this.source=i,this.value=e}},Yn=(()=>{class t{_viewportRuler=d(Wn);_changeDetectorRef=d(we);_elementRef=d(X);_dir=d(vt,{optional:!0});_idGenerator=d(He);_renderer=d(Je);_parentFormField=d(ya,{optional:!0});ngControl=d(ii,{self:!0,optional:!0});_liveAnnouncer=d(P0);_defaultOptions=d(YI,{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=nu(e,this.options,this.optionGroups),a=n._getHostElement();e===0&&r===1?o.scrollTop=0:o.scrollTop=iu(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new Pf(this,e)}_scrollStrategyFactory=d(m9);_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=Se(!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(on.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=Bi(()=>{let e=this.options;return e?e.changes.pipe(Qe(e),rt(()=>mt(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(rt(()=>this.optionSelectionChanges))});openedChange=new j;_openedStream=this.openedChange.pipe(Oe(e=>e),ue(()=>{}));_closedStream=this.openedChange.pipe(Oe(e=>!e),ue(()=>{}));selectionChange=new j;valueChange=new j;constructor(){let e=d(Ca),n=d(Q1,{optional:!0}),o=d(hi,{optional:!0}),r=d(new mn("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new y2(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 bo(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(xe(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(xe(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(Qe(null),xe(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(Ve(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&&Ws(this._trackedModal,"aria-owns",n),e2(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;Ws(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&&!kt(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&&!kt(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&&!kt(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 k2?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 rl(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=mt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(xe(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),mt(...this.options.map(n=>n._stateChanges)).pipe(xe(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&&(Ie(r,KI,5),Ie(r,un,5),Ie(r,M2,5)),n&2){let a;G(a=W())&&(o.customTrigger=a.first),G(a=W())&&(o.options=a),G(a=W())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&(me(CJ,5),me(xJ,5),me(Of,5)),n&2){let r;G(r=W())&&(o.trigger=r.first),G(r=W())&&(o.panel=r.first),G(r=W())&&(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:ft(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",ft],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:gl,useExisting:t},{provide:x2,useExisting:t}]),ze],ngContentSelectors:wJ,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();ke(MJ),h(0,"div",2,0),N("click",function(){return U(r),$(o.open())}),h(3,"div",3),I(4,DJ,2,1,"span",4)(5,EJ,3,1,"span",5),_(),h(6,"div",6)(7,"div",7),Gt(),h(8,"svg",8),F(9,"path",9),_()()()(),Xe(10,IJ,3,10,"ng-template",10),N("detach",function(){return U(r),$(o.close())})("backdropClick",function(){return U(r),$(o.close())})("overlayKeydown",function(s){return U(r),$(o._handleOverlayKeydown(s))})}if(n&2){let r=Ft(1);p(3),ne("id",o._valueId),p(),O(o.empty?4:5),p(6),S("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||r)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[k2,Of,$n],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 cu=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[QI],imports:[Li,E2,he,Si,Zs,E2,he]})}return t})();var p9=new L("MAT_DATE_LOCALE",{providedIn:"root",factory:OJ});function OJ(){return d(Pr)}var I2="Method not implemented",Xi=class{locale;_localeChanges=new B;localeChanges=this._localeChanges;setTime(i,e,n,o){throw new Error(I2)}getHours(i){throw new Error(I2)}getMinutes(i){throw new Error(I2)}getSeconds(i){throw new Error(I2)}parseTime(i,e){throw new Error(I2)}addSeconds(i,e){throw new Error(I2)}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}},oc=new L("mat-date-formats");var TJ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]})}return t})();var f9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,he]})}return t})();var PJ={capture:!0},LJ=["focus","mousedown","mouseenter","touchstart"],h9="mat-ripple-loader-uninitialized",g9="mat-ripple-loader-class-name",XI="mat-ripple-loader-centered",Lf="mat-ripple-loader-disabled",ZI=(()=>{class t{_document=d(De);_animationsDisabled=Ue();_globalRippleOptions=d(ll,{optional:!0});_platform=d(je);_ngZone=d(se);_injector=d(ye);_eventCleanups;_hosts=new Map;constructor(){let e=d(Tn).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>LJ.map(n=>e.listen(this._document,n,this._onInteraction,PJ)))}ngOnDestroy(){let e=this._hosts.keys();for(let n of e)this.destroyRipple(n);this._eventCleanups.forEach(n=>n())}configureRipple(e,n){e.setAttribute(h9,this._globalRippleOptions?.namespace??""),(n.className||!e.hasAttribute(g9))&&e.setAttribute(g9,n.className||""),n.centered&&e.setAttribute(XI,""),n.disabled&&e.setAttribute(Lf,"")}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(Lf,""):e.removeAttribute(Lf)}_onInteraction=e=>{let n=Hn(e);if(n instanceof HTMLElement){let o=n.closest(`[${h9}="${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(g9)),e.append(n);let o=this._globalRippleOptions,r=this._animationsDisabled?0:o?.animation?.enterDuration??z0.enterDuration,a=this._animationsDisabled?0:o?.animation?.exitDuration??z0.exitDuration,s={rippleDisabled:this._animationsDisabled||o?.disabled||e.hasAttribute(Lf),rippleConfig:{centered:e.hasAttribute(XI),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:r,exitDuration:a}}},c=new cl(s,this._ngZone,n,this._platform,this._injector),u=!s.rippleDisabled;u&&c.setupTriggerEvents(e),this._hosts.set(e,{target:s,renderer:c,hasSetUpEvents:u}),e.removeAttribute(h9)}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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var AJ=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,RJ=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function _9(t,i){let e=Array(t);for(let n=0;n{class t extends Xi{useUtcForDisplay=!1;_matDateLocale=d(p9,{optional:!0});constructor(){super();let e=d(p9,{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 _9(12,o=>this._format(n,new Date(2017,o,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return _9(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 _9(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(Y({},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(AJ.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(RJ);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),b9(o,0,23)&&b9(r,0,59)&&(a==null||b9(a,0,59)))return this.setTime(this.today(),o,r,a||0)}return null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:t.\u0275fac})}return t})();function b9(t,i,e){return!isNaN(t)&&t>=i&&t<=e}var NJ={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 JI=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[FJ()]})}return t})();function FJ(t=NJ){return[{provide:Xi,useClass:zJ},{provide:oc,useValue:t}]}var VJ=["mat-icon-button",""],BJ=["*"],jJ=new L("MAT_BUTTON_CONFIG");function eO(t){return t==null?void 0:ft(t)}var Af=(()=>{class t{_elementRef=d(X);_ngZone=d(se);_animationsDisabled=Ue();_config=d(jJ,{optional:!0});_focusMonitor=d(ln);_cleanupClick;_renderer=d(Je);_rippleLoader=d(ZI);_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(ct).load(dn);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=R({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()),Pt(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",eO],_tabindex:[2,"tabindex","_tabindex",eO]}})}return t})(),ri=(()=>{class t extends Af{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:VJ,ngContentSelectors:BJ,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&&(ke(),Pn(0,"span",0),ae(1),Pn(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} + [matCardTitle], [matCardSubtitle]`,"*"],dJ=new P("MAT_CARD_CONFIG"),UI=(()=>{class t{appearance;constructor(){let e=d(dJ,{optional:!0});this.appearance=e?.appearance||"raised"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({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:rJ,decls:1,vars:0,template:function(n,o){n&1&&(ke(),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})(),kEe=(()=>{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})(),EEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({type:t,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-mdc-card-title-group"],ngContentSelectors:sJ,decls:4,vars:0,template:function(n,o){n&1&&(ke(aJ),ot(0,"div"),ae(1),st(),ae(2,1),ae(3,2))},encapsulation:2,changeDetection:0})}return t})(),$I=(()=>{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})(),IEe=(()=>{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})(),TEe=(()=>{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})(),OEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:lJ,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(n,o){n&1&&(ke(cJ),ae(0),ot(1,"div",0),ae(2,1),st(),ae(3,2))},encapsulation:2,changeDetection:0})}return t})();var LEe=(()=>{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 PEe=(()=>{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 GI=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,he]})}return t})();var b9=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(Te(e=>e.some(n=>n.target===i)),Ss({bufferSize:1,refCount:!0}),xe(this._destroyed))),this._elementObservables.get(i)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},yf=(()=>{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 b9(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 mJ=["notch"],pJ=["matFormFieldNotchedOutline",""],fJ=["*"],WI=["iconPrefixContainer"],YI=["textPrefixContainer"],qI=["iconSuffixContainer"],QI=["textSuffixContainer"],hJ=["textField"],gJ=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],_J=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function bJ(t,i){t&1&&F(0,"span",21)}function vJ(t,i){if(t&1&&(h(0,"label",20),ae(1,1),I(2,bJ,1,0,"span",21),b()),t&2){let e=w(2);S("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),ne("for",e._control.disableAutomaticLabeling?null:e._control.id),p(2),T(!e.hideRequiredMarker&&e._control.required?2:-1)}}function yJ(t,i){if(t&1&&I(0,vJ,3,5,"label",20),t&2){let e=w();T(e._hasFloatingLabel()?0:-1)}}function CJ(t,i){t&1&&F(0,"div",7)}function xJ(t,i){}function MJ(t,i){if(t&1&&Xe(0,xJ,0,0,"ng-template",13),t&2){w(2);let e=Ft(1);S("ngTemplateOutlet",e)}}function wJ(t,i){if(t&1&&(h(0,"div",9),I(1,MJ,1,1,null,13),b()),t&2){let e=w();S("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),p(),T(e._forceDisplayInfixLabel()?-1:1)}}function DJ(t,i){t&1&&(h(0,"div",10,2),ae(2,2),b())}function SJ(t,i){t&1&&(h(0,"div",11,3),ae(2,3),b())}function kJ(t,i){}function EJ(t,i){if(t&1&&Xe(0,kJ,0,0,"ng-template",13),t&2){w();let e=Ft(1);S("ngTemplateOutlet",e)}}function IJ(t,i){t&1&&(h(0,"div",14,4),ae(2,4),b())}function TJ(t,i){t&1&&(h(0,"div",15,5),ae(2,5),b())}function OJ(t,i){t&1&&F(0,"div",16)}function LJ(t,i){t&1&&(h(0,"div",18),ae(1,6),b())}function PJ(t,i){if(t&1&&(h(0,"mat-hint",22),C(1),b()),t&2){let e=w(2);S("id",e._hintLabelId),p(),O(e.hintLabel)}}function AJ(t,i){if(t&1&&(h(0,"div",19),I(1,PJ,2,2,"mat-hint",22),ae(2,7),F(3,"div",23),ae(4,8),b()),t&2){let e=w();p(),T(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})(),v9=new P("MatError"),bo=(()=>{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&&At("id",o.id)},inputs:{id:"id"},features:[de([{provide:v9,useExisting:t}])]})}return t})(),ou=(()=>{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&&(At("id",o.id),ne("align",null),oe("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),y9=new P("MatPrefix"),ru=(()=>{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:y9,useExisting:t}])]})}return t})(),C9=new P("MatSuffix"),cs=(()=>{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:C9,useExisting:t}])]})}return t})(),nT=new P("FloatingLabelParent"),KI=(()=>{class t{_elementRef=d(X);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(yf);_ngZone=d(se);_parent=d(nT);_resizeSubscription=new Ee;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return zJ(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 zJ(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 XI="mdc-line-ripple--active",Cf="mdc-line-ripple--deactivating",ZI=(()=>{class t{_elementRef=d(X);_cleanupTransitionEnd;constructor(){let e=d(se),n=d(Je);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=n.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(Cf),e.add(XI)}deactivate(){this._elementRef.nativeElement.classList.add(Cf)}_handleTransitionEnd=e=>{let n=this._elementRef.nativeElement.classList,o=n.contains(Cf);e.propertyName==="opacity"&&o&&n.remove(XI,Cf)};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})(),JI=(()=>{class t{_elementRef=d(X);_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=L({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,o){if(n&1&&me(mJ,5),n&2){let r;G(r=W())&&(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:pJ,ngContentSelectors:fJ,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&&(ke(),Pn(0,"div",1),ot(1,"div",2,0),ae(3),st(),Pn(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),yl=(()=>{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 wa=new P("MatFormField"),xf=new P("MAT_FORM_FIELD_DEFAULT_OPTIONS"),eT="fill",RJ="auto",tT="fixed",NJ="translateY(-50%)",Ht=(()=>{class t{_elementRef=d(X);_changeDetectorRef=d(we);_platform=d(je);_idGenerator=d(He);_ngZone=d(se);_defaults=d(xf,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=e0("iconPrefixContainer");_textPrefixContainerSignal=e0("textPrefixContainer");_iconSuffixContainerSignal=e0("iconSuffixContainer");_textSuffixContainerSignal=e0("textSuffixContainer");_prefixSuffixContainers=ni(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=vD(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||RJ}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||eT;this._appearanceSignal.set(n)}_appearanceSignal=Se(eT);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||tT}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||tT}_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(vt);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),_a(()=>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=ni(()=>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(Qe([void 0,void 0]),ue(()=>[n.errorState,n.userAriaDescribedBy]),Q3(),Te(([[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(xe(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(),mt(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(){SD({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=ni(()=>!!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,u=r?.getBoundingClientRect().width??0,f=this._currentDirection==="rtl"?"-1":"1",g=`${a+s}px`,x=`calc(${f} * (${g} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,D=`var(--mat-mdc-form-field-label-transform, ${NJ} translateX(${x}))`,Y=a+s+c+u;return[D,Y]}_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=L({type:t,selectors:[["mat-form-field"]],contentQueries:function(n,o,r){if(n&1&&(q5(r,o._labelChild,Cn,5),Ie(r,yl,5),Ie(r,y9,5),Ie(r,C9,5),Ie(r,v9,5),Ie(r,ou,5)),n&2){gm();let a;G(a=W())&&(o._formFieldControl=a.first),G(a=W())&&(o._prefixChildren=a),G(a=W())&&(o._suffixChildren=a),G(a=W())&&(o._errorChildren=a),G(a=W())&&(o._hintChildren=a)}},viewQuery:function(n,o){if(n&1&&(L1(o._iconPrefixContainerSignal,WI,5),L1(o._textPrefixContainerSignal,YI,5),L1(o._iconSuffixContainerSignal,qI,5),L1(o._textSuffixContainerSignal,QI,5),me(hJ,5),me(WI,5),me(YI,5),me(qI,5),me(QI,5),me(KI,5),me(JI,5),me(ZI,5)),n&2){gm(4);let r;G(r=W())&&(o._textField=r.first),G(r=W())&&(o._iconPrefixContainer=r.first),G(r=W())&&(o._textPrefixContainer=r.first),G(r=W())&&(o._iconSuffixContainer=r.first),G(r=W())&&(o._textSuffixContainer=r.first),G(r=W())&&(o._floatingLabel=r.first),G(r=W())&&(o._notchedOutline=r.first),G(r=W())&&(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:wa,useExisting:t},{provide:nT,useExisting:t}])],ngContentSelectors:_J,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();ke(gJ),Xe(0,yJ,1,1,"ng-template",null,0,Ns),h(2,"div",6,1),N("click",function(s){return U(r),$(o._control.onContainerClick(s))}),I(4,CJ,1,0,"div",7),h(5,"div",8),I(6,wJ,2,2,"div",9),I(7,DJ,3,0,"div",10),I(8,SJ,3,0,"div",11),h(9,"div",12),I(10,EJ,1,1,null,13),ae(11),b(),I(12,IJ,3,0,"div",14),I(13,TJ,3,0,"div",15),b(),I(14,OJ,1,0,"div",16),b(),h(15,"div",17),I(16,LJ,2,0,"div",18)(17,AJ,5,1,"div",19),b()}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),T(!o._hasOutline()&&!o._control.disabled?4:-1),p(2),T(o._hasOutline()?6:-1),p(),T(o._hasIconPrefix?7:-1),p(),T(o._hasTextPrefix?8:-1),p(2),T(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),p(2),T(o._hasTextSuffix?12:-1),p(),T(o._hasIconSuffix?13:-1),p(),T(o._hasOutline()?-1:14),p(),oe("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic");let a=o._getSubscriptMessageType();p(),T((r=a)==="error"?16:r==="hint"?17:-1)}},dependencies:[KI,JI,Fs,ZI,ou],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 nc=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,e2,Ht,he]})}return t})();var iT=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({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})(),FJ={passive:!0},oT=(()=>{class t{_platform=d(je);_ngZone=d(se);_renderer=d(Ln).createRenderer(null,null);_styleLoader=d(ct);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return kn;this._styleLoader.load(iT);let n=In(e),o=this._monitoredElements.get(n);if(o)return o.subject;let r=new B,a="cdk-text-field-autofilled",s=u=>{u.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(a)?(n.classList.add(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!0}))):u.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!1})))},c=this._ngZone.runOutsideAngular(()=>(n.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(n,"animationstart",s,FJ)));return this._monitoredElements.set(n,{subject:r,unlisten:c}),r}stopMonitoring(e){let n=In(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 Mf=(()=>{class t{_elementRef=d(X);_platform=d(je);_ngZone=d(se);_renderer=d(Je);_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(De);_hasFocus;_isViewInited=!1;constructor(){d(ct).load(iT),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(e1(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})(),rT=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})();var wf=new P("MAT_INPUT_VALUE_ACCESSOR");var Da=(()=>{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 w2=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 VJ=["button","checkbox","file","hidden","image","radio","range","reset","submit"],BJ=new P("MAT_INPUT_CONFIG"),ri=(()=>{class t{_elementRef=d(X);_platform=d(je);ngControl=d(oi,{optional:!0,self:!0});_autofillMonitor=d(oT);_ngZone=d(se);_formField=d(wa,{optional:!0});_renderer=d(Je);_uid=d(He).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=d(BJ,{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(on.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&&V_().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=>V_().has(e));constructor(){let e=d(J1,{optional:!0}),n=d(gi,{optional:!0}),o=d(Da),r=d(wf,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();r?da(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 w2(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&&_a(()=>{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(){VJ.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&&(At("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:yl,useExisting:t}]),Re]})}return t})(),aT=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,nc,nc,rT,he]})}return t})();var Df=(()=>{class t{_animationsDisabled=Ue();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({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 jJ=["text"],HJ=[[["mat-icon"]],"*"],UJ=["mat-icon","*"];function $J(t,i){if(t&1&&F(0,"mat-pseudo-checkbox",1),t&2){let e=w();S("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function GJ(t,i){if(t&1&&F(0,"mat-pseudo-checkbox",3),t&2){let e=w();S("disabled",e.disabled)}}function WJ(t,i){if(t&1&&(h(0,"span",4),C(1),b()),t&2){let e=w();p(),te("(",e.group.label,")")}}var S2=new P("MAT_OPTION_PARENT_COMPONENT"),k2=new P("MatOptgroup");var D2=class{source;isUserInput;constructor(i,e=!1){this.source=i,this.isUserInput=e}},un=(()=>{class t{_element=d(X);_changeDetectorRef=d(we);_parent=d(S2,{optional:!0});group=d(k2,{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=Se(!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(ct);e.load(dn),e.load(Io),this._signalDisableRipple=!!this._parent&&da(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)&&!kt(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 D2(this,e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({type:t,selectors:[["mat-option"]],viewQuery:function(n,o){if(n&1&&me(jJ,7),n&2){let r;G(r=W())&&(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&&(At("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:UJ,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&&(ke(HJ),I(0,$J,1,2,"mat-pseudo-checkbox",1),ae(1),h(2,"span",2,0),ae(4,1),b(),I(5,GJ,1,1,"mat-pseudo-checkbox",3),I(6,WJ,2,1,"span",4),F(7,"div",5)),n&2&&(T(o.multiple?0:-1),p(5),T(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),p(),T(o.group&&o.group._inert?6:-1),p(),S("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[Df,_i],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 au(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 ic=class{};function Cl(t){return t&&typeof t.connect=="function"&&!(t instanceof ws)}var oc=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(oc||{}),E2=new P("_ViewRepeater");var YJ=20,_r=(()=>{class t{_ngZone=d(se);_platform=d(je);_renderer=d(Ln).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=YJ){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(e1(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(Te(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=In(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})(),Yr=(()=>{class t{elementRef=d(X);scrollDispatcher=d(_r);ngZone=d(se);dir=d(vt,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new B;_renderer=d(Je);_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&&s2()!=Gr.NORMAL?(e.left!=null&&(e.right=n.scrollWidth-n.clientWidth-e.left),s2()==Gr.INVERTED?e.left=e.right:s2()==Gr.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;$p()?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&&s2()==Gr.INVERTED?e==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&s2()==Gr.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})(),qJ=20,Yn=(()=>{class t{_platform=d(je);_listeners;_viewportSize;_change=new B;_document=d(De);constructor(){let e=d(se),n=d(Ln).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=qJ){return e>0?this._change.pipe(e1(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 ki=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})(),cu=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[va,ki,va,ki]})}return t})();var lu=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}},Lo=class extends lu{component;viewContainerRef;injector;projectableNodes;constructor(i,e,n,o){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.projectableNodes=o}},qn=class extends lu{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()}},x9=class extends lu{element;constructor(i){super(),this.element=i instanceof X?i.nativeElement:i}},rc=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof Lo)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof qn)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof x9)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)}},du=class extends rc{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(pa,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||ye.NULL,r=o.get(Xt,n.injector);e=Em(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]}},cT=(()=>{class t extends qn{constructor(){let e=d(it),n=d(pt);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 Ei=(()=>{class t extends rc{_moduleRef=d(pa,{optional:!0});_document=d(De);_viewContainerRef=d(pt);_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 vo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})();var lT=$p();function ac(t){return new Sf(t.get(Yn),t.get(De))}var Sf=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=Wn(-this._previousScrollPosition.left),i.style.top=Wn(-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"),lT&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),lT&&(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 gT(t,i){return new kf(t.get(_r),t.get(se),t.get(Yn),i)}var kf=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(Te(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 uu=class{enable(){}disable(){}attach(){}};function M9(t,i){return i.some(e=>{let n=t.bottome.bottom,r=t.righte.right;return n||o||r||a})}function dT(t,i){return i.some(e=>{let n=t.tope.bottom,r=t.lefte.right;return n||o||r||a})}function vi(t,i){return new Ef(t.get(_r),t.get(Yn),t.get(se),i)}var Ef=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();M9(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}},_T=(()=>{class t{_injector=d(ye);constructor(){}noop=()=>new uu;close=e=>gT(this._injector,e);block=()=>ac(this._injector);reposition=e=>vi(this._injector,e);static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),yo=class{positionStrategy;scrollStrategy=new uu;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 If=class{connectionPair;scrollableViewProperties;constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}};var bT=(()=>{class t{_attachedOverlays=[];_document=d(De);_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})(),vT=(()=>{class t extends bT{_ngZone=d(se);_renderer=d(Ln).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=Oe(t)))(o||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),yT=(()=>{class t extends bT{_platform=d(je);_ngZone=d(se);_renderer=d(Ln).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=Un(e)};_clickListener=e=>{let n=Un(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(uT(s.overlayElement,n)||uT(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=Oe(t)))(o||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function uT(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 CT=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({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})(),Of=(()=>{class t{_platform=d(je);_containerElement;_document=d(De);_styleLoader=d(ct);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||F_()){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()}},I2=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=Ee.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new B;_outsidePointerEvents=new B;_afterNextRenderRef;constructor(i,e,n,o,r,a,s,c,u,f=!1,g,y){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=u,this._animationsDisabled=f,this._injector=g,this._renderer=y,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=xt(()=>{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=Wn(this._config.width),i.height=Wn(this._config.height),i.minWidth=Wn(this._config.minWidth),i.minHeight=Wn(this._config.minHeight),i.maxWidth=Wn(this._config.maxWidth),i.maxHeight=Wn(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new w9(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=Ur(e||[]).filter(r=>!!r);o.length&&(n?i.classList.add(...o):i.classList.remove(...o))}_detachContentWhenEmpty(){let i=!1;try{this._detachContentAfterRenderRef=xt(()=>{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?.()}},mT="cdk-overlay-connected-position-bounding-box",QJ=/([A-Za-z%]+)$/;function qr(t,i){return new T2(i,t.get(Yn),t.get(De),t.get(je),t.get(Of))}var T2=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=Ee.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(mT),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),u=this._getOverlayPoint(c,e,s),f=this._getOverlayFit(u,e,n,s);if(f.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,c);return}if(this._canFitWithFlexibleDimensions(f,u,n)){r.push({position:s,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,s)});continue}(!a||a.overlayFit.visibleAreac&&(c=f,s=u)}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&&xl(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(mT),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=fT(e),{x:a,y:s}=i,c=this._getOffset(o,"x"),u=this._getOffset(o,"y");c&&(a+=c),u&&(s+=u);let f=0-a,g=a+r.width-n.width,y=0-s,x=s+r.height-n.height,D=this._subtractOverflows(r.width,f,g),Y=this._subtractOverflows(r.height,y,x),Q=D*Y;return{visibleArea:Q,isCompletelyWithinViewport:r.width*r.height===Q,fitsInViewportVertically:Y===r.height,fitsInViewportHorizontally:D==r.width}}_canFitWithFlexibleDimensions(i,e,n){if(this._hasFlexibleDimensions){let o=n.bottom-e.y,r=n.right-e.x,a=pT(this._overlayRef.getConfig().minHeight),s=pT(this._overlayRef.getConfig().minWidth),c=i.fitsInViewportVertically||a!=null&&a<=o,u=i.fitsInViewportHorizontally||s!=null&&s<=r;return c&&u}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=fT(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),u=Math.max(r.left-n.left-i.x,0),f=0,g=0;return o.width<=r.width?f=u||-a:f=i.xD&&!this._isInitialRender&&!this._growAfterOpen&&(a=i.y-D/2)}let c=e.overlayX==="start"&&!o||e.overlayX==="end"&&o,u=e.overlayX==="end"&&!o||e.overlayX==="start"&&o,f,g,y;if(u)y=n.width-i.x+this._viewportMargin*2,f=i.x-this._viewportMargin;else if(c)g=i.x,f=n.right-i.x;else{let x=Math.min(n.right-i.x+n.left,i.x),D=this._lastBoundingBoxSize.width;f=x*2,g=i.x-x,f>D&&!this._isInitialRender&&!this._growAfterOpen&&(g=i.x-D/2)}return{top:a,left:g,bottom:s,right:y,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=Wn(n.height),o.top=Wn(n.top),o.bottom=Wn(n.bottom),o.width=Wn(n.width),o.left=Wn(n.left),o.right=Wn(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=Wn(r)),a&&(o.maxWidth=Wn(a))}this._lastBoundingBoxSize=n,xl(this._boundingBox.style,o)}_resetBoundingBoxStyles(){xl(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){xl(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();xl(n,this._getExactOverlayY(e,i,f)),xl(n,this._getExactOverlayX(e,i,f))}else n.position="static";let s="",c=this._getOffset(e,"x"),u=this._getOffset(e,"y");c&&(s+=`translateX(${c}px) `),u&&(s+=`translateY(${u}px)`),n.transform=s.trim(),a.maxHeight&&(o?n.maxHeight=Wn(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(o?n.maxWidth=Wn(a.maxWidth):r&&(n.maxWidth="")),xl(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=Wn(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=Wn(r.x);return o}_getScrollVisibility(){let i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:dT(i,n),isOriginOutsideView:M9(i,n),isOverlayClipped:dT(e,n),isOverlayOutsideView:M9(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&&Ur(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 X)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 xl(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function pT(t){if(typeof t!="number"&&t!=null){let[i,e]=t.split(QJ);return!e||e==="px"?parseFloat(i):null}return t||null}function fT(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 KJ(t,i){return t===i?!0:t.isOriginClipped===i.isOriginClipped&&t.isOriginOutsideView===i.isOriginOutsideView&&t.isOverlayClipped===i.isOverlayClipped&&t.isOverlayOutsideView===i.isOverlayOutsideView}var hT="cdk-global-overlay-wrapper";function Sa(t){return new Tf}var Tf=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(hT),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"),u=(r==="100%"||r==="100vh")&&(!s||s==="100%"||s==="100vh"),f=this._xPosition,g=this._xOffset,y=this._overlayRef.getConfig().direction==="rtl",x="",D="",Y="";c?Y="flex-start":f==="center"?(Y="center",y?D=g:x=g):y?f==="left"||f==="end"?(Y="flex-end",x=g):(f==="right"||f==="start")&&(Y="flex-start",D=g):f==="left"||f==="start"?(Y="flex-start",x=g):(f==="right"||f==="end")&&(Y="flex-end",D=g),i.position=this._cssPosition,i.marginLeft=c?"0":x,i.marginTop=u?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=c?"0":D,e.justifyContent=Y,e.alignItems=u?"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(hT),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},xT=(()=>{class t{_injector=d(ye);constructor(){}global(){return Sa()}flexibleConnectedTo(e){return qr(this._injector,e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Co(t,i){t.get(ct).load(CT);let e=t.get(Of),n=t.get(De),o=t.get(He),r=t.get(fi),a=t.get(vt),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 u=new du(c,r,t),f=new yo(i),g=t.get(Je,null,{optional:!0})||t.get(Ln).createRenderer(null,null);return f.direction=f.direction||a.value,new I2(u,s,c,f,t.get(se),t.get(vT),n,t.get(dr),t.get(yT),i?.disableAnimations??t.get(jd,null,{optional:!0})==="NoopAnimations",t.get(Xt),g)}var MT=(()=>{class t{scrollStrategies=d(_T);_positionBuilder=d(xT);_injector=d(ye);constructor(){}create(e){return Co(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})(),XJ=[{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"}],wT=new P("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(ye);return()=>vi(t)}}),O2=(()=>{class t{elementRef=d(X);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})(),Lf=(()=>{class t{_dir=d(vt,{optional:!0});_injector=d(ye);_overlayRef;_templatePortal;_backdropSubscription=Ee.EMPTY;_attachSubscription=Ee.EMPTY;_detachSubscription=Ee.EMPTY;_positionSubscription=Ee.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=d(wT);_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(it),n=d(pt);this._templatePortal=new qn(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=XJ);let e=this._overlayRef=Co(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&&!kt(n)&&(n.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let o=this._getOriginElement(),r=Un(n);(!o||o!==r&&!o.contains(r))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new yo({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=qr(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof O2?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof O2?this.origin.elementRef.nativeElement:this.origin instanceof X?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(sg(()=>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 ZJ(t){let i=d(ye);return()=>vi(i)}var JJ={provide:wT,useFactory:ZJ},Ai=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[MT,JJ],imports:[va,vo,cu,cu]})}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 wl=class{applyChanges(i,e,n,o,r){i.forEachOperation((a,s,c)=>{let u,f;if(a.previousIndex==null){let g=n(a,s,c);u=e.createEmbeddedView(g.templateRef,g.context,g.index),f=oc.INSERTED}else c==null?(e.remove(s),f=oc.REMOVED):(u=e.get(s),e.move(u,c),f=oc.MOVED);r&&r({context:u?.context,operation:f,record:a})})}detach(){}};var xo=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 Ii=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,he]})}return t})();var Pf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he]})}return t})();var L2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[Ii,he,Pf,un]})}return t})();var eee=["trigger"],tee=["panel"],nee=[[["mat-select-trigger"]],"*"],iee=["mat-select-trigger","*"];function oee(t,i){if(t&1&&(h(0,"span",4),C(1),b()),t&2){let e=w();p(),O(e.placeholder)}}function ree(t,i){t&1&&ae(0)}function aee(t,i){if(t&1&&(h(0,"span",11),C(1),b()),t&2){let e=w(2);p(),O(e.triggerValue)}}function see(t,i){if(t&1&&(h(0,"span",5),I(1,ree,1,0)(2,aee,2,1,"span",11),b()),t&2){let e=w();p(),T(e.customTrigger?1:2)}}function cee(t,i){if(t&1){let e=le();h(0,"div",12,1),N("keydown",function(o){U(e);let r=w();return $(r._handleKeydown(o))}),ae(2,1),b()}if(t&2){let e=w();Lt(Jc("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme())),oe("mat-select-panel-animations-enabled",!e._animationsDisabled),S("ngClass",e.panelClass),ne("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var D9=new P("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(ye);return()=>vi(t)}});function ST(t){let i=d(ye);return()=>vi(i)}var kT=new P("MAT_SELECT_CONFIG"),ET={provide:D9,deps:[],useFactory:ST},IT=new P("MatSelectTrigger"),Af=class{source;value;constructor(i,e){this.source=i,this.value=e}},Qn=(()=>{class t{_viewportRuler=d(Yn);_changeDetectorRef=d(we);_elementRef=d(X);_dir=d(vt,{optional:!0});_idGenerator=d(He);_renderer=d(Je);_parentFormField=d(wa,{optional:!0});ngControl=d(oi,{self:!0,optional:!0});_liveAnnouncer=d(R0);_defaultOptions=d(kT,{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=au(e,this.options,this.optionGroups),a=n._getHostElement();e===0&&r===1?o.scrollTop=0:o.scrollTop=su(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new Af(this,e)}_scrollStrategyFactory=d(D9);_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=Se(!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(on.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=ji(()=>{let e=this.options;return e?e.changes.pipe(Qe(e),rt(()=>mt(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(rt(()=>this.optionSelectionChanges))});openedChange=new j;_openedStream=this.openedChange.pipe(Te(e=>e),ue(()=>{}));_closedStream=this.openedChange.pipe(Te(e=>!e),ue(()=>{}));selectionChange=new j;valueChange=new j;constructor(){let e=d(Da),n=d(J1,{optional:!0}),o=d(gi,{optional:!0}),r=d(new mn("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new w2(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 xo(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(xe(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(xe(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(Qe(null),xe(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(Ve(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&&Ks(this._trackedModal,"aria-owns",n),o2(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;Ks(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&&!kt(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&&!kt(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&&!kt(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 O2?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 ll(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=mt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(xe(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),mt(...this.options.map(n=>n._stateChanges)).pipe(xe(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=L({type:t,selectors:[["mat-select"]],contentQueries:function(n,o,r){if(n&1&&(Ie(r,IT,5),Ie(r,un,5),Ie(r,k2,5)),n&2){let a;G(a=W())&&(o.customTrigger=a.first),G(a=W())&&(o.options=a),G(a=W())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&(me(eee,5),me(tee,5),me(Lf,5)),n&2){let r;G(r=W())&&(o.trigger=r.first),G(r=W())&&(o.panel=r.first),G(r=W())&&(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:ft(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",ft],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:yl,useExisting:t},{provide:S2,useExisting:t}]),Re],ngContentSelectors:iee,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();ke(nee),h(0,"div",2,0),N("click",function(){return U(r),$(o.open())}),h(3,"div",3),I(4,oee,2,1,"span",4)(5,see,3,1,"span",5),b(),h(6,"div",6)(7,"div",7),Gt(),h(8,"svg",8),F(9,"path",9),b()()()(),Xe(10,cee,3,10,"ng-template",10),N("detach",function(){return U(r),$(o.close())})("backdropClick",function(){return U(r),$(o.close())})("overlayKeydown",function(s){return U(r),$(o._handleOverlayKeydown(s))})}if(n&2){let r=Ft(1);p(3),ne("id",o._valueId),p(),T(o.empty?4:5),p(6),S("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||r)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[O2,Lf,Gn],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 mu=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[ET],imports:[Ai,L2,he,ki,nc,L2,he]})}return t})();var S9=new P("MAT_DATE_LOCALE",{providedIn:"root",factory:lee});function lee(){return d(Rr)}var P2="Method not implemented",Zi=class{locale;_localeChanges=new B;localeChanges=this._localeChanges;setTime(i,e,n,o){throw new Error(P2)}getHours(i){throw new Error(P2)}getMinutes(i){throw new Error(P2)}getSeconds(i){throw new Error(P2)}parseTime(i,e){throw new Error(P2)}addSeconds(i,e){throw new Error(P2)}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}},cc=new P("mat-date-formats");var dee=(()=>{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 k9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,he]})}return t})();var uee={capture:!0},mee=["focus","mousedown","mouseenter","touchstart"],E9="mat-ripple-loader-uninitialized",I9="mat-ripple-loader-class-name",TT="mat-ripple-loader-centered",zf="mat-ripple-loader-disabled",OT=(()=>{class t{_document=d(De);_animationsDisabled=Ue();_globalRippleOptions=d(pl,{optional:!0});_platform=d(je);_ngZone=d(se);_injector=d(ye);_eventCleanups;_hosts=new Map;constructor(){let e=d(Ln).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>mee.map(n=>e.listen(this._document,n,this._onInteraction,uee)))}ngOnDestroy(){let e=this._hosts.keys();for(let n of e)this.destroyRipple(n);this._eventCleanups.forEach(n=>n())}configureRipple(e,n){e.setAttribute(E9,this._globalRippleOptions?.namespace??""),(n.className||!e.hasAttribute(I9))&&e.setAttribute(I9,n.className||""),n.centered&&e.setAttribute(TT,""),n.disabled&&e.setAttribute(zf,"")}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(zf,""):e.removeAttribute(zf)}_onInteraction=e=>{let n=Un(e);if(n instanceof HTMLElement){let o=n.closest(`[${E9}="${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(I9)),e.append(n);let o=this._globalRippleOptions,r=this._animationsDisabled?0:o?.animation?.enterDuration??B0.enterDuration,a=this._animationsDisabled?0:o?.animation?.exitDuration??B0.exitDuration,s={rippleDisabled:this._animationsDisabled||o?.disabled||e.hasAttribute(zf),rippleConfig:{centered:e.hasAttribute(TT),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:r,exitDuration:a}}},c=new ml(s,this._ngZone,n,this._platform,this._injector),u=!s.rippleDisabled;u&&c.setupTriggerEvents(e),this._hosts.set(e,{target:s,renderer:c,hasSetUpEvents:u}),e.removeAttribute(E9)}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 pee=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,fee=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function T9(t,i){let e=Array(t);for(let n=0;n{class t extends Zi{useUtcForDisplay=!1;_matDateLocale=d(S9,{optional:!0});constructor(){super();let e=d(S9,{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 T9(12,o=>this._format(n,new Date(2017,o,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return T9(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 T9(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(pee.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(fee);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),O9(o,0,23)&&O9(r,0,59)&&(a==null||O9(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 O9(t,i,e){return!isNaN(t)&&t>=i&&t<=e}var gee={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 LT=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[_ee()]})}return t})();function _ee(t=gee){return[{provide:Zi,useClass:hee},{provide:cc,useValue:t}]}var bee=["mat-icon-button",""],vee=["*"],yee=new P("MAT_BUTTON_CONFIG");function PT(t){return t==null?void 0:ft(t)}var Rf=(()=>{class t{_elementRef=d(X);_ngZone=d(se);_animationsDisabled=Ue();_config=d(yee,{optional:!0});_focusMonitor=d(ln);_cleanupClick;_renderer=d(Je);_rippleLoader=d(OT);_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(ct).load(dn);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()),Lt(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",PT],_tabindex:[2,"tabindex","_tabindex",PT]}})}return t})(),ai=(()=>{class t extends Rf{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({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:bee,ngContentSelectors:vee,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&&(ke(),Pn(0,"span",0),ae(1),Pn(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 HJ=["matButton",""],iO=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],oO=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var UJ=["mat-mini-fab",""],$J=`.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%} -`,tO=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"]]]),yt=(()=>{class t extends Af{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=GJ(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let n=this._elementRef.nativeElement.classList,o=this._appearance?tO.get(this._appearance):null,r=tO.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:HJ,ngContentSelectors:oO,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&&(ke(iO),Pn(0,"span",0),ae(1),ot(2,"span",1),ae(3,1),st(),ae(4,2),Pn(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)} +`],encapsulation:2,changeDetection:0})}return t})();var Cee=["matButton",""],RT=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],NT=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var xee=["mat-mini-fab",""],Mee=`.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%} +`,AT=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"]]]),yt=(()=>{class t extends Rf{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=wee(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let n=this._elementRef.nativeElement.classList,o=this._appearance?AT.get(this._appearance):null,r=AT.get(e);o&&n.remove(...o),n.add(...r),this._appearance=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({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:Cee,ngContentSelectors:NT,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&&(ke(RT),Pn(0,"span",0),ae(1),ot(2,"span",1),ae(3,1),st(),ae(4,2),Pn(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 GJ(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 WJ=new L("mat-mdc-fab-default-options",{providedIn:"root",factory:rO});function rO(){return{color:"accent"}}var nO=rO();var _Pe=(()=>{class t extends Af{_options=d(WJ,{optional:!0});_isFab=!0;constructor(){super(),this._options=this._options||nO,this.color=this._options.color||nO.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:UJ,ngContentSelectors:oO,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&&(ke(iO),Pn(0,"span",0),ae(1),ot(2,"span",1),ae(3,1),st(),ae(4,2),Pn(5,"span",2)(6,"span",3)),n&2&&oe("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[$J],encapsulation:2,changeDetection:0})}return t})();var Ma=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,Ei,he]})}return t})();var qJ=["tooltip"],v9=20;var y9=new L("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(ye);return()=>bi(t,{scrollThrottle:v9})}});function cO(t){let i=d(ye);return()=>bi(i,{scrollThrottle:v9})}var C9={provide:y9,deps:[],useFactory:cO};function lO(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var dO=new L("mat-tooltip-default-options",{providedIn:"root",factory:lO});var aO="tooltip-panel",sO=Us({passive:!0}),YJ=8,QJ=8,KJ=24,XJ=200,vo=(()=>{class t{_elementRef=d(X);_ngZone=d(se);_platform=d(je);_ariaDescriber=d(t2);_focusMonitor=d(ln);_dir=d(vt);_injector=d(ye);_viewContainerRef=d(pt);_animationsDisabled=Ue();_defaultOptions=d(dO,{optional:!0});_overlayRef;_tooltipInstance;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=uO;_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=YJ}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(xe(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,sO)}),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 Eo(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(xe(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 X)return this._overlayRef;this._detach()}let n=this._injector.get(pr).getAncestorScrollContainers(this._elementRef),o=`${this._cssClassPrefix}-${aO}`,r=$r(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n);return r.positionChanges.pipe(xe(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=_o(this._injector,{direction:this._dir,positionStrategy:r,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,o]:o,scrollStrategy:this._injector.get(y9)(),disableAnimations:this._animationsDisabled}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(xe(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(xe(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(xe(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!kt(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(xe(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(Y(Y({},o.main),r.main)),this._addOffset(Y(Y({},o.fallback),r.fallback))])}_addOffset(e){let n=QJ,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(),xt(()=>{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}-${aO}-`;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,sO)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let n=this._injector.get(De).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||xt({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=R({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})(),uO=(()=>{class t{_changeDetectorRef=d(we);_elementRef=d(X);_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>KJ&&e.width>=XJ}_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&&me(qJ,7),n&2){let r;G(r=W())&&(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 U(r),$(o._handleAnimationEnd(s))}),h(2,"div",2),C(3),_()()}n&2&&(oe("mdc-tooltip--multiline",o._isMultiline),S("ngClass",o.tooltipClass),p(3),T(o.message))},dependencies:[$n],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 ZJ=["mat-calendar-body",""];function JJ(t,i){return this._trackRow(i)}var bO=(t,i)=>i.id;function eee(t,i){if(t&1&&(h(0,"tr",0)(1,"td",3),C(2),_()()),t&2){let e=w();p(),Rt("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),ne("colspan",e.numCols),p(),te(" ",e.label," ")}}function tee(t,i){if(t&1&&(h(0,"td",3),C(1),_()),t&2){let e=w(2);Rt("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),ne("colspan",e._firstRowOffset),p(),te(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function nee(t,i){if(t&1){let e=le();h(0,"td",6)(1,"button",7),N("click",function(o){let r=U(e).$implicit,a=w(2);return $(a._cellClicked(r,o))})("focus",function(o){let r=U(e).$implicit,a=w(2);return $(a._emitActiveDateChange(r,o))}),h(2,"span",8),C(3),_(),F(4,"span",9),_()()}if(t&2){let e=i.$implicit,n=i.$index,o=w().$index,r=w();Rt("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)),S("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(),te(" ",e.displayValue," ")}}function iee(t,i){if(t&1&&(h(0,"tr",1),I(1,tee,2,6,"td",4),et(2,nee,5,48,"td",5,bO),_()),t&2){let e=i.$implicit,n=i.$index,o=w();p(),O(n===0&&o._firstRowOffset?1:-1),p(),tt(e)}}function oee(t,i){if(t&1&&(h(0,"th",2)(1,"span",6),C(2),_(),h(3,"span",3),C(4),_()()),t&2){let e=i.$implicit;p(2),T(e.long),p(2),T(e.narrow)}}var ree=["*"];function aee(t,i){}function see(t,i){if(t&1){let e=le();h(0,"mat-month-view",4),O1("activeDateChange",function(o){U(e);let r=w();return Yd(r.activeDate,o)||(r.activeDate=o),$(o)}),N("_userSelection",function(o){U(e);let r=w();return $(r._dateSelected(o))})("dragStarted",function(o){U(e);let r=w();return $(r._dragStarted(o))})("dragEnded",function(o){U(e);let r=w();return $(r._dragEnded(o))}),_()}if(t&2){let e=w();I1("activeDate",e.activeDate),S("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 cee(t,i){if(t&1){let e=le();h(0,"mat-year-view",5),O1("activeDateChange",function(o){U(e);let r=w();return Yd(r.activeDate,o)||(r.activeDate=o),$(o)}),N("monthSelected",function(o){U(e);let r=w();return $(r._monthSelectedInYearView(o))})("selectedChange",function(o){U(e);let r=w();return $(r._goToDateInView(o,"month"))}),_()}if(t&2){let e=w();I1("activeDate",e.activeDate),S("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function lee(t,i){if(t&1){let e=le();h(0,"mat-multi-year-view",6),O1("activeDateChange",function(o){U(e);let r=w();return Yd(r.activeDate,o)||(r.activeDate=o),$(o)}),N("yearSelected",function(o){U(e);let r=w();return $(r._yearSelectedInMultiYearView(o))})("selectedChange",function(o){U(e);let r=w();return $(r._goToDateInView(o,"year"))}),_()}if(t&2){let e=w();I1("activeDate",e.activeDate),S("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function dee(t,i){}var uee=["button"],mee=[[["","matDatepickerToggleIcon",""]]],pee=["[matDatepickerToggleIcon]"];function fee(t,i){t&1&&(Gt(),h(0,"svg",2),F(1,"path",3),_())}var P2=(()=>{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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),hee=0,du=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=hee++;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}},gee={passive:!1,capture:!0},Rf={passive:!0,capture:!0},mO={passive:!0},T2=(()=>{class t{_elementRef=d(X);_ngZone=d(se);_platform=d(je);_intl=d(P2);_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(ye);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=d(Je),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(ct).load(dn),this._ngZone.runOutsideAngular(()=>{let o=this._elementRef.nativeElement,r=[e.listen(o,"touchmove",this._touchmoveHandler,gee),e.listen(o,"mouseenter",this._enterHandler,Rf),e.listen(o,"focus",this._enterHandler,Rf),e.listen(o,"mouseleave",this._leaveHandler,Rf),e.listen(o,"blur",this._leaveHandler,Rf),e.listen(o,"mousedown",this._mousedownHandler,mO),e.listen(o,"touchstart",this._mousedownHandler,mO)];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){xt(()=>{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 w9(e,this.startValue,this.endValue)}_isRangeEnd(e){return D9(e,this.startValue,this.endValue)}_isInRange(e){return S9(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return w9(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 D9(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return S9(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return w9(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return D9(e,this.previewStart,this.previewEnd)}_isInPreview(e){return S9(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=pO(e),o=n?this._getCellFromElement(n):null;n!==e.target&&(this._didDragSinceMouseDown=!0),M9(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=M9(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=pO(e);n&&this._mouseupHandler({target:n})};_getCellFromElement(e){let n=M9(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:[ze],attrs:ZJ,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&&(I(0,eee,3,6,"tr",0),et(1,iee,4,1,"tr",1,JJ,!0),h(3,"span",2),C(4),_(),h(5,"span",2),C(6),_(),h(7,"span",2),C(8),_(),h(9,"span",2),C(10),_()),n&2&&(O(o._firstRowOffset{class t extends Rf{_options=d(Dee,{optional:!0});_isFab=!0;constructor(){super(),this._options=this._options||zT,this.color=this._options.color||zT.color}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({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:xee,ngContentSelectors:NT,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&&(ke(RT),Pn(0,"span",0),ae(1),ot(2,"span",1),ae(3,1),st(),ae(4,2),Pn(5,"span",2)(6,"span",3)),n&2&&oe("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[Mee],encapsulation:2,changeDetection:0})}return t})();var ka=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,Ii,he]})}return t})();var See=["tooltip"],L9=20;var P9=new P("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(ye);return()=>vi(t,{scrollThrottle:L9})}});function jT(t){let i=d(ye);return()=>vi(i,{scrollThrottle:L9})}var A9={provide:P9,deps:[],useFactory:jT};function HT(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var UT=new P("mat-tooltip-default-options",{providedIn:"root",factory:HT});var VT="tooltip-panel",BT=Ys({passive:!0}),kee=8,Eee=8,Iee=24,Tee=200,Mo=(()=>{class t{_elementRef=d(X);_ngZone=d(se);_platform=d(je);_ariaDescriber=d(r2);_focusMonitor=d(ln);_dir=d(vt);_injector=d(ye);_viewContainerRef=d(pt);_animationsDisabled=Ue();_defaultOptions=d(UT,{optional:!0});_overlayRef;_tooltipInstance;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=$T;_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=kee}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(xe(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,BT)}),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 Lo(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(xe(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 X)return this._overlayRef;this._detach()}let n=this._injector.get(_r).getAncestorScrollContainers(this._elementRef),o=`${this._cssClassPrefix}-${VT}`,r=qr(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n);return r.positionChanges.pipe(xe(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=Co(this._injector,{direction:this._dir,positionStrategy:r,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,o]:o,scrollStrategy:this._injector.get(P9)(),disableAnimations:this._animationsDisabled}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(xe(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(xe(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(xe(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!kt(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(xe(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=Eee,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(),xt(()=>{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}-${VT}-`;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,BT)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let n=this._injector.get(De).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||xt({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})(),$T=(()=>{class t{_changeDetectorRef=d(we);_elementRef=d(X);_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>Iee&&e.width>=Tee}_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=L({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(n,o){if(n&1&&me(See,7),n&2){let r;G(r=W())&&(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 U(r),$(o._handleAnimationEnd(s))}),h(2,"div",2),C(3),b()()}n&2&&(oe("mdc-tooltip--multiline",o._isMultiline),S("ngClass",o.tooltipClass),p(3),O(o.message))},dependencies:[Gn],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 Oee=["mat-calendar-body",""];function Lee(t,i){return this._trackRow(i)}var XT=(t,i)=>i.id;function Pee(t,i){if(t&1&&(h(0,"tr",0)(1,"td",3),C(2),b()()),t&2){let e=w();p(),zt("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),ne("colspan",e.numCols),p(),te(" ",e.label," ")}}function Aee(t,i){if(t&1&&(h(0,"td",3),C(1),b()),t&2){let e=w(2);zt("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),ne("colspan",e._firstRowOffset),p(),te(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function zee(t,i){if(t&1){let e=le();h(0,"td",6)(1,"button",7),N("click",function(o){let r=U(e).$implicit,a=w(2);return $(a._cellClicked(r,o))})("focus",function(o){let r=U(e).$implicit,a=w(2);return $(a._emitActiveDateChange(r,o))}),h(2,"span",8),C(3),b(),F(4,"span",9),b()()}if(t&2){let e=i.$implicit,n=i.$index,o=w().$index,r=w();zt("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)),S("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(),te(" ",e.displayValue," ")}}function Ree(t,i){if(t&1&&(h(0,"tr",1),I(1,Aee,2,6,"td",4),et(2,zee,5,48,"td",5,XT),b()),t&2){let e=i.$implicit,n=i.$index,o=w();p(),T(n===0&&o._firstRowOffset?1:-1),p(),tt(e)}}function Nee(t,i){if(t&1&&(h(0,"th",2)(1,"span",6),C(2),b(),h(3,"span",3),C(4),b()()),t&2){let e=i.$implicit;p(2),O(e.long),p(2),O(e.narrow)}}var Fee=["*"];function Vee(t,i){}function Bee(t,i){if(t&1){let e=le();h(0,"mat-month-view",4),A1("activeDateChange",function(o){U(e);let r=w();return Zd(r.activeDate,o)||(r.activeDate=o),$(o)}),N("_userSelection",function(o){U(e);let r=w();return $(r._dateSelected(o))})("dragStarted",function(o){U(e);let r=w();return $(r._dragStarted(o))})("dragEnded",function(o){U(e);let r=w();return $(r._dragEnded(o))}),b()}if(t&2){let e=w();P1("activeDate",e.activeDate),S("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 jee(t,i){if(t&1){let e=le();h(0,"mat-year-view",5),A1("activeDateChange",function(o){U(e);let r=w();return Zd(r.activeDate,o)||(r.activeDate=o),$(o)}),N("monthSelected",function(o){U(e);let r=w();return $(r._monthSelectedInYearView(o))})("selectedChange",function(o){U(e);let r=w();return $(r._goToDateInView(o,"month"))}),b()}if(t&2){let e=w();P1("activeDate",e.activeDate),S("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Hee(t,i){if(t&1){let e=le();h(0,"mat-multi-year-view",6),A1("activeDateChange",function(o){U(e);let r=w();return Zd(r.activeDate,o)||(r.activeDate=o),$(o)}),N("yearSelected",function(o){U(e);let r=w();return $(r._yearSelectedInMultiYearView(o))})("selectedChange",function(o){U(e);let r=w();return $(r._goToDateInView(o,"year"))}),b()}if(t&2){let e=w();P1("activeDate",e.activeDate),S("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Uee(t,i){}var $ee=["button"],Gee=[[["","matDatepickerToggleIcon",""]]],Wee=["[matDatepickerToggleIcon]"];function Yee(t,i){t&1&&(Gt(),h(0,"svg",2),F(1,"path",3),b())}var R2=(()=>{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})(),qee=0,fu=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=qee++;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}},Qee={passive:!1,capture:!0},Nf={passive:!0,capture:!0},GT={passive:!0},z2=(()=>{class t{_elementRef=d(X);_ngZone=d(se);_platform=d(je);_intl=d(R2);_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(ye);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=d(Je),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(ct).load(dn),this._ngZone.runOutsideAngular(()=>{let o=this._elementRef.nativeElement,r=[e.listen(o,"touchmove",this._touchmoveHandler,Qee),e.listen(o,"mouseenter",this._enterHandler,Nf),e.listen(o,"focus",this._enterHandler,Nf),e.listen(o,"mouseleave",this._leaveHandler,Nf),e.listen(o,"blur",this._leaveHandler,Nf),e.listen(o,"mousedown",this._mousedownHandler,GT),e.listen(o,"touchstart",this._mousedownHandler,GT)];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){xt(()=>{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 N9(e,this.startValue,this.endValue)}_isRangeEnd(e){return F9(e,this.startValue,this.endValue)}_isInRange(e){return V9(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return N9(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 F9(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return V9(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return N9(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return F9(e,this.previewStart,this.previewEnd)}_isInPreview(e){return V9(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=WT(e),o=n?this._getCellFromElement(n):null;n!==e.target&&(this._didDragSinceMouseDown=!0),R9(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=R9(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=WT(e);n&&this._mouseupHandler({target:n})};_getCellFromElement(e){let n=R9(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=L({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:Oee,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&&(I(0,Pee,3,6,"tr",0),et(1,Ree,4,1,"tr",1,Lee,!0),h(3,"span",2),C(4),b(),h(5,"span",2),C(6),b(),h(7,"span",2),C(8),b(),h(9,"span",2),C(10),b()),n&2&&(T(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 x9(t){return t?.nodeName==="TD"}function M9(t){let i;return x9(t)?i=t:x9(t.parentNode)?i=t.parentNode:x9(t.parentNode?.parentNode)&&(i=t.parentNode.parentNode),i?.getAttribute("data-mat-row")!=null?i:null}function w9(t,i,e){return e!==null&&i!==e&&t=i&&t===e}function S9(t,i,e,n){return n&&i!==null&&e!==null&&i!==e&&t>=i&&t<=e}function pO(t){let i=t.changedTouches[0];return document.elementFromPoint(i.clientX,i.clientY)}var fr=class{start;end;_disableStructuralEquivalency;constructor(i,e){this.start=i,this.end=e}},uu=(()=>{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){Yc()};static \u0275prov=z({token:t,factory:t.\u0275fac})}return t})(),_ee=(()=>{class t extends uu{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)(be(Xi))};static \u0275prov=z({token:t,factory:t.\u0275fac})}return t})();function bee(t,i){return t||new _ee(i)}var vO={provide:uu,deps:[[new or,new da,uu],Xi],useFactory:bee};var yO=new L("MAT_DATE_RANGE_SELECTION_STRATEGY");var k9=7,vee=0,fO=(()=>{class t{_changeDetectorRef=d(we);_dateFormats=d(oc,{optional:!0});_dateAdapter=d(Xi,{optional:!0});_dir=d(vt,{optional:!0});_rangeStrategy=d(yO,{optional:!0});_rerenderSubscription=Ee.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 fr?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=Se("");_weeks=Se([]);_firstWeekOffset=Se(0);_rangeStart=Se(null);_rangeEnd=Se(null);_comparisonRangeStart=Se(null);_comparisonRangeEnd=Se(null);_previewStart=Se(null);_previewEnd=Se(null);_isRange=Se(!1);_todayDate=Se(null);_weekdays=Se([]);constructor(){d(ct).load(Do),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Qe(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 fr?(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&&!kt(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((k9+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%k9),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:vee++}));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 fr?(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&&me(T2,5),n&2){let r;G(r=W())&&(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:[ze],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"),et(3,oee,5,2,"th",2,bO),_(),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),tt(o._weekdays()),p(4),S("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:[T2],encapsulation:2,changeDetection:0})}return t})(),Go=24,E9=4,hO=(()=>{class t{_changeDetectorRef=d(we);_dateAdapter=d(Xi,{optional:!0});_dir=d(vt,{optional:!0});_rerenderSubscription=Ee.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),CO(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof fr?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=Se([]);_todayYear=Se(0);_selectedYear=Se(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Qe(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)-lu(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,-E9);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,E9);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-lu(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Go-lu(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Go*10:-Go);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Go*10:Go);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 lu(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 du(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(we);_dateFormats=d(oc,{optional:!0});_dateAdapter=d(Xi,{optional:!0});_dir=d(vt,{optional:!0});_rerenderSubscription=Ee.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 fr?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=Se([]);_yearLabel=Se("");_todayMonth=Se(null);_selectedMonth=Se(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Qe(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 du(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(P2);calendar=d(I9);_dateAdapter=d(Xi,{optional:!0});_dateFormats=d(oc,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){d(ct).load(Do);let e=d(we);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:-Go))}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:Go))}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):CO(this._dateAdapter,e,n,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let n=this._dateAdapter.getYear(this.calendar.activeDate)-lu(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=n+Go-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:ree,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&&(ke(),h(0,"div",0)(1,"div",1)(2,"span",2),C(3),_(),h(4,"button",3),N("click",function(){return o.currentPeriodClicked()}),h(5,"span",4),C(6),_(),Gt(),h(7,"svg",5),F(8,"polygon",6),_()(),ir(),F(9,"div",7),ae(10),h(11,"button",8),N("click",function(){return o.previousClicked()}),Gt(),h(12,"svg",9),F(13,"path",10),_()(),ir(),h(14,"button",11),N("click",function(){return o.nextClicked()}),Gt(),h(15,"svg",9),F(16,"path",12),_()()()()),n&2&&(p(2),S("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),S("disabled",!o.previousEnabled())("matTooltip",o.prevButtonLabel),ne("aria-label",o.prevButtonLabel),p(3),S("disabled",!o.nextEnabled())("matTooltip",o.nextButtonLabel),ne("aria-label",o.nextButtonLabel))},dependencies:[yt,ri,vo],encapsulation:2,changeDetection:0})}return t})(),I9=(()=>{class t{_dateAdapter=d(Xi,{optional:!0});_dateFormats=d(oc,{optional:!0});_changeDetectorRef=d(we);_elementRef=d(X);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 fr?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(P2).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Eo(this.headerComponent||MO),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(lo())&&(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 fr||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&&(me(fO,5),me(gO,5),me(hO,5)),n&2){let r;G(r=W())&&(o.monthView=r.first),G(r=W())&&(o.yearView=r.first),G(r=W())&&(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([vO]),ze],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&&(Xe(0,aee,0,0,"ng-template",0),h(1,"div",1),I(2,see,1,11,"mat-month-view",2)(3,cee,1,6,"mat-year-view",3)(4,lee,1,6,"mat-multi-year-view",3),_()),n&2){let r;S("cdkPortalOutlet",o._calendarHeaderPortal),p(2),O((r=o.currentView)==="month"?2:r==="year"?3:r==="multi-year"?4:-1)}},dependencies:[ki,O0,fO,gO,hO],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})(),wO=new L("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(ye);return()=>bi(t)}});function Cee(t){let i=d(ye);return()=>bi(i)}var xee={provide:wO,deps:[],useFactory:Cee},DO=(()=>{class t{_elementRef=d(X);_animationsDisabled=Ue();_changeDetectorRef=d(we);_globalModel=d(uu);_dateAdapter=d(Xi);_ngZone=d(se);_rangeSelectionStrategy=d(yO,{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(ct).load(Do),this._closeButtonText=d(P2).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,n=d(Je);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 fr;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&&me(I9,5),n&2){let r;G(r=W())&&(o._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(n,o){n&2&&(Pt(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)}),_(),Xe(2,dee,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()}),C(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(),Pt(o.datepicker.panelClass),S("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(),S("cdkPortalOutlet",o._actionsPortal),p(),oe("cdk-visually-hidden",!o._closeButtonFocused),S("color",o.color||"primary"),p(),T(o._closeButtonText))},dependencies:[y_,I9,ki,yt],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})(),_O=(()=>{class t{_injector=d(ye);_viewContainerRef=d(pt);_dateAdapter=d(Xi,{optional:!0});_dir=d(vt,{optional:!0});_model=d(uu);_animationsDisabled=Ue();_scrollStrategy=d(wO);_inputStateChanges=Ee.EMPTY;_document=d(De);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=nE(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(we);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 S2&&(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=lo(),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(Ve(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 Eo(DO,this._viewContainerRef),o=this._overlayRef=_o(this._injector,new go({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?nc(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||xt(()=>{o.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return xa(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=$r(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 mt(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(Oe(o=>o.keyCode===27&&!kt(o)||this.datepickerInput&&kt(o,"altKey")&&o.keyCode===38&&n.every(r=>!kt(o,r)))))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({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:[ze]})}return t})(),zf=(()=>{class t extends _O{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[de([vO,{provide:_O,useExisting:t}]),ce],decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0})}return t})(),O2=class{target;targetElement;value;constructor(i,e){this.target=i,this.targetElement=e,this.value=this.target.value}},Mee=(()=>{class t{_elementRef=d(X);_dateAdapter=d(Xi,{optional:!0});_dateFormats=d(oc,{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=Ee.EMPTY;_localeSubscription=Ee.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 O2(this,this._elementRef.nativeElement)),this.dateChange.emit(new O2(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){wee(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"];kt(e,"altKey")&&e.keyCode===40&&n.every(r=>!kt(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 O2(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new O2(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=R({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",H]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[ze]})}return t})();function wee(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 Dee={provide:fi,useExisting:It(()=>Nf),multi:!0},See={provide:Di,useExisting:It(()=>Nf),multi:!0},Nf=(()=>{class t extends Mee{_formField=d(ya,{optional:!0});_closedSubscription=Ee.EMPTY;_openedSubscription=Ee.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=Se(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=on.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=R({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&&(At("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([Dee,See,{provide:xf,useExisting:t}]),ce]})}return t})(),kee=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),mu=(()=>{class t{_intl=d(P2);_changeDetectorRef=d(we);_stateChanges=Ee.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 mn("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?mt(this.datepicker.openedStream,this.datepicker.closedStream):re();this._stateChanges.unsubscribe(),this._stateChanges=mt(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&&Ie(r,kee,5),n&2){let a;G(a=W())&&(o._customIcon=a.first)}},viewQuery:function(n,o){if(n&1&&me(uee,5),n&2){let r;G(r=W())&&(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:[ze],ngContentSelectors:pee,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&&(ke(mee),h(0,"button",1,0),I(2,fee,2,0,":svg:svg",2),ae(3),_()),n&2&&(S("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),O(o._customIcon?-1:2))},dependencies:[ri],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 SO=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[P2,xee],imports:[Ma,Li,ns,ho,he,DO,mu,MO,Si]})}return t})();function Eee(t,i){if(t&1&&F(0,"input",5),t&2){let e=w(2);S("type",e.formfield.type)("formControlName",e.formfield.controlName)("required",e.formfield.required)}}function Iee(t,i){if(t&1&&(h(0,"mat-error")(1,"strong"),C(2),k(3,"translate"),_()()),t&2){let e=w(2);p(2),Et("",E(3,2,"labels.commons.Maximum Value must be")," ",e.formfield.max)}}function Oee(t,i){if(t&1&&(h(0,"mat-error")(1,"strong"),C(2),k(3,"translate"),_()()),t&2){let e=w(2);p(2),Et("",E(3,2,"labels.commons.Minimum Value must be")," ",e.formfield.min)}}function Tee(t,i){if(t&1&&(h(0,"mat-option",7),C(1),_()),t&2){let e=i.$implicit,n=w(3);S("value",e[n.formfield.options.value]),p(),te(" ",e[n.formfield.options.label]," ")}}function Pee(t,i){if(t&1&&(h(0,"mat-select",6),et(1,Tee,2,2,"mat-option",7,gt),_()),t&2){let e=w(2);S("formControlName",e.formfield.controlName)("required",e.formfield.required),p(),tt(e.formfield.options.data)}}function Lee(t,i){if(t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),h(3,"strong"),C(4),k(5,"translate"),_()()),t&2){let e=w(2);p(),Et(" ",e.formfield.label," ",E(2,3,"labels.commons.is")," "),p(3),T(E(5,5,"labels.commons.required"))}}function Aee(t,i){if(t&1&&(h(0,"div",2)(1,"mat-form-field",2)(2,"mat-label"),C(3),_(),I(4,Eee,1,3,"input",5),I(5,Iee,4,4,"mat-error"),I(6,Oee,4,4,"mat-error"),I(7,Pee,3,2,"mat-select",6),I(8,Lee,6,7,"mat-error"),_()()),t&2){let e=w();p(3),T(e.formfield.label),p(),O(e.formfield.controlType==="input"?4:-1),p(),O(e.form.controls[e.formfield.controlName].hasError("max")?5:-1),p(),O(e.form.controls[e.formfield.controlName].hasError("min")?6:-1),p(),O(e.formfield.controlType==="select"?7:-1),p(),O(e.form.controls[e.formfield.controlName].hasError("required")?8:-1)}}function Ree(t,i){if(t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),h(3,"strong"),C(4),k(5,"translate"),_()()),t&2){let e=w(2);p(),Et(" ",e.formfield.label," ",E(2,3,"labels.commons.is")," "),p(3),T(E(5,5,"labels.commons.required"))}}function zee(t,i){if(t&1){let e=le();h(0,"mat-form-field",8),N("click",function(){U(e);let o=Ft(6);return $(o.open())}),h(1,"mat-label"),C(2),_(),F(3,"input",9)(4,"mat-datepicker-toggle",10)(5,"mat-datepicker",null,0),I(7,Ree,6,7,"mat-error"),_()}if(t&2){let e=Ft(6),n=w();p(2),T(n.formfield.label),p(),S("matDatepicker",e)("min",n.formfield.minDate)("max",n.formfield.maxDate)("formControlName",n.formfield.controlName)("required",n.formfield.required),p(),S("for",e),p(3),O(n.form.controls[n.formfield.controlName].hasError("required")?7:-1)}}function Nee(t,i){if(t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),h(3,"strong"),C(4),k(5,"translate"),_()()),t&2){let e=w(2);p(),Et(" ",e.formfield.label," ",E(2,3,"labels.commons.is")," "),p(3),T(E(5,5,"labels.commons.required"))}}function Fee(t,i){if(t&1){let e=le();h(0,"mat-form-field",8),N("click",function(){U(e);let o=w();return $(o.datePicker.open())}),h(1,"mat-label"),C(2),_(),F(3,"input",11),I(4,Nee,6,7,"mat-error"),_()}if(t&2){let e=w();p(2),T(e.formfield.label),p(),S("min",e.formfield.minDate)("max",e.formfield.maxDate)("formControlName",e.formfield.controlName)("required",e.formfield.required),p(),O(e.form.controls[e.formfield.controlName].hasError("required")?4:-1)}}function Vee(t,i){if(t&1&&(h(0,"mat-checkbox",4),C(1),_()),t&2){let e=w();S("checked",e.formfield.value)("formControlName",e.formfield.controlName)("required",e.formfield.required),p(),te(" ",e.formfield.label," ")}}var Ff=(()=>{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),I(1,Aee,9,6,"div",2),I(2,zee,8,8,"mat-form-field",3),I(3,Fee,5,6,"mat-form-field",3),I(4,Vee,2,4,"mat-checkbox",4),_()),n&2&&(S("formGroup",o.form),p(),O(o.formfield.controlType==="input"||o.formfield.controlType==="select"?1:-1),p(),O(o.formfield.controlType==="datepicker"?2:-1),p(),O(o.formfield.controlType==="datetimepicker"?3:-1),p(),O(o.formfield.controlType==="checkbox"?4:-1))},dependencies:[ge,Ce,wi,fn,cr,Fr,hi,jo,Ht,Cn,fo,os,oi,Yn,un,Nf,mu,zf,dl,Pe],encapsulation:2})}}return t})();function Bee(t,i){}var ac=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 P9=(()=>{class t extends tc{_elementRef=d(X);_focusTrapFactory=d(X1);_config;_interactivityChecker=d(Gs);_ngZone=d(se);_focusMonitor=d(ln);_renderer=d(Je);_changeDetectorRef=d(we);_injector=d(ye);_platform=d(je);_document=d(De);_portalOutlet;_focusTrapped=new B;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=d(ac,{optional:!0})||new ac,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||xt(()=>{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=lo(),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=lo();return e===n||e.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=lo()))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(n,o){if(n&1&&me(ki,7),n&2){let r;G(r=W())&&(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&&Xe(0,Bee,0,0,"ng-template",0)},dependencies:[ki],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit} -`],encapsulation:2})}return t})(),pu=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&&!kt(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))}},jee=new L("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=d(ye);return()=>nc(t)}}),Hee=new L("DialogData"),Uee=new L("DefaultDialogConfig");function $ee(t){let i=Se(t),e=new j;return{valueSignal:i,get value(){return i()},change:e,ngOnDestroy(){e.complete()}}}var L9=(()=>{class t{_injector=d(ye);_defaultOptions=d(Uee,{optional:!0});_parentDialog=d(t,{optional:!0,skipSelf:!0});_overlayContainer=d(If);_idGenerator=d(He);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new B;_afterOpenedAtThisLevel=new B;_ariaHiddenElements=new Map;_scrollStrategy=d(jee);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=Bi(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Qe(void 0)));constructor(){}open(e,n){let o=this._defaultOptions||new ac;n=Y(Y({},o),n),n.id=n.id||this._idGenerator.getId("cdk-dialog-"),n.id&&this.getDialogById(n.id);let r=this._getOverlayConfig(n),a=_o(this._injector,r),s=new pu(a,n),c=this._attachContainer(a,s,n);if(s.containerInstance=c,!this.openDialogs.length){let u=this._overlayContainer.getContainerElement();c._focusTrapped?c._focusTrapped.pipe(Ve(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(u)}):this._hideNonDialogContentFromAssistiveTechnology(u)}return this._attachDialogContent(e,s,c,n),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){T9(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){T9(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),T9(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let n=new go({positionStrategy:e.positionStrategy||xa().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:ac,useValue:o},{provide:pu,useValue:n},{provide:D2,useValue:e}],s;o.container?typeof o.container=="function"?s=o.container:(s=o.container.type,a.push(...o.container.providers(o))):s=P9;let c=new Eo(s,o.viewContainerRef,ye.create({parent:r||this._injector,providers:a}));return e.attach(c).instance}_attachDialogContent(e,n,o,r){if(e instanceof it){let a=this._createInjector(r,n,o,void 0),s={$implicit:r.data,dialogRef:n};r.templateContext&&(s=Y(Y({},s),typeof r.templateContext=="function"?r.templateContext():r.templateContext)),o.attachTemplatePortal(new qn(e,null,s,a))}else{let a=this._createInjector(r,n,o,this._injector),s=o.attachComponentPortal(new Eo(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:Hee,useValue:e.data},{provide:pu,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(vt,null,{optional:!0}))&&s.push({provide:vt,useValue:$ee(e.direction)}),ye.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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function T9(t,i){let e=t.length;for(;e--;)i(t[e])}var EO=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[L9],imports:[Li,ho,ns,ho]})}return t})();function Gee(t,i){}var hu=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},A9="mdc-dialog--open",IO="mdc-dialog--opening",OO="mdc-dialog--closing",Wee=150,qee=75,LO=(()=>{class t extends P9{_animationStateChanged=new j;_animationsEnabled=!Ue();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?PO(this._config.enterAnimationDuration)??Wee:0;_exitAnimationDuration=this._animationsEnabled?PO(this._config.exitAnimationDuration)??qee:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(TO,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(IO,A9)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(A9),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(A9),this._animationsEnabled?(this._hostElement.style.setProperty(TO,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(OO)),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(IO,OO)}_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=Te(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&&(At("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),Xe(2,Gee,0,0,"ng-template",2),_()())},dependencies:[ki],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})(),TO="--mat-dialog-transition-duration";function PO(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 fu=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(fu||{}),Yt=class{_ref;_config;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new B;_beforeClosed=new B;_result;_closeFallbackTimeout;_state=fu.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(Oe(o=>o.state==="opened"),Ve(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(Oe(o=>o.state==="closed"),Ve(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),mt(this.backdropClick(),this.keydownEvents().pipe(Oe(o=>o.keyCode===27&&!this.disableClose&&!kt(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),R9(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(Oe(n=>n.state==="closing"),Ve(1)).subscribe(n=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),n.totalTime+100)}),this._state=fu.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=fu.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function R9(t,i,e){return t._closeInteractionType=i,t.close(e)}var In=new L("MatMdcDialogData"),AO=new L("mat-mdc-dialog-default-options"),RO=new L("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(ye);return()=>nc(t)}}),Zi=(()=>{class t{_defaultOptions=d(AO,{optional:!0});_scrollStrategy=d(RO);_parentDialog=d(t,{optional:!0,skipSelf:!0});_idGenerator=d(He);_injector=d(ye);_dialog=d(L9);_animationsDisabled=Ue();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new B;_afterOpenedAtThisLevel=new B;dialogConfigClass=hu;_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=Bi(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Qe(void 0)));constructor(){this._dialogRefConstructor=Yt,this._dialogContainerType=LO,this._dialogDataToken=In}open(e,n){let o;n=Y(Y({},this._defaultOptions||new hu),n),n.id=n.id||this._idGenerator.getId("mat-mdc-dialog-"),n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let r=this._dialog.open(e,Ne(Y({},n),{positionStrategy:xa(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:ac,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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rn=(()=>{class t{dialogRef=d(Yt,{optional:!0});_elementRef=d(X);_dialog=d(Zi);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=NO(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){R9(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({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:[ze]})}return t})(),zO=(()=>{class t{_dialogRef=d(Yt,{optional:!0});_elementRef=d(X);_dialog=d(Zi);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=NO(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=R({type:t})}return t})(),xn=(()=>{class t extends zO{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=Te(t)))(o||t)}})();static \u0275dir=R({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,o){n&2&&At("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[ce]})}return t})(),zn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[F5([Ur])]})}return t})(),Nn=(()=>{class t extends zO{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=R({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 NO(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 z9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[Zi],imports:[EO,Li,ho,he,he]})}return t})();var FO=(()=>{class t{constructor(){}createFormGroup(e){let n={};return e.forEach(o=>{n[o.controlName]=o.required?new Yi(o.value,this.buildValidators(o)):new Yi(o.value,this.buildValidators(o))}),new gk(n)}buildValidators(e){let n=[];return e.required&&n.push(on.required),e.validators&&e.validators.forEach(o=>n.push(o)),n}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Yee=t=>[t,"responsive-column"],Qee=t=>({data:t});function Kee(t,i){if(t&1&&(h(0,"div",2),F(1,"mifosx-formfield",6),_()),t&2){let e=i.$implicit,n=w();S("ngClass","flex-"+n.layout.flex+" responsive-flex-full"),p(),S("formfield",e)("form",n.form)}}var Xee=2,as=(()=>{class t{constructor(){this.dialogRef=d(Yt),this.data=d(In),this.formGroupService=d(FO),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=Y(Y({},this.layout),e.layout),this.layout.gap=this.layout.columns>1?Xee: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),C(1),_(),h(2,"div",1),et(3,Kee,2,3,"div",2,gt),_(),h(5,"mat-dialog-actions",3)(6,"button",4),C(7),k(8,"translate"),_(),h(9,"button",5),C(10),k(11,"translate"),_()()),n&2&&(p(),T(o.data.title),p(),S("formGroup",o.form)("ngClass",zo(11,Yee,o.layout.columns>1?"flex flex-wrap gap-"+o.layout.gap+"percent":"layout-column")),p(),tt(o.formfields),p(4),T(E(8,7,"labels.buttons."+o.layout.cancelButtonText)),p(2),S("mat-dialog-close",zo(13,Qee,o.form))("disabled",!o.form.valid||o.form.pristine),p(),te(" ",E(11,9,"labels.buttons."+o.layout.addButtonText)," "))},dependencies:[ge,$n,Ce,cr,hi,yt,xn,zn,Ff,Nn,Rn,Pe],encapsulation:2})}}return t})();var Zee=()=>({delete:!0}),Gr=(()=>{class t{constructor(){this.dialogRef=d(Yt),this.data=d(In)}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),C(1),k(2,"translate"),_(),h(3,"div",1)(4,"p"),C(5),k(6,"translate"),_()(),h(7,"mat-dialog-actions",2)(8,"button",3),C(9),k(10,"translate"),_(),h(11,"button",4),C(12),k(13,"translate"),_()()),n&2&&(p(),T(E(2,6,"labels.heading.Delete")),p(4),Et("",E(6,8,"labels.text.Are you sure you want to delete")," ",o.data.deleteContext," ?"),p(4),T(E(10,10,"labels.buttons.Cancel")),p(2),S("mat-dialog-close",Ro(14,Zee)),p(),te(" ",E(13,12,"labels.buttons.Confirm")," "))},dependencies:[ge,Ce,yt,xn,zn,Nn,Rn,Pe],encapsulation:2})}}return t})();var Jee=()=>({cancel:!0});function ete(t,i){t&1&&(h(0,"p"),C(1),k(2,"translate"),_()),t&2&&(p(),te("",E(2,1,"labels.text.Are you sure you want to leave this page and lose all inputted data"),"?"))}function tte(t,i){if(t&1&&(h(0,"p"),C(1),k(2,"translate"),_()),t&2){let e=w();p(),Et("",E(2,2,"labels.text.Are you sure you want to cancel")," ",e.data.cancelContext," ?")}}var VO=(()=>{class t{constructor(){this.dialogRef=d(Yt),this.data=d(In)}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),C(1),k(2,"translate"),_(),h(3,"div",1),I(4,ete,3,3,"p"),I(5,tte,3,4,"p"),_(),h(6,"mat-dialog-actions",2)(7,"button",3),C(8),k(9,"translate"),_(),h(10,"button",4),C(11),k(12,"translate"),_()()),n&2&&(p(),T(E(2,6,"labels.buttons.Cancel")),p(3),O(o.data.cancelContext?-1:4),p(),O(o.data.cancelContext?5:-1),p(3),T(E(9,8,"labels.buttons.No")),p(2),S("mat-dialog-close",Ro(12,Jee)),p(),te(" ",E(12,10,"labels.buttons.Yes")," "))},dependencies:[ge,Ce,yt,xn,zn,Nn,Rn,Pe],encapsulation:2})}}return t})();function $9(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 Mt(t,i,e){return(i=bT(i))in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}function ate(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ste(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,u=!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){u=!0,o=f}finally{try{if(!c&&e.return!=null&&(a=e.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function cte(){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 lte(){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 jO(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 ve(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 Jne="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function XO(){for(var t=12,i="";t-- >0;)i+=Jne[Math.random()*62|0];return i}function z2(t){for(var i=[],e=(t||[]).length>>>0;e--;)i[e]=t[e];return i}function db(t){return t.classList?z2(t.classList):(t.getAttribute("class")||"").split(" ").filter(function(i){return i})}function ZT(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function eie(t){return Object.keys(t||{}).reduce(function(i,e){return i+"".concat(e,'="').concat(ZT(t[e]),'" ')},"").trim()}function Yf(t){return Object.keys(t||{}).reduce(function(i,e){return i+"".concat(e,": ").concat(t[e].trim(),";")},"")}function ub(t){return t.size!==wa.size||t.x!==wa.x||t.y!==wa.y||t.rotate!==wa.rotate||t.flipX||t.flipY}function tie(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)},u={transform:"translate(".concat(n/2*-1," -256)")};return{outer:o,inner:c,path:u}}function nie(t){var i=t.transform,e=t.width,n=e===void 0?W9:e,o=t.height,r=o===void 0?W9:o,a=t.startCentered,s=a===void 0?!1:a,c="";return s&&xT?c+="translate(".concat(i.x/sc-n/2,"em, ").concat(i.y/sc-r/2,"em) "):s?c+="translate(calc(-50% + ".concat(i.x/sc,"em), calc(-50% + ").concat(i.y/sc,"em)) "):c+="translate(".concat(i.x/sc,"em, ").concat(i.y/sc,"em) "),c+="scale(".concat(i.size/sc*(i.flipX?-1:1),", ").concat(i.size/sc*(i.flipY?-1:1),") "),c+="rotate(".concat(i.rotate,"deg) "),c}var iie=`:root, :host { +`))},dependencies:[Gn],styles:[`.mat-calendar-body{min-width:224px}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-outline-color, var(--mat-sys-primary))}.mat-calendar-body-label{height:0;line-height:0;text-align:start;padding-left:4.7142857143%;padding-right:4.7142857143%;font-size:var(--mat-datepicker-calendar-body-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-body-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-datepicker-calendar-body-label-text-color, var(--mat-sys-on-surface))}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;margin:0;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));-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;display:block;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview{color:var(--mat-datepicker-calendar-date-preview-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-disabled>.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 z9(t){return t?.nodeName==="TD"}function R9(t){let i;return z9(t)?i=t:z9(t.parentNode)?i=t.parentNode:z9(t.parentNode?.parentNode)&&(i=t.parentNode.parentNode),i?.getAttribute("data-mat-row")!=null?i:null}function N9(t,i,e){return e!==null&&i!==e&&t=i&&t===e}function V9(t,i,e,n){return n&&i!==null&&e!==null&&i!==e&&t>=i&&t<=e}function WT(t){let i=t.changedTouches[0];return document.elementFromPoint(i.clientX,i.clientY)}var br=class{start;end;_disableStructuralEquivalency;constructor(i,e){this.start=i,this.end=e}},hu=(()=>{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){Zc()};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Kee=(()=>{class t extends hu{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)(be(Zi))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function Xee(t,i){return t||new Kee(i)}var ZT={provide:hu,deps:[[new cr,new fa,hu],Zi],useFactory:Xee};var JT=new P("MAT_DATE_RANGE_SELECTION_STRATEGY");var B9=7,Zee=0,YT=(()=>{class t{_changeDetectorRef=d(we);_dateFormats=d(cc,{optional:!0});_dateAdapter=d(Zi,{optional:!0});_dir=d(vt,{optional:!0});_rangeStrategy=d(JT,{optional:!0});_rerenderSubscription=Ee.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 br?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=Se("");_weeks=Se([]);_firstWeekOffset=Se(0);_rangeStart=Se(null);_rangeEnd=Se(null);_comparisonRangeStart=Se(null);_comparisonRangeEnd=Se(null);_previewStart=Se(null);_previewEnd=Se(null);_isRange=Se(!1);_todayDate=Se(null);_weekdays=Se([]);constructor(){d(ct).load(Io),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Qe(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 br?(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&&!kt(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((B9+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%B9),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:Zee++}));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 br?(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=L({type:t,selectors:[["mat-month-view"]],viewQuery:function(n,o){if(n&1&&me(z2,5),n&2){let r;G(r=W())&&(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"),et(3,Nee,5,2,"th",2,XT),b(),h(5,"tr",3),F(6,"th",4),b()(),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)}),b()()),n&2&&(p(3),tt(o._weekdays()),p(4),S("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:[z2],encapsulation:2,changeDetection:0})}return t})(),Qo=24,j9=4,qT=(()=>{class t{_changeDetectorRef=d(we);_dateAdapter=d(Zi,{optional:!0});_dir=d(vt,{optional:!0});_rerenderSubscription=Ee.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),eO(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof br?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=Se([]);_todayYear=Se(0);_selectedYear=Se(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Qe(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)-pu(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,-j9);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,j9);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-pu(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Qo-pu(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Qo*10:-Qo);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Qo*10:Qo);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 pu(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 fu(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(we);_dateFormats=d(cc,{optional:!0});_dateAdapter=d(Zi,{optional:!0});_dir=d(vt,{optional:!0});_rerenderSubscription=Ee.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 br?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=Se([]);_yearLabel=Se("");_todayMonth=Se(null);_selectedMonth=Se(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Qe(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 fu(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(R2);calendar=d(H9);_dateAdapter=d(Zi,{optional:!0});_dateFormats=d(cc,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){d(ct).load(Io);let e=d(we);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:-Qo))}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:Qo))}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):eO(this._dateAdapter,e,n,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let n=this._dateAdapter.getYear(this.calendar.activeDate)-pu(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=n+Qo-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=L({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Fee,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&&(ke(),h(0,"div",0)(1,"div",1)(2,"span",2),C(3),b(),h(4,"button",3),N("click",function(){return o.currentPeriodClicked()}),h(5,"span",4),C(6),b(),Gt(),h(7,"svg",5),F(8,"polygon",6),b()(),sr(),F(9,"div",7),ae(10),h(11,"button",8),N("click",function(){return o.previousClicked()}),Gt(),h(12,"svg",9),F(13,"path",10),b()(),sr(),h(14,"button",11),N("click",function(){return o.nextClicked()}),Gt(),h(15,"svg",9),F(16,"path",12),b()()()()),n&2&&(p(2),S("id",o._periodButtonLabelId),p(),O(o.periodButtonDescription),p(),ne("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),p(2),O(o.periodButtonText),p(),oe("mat-calendar-invert",o.calendar.currentView!=="month"),p(4),S("disabled",!o.previousEnabled())("matTooltip",o.prevButtonLabel),ne("aria-label",o.prevButtonLabel),p(3),S("disabled",!o.nextEnabled())("matTooltip",o.nextButtonLabel),ne("aria-label",o.nextButtonLabel))},dependencies:[yt,ai,Mo],encapsulation:2,changeDetection:0})}return t})(),H9=(()=>{class t{_dateAdapter=d(Zi,{optional:!0});_dateFormats=d(cc,{optional:!0});_changeDetectorRef=d(we);_elementRef=d(X);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 br?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(R2).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Lo(this.headerComponent||nO),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(fo())&&(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 br||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=L({type:t,selectors:[["mat-calendar"]],viewQuery:function(n,o){if(n&1&&(me(YT,5),me(QT,5),me(qT,5)),n&2){let r;G(r=W())&&(o.monthView=r.first),G(r=W())&&(o.yearView=r.first),G(r=W())&&(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([ZT]),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&&(Xe(0,Vee,0,0,"ng-template",0),h(1,"div",1),I(2,Bee,1,11,"mat-month-view",2)(3,jee,1,6,"mat-year-view",3)(4,Hee,1,6,"mat-multi-year-view",3),b()),n&2){let r;S("cdkPortalOutlet",o._calendarHeaderPortal),p(2),T((r=o.currentView)==="month"?2:r==="year"?3:r==="multi-year"?4:-1)}},dependencies:[Ei,A0,YT,QT,qT],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})(),iO=new P("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(ye);return()=>vi(t)}});function ete(t){let i=d(ye);return()=>vi(i)}var tte={provide:iO,deps:[],useFactory:ete},oO=(()=>{class t{_elementRef=d(X);_animationsDisabled=Ue();_changeDetectorRef=d(we);_globalModel=d(hu);_dateAdapter=d(Zi);_ngZone=d(se);_rangeSelectionStrategy=d(JT,{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(ct).load(Io),this._closeButtonText=d(R2).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,n=d(Je);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 br;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=L({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(n,o){if(n&1&&me(H9,5),n&2){let r;G(r=W())&&(o._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(n,o){n&2&&(Lt(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)}),b(),Xe(2,Uee,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()}),C(4),b()()),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(),Lt(o.datepicker.panelClass),S("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(),S("cdkPortalOutlet",o._actionsPortal),p(),oe("cdk-visually-hidden",!o._closeButtonFocused),S("color",o.color||"primary"),p(),O(o._closeButtonText))},dependencies:[P_,H9,Ei,yt],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})(),KT=(()=>{class t{_injector=d(ye);_viewContainerRef=d(pt);_dateAdapter=d(Zi,{optional:!0});_dir=d(vt,{optional:!0});_model=d(hu);_animationsDisabled=Ue();_scrollStrategy=d(iO);_inputStateChanges=Ee.EMPTY;_document=d(De);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=zE(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(we);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 T2&&(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=fo(),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(Ve(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 Lo(oO,this._viewContainerRef),o=this._overlayRef=Co(this._injector,new yo({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?ac(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||xt(()=>{o.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return Sa(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=qr(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 mt(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(Te(o=>o.keyCode===27&&!kt(o)||this.datepickerInput&&kt(o,"altKey")&&o.keyCode===38&&n.every(r=>!kt(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})(),Ff=(()=>{class t extends KT{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275cmp=L({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[de([ZT,{provide:KT,useExisting:t}]),ce],decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0})}return t})(),A2=class{target;targetElement;value;constructor(i,e){this.target=i,this.targetElement=e,this.value=this.target.value}},nte=(()=>{class t{_elementRef=d(X);_dateAdapter=d(Zi,{optional:!0});_dateFormats=d(cc,{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=Ee.EMPTY;_localeSubscription=Ee.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 A2(this,this._elementRef.nativeElement)),this.dateChange.emit(new A2(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){ite(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"];kt(e,"altKey")&&e.keyCode===40&&n.every(r=>!kt(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 A2(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new A2(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 ite(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 ote={provide:hi,useExisting:It(()=>Vf),multi:!0},rte={provide:Si,useExisting:It(()=>Vf),multi:!0},Vf=(()=>{class t extends nte{_formField=d(wa,{optional:!0});_closedSubscription=Ee.EMPTY;_openedSubscription=Ee.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=Se(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=on.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&&(At("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([ote,rte,{provide:wf,useExisting:t}]),ce]})}return t})(),ate=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),gu=(()=>{class t{_intl=d(R2);_changeDetectorRef=d(we);_stateChanges=Ee.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 mn("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?mt(this.datepicker.openedStream,this.datepicker.closedStream):re();this._stateChanges.unsubscribe(),this._stateChanges=mt(this._intl.changes,e,n,o).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(n,o,r){if(n&1&&Ie(r,ate,5),n&2){let a;G(a=W())&&(o._customIcon=a.first)}},viewQuery:function(n,o){if(n&1&&me($ee,5),n&2){let r;G(r=W())&&(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:Wee,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&&(ke(Gee),h(0,"button",1,0),I(2,Yee,2,0,":svg:svg",2),ae(3),b()),n&2&&(S("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),T(o._customIcon?-1:2))},dependencies:[ai],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 rO=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[R2,tte],imports:[ka,Ai,as,vo,he,oO,gu,nO,ki]})}return t})();function ste(t,i){if(t&1&&F(0,"input",5),t&2){let e=w(2);S("type",e.formfield.type)("formControlName",e.formfield.controlName)("required",e.formfield.required)}}function cte(t,i){if(t&1&&(h(0,"mat-error")(1,"strong"),C(2),k(3,"translate"),b()()),t&2){let e=w(2);p(2),Et("",E(3,2,"labels.commons.Maximum Value must be")," ",e.formfield.max)}}function lte(t,i){if(t&1&&(h(0,"mat-error")(1,"strong"),C(2),k(3,"translate"),b()()),t&2){let e=w(2);p(2),Et("",E(3,2,"labels.commons.Minimum Value must be")," ",e.formfield.min)}}function dte(t,i){if(t&1&&(h(0,"mat-option",7),C(1),b()),t&2){let e=i.$implicit,n=w(3);S("value",e[n.formfield.options.value]),p(),te(" ",e[n.formfield.options.label]," ")}}function ute(t,i){if(t&1&&(h(0,"mat-select",6),et(1,dte,2,2,"mat-option",7,gt),b()),t&2){let e=w(2);S("formControlName",e.formfield.controlName)("required",e.formfield.required),p(),tt(e.formfield.options.data)}}function mte(t,i){if(t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),h(3,"strong"),C(4),k(5,"translate"),b()()),t&2){let e=w(2);p(),Et(" ",e.formfield.label," ",E(2,3,"labels.commons.is")," "),p(3),O(E(5,5,"labels.commons.required"))}}function pte(t,i){if(t&1&&(h(0,"div",2)(1,"mat-form-field",2)(2,"mat-label"),C(3),b(),I(4,ste,1,3,"input",5),I(5,cte,4,4,"mat-error"),I(6,lte,4,4,"mat-error"),I(7,ute,3,2,"mat-select",6),I(8,mte,6,7,"mat-error"),b()()),t&2){let e=w();p(3),O(e.formfield.label),p(),T(e.formfield.controlType==="input"?4:-1),p(),T(e.form.controls[e.formfield.controlName].hasError("max")?5:-1),p(),T(e.form.controls[e.formfield.controlName].hasError("min")?6:-1),p(),T(e.formfield.controlType==="select"?7:-1),p(),T(e.form.controls[e.formfield.controlName].hasError("required")?8:-1)}}function fte(t,i){if(t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),h(3,"strong"),C(4),k(5,"translate"),b()()),t&2){let e=w(2);p(),Et(" ",e.formfield.label," ",E(2,3,"labels.commons.is")," "),p(3),O(E(5,5,"labels.commons.required"))}}function hte(t,i){if(t&1){let e=le();h(0,"mat-form-field",8),N("click",function(){U(e);let o=Ft(6);return $(o.open())}),h(1,"mat-label"),C(2),b(),F(3,"input",9)(4,"mat-datepicker-toggle",10)(5,"mat-datepicker",null,0),I(7,fte,6,7,"mat-error"),b()}if(t&2){let e=Ft(6),n=w();p(2),O(n.formfield.label),p(),S("matDatepicker",e)("min",n.formfield.minDate)("max",n.formfield.maxDate)("formControlName",n.formfield.controlName)("required",n.formfield.required),p(),S("for",e),p(3),T(n.form.controls[n.formfield.controlName].hasError("required")?7:-1)}}function gte(t,i){if(t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),h(3,"strong"),C(4),k(5,"translate"),b()()),t&2){let e=w(2);p(),Et(" ",e.formfield.label," ",E(2,3,"labels.commons.is")," "),p(3),O(E(5,5,"labels.commons.required"))}}function _te(t,i){if(t&1){let e=le();h(0,"mat-form-field",8),N("click",function(){U(e);let o=w();return $(o.datePicker.open())}),h(1,"mat-label"),C(2),b(),F(3,"input",11),I(4,gte,6,7,"mat-error"),b()}if(t&2){let e=w();p(2),O(e.formfield.label),p(),S("min",e.formfield.minDate)("max",e.formfield.maxDate)("formControlName",e.formfield.controlName)("required",e.formfield.required),p(),T(e.form.controls[e.formfield.controlName].hasError("required")?4:-1)}}function bte(t,i){if(t&1&&(h(0,"mat-checkbox",4),C(1),b()),t&2){let e=w();S("checked",e.formfield.value)("formControlName",e.formfield.controlName)("required",e.formfield.required),p(),te(" ",e.formfield.label," ")}}var Bf=(()=>{class t{constructor(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=L({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),I(1,pte,9,6,"div",2),I(2,hte,8,8,"mat-form-field",3),I(3,_te,5,6,"mat-form-field",3),I(4,bte,2,4,"mat-checkbox",4),b()),n&2&&(S("formGroup",o.form),p(),T(o.formfield.controlType==="input"||o.formfield.controlType==="select"?1:-1),p(),T(o.formfield.controlType==="datepicker"?2:-1),p(),T(o.formfield.controlType==="datetimepicker"?3:-1),p(),T(o.formfield.controlType==="checkbox"?4:-1))},dependencies:[ge,Ce,Di,fn,mr,Hr,gi,Go,Ht,Cn,bo,cs,ri,Qn,un,Vf,gu,Ff,fl,Le],encapsulation:2})}}return t})();function vte(t,i){}var dc=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 G9=(()=>{class t extends rc{_elementRef=d(X);_focusTrapFactory=d(t2);_config;_interactivityChecker=d(Qs);_ngZone=d(se);_focusMonitor=d(ln);_renderer=d(Je);_changeDetectorRef=d(we);_injector=d(ye);_platform=d(je);_document=d(De);_portalOutlet;_focusTrapped=new B;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=d(dc,{optional:!0})||new dc,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||xt(()=>{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=fo(),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=fo();return e===n||e.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=fo()))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(n,o){if(n&1&&me(Ei,7),n&2){let r;G(r=W())&&(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&&Xe(0,vte,0,0,"ng-template",0)},dependencies:[Ei],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit} +`],encapsulation:2})}return t})(),_u=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&&!kt(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))}},yte=new P("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=d(ye);return()=>ac(t)}}),Cte=new P("DialogData"),xte=new P("DefaultDialogConfig");function Mte(t){let i=Se(t),e=new j;return{valueSignal:i,get value(){return i()},change:e,ngOnDestroy(){e.complete()}}}var W9=(()=>{class t{_injector=d(ye);_defaultOptions=d(xte,{optional:!0});_parentDialog=d(t,{optional:!0,skipSelf:!0});_overlayContainer=d(Of);_idGenerator=d(He);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new B;_afterOpenedAtThisLevel=new B;_ariaHiddenElements=new Map;_scrollStrategy=d(yte);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=ji(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Qe(void 0)));constructor(){}open(e,n){let o=this._defaultOptions||new dc;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=Co(this._injector,r),s=new _u(a,n),c=this._attachContainer(a,s,n);if(s.containerInstance=c,!this.openDialogs.length){let u=this._overlayContainer.getContainerElement();c._focusTrapped?c._focusTrapped.pipe(Ve(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(u)}):this._hideNonDialogContentFromAssistiveTechnology(u)}return this._attachDialogContent(e,s,c,n),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){$9(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){$9(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),$9(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let n=new yo({positionStrategy:e.positionStrategy||Sa().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:dc,useValue:o},{provide:_u,useValue:n},{provide:I2,useValue:e}],s;o.container?typeof o.container=="function"?s=o.container:(s=o.container.type,a.push(...o.container.providers(o))):s=G9;let c=new Lo(s,o.viewContainerRef,ye.create({parent:r||this._injector,providers:a}));return e.attach(c).instance}_attachDialogContent(e,n,o,r){if(e instanceof it){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 qn(e,null,s,a))}else{let a=this._createInjector(r,n,o,this._injector),s=o.attachComponentPortal(new Lo(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:Cte,useValue:e.data},{provide:_u,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(vt,null,{optional:!0}))&&s.push({provide:vt,useValue:Mte(e.direction)}),ye.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 $9(t,i){let e=t.length;for(;e--;)i(t[e])}var sO=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[W9],imports:[Ai,vo,as,vo]})}return t})();function wte(t,i){}var vu=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},Y9="mdc-dialog--open",cO="mdc-dialog--opening",lO="mdc-dialog--closing",Dte=150,Ste=75,mO=(()=>{class t extends G9{_animationStateChanged=new j;_animationsEnabled=!Ue();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?uO(this._config.enterAnimationDuration)??Dte:0;_exitAnimationDuration=this._animationsEnabled?uO(this._config.exitAnimationDuration)??Ste:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(dO,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(cO,Y9)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Y9),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Y9),this._animationsEnabled?(this._hostElement.style.setProperty(dO,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(lO)),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(cO,lO)}_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=Oe(t)))(o||t)}})();static \u0275cmp=L({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,o){n&2&&(At("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),Xe(2,wte,0,0,"ng-template",2),b()())},dependencies:[Ei],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})(),dO="--mat-dialog-transition-duration";function uO(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 bu=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(bu||{}),qt=class{_ref;_config;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new B;_beforeClosed=new B;_result;_closeFallbackTimeout;_state=bu.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(Te(o=>o.state==="opened"),Ve(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(Te(o=>o.state==="closed"),Ve(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),mt(this.backdropClick(),this.keydownEvents().pipe(Te(o=>o.keyCode===27&&!this.disableClose&&!kt(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),q9(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(Te(n=>n.state==="closing"),Ve(1)).subscribe(n=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),n.totalTime+100)}),this._state=bu.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=bu.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function q9(t,i,e){return t._closeInteractionType=i,t.close(e)}var Tn=new P("MatMdcDialogData"),pO=new P("mat-mdc-dialog-default-options"),fO=new P("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(ye);return()=>ac(t)}}),Ji=(()=>{class t{_defaultOptions=d(pO,{optional:!0});_scrollStrategy=d(fO);_parentDialog=d(t,{optional:!0,skipSelf:!0});_idGenerator=d(He);_injector=d(ye);_dialog=d(W9);_animationsDisabled=Ue();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new B;_afterOpenedAtThisLevel=new B;dialogConfigClass=vu;_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=ji(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Qe(void 0)));constructor(){this._dialogRefConstructor=qt,this._dialogContainerType=mO,this._dialogDataToken=Tn}open(e,n){let o;n=q(q({},this._defaultOptions||new vu),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:Sa(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:dc,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})(),Rn=(()=>{class t{dialogRef=d(qt,{optional:!0});_elementRef=d(X);_dialog=d(Ji);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=gO(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){q9(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})(),hO=(()=>{class t{_dialogRef=d(qt,{optional:!0});_elementRef=d(X);_dialog=d(Ji);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=gO(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 hO{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=Oe(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&&At("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[ce]})}return t})(),Nn=(()=>{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([Yr])]})}return t})(),Fn=(()=>{class t extends hO{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(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 gO(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 Q9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[Ji],imports:[sO,Ai,vo,he,he]})}return t})();var _O=(()=>{class t{constructor(){}createFormGroup(e){let n={};return e.forEach(o=>{n[o.controlName]=o.required?new Qi(o.value,this.buildValidators(o)):new Qi(o.value,this.buildValidators(o))}),new Qk(n)}buildValidators(e){let n=[];return e.required&&n.push(on.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 kte=t=>[t,"responsive-column"],Ete=t=>({data:t});function Ite(t,i){if(t&1&&(h(0,"div",2),F(1,"mifosx-formfield",6),b()),t&2){let e=i.$implicit,n=w();S("ngClass","flex-"+n.layout.flex+" responsive-flex-full"),p(),S("formfield",e)("form",n.form)}}var Tte=2,ds=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(Tn),this.formGroupService=d(_O),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?Tte: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=L({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),C(1),b(),h(2,"div",1),et(3,Ite,2,3,"div",2,gt),b(),h(5,"mat-dialog-actions",3)(6,"button",4),C(7),k(8,"translate"),b(),h(9,"button",5),C(10),k(11,"translate"),b()()),n&2&&(p(),O(o.data.title),p(),S("formGroup",o.form)("ngClass",jo(11,kte,o.layout.columns>1?"flex flex-wrap gap-"+o.layout.gap+"percent":"layout-column")),p(),tt(o.formfields),p(4),O(E(8,7,"labels.buttons."+o.layout.cancelButtonText)),p(2),S("mat-dialog-close",jo(13,Ete,o.form))("disabled",!o.form.valid||o.form.pristine),p(),te(" ",E(11,9,"labels.buttons."+o.layout.addButtonText)," "))},dependencies:[ge,Gn,Ce,mr,gi,yt,xn,Nn,Bf,Fn,Rn,Le],encapsulation:2})}}return t})();var Ote=()=>({delete:!0}),Qr=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(Tn)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=L({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),C(1),k(2,"translate"),b(),h(3,"div",1)(4,"p"),C(5),k(6,"translate"),b()(),h(7,"mat-dialog-actions",2)(8,"button",3),C(9),k(10,"translate"),b(),h(11,"button",4),C(12),k(13,"translate"),b()()),n&2&&(p(),O(E(2,6,"labels.heading.Delete")),p(4),Et("",E(6,8,"labels.text.Are you sure you want to delete")," ",o.data.deleteContext," ?"),p(4),O(E(10,10,"labels.buttons.Cancel")),p(2),S("mat-dialog-close",Bo(14,Ote)),p(),te(" ",E(13,12,"labels.buttons.Confirm")," "))},dependencies:[ge,Ce,yt,xn,Nn,Fn,Rn,Le],encapsulation:2})}}return t})();var Lte=()=>({cancel:!0});function Pte(t,i){t&1&&(h(0,"p"),C(1),k(2,"translate"),b()),t&2&&(p(),te("",E(2,1,"labels.text.Are you sure you want to leave this page and lose all inputted data"),"?"))}function Ate(t,i){if(t&1&&(h(0,"p"),C(1),k(2,"translate"),b()),t&2){let e=w();p(),Et("",E(2,2,"labels.text.Are you sure you want to cancel")," ",e.data.cancelContext," ?")}}var bO=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(Tn)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=L({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),C(1),k(2,"translate"),b(),h(3,"div",1),I(4,Pte,3,3,"p"),I(5,Ate,3,4,"p"),b(),h(6,"mat-dialog-actions",2)(7,"button",3),C(8),k(9,"translate"),b(),h(10,"button",4),C(11),k(12,"translate"),b()()),n&2&&(p(),O(E(2,6,"labels.buttons.Cancel")),p(3),T(o.data.cancelContext?-1:4),p(),T(o.data.cancelContext?5:-1),p(3),O(E(9,8,"labels.buttons.No")),p(2),S("mat-dialog-close",Bo(12,Lte)),p(),te(" ",E(12,10,"labels.buttons.Yes")," "))},dependencies:[ge,Ce,yt,xn,Nn,Fn,Rn,Le],encapsulation:2})}}return t})();function ib(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 Mt(t,i,e){return(i=XO(i))in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}function Vte(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Bte(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,u=!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){u=!0,o=f}finally{try{if(!c&&e.return!=null&&(a=e.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function jte(){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 Hte(){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 yO(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 ve(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 Lie="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function TO(){for(var t=12,i="";t-- >0;)i+=Lie[Math.random()*62|0];return i}function B2(t){for(var i=[],e=(t||[]).length>>>0;e--;)i[e]=t[e];return i}function Mb(t){return t.classList?B2(t.classList):(t.getAttribute("class")||"").split(" ").filter(function(i){return i})}function OL(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Pie(t){return Object.keys(t||{}).reduce(function(i,e){return i+"".concat(e,'="').concat(OL(t[e]),'" ')},"").trim()}function Kf(t){return Object.keys(t||{}).reduce(function(i,e){return i+"".concat(e,": ").concat(t[e].trim(),";")},"")}function wb(t){return t.size!==Ea.size||t.x!==Ea.x||t.y!==Ea.y||t.rotate!==Ea.rotate||t.flipX||t.flipY}function Aie(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)},u={transform:"translate(".concat(n/2*-1," -256)")};return{outer:o,inner:c,path:u}}function zie(t){var i=t.transform,e=t.width,n=e===void 0?rb:e,o=t.height,r=o===void 0?rb:o,a=t.startCentered,s=a===void 0?!1:a,c="";return s&&tL?c+="translate(".concat(i.x/uc-n/2,"em, ").concat(i.y/uc-r/2,"em) "):s?c+="translate(calc(-50% + ".concat(i.x/uc,"em), calc(-50% + ").concat(i.y/uc,"em)) "):c+="translate(".concat(i.x/uc,"em, ").concat(i.y/uc,"em) "),c+="scale(".concat(i.size/uc*(i.flipX?-1:1),", ").concat(i.size/uc*(i.flipY?-1:1),") "),c+="rotate(".concat(i.rotate,"deg) "),c}var Rie=`: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"; @@ -600,49 +600,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 JT(){var t=GT,i=WT,e=$e.cssPrefix,n=$e.replacementClass,o=iie;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 ZO=!1;function B9(){$e.autoAddCss&&!ZO&&(Zne(JT()),ZO=!0)}var oie={mixout:function(){return{dom:{css:JT,insertCss:B9}}},hooks:function(){return{beforeDOMElementCreation:function(){B9()},beforeI2svg:function(){B9()}}}},cs=cc||{};cs[ss]||(cs[ss]={});cs[ss].styles||(cs[ss].styles={});cs[ss].hooks||(cs[ss].hooks={});cs[ss].shims||(cs[ss].shims=[]);var Wr=cs[ss],eP=[],tP=function(){Mn.removeEventListener("DOMContentLoaded",tP),Gf=1,eP.map(function(i){return i()})},Gf=!1;ls&&(Gf=(Mn.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Mn.readyState),Gf||Mn.addEventListener("DOMContentLoaded",tP));function rie(t){ls&&(Gf?setTimeout(t,0):eP.push(t))}function xu(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"?ZT(t):"<".concat(i," ").concat(eie(n),">").concat(r.map(xu).join(""),"")}function JO(t,i,e){if(t&&t[i]&&t[i][e])return{prefix:i,iconName:e,icon:t[i][e]}}var aie=function(i,e){return function(n,o,r,a){return i.call(e,n,o,r,a)}},j9=function(i,e,n,o){var r=Object.keys(i),a=r.length,s=o!==void 0?aie(e,o):e,c,u,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=eT(i);typeof Wr.hooks.addPack=="function"&&!o?Wr.hooks.addPack(t,eT(i)):Wr.styles[t]=ve(ve({},Wr.styles[t]||{}),r),t==="fas"&&X9("fa",i)}var vu=Wr.styles,sie=Wr.shims,iP=Object.keys(lb),cie=iP.reduce(function(t,i){return t[i]=Object.keys(lb[i]),t},{}),mb=null,oP={},rP={},aP={},sP={},cP={};function lie(t){return~Yne.indexOf(t)}function die(t,i){var e=i.split("-"),n=e[0],o=e.slice(1).join("-");return n===t&&o!==""&&!lie(o)?o:null}var lP=function(){var i=function(r){return j9(vu,function(a,s,c){return a[c]=j9(s,r,{}),a},{})};oP=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}),rP=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}),cP=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 vu||$e.autoFetchSvg,n=j9(sie,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:{}});aP=n.names,sP=n.unicodes,mb=Qf($e.styleDefault,{family:$e.familyDefault})};Xne(function(t){mb=Qf(t.styleDefault,{family:$e.familyDefault})});lP();function pb(t,i){return(oP[t]||{})[i]}function uie(t,i){return(rP[t]||{})[i]}function Cl(t,i){return(cP[t]||{})[i]}function dP(t){return aP[t]||{prefix:null,iconName:null}}function mie(t){var i=sP[t],e=pb("fas",t);return i||(e?{prefix:"fas",iconName:e}:null)||{prefix:null,iconName:null}}function lc(){return mb}var uP=function(){return{prefix:null,iconName:null,rest:[]}};function pie(t){var i=Ai,e=iP.reduce(function(n,o){return n[o]="".concat($e.cssPrefix,"-").concat(o),n},{});return jT.forEach(function(n){(t.includes(e[n])||t.some(function(o){return cie[n].includes(o)}))&&(i=n)}),i}function Qf(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=i.family,n=e===void 0?Ai:e,o=Une[n][t];if(n===yu&&!t)return"fad";var r=QO[n][t]||QO[n][o],a=t in Wr.styles?t:null,s=r||a||null;return s}function fie(t){var i=[],e=null;return t.forEach(function(n){var o=die($e.cssPrefix,n);o?e=o:n&&i.push(n)}),{iconName:e,rest:i}}function tT(t){return t.sort().filter(function(i,e,n){return n.indexOf(i)===e})}var nT=UT.concat(HT);function Kf(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=i.skipLookups,n=e===void 0?!1:e,o=null,r=tT(t.filter(function(x){return nT.includes(x)})),a=tT(t.filter(function(x){return!nT.includes(x)})),s=r.filter(function(x){return o=x,!wT.includes(x)}),c=qf(s,1),u=c[0],f=u===void 0?null:u,b=pie(r),y=ve(ve({},fie(a)),{},{prefix:Qf(f,{family:b})});return ve(ve(ve({},y),bie({values:t,family:b,styles:vu,config:$e,canonical:y,givenPrefix:o})),hie(n,o,y))}function hie(t,i,e){var n=e.prefix,o=e.iconName;if(t||!n||!o)return{prefix:n,iconName:o};var r=i==="fa"?dP(o):{},a=Cl(n,o);return o=r.iconName||a||o,n=r.prefix||n,n==="far"&&!vu.far&&vu.fas&&!$e.autoFetchSvg&&(n="fas"),{prefix:n,iconName:o}}var gie=jT.filter(function(t){return t!==Ai||t!==yu}),_ie=Object.keys(G9).filter(function(t){return t!==Ai}).map(function(t){return Object.keys(G9[t])}).flat();function bie(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,u=c===void 0?{}:c,f=e===yu,b=i.includes("fa-duotone")||i.includes("fad"),y=u.familyDefault==="duotone",x=n.prefix==="fad"||n.prefix==="fa-duotone";if(!f&&(b||y||x)&&(n.prefix="fad"),(i.includes("fa-brands")||i.includes("fab"))&&(n.prefix="fab"),!n.prefix&&gie.includes(e)){var D=Object.keys(s).find(function(Q){return _ie.includes(Q)});if(D||u.autoFetchSvg){var q=Rte.get(e).defaultShortPrefixId;n.prefix=q,n.iconName=Cl(n.prefix,n.iconName)||n.iconName}}return(n.prefix==="fa"||r==="fa")&&(n.prefix=lc()||"fas"),n}var vie=(function(){function t(){ote(this,t),this.definitions={}}return rte(t,[{key:"add",value:function(){for(var e=this,n=arguments.length,o=new Array(n),r=0;r0&&f.forEach(function(b){typeof b=="string"&&(e[s][b]=u)}),e[s][c]=u}),e}}])})(),iT=[],L2={},A2={},yie=Object.keys(A2);function Cie(t,i){var e=i.mixoutsTo;return iT=t,L2={},Object.keys(A2).forEach(function(n){yie.indexOf(n)===-1&&delete A2[n]}),iT.forEach(function(n){var o=n.mixout?n.mixout():{};if(Object.keys(o).forEach(function(a){typeof o[a]=="function"&&(e[a]=o[a]),$f(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){L2[a]||(L2[a]=[]),L2[a].push(r[a])})}n.provides&&n.provides(A2)}),e}function Z9(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 ls?(Ml("beforeI2svg",i),dc("pseudoElements2svg",i),dc("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,rie(function(){Die({autoReplaceSvgRoot:e}),Ml("watch",i)})}},wie={icon:function(i){if(i===null)return null;if($f(i)==="object"&&i.prefix&&i.iconName)return{prefix:i.prefix,iconName:Cl(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=Qf(i[0]);return{prefix:n,iconName:Cl(n,e)||e}}if(typeof i=="string"&&(i.indexOf("".concat($e.cssPrefix,"-"))>-1||i.match($ne))){var o=Kf(i.split(" "),{skipLookups:!0});return{prefix:o.prefix||lc(),iconName:Cl(o.prefix,o.iconName)||o.iconName}}if(typeof i=="string"){var r=lc();return{prefix:r,iconName:Cl(r,i)||i}}}},Wo={noAuto:xie,config:$e,dom:Mie,parse:wie,library:mP,findIconDefinition:J9,toHtml:xu},Die=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=i.autoReplaceSvgRoot,n=e===void 0?Mn:e;(Object.keys(Wr.styles).length>0||$e.autoFetchSvg)&&ls&&$e.autoReplaceSvg&&Wo.dom.i2svg({node:n})};function Xf(t,i){return Object.defineProperty(t,"abstract",{get:i}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(n){return xu(n)})}}),Object.defineProperty(t,"node",{get:function(){if(ls){var n=Mn.createElement("div");return n.innerHTML=t.html,n.children}}}),t}function Sie(t){var i=t.children,e=t.main,n=t.mask,o=t.attributes,r=t.styles,a=t.transform;if(ub(a)&&e.found&&!n.found){var s=e.width,c=e.height,u={x:s/c/2,y:.5};o.style=Yf(ve(ve({},r),{},{"transform-origin":"".concat(u.x+a.x/16,"em ").concat(u.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:i}]}function kie(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:ve(ve({},o),{},{id:a}),children:n}]}]}function Eie(t){var i=["aria-label","aria-labelledby","title","role"];return i.some(function(e){return e in t})}function fb(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,u=t.extra,f=t.watchable,b=f===void 0?!1:f,y=n.found?n:e,x=y.width,D=y.height,q=[$e.replacementClass,r?"".concat($e.cssPrefix,"-").concat(r):""].filter(function(Bt){return u.classes.indexOf(Bt)===-1}).filter(function(Bt){return Bt!==""||!!Bt}).concat(u.classes).join(" "),Q={children:[],attributes:ve(ve({},u.attributes),{},{"data-prefix":o,"data-icon":r,class:q,role:u.attributes.role||"img",viewBox:"0 0 ".concat(x," ").concat(D)})};!Eie(u.attributes)&&!u.attributes["aria-hidden"]&&(Q.attributes["aria-hidden"]="true"),b&&(Q.attributes[xl]="");var K=ve(ve({},Q),{},{prefix:o,iconName:r,main:e,mask:n,maskId:c,transform:a,symbol:s,styles:ve({},u.styles)}),pe=n.found&&e.found?dc("generateAbstractMask",K)||{children:[],attributes:{}}:dc("generateAbstractIcon",K)||{children:[],attributes:{}},ut=pe.children,wt=pe.attributes;return K.children=ut,K.attributes=wt,s?kie(K):Sie(K)}function oT(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=ve(ve({},r.attributes),{},{class:r.classes.join(" ")});s&&(c[xl]="");var u=ve({},r.styles);ub(o)&&(u.transform=nie({transform:o,startCentered:!0,width:e,height:n}),u["-webkit-transform"]=u.transform);var f=Yf(u);f.length>0&&(c.style=f);var b=[];return b.push({tag:"span",attributes:c,children:[i]}),b}function Iie(t){var i=t.content,e=t.extra,n=ve(ve({},e.attributes),{},{class:e.classes.join(" ")}),o=Yf(e.styles);o.length>0&&(n.style=o);var r=[];return r.push({tag:"span",attributes:n,children:[i]}),r}var H9=Wr.styles;function eb(t){var i=t[0],e=t[1],n=t.slice(4),o=qf(n,1),r=o[0],a=null;return Array.isArray(r)?a={tag:"g",attributes:{class:"".concat($e.cssPrefix,"-").concat(V9.GROUP)},children:[{tag:"path",attributes:{class:"".concat($e.cssPrefix,"-").concat(V9.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat($e.cssPrefix,"-").concat(V9.PRIMARY),fill:"currentColor",d:r[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:i,height:e,icon:a}}var Oie={found:!1,width:512,height:512};function Tie(t,i){!YT&&!$e.showMissingIcons&&t&&console.error('Icon with name "'.concat(t,'" and prefix "').concat(i,'" is missing.'))}function tb(t,i){var e=i;return i==="fa"&&$e.styleDefault!==null&&(i=lc()),new Promise(function(n,o){if(e==="fa"){var r=dP(t)||{};t=r.iconName||t,i=r.prefix||i}if(t&&i&&H9[i]&&H9[i][t]){var a=H9[i][t];return n(eb(a))}Tie(t,i),n(ve(ve({},Oie),{},{icon:$e.showMissingIcons&&t?dc("missingIconAbstract")||{}:{}}))})}var rT=function(){},nb=$e.measurePerformance&&Vf&&Vf.mark&&Vf.measure?Vf:{mark:rT,measure:rT},gu='FA "7.1.0"',Pie=function(i){return nb.mark("".concat(gu," ").concat(i," begins")),function(){return pP(i)}},pP=function(i){nb.mark("".concat(gu," ").concat(i," ends")),nb.measure("".concat(gu," ").concat(i),"".concat(gu," ").concat(i," begins"),"".concat(gu," ").concat(i," ends"))},hb={begin:Pie,end:pP},Hf=function(){};function aT(t){var i=t.getAttribute?t.getAttribute(xl):null;return typeof i=="string"}function Lie(t){var i=t.getAttribute?t.getAttribute(sb):null,e=t.getAttribute?t.getAttribute(cb):null;return i&&e}function Aie(t){return t&&t.classList&&t.classList.contains&&t.classList.contains($e.replacementClass)}function Rie(){if($e.autoReplaceSvg===!0)return Uf.replace;var t=Uf[$e.autoReplaceSvg];return t||Uf.replace}function zie(t){return Mn.createElementNS("http://www.w3.org/2000/svg",t)}function Nie(t){return Mn.createElement(t)}function fP(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=i.ceFn,n=e===void 0?t.tag==="svg"?zie:Nie: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(fP(a,{ceFn:n}))}),o}function Fie(t){var i=" ".concat(t.outerHTML," ");return i="".concat(i,"Font Awesome fontawesome.com "),i}var Uf={replace:function(i){var e=i[0];if(e.parentNode)if(i[1].forEach(function(o){e.parentNode.insertBefore(fP(o),e)}),e.getAttribute(xl)===null&&$e.keepOriginalSource){var n=Mn.createComment(Fie(e));e.parentNode.replaceChild(n,e)}else e.remove()},nest:function(i){var e=i[0],n=i[1];if(~db(e).indexOf($e.replacementClass))return Uf.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 xu(s)}).join(` -`);e.setAttribute(xl,""),e.innerHTML=a}};function sT(t){t()}function hP(t,i){var e=typeof i=="function"?i:Hf;if(t.length===0)e();else{var n=sT;$e.mutateApproach===jne&&(n=cc.requestAnimationFrame||sT),n(function(){var o=Rie(),r=hb.begin("mutate");t.map(o),r(),e()})}}var gb=!1;function gP(){gb=!0}function ib(){gb=!1}var Wf=null;function cT(t){if(GO&&$e.observeMutations){var i=t.treeCallback,e=i===void 0?Hf:i,n=t.nodeCallback,o=n===void 0?Hf:n,r=t.pseudoElementsCallback,a=r===void 0?Hf:r,s=t.observeMutationsRoot,c=s===void 0?Mn:s;Wf=new GO(function(u){if(!gb){var f=lc();z2(u).forEach(function(b){if(b.type==="childList"&&b.addedNodes.length>0&&!aT(b.addedNodes[0])&&($e.searchPseudoElements&&a(b.target),e(b.target)),b.type==="attributes"&&b.target.parentNode&&$e.searchPseudoElements&&a([b.target],!0),b.type==="attributes"&&aT(b.target)&&~qne.indexOf(b.attributeName))if(b.attributeName==="class"&&Lie(b.target)){var y=Kf(db(b.target)),x=y.prefix,D=y.iconName;b.target.setAttribute(sb,x||f),D&&b.target.setAttribute(cb,D)}else Aie(b.target)&&o(b.target)})}}),ls&&Wf.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Vie(){Wf&&Wf.disconnect()}function Bie(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 jie(t){var i=t.getAttribute("data-prefix"),e=t.getAttribute("data-icon"),n=t.innerText!==void 0?t.innerText.trim():"",o=Kf(db(t));return o.prefix||(o.prefix=lc()),i&&e&&(o.prefix=i,o.iconName=e),o.iconName&&o.prefix||(o.prefix&&n.length>0&&(o.iconName=uie(o.prefix,t.innerText)||pb(o.prefix,nP(t.innerText))),!o.iconName&&$e.autoFetchSvg&&t.firstChild&&t.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=t.firstChild.data)),o}function Hie(t){var i=z2(t.attributes).reduce(function(e,n){return e.name!=="class"&&e.name!=="style"&&(e[n.name]=n.value),e},{});return i}function Uie(){return{iconName:null,prefix:null,transform:wa,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function lT(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},e=jie(t),n=e.iconName,o=e.prefix,r=e.rest,a=Hie(t),s=Z9("parseNodeAttributes",{},t),c=i.styleParser?Bie(t):[];return ve({iconName:n,prefix:o,transform:wa,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:r,styles:c,attributes:a}},s)}var $ie=Wr.styles;function _P(t){var i=$e.autoReplaceSvg==="nest"?lT(t,{styleParser:!1}):lT(t);return~i.extra.classes.indexOf(KT)?dc("generateLayersText",t,i):dc("generateSvgReplacementMutation",t,i)}function Gie(){return[].concat(qr(HT),qr(UT))}function dT(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!ls)return Promise.resolve();var e=Mn.documentElement.classList,n=function(b){return e.add("".concat(YO,"-").concat(b))},o=function(b){return e.remove("".concat(YO,"-").concat(b))},r=$e.autoFetchSvg?Gie():wT.concat(Object.keys($ie));r.includes("fa")||r.push("fa");var a=[".".concat(KT,":not([").concat(xl,"])")].concat(r.map(function(f){return".".concat(f,":not([").concat(xl,"])")})).join(", ");if(a.length===0)return Promise.resolve();var s=[];try{s=z2(t.querySelectorAll(a))}catch{}if(s.length>0)n("pending"),o("complete");else return Promise.resolve();var c=hb.begin("onTree"),u=s.reduce(function(f,b){try{var y=_P(b);y&&f.push(y)}catch(x){YT||x.name==="MissingIcon"&&console.error(x)}return f},[]);return new Promise(function(f,b){Promise.all(u).then(function(y){hP(y,function(){n("active"),n("complete"),o("pending"),typeof i=="function"&&i(),c(),f()})}).catch(function(y){c(),b(y)})})}function Wie(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;_P(t).then(function(e){e&&hP([e],i)})}function qie(t){return function(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(i||{}).icon?i:J9(i||{}),o=e.mask;return o&&(o=(o||{}).icon?o:J9(o||{})),t(n,ve(ve({},e),{},{mask:o}))}}var Yie=function(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transform,o=n===void 0?wa:n,r=e.symbol,a=r===void 0?!1:r,s=e.mask,c=s===void 0?null:s,u=e.maskId,f=u===void 0?null:u,b=e.classes,y=b===void 0?[]:b,x=e.attributes,D=x===void 0?{}:x,q=e.styles,Q=q===void 0?{}:q;if(i){var K=i.prefix,pe=i.iconName,ut=i.icon;return Xf(ve({type:"icon"},i),function(){return Ml("beforeDOMElementCreation",{iconDefinition:i,params:e}),fb({icons:{main:eb(ut),mask:c?eb(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:K,iconName:pe,transform:ve(ve({},wa),o),symbol:a,maskId:f,extra:{attributes:D,styles:Q,classes:y}})})}},Qie={mixout:function(){return{icon:qie(Yie)}},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=dT,e.nodeCallback=Wie,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 dT(o,a)},i.generateSvgReplacementMutation=function(e,n){var o=n.iconName,r=n.prefix,a=n.transform,s=n.symbol,c=n.mask,u=n.maskId,f=n.extra;return new Promise(function(b,y){Promise.all([tb(o,r),c.iconName?tb(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(x){var D=qf(x,2),q=D[0],Q=D[1];b([e,fb({icons:{main:q,mask:Q},prefix:r,iconName:o,transform:a,symbol:s,maskId:u,extra:f,watchable:!0})])}).catch(y)})},i.generateAbstractIcon=function(e){var n=e.children,o=e.attributes,r=e.main,a=e.transform,s=e.styles,c=Yf(s);c.length>0&&(o.style=c);var u;return ub(a)&&(u=dc("generateAbstractTransformGrouping",{main:r,transform:a,containerWidth:r.width,iconWidth:r.width})),n.push(u||r.icon),{children:n,attributes:o}}}},Kie={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 Xf({type:"layer"},function(){Ml("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(qr(r)).join(" ")},children:a}]})}}}},Xie={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,u=c===void 0?{}:c,f=n.styles,b=f===void 0?{}:f;return Xf({type:"counter",content:e},function(){return Ml("beforeDOMElementCreation",{content:e,params:n}),Iie({content:e.toString(),title:r,extra:{attributes:u,styles:b,classes:["".concat($e.cssPrefix,"-layers-counter")].concat(qr(s))}})})}}}},Zie={mixout:function(){return{text:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.transform,r=o===void 0?wa:o,a=n.classes,s=a===void 0?[]:a,c=n.attributes,u=c===void 0?{}:c,f=n.styles,b=f===void 0?{}:f;return Xf({type:"text",content:e},function(){return Ml("beforeDOMElementCreation",{content:e,params:n}),oT({content:e,transform:ve(ve({},wa),r),extra:{attributes:u,styles:b,classes:["".concat($e.cssPrefix,"-layers-text")].concat(qr(s))}})})}}},provides:function(i){i.generateLayersText=function(e,n){var o=n.transform,r=n.extra,a=null,s=null;if(xT){var c=parseInt(getComputedStyle(e).fontSize,10),u=e.getBoundingClientRect();a=u.width/c,s=u.height/c}return Promise.resolve([e,oT({content:e.innerHTML,width:a,height:s,transform:o,extra:r,watchable:!0})])}}},bP=new RegExp('"',"ug"),uT=[1105920,1112319],mT=ve(ve(ve(ve({},{FontAwesome:{normal:"fas",400:"fas"}}),Ate),Vne),Ute),ob=Object.keys(mT).reduce(function(t,i){return t[i.toLowerCase()]=mT[i],t},{}),Jie=Object.keys(ob).reduce(function(t,i){var e=ob[i];return t[i]=e[900]||qr(Object.entries(e))[0][1],t},{});function eoe(t){var i=t.replace(bP,"");return nP(qr(i)[0]||"")}function toe(t){var i=t.getPropertyValue("font-feature-settings").includes("ss01"),e=t.getPropertyValue("content"),n=e.replace(bP,""),o=n.codePointAt(0),r=o>=uT[0]&&o<=uT[1],a=n.length===2?n[0]===n[1]:!1;return r||a||i}function noe(t,i){var e=t.replace(/^['"]|['"]$/g,"").toLowerCase(),n=parseInt(i),o=isNaN(n)?"normal":n;return(ob[e]||{})[o]||Jie[e]}function pT(t,i){var e="".concat(Bne).concat(i.replace(":","-"));return new Promise(function(n,o){if(t.getAttribute(e)!==null)return n();var r=z2(t.children),a=r.filter(function(en){return en.getAttribute(q9)===i})[0],s=cc.getComputedStyle(t,i),c=s.getPropertyValue("font-family"),u=c.match(Gne),f=s.getPropertyValue("font-weight"),b=s.getPropertyValue("content");if(a&&!u)return t.removeChild(a),n();if(u&&b!=="none"&&b!==""){var y=s.getPropertyValue("content"),x=noe(c,f),D=eoe(y),q=u[0].startsWith("FontAwesome"),Q=toe(s),K=pb(x,D),pe=K;if(q){var ut=mie(D);ut.iconName&&ut.prefix&&(K=ut.iconName,x=ut.prefix)}if(K&&!Q&&(!a||a.getAttribute(sb)!==x||a.getAttribute(cb)!==pe)){t.setAttribute(e,pe),a&&t.removeChild(a);var wt=Uie(),Bt=wt.extra;Bt.attributes[q9]=i,tb(K,x).then(function(en){var qo=fb(ve(ve({},wt),{},{icons:{main:en,mask:uP()},prefix:x,iconName:pe,extra:Bt,watchable:!0})),si=Mn.createElementNS("http://www.w3.org/2000/svg","svg");i==="::before"?t.insertBefore(si,t.firstChild):t.appendChild(si),si.outerHTML=qo.map(function(El){return xu(El)}).join(` -`),t.removeAttribute(e),n()}).catch(o)}else n()}else n()})}function ioe(t){return Promise.all([pT(t,"::before"),pT(t,"::after")])}function ooe(t){return t.parentNode!==document.head&&!~Hne.indexOf(t.tagName.toUpperCase())&&!t.getAttribute(q9)&&(!t.parentNode||t.parentNode.tagName!=="svg")}var roe=function(i){return!!i&&qT.some(function(e){return i.includes(e)})},aoe=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(u){return u.trim()})});var o=jf(n),r;try{for(o.s();!(r=o.n()).done;){var a=r.value;if(roe(a)){var s=qT.reduce(function(c,u){return c.replace(u,"")},a);s!==""&&s!=="*"&&e.add(s)}}}catch(c){o.e(c)}finally{o.f()}return e};function fT(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ls){var e;if(i)e=t;else if($e.searchPseudoElementsFullScan)e=t.querySelectorAll("*");else{var n=new Set,o=jf(document.styleSheets),r;try{for(o.s();!(r=o.n()).done;){var a=r.value;try{var s=jf(a.cssRules),c;try{for(s.s();!(c=s.n()).done;){var u=c.value,f=aoe(u.selectorText),b=jf(f),y;try{for(b.s();!(y=b.n()).done;){var x=y.value;n.add(x)}}catch(q){b.e(q)}finally{b.f()}}}catch(q){s.e(q)}finally{s.f()}}catch(q){$e.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(a.href," (").concat(q.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(q){o.e(q)}finally{o.f()}if(!n.size)return;var D=Array.from(n).join(", ");try{e=t.querySelectorAll(D)}catch{}}return new Promise(function(q,Q){var K=z2(e).filter(ooe).map(ioe),pe=hb.begin("searchPseudoElements");gP(),Promise.all(K).then(function(){pe(),ib(),q()}).catch(function(){pe(),ib(),Q()})})}}var soe={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=fT,e}}},provides:function(i){i.pseudoElements2svg=function(e){var n=e.node,o=n===void 0?Mn:n;$e.searchPseudoElements&&fT(o)}}},hT=!1,coe={mixout:function(){return{dom:{unwatch:function(){gP(),hT=!0}}}},hooks:function(){return{bootstrap:function(){cT(Z9("mutationObserverCallbacks",{}))},noAuto:function(){Vie()},watch:function(e){var n=e.observeMutationsRoot;hT?ib():cT(Z9("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},gT=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)},loe={mixout:function(){return{parse:{transform:function(e){return gT(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,n){var o=n.getAttribute("data-fa-transform");return o&&(e.transform=gT(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,") "),u="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),f="rotate(".concat(o.rotate," 0 0)"),b={transform:"".concat(c," ").concat(u," ").concat(f)},y={transform:"translate(".concat(a/2*-1," -256)")},x={outer:s,inner:b,path:y};return{tag:"g",attributes:ve({},x.outer),children:[{tag:"g",attributes:ve({},x.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:ve(ve({},n.icon.attributes),x.path)}]}]}}}},U9={x:0,y:0,width:"100%",height:"100%"};function _T(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 doe(t){return t.tag==="g"?t.children:[t]}var uoe={hooks:function(){return{parseNodeAttributes:function(e,n){var o=n.getAttribute("data-fa-mask"),r=o?Kf(o.split(" ").map(function(a){return a.trim()})):uP();return r.prefix||(r.prefix=lc()),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,u=r.width,f=r.icon,b=a.width,y=a.icon,x=tie({transform:c,containerWidth:b,iconWidth:u}),D={tag:"rect",attributes:ve(ve({},U9),{},{fill:"white"})},q=f.children?{children:f.children.map(_T)}:{},Q={tag:"g",attributes:ve({},x.inner),children:[_T(ve({tag:f.tag,attributes:ve(ve({},f.attributes),x.path)},q))]},K={tag:"g",attributes:ve({},x.outer),children:[Q]},pe="mask-".concat(s||XO()),ut="clip-".concat(s||XO()),wt={tag:"mask",attributes:ve(ve({},U9),{},{id:pe,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[D,K]},Bt={tag:"defs",children:[{tag:"clipPath",attributes:{id:ut},children:doe(y)},wt]};return n.push(Bt,{tag:"rect",attributes:ve({fill:"currentColor","clip-path":"url(#".concat(ut,")"),mask:"url(#".concat(pe,")")},U9)}),{children:n,attributes:o}}}},moe={provides:function(i){var e=!1;cc.matchMedia&&(e=cc.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:ve(ve({},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=ve(ve({},r),{},{attributeName:"opacity"}),s={tag:"circle",attributes:ve(ve({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return e||s.children.push({tag:"animate",attributes:ve(ve({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ve(ve({},a),{},{values:"1;0;1;1;0;1;"})}),n.push(s),n.push({tag:"path",attributes:ve(ve({},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:ve(ve({},a),{},{values:"1;0;0;0;0;1;"})}]}),e||n.push({tag:"path",attributes:ve(ve({},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:ve(ve({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},poe={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}}}},foe=[oie,Qie,Kie,Xie,Zie,soe,coe,loe,uoe,moe,poe];Cie(foe,{mixoutsTo:Wo});var GAe=Wo.noAuto,vP=Wo.config,WAe=Wo.library,yP=Wo.dom,CP=Wo.parse,qAe=Wo.findIconDefinition,YAe=Wo.toHtml,xP=Wo.icon,QAe=Wo.layer,hoe=Wo.text,goe=Wo.counter;var _oe=["*"],boe=(()=>{class t{defaultPrefix="fas";fallbackIcon=null;fixedWidth;set autoAddCss(e){vP.autoAddCss=e,this._autoAddCss=e}get autoAddCss(){return this._autoAddCss}_autoAddCss=!0;static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),bb=(()=>{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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),voe=t=>{throw new Error(`Could not find icon with iconName=${t.iconName} and prefix=${t.prefix} in the icon library.`)},yoe=()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")},wP=t=>t!=null&&(t===90||t===180||t===270||t==="90"||t==="180"||t==="270"),Coe=t=>{let i=wP(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)},_b=new WeakSet,MP="fa-auto-css";function xoe(t,i){if(!i.autoAddCss||_b.has(t))return;if(t.getElementById(MP)!=null){i.autoAddCss=!1,_b.add(t);return}let e=t.createElement("style");e.setAttribute("type","text/css"),e.setAttribute("id",MP),e.innerHTML=yP.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,_b.add(t)}var Moe=t=>t.prefix!==void 0&&t.iconName!==void 0,woe=(t,i)=>Moe(t)?t:Array.isArray(t)&&t.length===2?{prefix:t[0],iconName:t[1]}:{prefix:i,iconName:t},Doe=(()=>{class t{stackItemSize=P1("1x");size=P1();_effect=pa(()=>{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=R({type:t,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:[1,"stackItemSize"],size:[1,"size"]}})}return t})(),Soe=(()=>{class t{size=P1();classes=ti(()=>{let e=this.size(),n=e?{[`fa-${e}`]:!0}:{};return Ne(Y({},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&&Pt(o.classes())},inputs:{size:[1,"size"]},ngContentSelectors:_oe,decls:1,vars:0,template:function(n,o){n&1&&(ke(),ae(0))},encapsulation:2,changeDetection:0})}return t})(),Qt=(()=>{class t{icon=so();title=so();animation=so();mask=so();flip=so();size=so();pull=so();border=so();inverse=so();symbol=so();rotate=so();fixedWidth=so();transform=so();a11yRole=so();renderedIconHTML=ti(()=>{let e=this.icon()??this.config.fallbackIcon;if(!e)return yoe(),"";let n=this.findIconDefinition(e);if(!n)return"";let o=this.buildParams();xoe(this.document,this.config);let r=xP(n,o);return this.sanitizer.bypassSecurityTrustHtml(r.html.join(` -`))});document=d(De);sanitizer=d(Xa);config=d(boe);iconLibrary=d(bb);stackItem=d(Doe,{optional:!0});stack=d(Soe,{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=woe(e,this.config.defaultPrefix);if("icon"in n)return n;let o=this.iconLibrary.getIconDefinition(n.prefix,n.iconName);return o??(voe(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"?CP.transform(o):o,a=this.mask(),s=a!=null?this.findIconDefinition(a):null,c={},u=this.a11yRole();u!=null&&(c.role=u);let f={};return n.rotate!=null&&!wP(n.rotate)&&(f["--fa-rotate-angle"]=`${n.rotate}`),{title:this.title(),transform:r,classes:Coe(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&&(At("innerHTML",o.renderedIconHTML(),qc),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 DP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})();var koe=t=>({flex:t}),Zf=(()=>{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(){U(r);let s=Ft(9);return $(s.click())}),F(5,"fa-icon",6),C(6),k(7,"translate"),_()()(),h(8,"input",7,0),N("change",function(s){return U(r),$(o.onFileSelect(s))}),_()}n&2&&(p(),S("ngStyle",zo(10,koe,"0 0 "+(o.flex||"83%"))),p(),S("readonly",!0)("value",o.fileName||""),p(4),te(" \xA0\xA0 ",E(7,8,"labels.buttons.Browse")," "),p(2),Rt("display","none"),S("accept",Vt(o.acceptFilter)))},dependencies:[ge,w7,Ce,Ht,oi,yt,Qt,Pe],encapsulation:2})}}return t})();var N2=(()=>{class t{constructor(){this.http=d(kn),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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var SP=(()=>{class t{constructor(){this.http=d(kn),this.apiActuator=Ge.apiActuator}getBackendInfo(){return this.http.get(this.apiActuator+"/actuator/info")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var uc=(()=>{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})(),Jf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,he]})}return t})();function Eoe(t,i){if(t&1&&(h(0,"tr")(1,"td",5),C(2),k(3,"translate"),_(),h(4,"td",6),C(5),_()()),t&2){let e=w(2);p(2),T(E(3,2,"labels.inputs.Server")),p(3),te(" ",e.server," ")}}function Ioe(t,i){if(t&1&&(h(0,"tr")(1,"td",5),C(2),k(3,"translate"),_(),h(4,"td",10)(5,"b"),C(6),k(7,"date"),_()()()),t&2){let e=w(2);p(2),te("",E(3,2,"labels.text.Current Business Date"),":"),p(4),T(rr(7,4,e.businessDate,"EEEE, MMMM dd, y"))}}function Ooe(t,i){if(t&1&&(h(0,"div",1),F(1,"mat-divider",2),h(2,"div",3)(3,"table",4)(4,"tr")(5,"td",5),C(6,"Tenant"),_(),h(7,"td",6),C(8),k(9,"titlecase"),_()(),h(10,"tr")(11,"td",5),C(12,"Mifos"),_(),h(13,"td",6),C(14),h(15,"b"),C(16),_()()(),h(17,"tr")(18,"td",5),C(19),k(20,"translate"),_(),h(21,"td",6),C(22),h(23,"b"),C(24),_()()(),Xe(25,Eoe,6,4,"tr",7)(26,Ioe,8,7,"tr",7),_()(),h(27,"div",8)(28,"p",9),C(29),k(30,"translate"),k(31,"translate"),_()()()),t&2){let e=w();S("ngClass",Vt(e.styleClass)),p(8),te(" ",E(9,12,e.tenant)," "),p(6),te(" ",e.versions.mifos," - "),p(2),T(e.hash),p(3),T(E(20,14,"labels.text.Fineract")),p(3),te(" ",e.versions.fineract.version," - "),p(2),T(e.versions.fineract.hash),p(),S("ngIf",e.displayBackEndInfo),p(),S("ngIf",e.isBusinessDateDefined),p(3),Et("",E(30,16,"APP_NAME")," ",E(31,18,"labels.text.by")," Mifos")}}var kP=(()=>{class t{constructor(){this.systemService=d(N2),this.settingsService=d(Jt),this.authenticationService=d(gp),this.alertService=d(zs),this.dateUtils=d(wo),this.versionService=d(SP),this.styleClass="",this.versions={mifos:Ge.version,fineract:{version:"",hash:""}},this.hash=Ge.hash,this.server="",this.businessDate=null,this.isBusinessDateEnabled=!1,this.isBusinessDateDefined=!1,this.displayBackEndInfo=!0,this.displayBackEndInfo=Ge.displayBackEndInfo==="true"}ngOnInit(){this.displayBackEndInfo&&(this.alert$=this.alertService.alertEvent.subscribe(e=>{let n=e.type;n===Jt.businessDateType+" Set Config"?(this.isBusinessDateEnabled=e.message==="enabled",this.isBusinessDateDefined=!1,this.isBusinessDateEnabled&&this.setBusinessDate()):n===Jt.businessDateType+" Set"?this.isBusinessDateEnabled&&this.setBusinessDate():n==="Authentication Start"&&(this.timer=setTimeout(()=>{this.getConfigurations()},6e4))}),this.getConfigurations(),this.server=this.settingsService.server,this.tenant=this.tenantIdentifier(),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]}}))}tenantIdentifier(){return!this.settingsService.tenantIdentifier||this.settingsService.tenantIdentifier===""?"default":this.settingsService.tenantIdentifier}ngOnDestroy(){this.displayBackEndInfo&&clearTimeout(this.timer)}getConfigurations(){this.authenticationService.isAuthenticated()?this.systemService.getConfigurationByName(Jt.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(Jt.businessDateType).subscribe(e=>{this.businessDate=new Date(e.date),this.settingsService.setBusinessDate(this.dateUtils.formatDate(this.businessDate,Jt.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:1,vars:1,consts:[["class","layout-column m-b-20 f12","id","footer",3,"ngClass",4,"ngIf"],["id","footer",1,"layout-column","m-b-20","f12",3,"ngClass"],[1,"divider","align-center"],[1,"layout-column","m-b-20","content-wrapper","footer-center"],[1,"versions"],[1,"footer-content"],[1,"right","footer-content"],[4,"ngIf"],[1,"layout-column","m-b-20","copy-label"],[1,"footer-content","align-center"],[1,"center","footer-content","business-date"]],template:function(n,o){n&1&&Xe(0,Ooe,32,20,"div",0),n&2&&S("ngIf",o.displayBackEndInfo)},dependencies:[ge,$n,M7,Ce,uc,D7,A1,Pe],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 Toe(t,i){if(t&1&&(h(0,"mat-option",2),C(1),k(2,"translate"),_()),t&2){let e=i.$implicit;S("value",e),p(),te(" ",E(2,2,"languages."+e)," ")}}var EP=(()=>{class t{constructor(){this.translateService=d(Vo),this.settingsService=d(Jt),this.languageSelector=new Yi,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"),C(2),k(3,"translate"),_(),h(4,"mat-select",1),N("selectionChange",function(){return o.setLanguage()}),et(5,Toe,3,4,"mat-option",2,gt),_()()),n&2&&(p(2),T(E(3,2,"labels.inputs.Language")),p(2),S("formControl",o.languageSelector),p(),tt(o.languages))},dependencies:[ge,Ce,fn,Ti,Ht,Cn,Yn,un,Pe],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 IP=(()=>{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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var OP=(()=>{class t{constructor(){this.themeManagerService=d(IP),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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Poe=["mat-menu-item",""],Loe=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Aoe=["mat-icon, [matMenuItemIcon]","*"];function Roe(t,i){t&1&&(Gt(),h(0,"svg",2),F(1,"polygon",3),_())}var zoe=["*"];function Noe(t,i){if(t&1){let e=le();ot(0,"div",0),mm("click",function(){U(e);let o=w();return $(o.closed.emit("click"))})("animationstart",function(o){U(e);let r=w();return $(r._onAnimationStart(o.animationName))})("animationend",function(o){U(e);let r=w();return $(r._onAnimationDone(o.animationName))})("animationcancel",function(o){U(e);let r=w();return $(r._onAnimationDone(o.animationName))}),ot(1,"div",1),ae(2),st()()}if(t&2){let e=w();Pt(e._classList),oe("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),At("id",e.panelId),ne("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var yb=new L("MAT_MENU_PANEL"),wl=(()=>{class t{_elementRef=d(X);_document=d(De);_focusMonitor=d(ln);_parentMenu=d(yb,{optional:!0});_changeDetectorRef=d(we);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new B;_focused=new B;_highlighted=!1;_triggersSubmenu=!1;constructor(){d(ct).load(dn),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(X);_changeDetectorRef=d(we);_injector=d(ye);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=Ue();_allItems;_directDescendantItems=new On;_classList={};_panelAnimationState="void";_animationDone=new B;_isAnimating=Se(!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=Y({},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(Voe);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 Br(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Qe(this._directDescendantItems),rt(e=>mt(...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(Qe(this._directDescendantItems),rt(n=>mt(...n.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let n=e.keyCode,o=this._keyManager;switch(n){case 27:kt(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=xt(()=>{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(Y({},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===eh;(n||e===vb)&&(n&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(n?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===vb||e===eh)&&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(eh),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?vb:eh)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(Qe(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&&(Ie(r,Foe,5),Ie(r,wl,5),Ie(r,wl,4)),n&2){let a;G(a=W())&&(o.lazyContent=a.first),G(a=W())&&(o._allItems=a),G(a=W())&&(o.items=a)}},viewQuery:function(n,o){if(n&1&&me(it,5),n&2){let r;G(r=W())&&(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:yb,useExisting:t}])],ngContentSelectors:zoe,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&&(ke(),Tr(0,Noe,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})(),TP=new L("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(ye);return()=>bi(t)}});function joe(t){let i=d(ye);return()=>bi(i)}var Hoe={provide:TP,deps:[],useFactory:joe};var F2=new WeakMap,Uoe=(()=>{class t{_canHaveBackdrop;_element=d(X);_viewContainerRef=d(pt);_menuItemInstance=d(wl,{optional:!0,self:!0});_dir=d(vt,{optional:!0});_focusMonitor=d(ln);_ngZone=d(se);_injector=d(ye);_scrollStrategy=d(TP);_changeDetectorRef=d(we);_animationsDisabled=Ue();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=Ee.EMPTY;_menuCloseSubscription=Ee.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(yb,{optional:!0});this._parentMaterialMenu=n instanceof mc?n:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&F2.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=F2.get(n);F2.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 mc&&(n._setIsOpen(!0),n._directDescendantItems.changes.pipe(xe(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 mc&&this._ownsMenu(o)?(this._pendingRemoval=o._animationDone.pipe(Ve(1)).subscribe(()=>{n.detach(),F2.has(o)||o.lazyContent?.detach()}),o._setIsOpen(!1)):(n.detach(),o?.lazyContent?.detach()),o&&this._ownsMenu(o)&&F2.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=_o(this._injector,n),this._overlayRef.keydownEvents().subscribe(o=>{this._menu instanceof mc&&this._menu._handleKeydown(o)})}return this._overlayRef}_getOverlayConfig(e){return new go({positionStrategy:$r(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,u]=[a,s],[f,b]=[o,r],y=0;if(this._triggersSubmenu()){if(b=o=e.xPosition==="before"?"start":"end",r=f=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let x=this._parentMaterialMenu.items.first;this._parentInnerPadding=x?x._getHostElement().offsetTop:0}y=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(c=a==="top"?"bottom":"top",u=s==="top"?"bottom":"top");n.withPositions([{originX:o,originY:c,overlayX:f,overlayY:a,offsetY:y},{originX:r,originY:c,overlayX:b,overlayY:a,offsetY:y},{originX:o,originY:u,overlayX:f,overlayY:s,offsetY:-y},{originX:r,originY:u,overlayX:b,overlayY:s,offsetY:-y}])}_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(Oe(a=>this._menuOpen&&a!==this._menuItemInstance)):re();return mt(e,o,r,n)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new qn(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return F2.get(e)===this}static \u0275fac=function(n){Yc()};static \u0275dir=R({type:t})}return t})(),th=(()=>{class t extends Uoe{_cleanupTouchstart;_hoverSubscription=Ee.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(Je);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",n=>{ts(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){es(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=R({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 PP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[Hoe],imports:[Ei,he,Li,Si,he]})}return t})(),LP={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:{}}},xze=LP.fadeInItems,Mze=LP.transformMenu;var Mu=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[C9],imports:[ns,Li,he,he,Si]})}return t})();var nh=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 Cb(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} -`,RP=new L("MAT_GRID_LIST"),Db=(()=>{class t{_element=d(X);_gridList=d(RP,{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:AP,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(n,o){n&1&&(ke(),ot(0,"div",0),ae(1),st())},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 Goe=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,wu=class{_gutterSize;_rows=0;_rowspan=0;_cols;_direction;init(i,e,n,o){this._gutterSize=zP(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":Dl(`(${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",Dl(this.getTileSize(r,i.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(i){return`${this._rowspan} * ${this.getTileSize(i,1)}`}getComputedHeight(){return null}},xb=class extends wu{fixedRowHeight;constructor(i){super(),this.fixedRowHeight=i}init(i,e,n,o){super.init(i,e,n,o),this.fixedRowHeight=zP(this.fixedRowHeight),Goe.test(this.fixedRowHeight)}setRowStyles(i,e){i._setStyle("top",this.getTilePosition(this.fixedRowHeight,e)),i._setStyle("height",Dl(this.getTileSize(this.fixedRowHeight,i.rowspan)))}getComputedHeight(){return["height",Dl(`${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)})}},Mb=class extends wu{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",Dl(this.getTileSize(this.baseTileHeight,i.rowspan)))}getComputedHeight(){return["paddingBottom",Dl(`${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])}},wb=class extends wu{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",Dl(this.getTileSize(r,i.rowspan)))}reset(i){i._tiles&&i._tiles.forEach(e=>{e._setStyle("top",null),e._setStyle("height",null)})}};function Dl(t){return`calc(${t})`}function zP(t){return t.match(/([A-Za-z%]+)$/)?t:`${t}px`}var Woe="fit",NP=(()=>{class t{_element=d(X);_dir=d(vt,{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===Woe?this._tileStyler=new wb:e&&e.indexOf(":")>-1?this._tileStyler=new Mb(e):this._tileStyler=new xb(e)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new nh);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&&Ie(r,Db,5),n&2){let a;G(a=W())&&(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:RP,useExisting:t}])],ngContentSelectors:AP,decls:2,vars:0,template:function(n,o){n&1&&(ke(),ot(0,"div"),ae(1),st())},styles:[$oe],encapsulation:2,changeDetection:0})}return t})(),FP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[f9,he,f9,he]})}return t})();function qoe(t,i){t&1&&F(0,"fa-icon",7)}function Yoe(t,i){if(t&1){let e=le();h(0,"mat-grid-tile")(1,"div",5),N("click",function(){let o=U(e).$implicit,r=w();return $(r.installTheme(o))}),h(2,"div",6),I(3,qoe,1,0,"fa-icon",7),F(4,"div",8)(5,"div",9),_()()()}if(t&2){let e=i.$implicit,n=w();p(3),O(n.currentTheme.href===e.href?3:-1),p(),Rt("background",e.primary),p(),Rt("background",e.accent)}}var VP=(()=>{class t{constructor(){this.themeStorageService=d(OP),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),k(1,"translate"),F(2,"fa-icon",2),_(),h(3,"mat-menu",3,0)(5,"mat-grid-list",4),et(6,Yoe,6,5,"mat-grid-tile",null,gt),_()()),n&2){let r=Ft(4);S("matTooltip",Vt(E(1,3,"tooltips.Color Schemes")))("matMenuTriggerFor",r),p(6),tt(o.themes)}},dependencies:[ge,Ce,ri,th,vo,Qt,mc,NP,Db,wl,Pe],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 BP(){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 ih=class t{constructor(){this.minPasswordLength=Ge.minPasswordLength|12}static{this.PASSWORD_REGEX="^(?!.*(.)\\1{1,})(?!.*\\s)(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[^\\w\\s]).{"+(Ge.minPasswordLength|12)+",50}$"}getPasswordValidators(){return[on.required,on.minLength(this.minPasswordLength),on.maxLength(50),BP()]}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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}};var oh;function Qoe(){if(oh===void 0&&(oh=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(oh=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return oh}function Du(t){return Qoe()?.createHTML(t)||t}function jP(t){return Error(`Unable to find icon with the name "${t}"`)}function Koe(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function HP(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function UP(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var ds=class{url;svgText;options;svgElement;constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}},GP=(()=>{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 ds(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,o,r){let a=this._sanitizer.sanitize(Bn.HTML,o);if(!a)throw UP(o);let s=Du(a);return this._addSvgIconConfig(e,n,new ds("",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 ds(n,null,o))}addSvgIconSetLiteralInNamespace(e,n,o){let r=this._sanitizer.sanitize(Bn.HTML,n);if(!r)throw UP(n);let a=Du(r);return this._addSvgIconSetConfig(e,new ds("",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(Bn.RESOURCE_URL,e);if(!n)throw HP(e);let o=this._cachedIconsByUrl.get(n);return o?re(rh(o)):this._loadSvgIconFromConfig(new ds(e,null)).pipe(Dt(r=>this._cachedIconsByUrl.set(n,r)),ue(r=>rh(r)))}getNamedSvgIcon(e,n=""){let o=$P(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):Co(jP(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?re(rh(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(ue(n=>rh(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(Xn(s=>{let u=`Loading icon set URL: ${this._sanitizer.sanitize(Bn.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(u)),re(null)})));return Ra(r).pipe(ue(()=>{let a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw jP(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(Dt(n=>e.svgText=n),ue(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?re(null):this._fetchIcon(e).pipe(Dt(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(Du(""));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(Du("")),o=e.attributes;for(let r=0;rDu(u)),Mr(()=>this._inProgressUrlFetches.delete(a)),cd());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,n,o){return this._svgIconConfigs.set($P(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 WP=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],nre=WP.map(t=>`[${t}]`).join(", "),ire=/^url\(['"]?#(.*?)['"]?\)$/,Io=(()=>{class t{_elementRef=d(X);_iconRegistry=d(GP);_location=d(ere);_errorHandler=d(yi);_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=Ee.EMPTY;constructor(){let e=d(new mn("aria-hidden"),{optional:!0}),n=d(Joe,{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(nre),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{let s=n[r],c=s.getAttribute(a),u=c?c.match(ire):null;if(u){let f=o.get(s);f||(f=[],o.set(s,f)),f.push({name:a,value:u[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(Ve(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),Pt(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:Zoe,decls:1,vars:0,template:function(n,o){n&1&&(ke(),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})(),ah=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,he]})}return t})();function ore(t,i){if(t&1&&(h(0,"mat-error"),C(1),_()),t&2){let e=w();p(),te("",e.label," is a required field.")}}function rre(t,i){if(t&1&&(h(0,"mat-error"),C(1),_()),t&2){let e=w();p(),T(e.customErrorMessage)}}var sh=(()=>{class t{get matcher(){return this}get required(){return this._required??this.ngControl?.control?.hasValidator(on.required)??!1}set required(e){this._required=e}constructor(){this.ngControl=d(ii,{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&&me(oi,5),n&2){let r;G(r=W())&&(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"),C(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)}),C(5),_(),I(6,ore,2,1,"mat-error"),I(7,rre,2,1,"mat-error"),_()),n&2&&(p(2),T(o.label),p(),S("disabled",o.disabled)("errorStateMatcher",o.matcher)("required",o.required)("type",o.type)("value",o.value),p(2),T(o.icon),p(),O(o.ngControl.hasError("required")?6:-1),p(),O(o.ngControl.hasError(o.customErrorName)?7:-1))},dependencies:[ge,Ce,Ht,Cn,fo,os,oi,Io],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 are=(t,i)=>({password:t,repeatPassword:i}),sre=t=>({minchar:t});function cre(t,i){if(t&1&&(h(0,"p"),C(1),k(2,"translate"),_()),t&2){let e=w();p(),te(" ",rr(2,1,"labels.commons.Password validation",zo(4,sre,e.minPasswordLength))," ")}}function lre(t,i){t&1&&(h(0,"p"),C(1),k(2,"translateKey"),_()),t&2&&(p(),te(" ",rr(2,1,"Passwords do not match","inputs")," "))}var qP=(()=>{class t{constructor(){this.dialogRef=d(Yt),this.data=d(In),this.formBuilder=d(Hs),this.passwordsUtility=d(ih),this.minPasswordLength=Ge.minPasswordLength|12,this.passwordInputType=["password","password"]}ngOnInit(){this.createChangePasswordForm()}createChangePasswordForm(){this.changePasswordForm=this.formBuilder.group({password:["",this.passwordsUtility.getPasswordValidators()],repeatPassword:["",[on.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),C(1),k(2,"translate"),_(),h(3,"div",3)(4,"form",4)(5,"div",5),F(6,"mifosx-input-password",6,0),k(8,"translateKey"),h(9,"mat-error"),I(10,cre,3,6,"p"),_(),F(11,"mifosx-input-password",7,1),k(13,"translateKey"),_(),h(14,"div",8),I(15,lre,3,4,"p"),_()()(),h(16,"mat-dialog-actions",9)(17,"button",10),C(18),k(19,"translate"),_(),h(20,"button",11),C(21),k(22,"translate"),_()()),n&2){let r,a;p(),T(E(2,12,"labels.heading.Change Password")),p(3),S("formGroup",o.changePasswordForm),p(2),S("label",Vt(rr(8,14,"Password","inputs"))),p(4),O((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(),S("label",Vt(rr(13,17,"Confirm Password","inputs"))),p(4),O((a=o.changePasswordForm.get("repeatPassword").errors)!=null&&a.notequal?15:-1),p(3),T(E(19,20,"labels.buttons.Cancel")),p(2),S("disabled",!o.changePasswordForm.valid)("mat-dialog-close",T1(24,are,o.changePasswordForm.get("password").value,o.changePasswordForm.get("repeatPassword").value)),p(),te(" ",E(22,22,"labels.buttons.Confirm")," ")}},dependencies:[ge,Ce,js,fn,cr,hi,jo,fo,yt,xn,zn,sh,Nn,Rn,Pe,Zc],styles:[".error[_ngcontent-%COMP%]{color:red}mat-dialog-content[_ngcontent-%COMP%]{min-width:240px;width:240px}"]})}}return t})();var dre=()=>({enable:!0}),YP=(()=>{class t{constructor(){this.dialogRef=d(Yt),this.data=d(In)}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),C(1),k(2,"translate"),_(),h(3,"div",1)(4,"p"),C(5),k(6,"translate"),_()(),h(7,"mat-dialog-actions",2)(8,"button",3),C(9),k(10,"translate"),_(),h(11,"button",4),C(12),k(13,"translate"),_()()),n&2&&(p(),T(E(2,6,"labels.heading.Enable")),p(4),Et("",E(6,8,"labels.text.Are you sure you want to enable")," ",o.data.enableContext," ?"),p(4),T(E(10,10,"labels.buttons.Cancel")),p(2),S("mat-dialog-close",Ro(14,dre)),p(),te(" ",E(13,12,"labels.buttons.Confirm")," "))},dependencies:[ge,Ce,yt,xn,zn,Nn,Rn,Pe],encapsulation:2})}}return t})();var ure=()=>({disable:!0}),QP=(()=>{class t{constructor(){this.dialogRef=d(Yt),this.data=d(In)}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),C(1),k(2,"translate"),_(),h(3,"div",1)(4,"p"),C(5),k(6,"translate"),_()(),h(7,"mat-dialog-actions",2)(8,"button",3),C(9),k(10,"translate"),_(),h(11,"button",4),C(12),k(13,"translate"),_()()),n&2&&(p(),T(E(2,6,"labels.heading.Disable")),p(4),Et("",E(6,8,"labels.text.Are you sure you want to disable")," ",o.data.disableContext," ?"),p(4),T(E(10,10,"labels.buttons.Cancel")),p(2),S("mat-dialog-close",Ro(14,ure)),p(),te(" ",E(13,12,"labels.buttons.Confirm")," "))},dependencies:[ge,Ce,yt,xn,zn,Nn,Rn,Pe],encapsulation:2})}}return t})();var KP=(()=>{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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var mre=()=>({confirm:!0}),XP=(()=>{class t{constructor(){this.dialogRef=d(Yt),this.dialogs=d(KP),this.data=d(In)}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),C(1),_(),h(2,"div",1)(3,"p"),C(4),_()(),h(5,"mat-dialog-actions",2)(6,"button",3),C(7),k(8,"translate"),_(),h(9,"button",4),C(10),k(11,"translate"),_()()),n&2&&(p(),T(o.data.heading),p(3),te("",o.data.dialogContext," ?"),p(3),T(E(8,7,"labels.buttons.Cancel")),p(2),S("color",Vt(o.color))("mat-dialog-close",Ro(11,mre)),p(),te(" ",E(11,9,"labels.buttons.Confirm")," "))},dependencies:[ge,Ce,yt,xn,zn,Nn,Rn,Pe],encapsulation:2})}}return t})();function pre(t,i){if(t&1&&(h(0,"p"),C(1),_()),t&2){let e=w();p(),T(e.displayData)}}function fre(t,i){if(t&1&&F(0,"span",2),t&2){let e=w();S("innerHTML",e.sanitizedData,qc)}}var ZP=(()=>{class t{constructor(){this.dialogRef=d(Yt),this.data=d(In),this.sanitizer=d(Xa),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(Bn.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),C(1),k(2,"translate"),_(),h(3,"div",1),I(4,pre,2,1,"p"),I(5,fre,1,1,"span",2),_(),h(6,"mat-dialog-actions",3)(7,"button",4),C(8),k(9,"translate"),_()()),n&2&&(p(),T(E(2,4,"Error Log")),p(3),O(o.showAsCode?-1:4),p(),O(o.showAsCode?5:-1),p(3),T(E(9,6,"Cancel")))},dependencies:[ge,Ce,yt,xn,zn,Nn,Rn,Pe],encapsulation:2})}}return t})();var JP=(()=>{class t{constructor(){this.http=d(kn)}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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var eL="mat-badge-content",hre=(()=>{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})(),tL=(()=>{class t{_ngZone=d(se);_elementRef=d(X);_ariaDescriber=d(t2);_renderer=d(Je);_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(Gs);_document=d(De);constructor(){let e=d(ct);e.load(hre),e.load(Do)}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(eL),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 > .${eL}`);for(let n of Array.from(e))n!==this._badgeElement&&n.remove()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({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})(),nL=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[ns,he,he]})}return t})();var iL=(t,i)=>[t,i];function gre(t,i){t&1&&(h(0,"div",6)(1,"mat-icon",7),C(2,"notifications_none"),_(),h(3,"p",8),C(4),k(5,"translate"),_()()),t&2&&(p(4),T(E(5,1,"labels.text.No notifications")))}function _re(t,i){if(t&1&&(h(0,"button",12)(1,"div",14)(2,"span",15),C(3),_(),h(4,"span",16),C(5,"\u25CF"),_()(),h(6,"span",17),C(7),_()()),t&2){let e=i.$implicit,n=w(2);S("routerLink",T1(3,iL,n.routeMap[e.objectType],e.objectId)),p(3),T(e.content),p(4),T(e.createdAt)}}function bre(t,i){if(t&1&&(h(0,"button",13)(1,"div",14)(2,"span",15),C(3),_()(),h(4,"span",17),C(5),_()()),t&2){let e=i.$implicit,n=w(2);S("routerLink",T1(3,iL,n.routeMap[e.objectType],e.objectId)),p(3),T(e.content),p(2),T(e.createdAt)}}function vre(t,i){if(t&1&&(h(0,"div",9)(1,"h3",10),C(2),k(3,"translate"),_()(),h(4,"div",11),et(5,_re,8,6,"button",12,gt),et(7,bre,6,6,"button",13,gt),_()),t&2){let e=w();p(2),T(E(3,1,"labels.menus.Notifications")),p(3),tt(e.unreadNotifications),p(2),tt(e.displayedReadNotifications)}}var oL=(()=>{class t{constructor(){this.notificationsService=d(JP),this.waitTime=Ge.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/"},Ra([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),k(1,"translate"),k(2,"translate"),N("menuClosed",function(){return U(r),$(o.menuClosed())}),h(3,"span",2),C(4),k(5,"translate"),_(),F(6,"fa-icon",3),_(),h(7,"mat-menu",4,0)(9,"div",5),I(10,gre,6,3,"div",6)(11,vre,9,3),_()()}if(n&2){let r=Ft(8);S("matTooltip",Vt(E(1,9,"tooltips.Notifications")))("matMenuTriggerFor",r)("matBadge",o.unreadNotifications.length)("matBadgeHidden",!o.unreadNotifications.length),ne("aria-label",E(2,11,"tooltips.Notifications")),p(4),T(E(5,13,"tooltips.Notifications")),p(3),S("overlapTrigger",!1),p(3),O(o.unreadNotifications.length===0&&o.displayedReadNotifications.length===0?10:11)}},dependencies:[ge,Ce,v2,ri,vo,th,tL,Qt,mc,Io,wl,Pe],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 pc=(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})(pc||{}),yre="*";function Eb(t,i){return{type:pc.Trigger,name:t,definitions:i,options:{}}}function ch(t,i=null){return{type:pc.Animate,styles:i,timings:t}}function cVe(t,i=null){return{type:pc.Sequence,steps:t,options:i}}function Su(t){return{type:pc.Style,styles:t,offset:null}}function Cre(t,i,e){return{type:pc.State,name:t,styles:i,options:e}}function lh(t,i,e=null){return{type:pc.Transition,expr:t,animation:i,options:e}}var Sb=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}},kb=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}},xre="!";function Mre(t,i){if(t&1&&(h(0,"mat-option",9),C(1),k(2,"translate"),_()),t&2){let e=i.$implicit;S("value",e.value),p(),te(" ",E(2,2,"labels.text."+e.name)," ")}}function wre(t,i){if(t&1){let e=le();h(0,"div",1)(1,"mat-form-field",5)(2,"mat-label"),C(3),k(4,"translate"),_(),h(5,"input",6),N("keydown.enter",function(){U(e);let o=w();return $(o.search())}),_()(),h(6,"mat-form-field",7)(7,"mat-label"),C(8),k(9,"translate"),_(),h(10,"mat-select",8),et(11,Mre,3,4,"mat-option",9,gt),_()()()}if(t&2){let e=w();S("@fadeInOut",void 0),p(3),T(E(4,5,"labels.text.Search")),p(2),S("formControl",e.query),p(3),T(E(9,7,"labels.inputs.Resource")),p(2),S("formControl",e.resource),p(),tt(e.resourceOptions)}}var rL=(()=>{class t{constructor(){this.router=d(So),this.query=new Yi(""),this.resource=new Yi(""),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),I(1,wre,13,9,"div",1),h(2,"div",2)(3,"button",3),N("click",function(){return o.toggleSearchVisibility()}),F(4,"fa-icon",4),k(5,"translate"),_()()()),n&2&&(p(),O(o.searchVisible?1:-1),p(3),S("matTooltip",Vt(E(5,3,"labels.text.Search"))))},dependencies:[ge,Ce,wi,fn,Ti,Ht,Cn,oi,Yn,un,ri,Qt,vo,Pe],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:[Eb("fadeInOut",[lh(":enter",[Su({opacity:0}),ch(500,Su({opacity:1}))]),lh(":leave",[ch(500,Su({opacity:0}))])])]}})}}return t})();var dh=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 Dre(t,i){t&1&&(h(0,"span")(1,"span",6),C(2),k(3,"translate"),_(),C(4," + "),_()),t&2&&(p(2),T(E(3,1,"labels.inputs.Ctrl")))}function Sre(t,i){t&1&&(h(0,"span")(1,"span",6),C(2),k(3,"translate"),_(),C(4," + "),_()),t&2&&(p(2),T(E(3,1,"labels.inputs.Shift")))}function kre(t,i){t&1&&(h(0,"span")(1,"span",6),C(2),k(3,"translate"),_(),C(4," + "),_()),t&2&&(p(2),T(E(3,1,"labels.inputs.Alt")))}function Ere(t,i){if(t&1&&(h(0,"span")(1,"span",6),C(2),_()()),t&2){let e=w().$implicit;p(2),T(e.key)}}function Ire(t,i){if(t&1&&(F(0,"mat-divider",3),h(1,"div",4)(2,"span",5),I(3,Dre,5,3,"span"),I(4,Sre,5,3,"span"),I(5,kre,5,3,"span"),I(6,Ere,3,1,"span"),_(),h(7,"span",5),C(8),_()()),t&2){let e=i.$implicit;S("inset",!0),p(3),O(e.ctrlKey?3:-1),p(),O(e.shiftKey?4:-1),p(),O(e.altKey?5:-1),p(),O(e.key?6:-1),p(2),T(e.title)}}var aL=(()=>{class t{constructor(){this.dialogRef=d(Yt)}ngOnInit(){this.dialogRef.updateSize("800px"),this.buttonConfig=new dh}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),C(1),k(2,"translate"),_(),h(3,"div",1)(4,"div",2),et(5,Ire,9,6,null,null,gt),_()()),n&2&&(p(),T(E(2,1,"labels.heading.Keyboard Shortcuts")),p(4),tt(o.buttonConfig.buttonCombinations))},dependencies:[ge,Ce,xn,zn,uc,Pe],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 Ore(t,i){t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),h(3,"strong"),C(4),k(5,"translate"),_()()),t&2&&(p(),te(" ",E(2,2,"labels.inputs.Url")," "),p(3),T(E(5,4,"labels.commons.is required")))}function Tre(t,i){if(t&1&&(h(0,"mat-option",9),C(1),_()),t&2){let e=i.$implicit;S("value",e),p(),te(" ",e," ")}}function Pre(t,i){if(t&1){let e=le();h(0,"mat-form-field",0)(1,"mat-label"),C(2),k(3,"translate"),_(),h(4,"mat-select",1),N("selectionChange",function(){U(e);let o=w();return $(o.setServer())}),h(5,"div",2)(6,"form",3),N("ngSubmit",function(){U(e);let o=w();return $(o.addNewServer())}),h(7,"div",4)(8,"mat-form-field",5)(9,"span",6)(10,"mat-icon"),C(11,"language"),_()(),h(12,"mat-label"),C(13),k(14,"translate"),_(),F(15,"input",7),I(16,Ore,6,6,"mat-error"),_(),h(17,"button",8),C(18),k(19,"translate"),_()()()(),et(20,Tre,2,2,"mat-option",9,gt),_()()}if(t&2){let e=w();p(2),T(E(3,7,"labels.inputs.Server")),p(2),S("formControl",e.serverSelector),p(2),S("formGroup",e.form),p(7),T(E(14,9,"labels.placeholders.Add new server")),p(3),O(e.form.controls.url.hasError("required")?16:-1),p(),S("disabled",e.form.invalid),p(),te(" ",E(19,11,"labels.buttons.Add")," "),p(2),tt(e.servers)}}var sL=(()=>{class t{constructor(){this.settingsService=d(Jt),this.dialog=d(Zi),this.formBuilder=d(Hs),this.serverSelector=new Yi(""),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:["",[on.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&&I(0,Pre,22,13,"mat-form-field",0),n&2&&O(o.existMoreThanOneServer?0:-1)},dependencies:[ge,Ce,js,wi,fn,cr,Ti,hi,jo,Ht,Cn,fo,oi,Yn,un,yt,tu,Io,Pe],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 Lre(t,i){if(t&1&&(h(0,"mat-option",4),C(1),_()),t&2){let e=i.$implicit;S("value",e),p(),te(" ",e," ")}}var cL=(()=>{class t{constructor(){this.settingsService=d(Jt),this.tenantSelector=new Yi}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"),C(4),k(5,"translate"),_(),h(6,"mat-select",3),N("selectionChange",function(){return o.setTenantIdentifier()}),et(7,Lre,2,2,"mat-option",4,gt),_()()),n&2&&(p(4),T(E(5,2,"labels.inputs.Tenant")),p(2),S("formControl",o.tenantSelector),p(),tt(o.tenants))},dependencies:[ge,Ce,fn,Ti,Ht,Cn,Yn,un,tu,Qt,Pe],styles:["#tenant-selector[_ngcontent-%COMP%], .tenantselector[_ngcontent-%COMP%]{width:14rem;margin-bottom:.6rem}"]})}}return t})();var lL={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 Are={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"]},dL=Are,uL={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 Rre={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"]},mL=Rre;var zre={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"]},pL=zre;var Nre={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"]},fL=Nre;var Fre={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"]},hL=Fre;var gL={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 Vre={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"]},_L=Vre;var Bre={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"]},bL=Bre;var vL={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 yL={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 jre={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"]},CL=jre;var Hre={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"]},xL=Hre;var ML={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"]},Ure={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"]},wL=Ure;var DL={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 SL={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 kL={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 $re={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"]},EL=$re;var IL={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"]},OL={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 TL={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 PL={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 LL={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 AL={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 Gre={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"]},RL=Gre;var zL={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 Wre={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"]},NL=Wre;var FL={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 qre={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"]},VL=qre;var BL={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 jL={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 HL={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 UL={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 Yre={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 $L=Yre;var GL={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 Qre={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 WL=Qre;var Kre={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 qL=Kre;var Xre={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"]},YL=Xre;var QL={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 KL={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 XL={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 ZL={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 JL={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 eA={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 tA={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 Zre={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"]},nA=Zre;var iA={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 oA={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 rA={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 Jre={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"]},aA=Jre;var eae={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"]},sA=eae;var cA={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 lA={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 dA={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 uA={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 mA={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 pA={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 fA={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 tae={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 Tb=tae;var nae={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"]},hA=nae;var gA={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 iae={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"]},_A=iae;var bA={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 vA={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 yA={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 CA={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 xA={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 MA={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 oae={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"]},wA=oae;var rae={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"]},DA=rae;var SA={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 kA={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 EA={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 IA={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 OA={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 TA={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 aae={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"]},PA=aae;var LA={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 AA={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 sae={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"]},RA=sae;var zA={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 NA={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 FA={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 VA={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 cae={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"]},BA=cae;var lae={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"]},jA=lae,HA={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 UA={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 $A={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 dae={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 GA=dae;var WA={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 qA={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 uae={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"]},YA=uae;var QA={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 KA={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 XA={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 mae={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"]},ZA=mae;var JA={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 eR={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 tR={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 nR={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 pae={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"]},iR=pae;var fae={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"]},oR=fae;var hae={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"]},rR=hae;var aR={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 gae={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 sR=gae;var Pb=(()=>{class t{constructor(){d(bb).addIcons(JA,bL,lA,JL,Ob,Ib,IA,eR,nR,QA,xA,XA,pL,fA,FL,tR,VL,NA,WA,qA,tA,CL,bA,vL,_A,YA,dL,UA,aR,EL,pA,DA,xL,iR,oA,OL,OA,mL,uA,NL,GL,XL,KA,lL,sA,wA,LL,LA,SL,FA,AL,kL,eA,gA,fL,hA,QL,HL,_L,AA,$A,ZA,nA,RL,KL,RA,YL,hL,ML,qL,yL,PA,mA,iA,oR,cA,Tb,sR,jA,PL,IL,HA,jL,MA,kA,WL,$L,GA,rR,SA,Ob,EA,gL,wL,TL,ZL,rA,DL,VA,TA,zL,BL,UL,vA,uL,BA,CA,yA,Ib,Tb,zA,dA,aA)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t})}static{this.\u0275inj=Z({imports:[DP]})}}return t})();function Rb(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 bae(t,i){let e=i.leftt.right,o=i.topt.bottom;return e||n||o||r}function Iu(t,i,e){t.top+=i,t.bottom=t.top+t.height,t.left+=e,t.right=t.left+t.width}function uR(t,i,e,n){let{top:o,right:r,bottom:a,left:s,width:c,height:u}=t,f=c*i,b=u*i;return n>o-b&&ns-f&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:jb(e)})})}handleScroll(i){let e=Hn(i),n=this.positions.get(e);if(!n)return null;let o=n.scrollPosition,r,a;if(e===this._document){let u=this.getViewportScrollPosition();r=u.top,a=u.left}else r=e.scrollTop,a=e.scrollLeft;let s=o.top-r,c=o.left-a;return this.positions.forEach((u,f)=>{u.clientRect&&e!==f&&e.contains(f)&&Iu(u.clientRect,s,c)}),o.top=r,o.left=a,{top:s,left:c}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function wR(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 Hb(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 V2(t,i){let e=i?"":"none";Hb(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 mR(t,i,e){Hb(t.style,{position:i?"":"fixed",top:i?"":"0",opacity:i?"":"0",left:i?"":"-999em"},e)}function mh(t,i){return i&&i!="none"?t+" "+i:t}function pR(t,i){t.style.width=`${i.width}px`,t.style.height=`${i.height}px`,t.style.transform=Ou(i.left,i.top)}function Ou(t,i){return`translate3d(${Math.round(t)}px, ${Math.round(i)}px, 0)`}function fR(t){let i=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*i}function vae(t){let i=getComputedStyle(t),e=Lb(i,"transition-property"),n=e.find(s=>s==="transform"||s==="all");if(!n)return 0;let o=e.indexOf(n),r=Lb(i,"transition-duration"),a=Lb(i,"transition-delay");return fR(r[o])+fR(a[o])}function Lb(t,i){return t.getPropertyValue(i).split(",").map(n=>n.trim())}var yae=new Set(["position"]),Nb=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,u,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=u,this._renderer=f}attach(i){this._preview=this._createPreview(),i.appendChild(this._preview),hR(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 vae(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=wR(a,this._document),this._previewEmbeddedView=a,i.matchSize?pR(o,r):o.style.transform=Ou(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else o=Rb(this._rootElement),pR(o,this._initialDomRect),this._initialTransform&&(o.style.transform=this._initialTransform);return Hb(o.style,{"pointer-events":"none",margin:hR(o)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},yae),V2(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 hR(t){return"showPopover"in t}var Cae={passive:!0},gR={passive:!1},xae={passive:!1,capture:!0},Mae=800,_R="cdk-drag-placeholder",bR=new Set(["position"]),Fb=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=Se(!1);_hasMoved;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new B;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement;_rootElementTapHighlight;_pointerMoveSubscription=Ee.EMPTY;_pointerUpSubscription=Ee.EMPTY;_scrollSubscription=Ee.EMPTY;_resizeSubscription=Ee.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=>V2(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 uh(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=>En(n)),this._handles.forEach(n=>V2(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=En(i);if(e!==this._rootElement){this._removeRootElementListeners();let n=this._renderer;this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[n.listen(e,"mousedown",this._pointerDown,gR),n.listen(e,"touchstart",this._pointerDown,Cae),n.listen(e,"dragstart",this._nativeDragStart,gR)]),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?En(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&&bae(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=Ou(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),V2(i,!0))}enableHandle(i){this._disabledHandles.has(i)&&(this._disabledHandles.delete(i),V2(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){ku(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",wae,xae)}),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 Nb(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)),mR(o,!1,bR),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=ku(e),r=!o&&e.button!==0,a=this._rootElement,s=Hn(e),c=!o&&this._lastTouchEventTime&&this._lastTouchEventTime+Mae>Date.now(),u=o?ts(e):es(e);if(s&&s.draggable&&e.type==="mousedown"&&e.preventDefault(),n||r||c||u)return;if(this._handles.length){let y=a.style;this._rootElementTapHighlight=y.webkitTapHighlightColor||"",y.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(y=>this._updateOnScroll(y)),this._boundaryElement&&(this._boundaryRect=jb(this._boundaryElement));let f=this._previewTemplate;this._pickupPositionInElement=f&&f.template&&!f.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,i,e);let b=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:b.x,y:b.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(i){mR(this._rootElement,!0,bR),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&&Hn(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=wR(this._placeholderRef,this._document)):n=Rb(this._rootElement),n.style.pointerEvents="none",n.classList.add(_R),n}_getPointerPositionInElement(i,e,n){let o=e===this._rootElement?null:e,r=o?o.getBoundingClientRect():i,a=ku(n)?n.targetTouches[0]:n,s=this._getViewportScrollPosition(),c=a.pageX-r.left-s.left,u=a.pageY-r.top-s.top;return{x:r.left-i.left+c,y:r.top-i.top+u}}_getPointerPositionOnPage(i){let e=this._getViewportScrollPosition(),n=ku(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:u}=this._getPreviewRect(),f=s.top+a,b=s.bottom-(u-a),y=s.left+r,x=s.right-(c-r);n=vR(n,y,x),o=vR(o,f,b)}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,V2(this._rootElement,i))}_removeRootElementListeners(){this._rootElementCleanups?.forEach(i=>i()),this._rootElementCleanups=void 0}_applyRootElementTransform(i,e){let n=1/this.scale,o=Ou(i*n,e*n),r=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=r.transform&&r.transform!="none"?r.transform:""),r.transform=mh(o,this._initialTransform)}_applyPreviewTransform(i,e){let n=this._previewTemplate?.template?void 0:this._initialTransform,o=Ou(i,e);this._preview.setTransform(mh(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:ku(i)?e.touch:e?e.mouse:0}_updateOnScroll(i){let e=this._parentPositions.handleScroll(i);if(e){let n=Hn(i);this._boundaryRect&&n!==this._boundaryElement&&n.contains(this._boundaryElement)&&Iu(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=nl(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 En(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??=Rb(this._placeholder);o.classList.remove(_R),o.classList.add("cdk-drag-anchor"),o.style.transform="",n?n.before(o):En(e.element).appendChild(o)}}};function vR(t,i,e){return Math.max(i,Math.min(e,t))}function ku(t){return t.type[0]==="t"}function wae(t){t.preventDefault()}function DR(t,i,e){let n=yR(i,t.length-1),o=yR(e,t.length-1);if(n===o)return;let r=t[n],a=o0)return null;let s=this.orientation==="horizontal",c=r.findIndex(Q=>Q.drag===i),u=r[a],f=r[c].clientRect,b=u.clientRect,y=c>a?1:-1,x=this._getItemOffsetPx(f,b,y),D=this._getSiblingOffsetPx(c,r,y),q=r.slice();return DR(r,c,a),r.forEach((Q,K)=>{if(q[K]===Q)return;let pe=Q.drag===i,ut=pe?x:D,wt=pe?i.getPlaceholderElement():Q.drag.getRootElement();Q.offset+=ut;let Bt=Math.round(Q.offset*(1/Q.drag.scale));s?(wt.style.transform=mh(`translate3d(${Bt}px, 0, 0)`,Q.initialTransform),Iu(Q.clientRect,0,ut)):(wt.style.transform=mh(`translate3d(0, ${Bt}px, 0)`,Q.initialTransform),Iu(Q.clientRect,ut,0))}),this._previousSwap.overlaps=zb(b,e,n),this._previousSwap.drag=u.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(),u=a[r];if(u===i&&(u=a[r+1]),!u&&(r==null||r===-1||r-1&&a.splice(s,1),u&&!this._dragDropRegistry.isDragging(u)){let f=u.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})=>{Iu(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:jb(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",u=o?"right":"bottom";n===-1?s-=a.clientRect[c]-r[u]:s+=r[c]-a.clientRect[u]}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 u=r?o.x:o.y;if(s===this._previousSwap.drag&&this._previousSwap.overlaps&&u===this._previousSwap.delta)return!1}return r?e>=Math.floor(c.left)&&e=Math.floor(c.top)&&nc?f.after(u):f.before(u),DR(this._activeItems,c,r);let b=this._getRootNode().elementFromPoint(e,n);return a.deltaX=o.x,a.deltaY=o.y,a.drag=s,a.overlaps=f===b||f.contains(b),{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=nl(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=Ee.EMPTY;_verticalScrollDirection=hr.NONE;_horizontalScrollDirection=yo.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=En(i);this._document=n,this.withOrientation("vertical").withElementContainer(a),e.registerDropContainer(this),this._parentPositions=new uh(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 ph&&(this._sortStrategy.direction=i),this}connectedTo(i){return this._siblings=i.slice(),this}withOrientation(i){if(i==="mixed")this._sortStrategy=new Vb(this._document,this._dragDropRegistry);else{let e=new ph(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=En(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||!uR(this._domRect,CR,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=hr.NONE,r=yo.NONE;if(this._parentPositions.positions.forEach((a,s)=>{s===this._document||!a.clientRect||n||uR(a.clientRect,CR,i,e)&&([o,r]=Dae(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=kR(c,e),r=ER(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(),J6(0,S3).pipe(xe(this._stopScrollTimers)).subscribe(()=>{let i=this._scrollNode,e=this.autoScrollStep;this._verticalScrollDirection===hr.UP?i.scrollBy(0,-e):this._verticalScrollDirection===hr.DOWN&&i.scrollBy(0,e),this._horizontalScrollDirection===yo.LEFT?i.scrollBy(-e,0):this._horizontalScrollDirection===yo.RIGHT&&i.scrollBy(e,0)})};_isOverContainer(i,e){return this._domRect!=null&&zb(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||!zb(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=nl(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 kR(t,i){let{top:e,bottom:n,height:o}=t,r=o*SR;return i>=e-r&&i<=e+r?hr.UP:i>=n-r&&i<=n+r?hr.DOWN:hr.NONE}function ER(t,i){let{left:e,right:n,width:o}=t,r=o*SR;return i>=e-r&&i<=e+r?yo.LEFT:i>=n-r&&i<=n+r?yo.RIGHT:yo.NONE}function Dae(t,i,e,n,o){let r=kR(i,o),a=ER(i,n),s=hr.NONE,c=yo.NONE;if(r){let u=t.scrollTop;r===hr.UP?u>0&&(s=hr.UP):t.scrollHeight-u>t.clientHeight&&(s=hr.DOWN)}if(a){let u=t.scrollLeft;e==="rtl"?a===yo.RIGHT?u<0&&(c=yo.RIGHT):t.scrollWidth+u>t.clientWidth&&(c=yo.LEFT):a===yo.LEFT?u>0&&(c=yo.LEFT):t.scrollWidth-u>t.clientWidth&&(c=yo.RIGHT)}return[s,c]}var Eu={capture:!0},Ab={passive:!1,capture:!0},Sae=(()=>{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})(),IR=(()=>{class t{_ngZone=d(se);_document=d(De);_styleLoader=d(ct);_renderer=d(Tn).createRenderer(null,null);_cleanupDocumentTouchmove;_scroll=new B;_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=Se([]);_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,Ab)})}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(Sae),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),Eu],["selectstart",this._preventDefaultWhileDragging,Ab]];o?a.push(["touchend",r,Eu],["touchcancel",r,Eu]):a.push(["mouseup",r,Eu]),o||a.push(["mousemove",s=>this.pointerMove.next(s),Ab]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=a.map(([s,c,u])=>this._renderer.listen(this._document,s,c,u))})}}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)},Eu);return()=>{r()}}))),mt(...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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),kae={dragStartThreshold:5,pointerDirectionChangeThreshold:5},Ub=(()=>{class t{_document=d(De);_ngZone=d(se);_viewportRuler=d(Wn);_dragDropRegistry=d(IR);_renderer=d(Tn).createRenderer(null,null);constructor(){}createDrag(e,n=kae){return new Fb(e,n,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry,this._renderer)}createDropList(e){return new Bb(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xR=new L("CDK_DRAG_PARENT");var Eae=new L("CdkDragHandle");var OR=new L("CDK_DRAG_CONFIG"),TR=new L("CdkDropList"),OBe=(()=>{class t{element=d(X);dropContainer=d(TR,{optional:!0,skipSelf:!0});_ngZone=d(se);_viewContainerRef=d(pt);_dir=d(vt,{optional:!0});_changeDetectorRef=d(we);_selfHandle=d(Eae,{optional:!0,self:!0});_parentDrag=d(xR,{optional:!0,skipSelf:!0});_dragDropRegistry=d(IR);_destroyed=new B;_handles=new dt([]);_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(ue(o=>({source:this,pointerPosition:o.pointerPosition,event:o.event,delta:o.delta,distance:o.distance}))).subscribe(e);return()=>{n.unsubscribe()}});_injector=d(ye);constructor(){let e=this.dropContainer,n=d(OR,{optional:!0}),o=d(Ub);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(xe(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(){xt(()=>{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):En(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(Ve(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:u,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),u&&(this.rootElementSelector=u),f&&(this.previewContainer=f)}_setupHandlesListener(){this._handles.pipe(Dt(e=>{let n=e.map(o=>o.element);this._selfHandle&&this.rootElementSelector&&n.push(this.element),this._dragRef.withHandles(n)}),rt(e=>mt(...e.map(n=>n._stateChanges.pipe(Qe(n))))),xe(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=R({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",ft]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[de([{provide:xR,useExisting:t}]),ze]})}return t})(),MR=new L("CdkDropListGroup");var TBe=(()=>{class t{element=d(X);_changeDetectorRef=d(we);_scrollDispatcher=d(pr);_dir=d(vt,{optional:!0});_group=d(MR,{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(Ub),n=d(OR,{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(Qe(this._dir.value),xe(this._destroyed)).subscribe(n=>e.withDirection(n)),e.beforeStarted.subscribe(()=>{let n=Vr(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()}),mt(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=R({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:MR,useValue:void 0},{provide:TR,useExisting:t}])]})}return t})();var PR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[Ub],imports:[Si]})}return t})();var Iae=["*"];function Oae(t,i){t&1&&ae(0)}var $b=(()=>{class t{_elementRef=d(X);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return t})(),Gb=(()=>{class t{template=d(it);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","cdkStepLabel",""]]})}return t})();var Sl={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},Wb=new L("STEPPER_GLOBAL_OPTIONS"),fh=(()=>{class t{_stepperOptions;_stepper=d(B2);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;get interacted(){return this._interacted()}set interacted(e){this._interacted.set(e)}_interacted=Se(!1);interactedStream=new j;label;errorMessage;ariaLabel;ariaLabelledby;get state(){return this._state()}set state(e){this._state.set(e)}_state=Se(void 0);get editable(){return this._editable()}set editable(e){this._editable.set(e)}_editable=Se(!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=Se(null);index=Se(-1);isSelected=ti(()=>this._stepper.selectedIndex===this.index());indicatorType=ti(()=>{let e=this.isSelected(),n=this.completed,o=this._state()??Sl.NUMBER,r=this._editable();return this._showError()&&this.hasError&&!e?Sl.ERROR:this._displayDefaultIndicatorType?!n||e?Sl.NUMBER:r?Sl.EDIT:Sl.DONE:n&&!e?Sl.DONE:n&&e?o:r&&e?Sl.EDIT:o});isNavigable=ti(()=>{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=Se(null);_getDefaultError(){return this.interacted&&!!this.stepControl?.invalid}constructor(){let e=d(Wb,{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&&(Ie(r,Gb,5),Ie(r,Mi,5)),n&2){let a;G(a=W())&&(o.stepLabel=a.first),G(a=W())&&(o._childForms=a)}},viewQuery:function(n,o){if(n&1&&me(it,7),n&2){let r;G(r=W())&&(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:[ze],ngContentSelectors:Iae,decls:1,vars:0,template:function(n,o){n&1&&(ke(),Tr(0,Oae,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return t})(),B2=(()=>{class t{_dir=d(vt,{optional:!0});_changeDetectorRef=d(we);_elementRef=d(X);_destroyed=new B;_keyManager;_steps;steps=new On;_stepHeader;_sortedHeaders=new On;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=Se(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(Qe(this._steps),xe(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(Qe(this._stepHeader),xe(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 Br(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:re()).pipe(Qe(this._layoutDirection()),xe(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=kt(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=lo();return e===n||e.contains(n)}_isValidIndex(e){return e>-1&&(!this.steps||e{class t{_stepper=d(B2);type="submit";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(n,o){n&1&&N("click",function(){return o._stepper.next()}),n&2&&At("type",o.type)},inputs:{type:"type"}})}return t})(),AR=(()=>{class t{_stepper=d(B2);type="button";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(n,o){n&1&&N("click",function(){return o._stepper.previous()}),n&2&&At("type",o.type)},inputs:{type:"type"}})}return t})(),RR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[ha]})}return t})();var Tae=["panel"],Pae=["*"];function Lae(t,i){if(t&1&&(ot(0,"div",1,0),ae(2),st()),t&2){let e=i.id,n=w();Pt(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"),At("id",n.id),ne("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(e))}}var qb=class{source;option;constructor(i,e){this.source=i,this.option=e}},zR=new L("mat-autocomplete-default-options",{providedIn:"root",factory:Aae});function Aae(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}var kje=(()=>{class t{_changeDetectorRef=d(we);_elementRef=d(X);_defaults=d(zR);_animationsDisabled=Ue();_activeOptionChanges=Ee.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 rl(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 qb(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&&(Ie(r,un,5),Ie(r,M2,5)),n&2){let a;G(a=W())&&(o.options=a),G(a=W())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&(me(it,7),me(Tae,5)),n&2){let r;G(r=W())&&(o.template=r.first),G(r=W())&&(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:x2,useExisting:t}])],ngContentSelectors:Pae,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&&(ke(),Tr(0,Lae,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 Rae={provide:fi,useExisting:It(()=>Fae),multi:!0};var NR=new L("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(ye);return()=>bi(t)}});function zae(t){let i=d(ye);return()=>bi(i)}var Nae={provide:NR,deps:[],useFactory:zae},Fae=(()=>{class t{_environmentInjector=d(Xt);_element=d(X);_injector=d(ye);_viewContainerRef=d(pt);_zone=d(se);_changeDetectorRef=d(we);_dir=d(vt,{optional:!0});_formField=d(ya,{optional:!0,host:!0});_viewportRuler=d(Wn);_scrollStrategy=d(NR);_renderer=d(Je);_animationsDisabled=Ue();_defaults=d(zR,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new B;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=Ee.EMPTY;_breakpointObserver=d(ol);_handsetLandscapeSubscription=Ee.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new B;_overlayPanelClass=Vr(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&&Ws(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return mt(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Oe(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Oe(()=>this._overlayAttached)):re()).pipe(ue(e=>e instanceof C2?e:null))}optionSelections=Bi(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(Qe(e),rt(()=>mt(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(rt(()=>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=Hn(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=kt(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 lo()===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=>{xt(()=>{o.next()},{injector:this._environmentInjector})}),n=this.autocomplete.options?.changes.pipe(Dt(()=>this._positionStrategy.reapplyLastPosition()),Na(0))??re();return mt(e,n).pipe(rt(()=>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})),Ve(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;e2(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 qn(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),n=_o(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(Bp.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&&!kt(e)||e.keyCode===38&&kt(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 go({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=$r(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&&Ws(this._trackedModal,"aria-owns",n),e2(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;Ws(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({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([Rae]),ze]})}return t})(),FR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[Nae],imports:[Li,E2,he,Si,E2,he]})}return t})();var Vae=["button"],Bae=["*"];function jae(t,i){if(t&1&&(h(0,"div",2),F(1,"mat-pseudo-checkbox",6),_()),t&2){let e=w();p(),S("disabled",e.disabled)}}var VR=new L("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:Hae});function Hae(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}var BR=new L("MatButtonToggleGroup"),Uae={provide:fi,useExisting:It(()=>$ae),multi:!0},hh=class{source;value;constructor(i,e){this.source=i,this.value=e}},$ae=(()=>{class t{_changeDetector=d(we);_dir=d(vt,{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(VR,{optional:!0});this.appearance=e&&e.appearance?e.appearance:"standard",this.hideSingleSelectionIndicator=e?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=e?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new bo(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||kt(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 hh(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=R({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(n,o,r){if(n&1&&Ie(r,jR,5),n&2){let a;G(a=W())&&(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([Uae,{provide:BR,useExisting:t}])]})}return t})(),jR=(()=>{class t{_changeDetectorRef=d(we);_elementRef=d(X);_focusMonitor=d(ln);_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(ct).load(dn);let e=d(BR,{optional:!0}),n=d(new mn("tabindex"),{optional:!0})||"",o=d(VR,{optional:!0});this._tabIndex=Se(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 hh(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&&me(Vae,5),n&2){let r;G(r=W())&&(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:Bae,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();ke(),h(0,"button",1,0),N("click",function(){return U(r),$(o._onButtonClick())}),I(2,jae,2,1,"div",2),h(3,"span",3),ae(4),_()(),F(5,"span",4)(6,"span",5)}if(n&2){let r=Ft(1);S("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),O(o.buttonToggleGroup&&(!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator||o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),p(4),S("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[gi,Mf],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})(),HR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,Ei,jR,he]})}return t})();var Gae=new L("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})});var UR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[Ca,{provide:Gae,useValue:{separatorKeyCodes:[13]}}],imports:[he,Ei,he]})}return t})();var Yb=new L("CdkAccordion"),$R=(()=>{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=R({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",H]},exportAs:["cdkAccordion"],features:[de([{provide:Yb,useExisting:t}]),ze]})}return t})(),GR=(()=>{class t{accordion=d(Yb,{optional:!0,skipSelf:!0});_changeDetectorRef=d(we);_expansionDispatcher=d(vl);_openCloseAllSubscription=Ee.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=Se(!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=R({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:Yb,useValue:void 0}])]})}return t})(),WR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})();var Wae=["body"],qae=["bodyWrapper"],Yae=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Qae=["mat-expansion-panel-header","*","mat-action-row"];function Kae(t,i){}var Xae=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Zae=["mat-panel-title","mat-panel-description","*"];function Jae(t,i){t&1&&(ot(0,"span",1),Gt(),ot(1,"svg",2),Pn(2,"path",3),st()())}var Qb=new L("MAT_ACCORDION"),qR=new L("MAT_EXPANSION_PANEL"),ese=(()=>{class t{_template=d(it);_expansionPanel=d(qR,{optional:!0});constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]})}return t})(),YR=new L("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),tse=(()=>{class t extends GR{_viewContainerRef=d(pt);_animationsDisabled=Ue();_document=d(De);_ngZone=d(se);_elementRef=d(X);_renderer=d(Je);_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(Qb,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=d(He).getId("mat-expansion-panel-header-");constructor(){super();let e=d(YR,{optional:!0});this._expansionDispatcher=d(vl),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(Qe(null),Oe(()=>this.expanded&&!this._portal),Ve(1)).subscribe(()=>{this._portal=new qn(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&&Ie(r,ese,5),n&2){let a;G(a=W())&&(o._lazyContent=a.first)}},viewQuery:function(n,o){if(n&1&&(me(Wae,5),me(qae,5)),n&2){let r;G(r=W())&&(o._body=r.first),G(r=W())&&(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:Qb,useValue:void 0},{provide:qR,useExisting:t}]),ce,ze],ngContentSelectors:Qae,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&&(ke(Yae),ae(0),h(1,"div",2,0)(3,"div",3,1)(5,"div",4),ae(6,1),Xe(7,Kae,0,0,"ng-template",5),_(),ae(8,2),_()()),n&2&&(p(),ne("inert",o.expanded?null:""),p(2),S("id",o.id),ne("aria-labelledby",o._headerId),p(4),S("cdkPortalOutlet",o._portal))},dependencies:[ki],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 nse=(()=>{class t{panel=d(tse,{host:!0});_element=d(X);_focusMonitor=d(ln);_changeDetectorRef=d(we);_parentChangeSubscription=Ee.EMPTY;constructor(){d(ct).load(dn);let e=this.panel,n=d(YR,{optional:!0}),o=d(new mn("tabindex"),{optional:!0}),r=e.accordion?e.accordion._stateChanges.pipe(Oe(a=>!!(a.hideToggle||a.togglePosition))):Sn;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=mt(e.opened,e.closed,r,e._inputChanges.pipe(Oe(a=>!!(a.hideToggle||a.disabled||a.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(Oe(()=>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:kt(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),Rt("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:ft(e)]},ngContentSelectors:Zae,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&&(ke(Xae),ot(0,"span",0),ae(1),ae(2,1),ae(3,2),st(),I(4,Jae,3,0,"span",1)),n&2&&(oe("mat-content-hide-toggle",!o._showToggle()),p(4),O(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})(),$He=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]})}return t})(),GHe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return t})(),WHe=(()=>{class t extends $R{_keyManager;_ownHeaders=new On;_headers;hideToggle=!1;displayMode="default";togglePosition="after";ngAfterContentInit(){this._headers.changes.pipe(Qe(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(n=>n.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Br(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=Te(t)))(o||t)}})();static \u0275dir=R({type:t,selectors:[["mat-accordion"]],contentQueries:function(n,o,r){if(n&1&&Ie(r,nse,5),n&2){let a;G(a=W())&&(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:Qb,useExisting:t}]),ce]})}return t})(),QR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,WR,ho]})}return t})();var KR=["*"],XR=`.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))}
-`,ise=["unscopedContent"],ose=["text"],rse=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],ase=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var sse=new L("ListOption"),cse=(()=>{class t{_elementRef=d(X);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return t})(),lse=(()=>{class t{_elementRef=d(X);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return t})(),dse=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return t})(),ZR=(()=>{class t{_listOption=d(sse,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({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})(),use=(()=>{class t extends ZR{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=R({type:t,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[ce]})}return t})(),mse=(()=>{class t extends ZR{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=R({type:t,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[ce]})}return t})(),pse=new L("MAT_LIST_CONFIG"),Tu=(()=>{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=Se(!1);_defaultOptions=d(pse,{optional:!0});static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,hostVars:1,hostBindings:function(n,o){n&2&&ne("aria-disabled",o.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return t})(),fse=(()=>{class t{_elementRef=d(X);_ngZone=d(se);_listBase=d(Tu,{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=Se(!1);_subscriptions=new Ee;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){d(ct).load(dn);let e=d(ll,{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 cl(this,this._ngZone,this._hostElement,this._platform,d(ye)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(mt(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=R({type:t,contentQueries:function(n,o,r){if(n&1&&(Ie(r,use,4),Ie(r,mse,4)),n&2){let a;G(a=W())&&(o._avatars=a),G(a=W())&&(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 gUe=(()=>{class t extends Tu{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(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:Tu,useExisting:t}]),ce],ngContentSelectors:KR,decls:1,vars:0,template:function(n,o){n&1&&(ke(),ae(0))},styles:[XR],encapsulation:2,changeDetection:0})}return t})(),_Ue=(()=>{class t extends fse{_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=Te(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&&(Ie(r,lse,5),Ie(r,cse,5),Ie(r,dse,5)),n&2){let a;G(a=W())&&(o._lines=a),G(a=W())&&(o._titles=a),G(a=W())&&(o._meta=a)}},viewQuery:function(n,o){if(n&1&&(me(ise,5),me(ose,5)),n&2){let r;G(r=W())&&(o._unscopedContent=r.first),G(r=W())&&(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:ase,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();ke(rse),ae(0),h(1,"span",1),ae(2,1),ae(3,2),h(4,"span",2,0),N("cdkObserveContent",function(){return U(r),$(o._updateItemLines(!0))}),ae(6,3),_()(),ae(7,4),ae(8,5),F(9,"div",3)}},dependencies:[T0],encapsulation:2,changeDetection:0})}return t})();var bUe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-mdc-subheader","mdc-list-group__subheader"]})}return t})();var vUe=(()=>{class t extends Tu{_isNonInteractive=!1;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(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:Tu,useExisting:t}]),ce],ngContentSelectors:KR,decls:1,vars:0,template:function(n,o){n&1&&(ke(),ae(0))},styles:[XR],encapsulation:2,changeDetection:0})}return t})();var JR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[K1,he,Ei,Tf,Jf]})}return t})();function hse(t,i){if(t&1&&(h(0,"mat-option",17),C(1),_()),t&2){let e=i.$implicit;S("value",e),p(),te(" ",e," ")}}function gse(t,i){if(t&1){let e=le();h(0,"mat-form-field",14)(1,"mat-select",16,0),N("selectionChange",function(o){U(e);let r=w(2);return $(r._changePageSize(o.value))}),et(3,hse,2,2,"mat-option",17,gt),_(),h(5,"div",18),N("click",function(){U(e);let o=Ft(2);return $(o.open())}),_()()}if(t&2){let e=w(2);S("appearance",e._formFieldAppearance)("color",e.color),p(),S("value",e.pageSize)("disabled",e.disabled),k1("aria-labelledby",e._pageSizeLabelId),S("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),p(2),tt(e._displayedPageSizeOptions)}}function _se(t,i){if(t&1&&(h(0,"div",15),C(1),_()),t&2){let e=w(2);p(),T(e.pageSize)}}function bse(t,i){if(t&1&&(h(0,"div",3)(1,"div",13),C(2),_(),I(3,gse,6,7,"mat-form-field",14),I(4,_se,2,1,"div",15),_()),t&2){let e=w();p(),ne("id",e._pageSizeLabelId),p(),te(" ",e._intl.itemsPerPageLabel," "),p(),O(e._displayedPageSizeOptions.length>1?3:-1),p(),O(e._displayedPageSizeOptions.length<=1?4:-1)}}function vse(t,i){if(t&1){let e=le();h(0,"button",19),N("click",function(){U(e);let o=w();return $(o._buttonClicked(0,o._previousButtonsDisabled()))}),Gt(),h(1,"svg",8),F(2,"path",20),_()()}if(t&2){let e=w();S("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),ne("aria-label",e._intl.firstPageLabel)}}function yse(t,i){if(t&1){let e=le();h(0,"button",21),N("click",function(){U(e);let o=w();return $(o._buttonClicked(o.getNumberOfPages()-1,o._nextButtonsDisabled()))}),Gt(),h(1,"svg",8),F(2,"path",22),_()()}if(t&2){let e=w();S("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),ne("aria-label",e._intl.lastPageLabel)}}var gh=(()=>{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(gh);_changeDetectorRef=d(we);_formFieldAppearance;_pageSizeLabelId=d(He).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new yr(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=>ft(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(wse,{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",ft],length:[2,"length","length",ft],pageSize:[2,"pageSize","pageSize",ft],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),I(2,bse,5,4,"div",3),h(3,"div",4)(4,"div",5),C(5),_(),I(6,vse,3,5,"button",6),h(7,"button",7),N("click",function(){return o._buttonClicked(o.pageIndex-1,o._previousButtonsDisabled())}),Gt(),h(8,"svg",8),F(9,"path",9),_()(),ir(),h(10,"button",10),N("click",function(){return o._buttonClicked(o.pageIndex+1,o._nextButtonsDisabled())}),Gt(),h(11,"svg",8),F(12,"path",11),_()(),I(13,yse,3,5,"button",12),_()()()),n&2&&(p(2),O(o.hidePageSize?-1:2),p(3),te(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),p(),O(o.showFirstLastButtons?6:-1),p(),S("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("disabled",o._previousButtonsDisabled())("tabindex",o._previousButtonsDisabled()?-1:null),ne("aria-label",o._intl.previousPageLabel),p(3),S("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("disabled",o._nextButtonsDisabled())("tabindex",o._nextButtonsDisabled()?-1:null),ne("aria-label",o._intl.nextPageLabel),p(3),O(o.showFirstLastButtons?13:-1))},dependencies:[Ht,Yn,un,ri,vo],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})(),ez=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[xse],imports:[Ma,cu,Mu,Kb]})}return t})();var Dse=["determinateSpinner"];function Sse(t,i){if(t&1&&(Gt(),h(0,"svg",11),F(1,"circle",12),_()),t&2){let e=w();ne("viewBox",e._viewBox()),p(),Rt("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),ne("r",e._circleRadius())}}var kse=new L("mat-progress-spinner-default-options",{providedIn:"root",factory:Ese});function Ese(){return{diameter:tz}}var tz=100,Ise=10,nz=(()=>{class t{_elementRef=d(X);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=d(kse),n=R0(),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=tz;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-Ise)/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&&me(Dse,5),n&2){let r;G(r=W())&&(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),Pt("mat-"+o.color),Rt("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",ft],diameter:[2,"diameter","diameter",ft],strokeWidth:[2,"strokeWidth","strokeWidth",ft]},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&&(Xe(0,Sse,2,8,"ng-template",null,0,Ls),h(2,"div",2,1),Gt(),h(4,"svg",3),F(5,"circle",4),_()(),ir(),h(6,"div",5)(7,"div",6)(8,"div",7),jt(9,8),_(),h(10,"div",9),jt(11,8),_(),h(12,"div",10),jt(13,8),_()()()),n&2){let r=Ft(1);p(4),ne("viewBox",o._viewBox()),p(),Rt("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),ne("r",o._circleRadius()),p(4),S("ngTemplateOutlet",r),p(2),S("ngTemplateOutlet",r),p(2),S("ngTemplateOutlet",r)}},dependencies:[As],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 iz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he]})}return t})();function Ose(t,i){t&1&&Pn(0,"div",2)}var Tse=new L("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");var r$e=(()=>{class t{_elementRef=d(X);_ngZone=d(se);_changeDetectorRef=d(we);_renderer=d(Je);_cleanupTransitionEnd;constructor(){let e=R0(),n=d(Tse,{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=oz(e||0),this._changeDetectorRef.markForCheck()}_value=0;get bufferValue(){return this._bufferValue||0}set bufferValue(e){this._bufferValue=oz(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),Pt("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",ft],bufferValue:[2,"bufferValue","bufferValue",ft],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&&(ot(0,"div",0),Pn(1,"div",1),I(2,Ose,1,0,"div",2),st(),ot(3,"div",3),Pn(4,"span",4),st(),ot(5,"div",5),Pn(6,"span",4),st()),n&2&&(p(),Rt("flex-basis",o._getBufferBarFlexBasis()),p(),O(o.mode==="buffer"?2:-1),p(),Rt("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 oz(t,i=0,e=100){return Math.max(i,Math.min(e,t))}var rz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he]})}return t})();var Pse=["input"],Lse=["formField"],Ase=["*"],_h=class{source;value;constructor(i,e){this.source=i,this.value=e}},Rse={provide:fi,useExisting:It(()=>Fse),multi:!0},az=new L("MatRadioGroup"),zse=new L("mat-radio-default-options",{providedIn:"root",factory:Nse});function Nse(){return{color:"accent",disabledInteractive:!1}}var Fse=(()=>{class t{_changeDetector=d(we);_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 _h(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=R({type:t,selectors:[["mat-radio-group"]],contentQueries:function(n,o,r){if(n&1&&Ie(r,sz,5),n&2){let a;G(a=W())&&(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([Rse,{provide:az,useExisting:t}])]})}return t})(),sz=(()=>{class t{_elementRef=d(X);_changeDetector=d(we);_focusMonitor=d(ln);_radioDispatcher=d(vl);_defaultOptions=d(zse,{optional:!0});_ngZone=d(se);_renderer=d(Je);_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(ye);constructor(){d(ct).load(dn);let e=d(az,{optional:!0}),n=d(new mn("tabindex"),{optional:!0});this.radioGroup=e,this._disabledInteractive=this._defaultOptions?.disabledInteractive??!1,n&&(this.tabIndex=ft(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 _h(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,xt(()=>{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&&(me(Pse,5),me(Lse,7,X)),n&2){let r;G(r=W())&&(o._inputElement=r.first),G(r=W())&&(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:ft(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:Ase,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();ke(),h(0,"div",2,0)(2,"div",3)(3,"div",4),N("click",function(s){return U(r),$(o._onTouchTargetClick(s))}),_(),h(4,"input",5,1),N("change",function(s){return U(r),$(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&&(S("labelPosition",o.labelPosition),p(2),oe("mdc-radio--disabled",o.disabled),p(2),S("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),S("matRippleTrigger",o._rippleTrigger.nativeElement)("matRippleDisabled",o._isRippleDisabled())("matRippleCentered",!0),p(2),S("for",o.inputId))},dependencies:[gi,n2],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})(),cz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,Ei,sz,he]})}return t})();var vh=["*"],Vse=["content"],Bse=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],jse=["mat-drawer","mat-drawer-content","*"];function Hse(t,i){if(t&1){let e=le();h(0,"div",1),N("click",function(){U(e);let o=w();return $(o._onBackdropClicked())}),_()}if(t&2){let e=w();oe("mat-drawer-shown",e._isShowingBackdrop())}}function Use(t,i){t&1&&(h(0,"mat-drawer-content"),ae(1,2),_())}var $se=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Gse=["mat-sidenav","mat-sidenav-content","*"];function Wse(t,i){if(t&1){let e=le();h(0,"div",1),N("click",function(){U(e);let o=w();return $(o._onBackdropClicked())}),_()}if(t&2){let e=w();oe("mat-drawer-shown",e._isShowingBackdrop())}}function qse(t,i){t&1&&(h(0,"mat-sidenav-content"),ae(1,2),_())}var Yse=`.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 Qse=new L("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:Kse}),Jb=new L("MAT_DRAWER_CONTAINER");function Kse(){return!1}var bh=(()=>{class t extends Ur{_platform=d(je);_changeDetectorRef=d(we);_container=d(Zb);constructor(){let e=d(X),n=d(pr),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&&(Rt("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px"),oe("mat-drawer-content-hidden",o._shouldBeHidden()))},features:[de([{provide:Ur,useExisting:t}]),ce],ngContentSelectors:vh,decls:1,vars:0,template:function(n,o){n&1&&(ke(),ae(0))},encapsulation:2,changeDetection:0})}return t})(),Xb=(()=>{class t{_elementRef=d(X);_focusTrapFactory=d(X1);_focusMonitor=d(ln);_platform=d(je);_ngZone=d(se);_renderer=d(Je);_interactivityChecker=d(Gs);_doc=d(De);_container=d(Jb,{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=Se(!1);_openedVia;_animationStarted=new B;_animationEnd=new B;openedChange=new j(!0);_openedStream=this.openedChange.pipe(Oe(e=>e),ue(()=>{}));openedStart=this._animationStarted.pipe(Oe(()=>this.opened),Xl(void 0));_closedStream=this.openedChange.pipe(Oe(e=>!e),ue(()=>{}));closedStart=this._animationStarted.pipe(Oe(()=>!this.opened),Xl(void 0));_destroyed=new B;onPositionChanged=new j;_content;_modeChanged=new B;_injector=d(ye);_changeDetectorRef=d(we);constructor(){this.openedChange.pipe(xe(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;sd(e,"keydown").pipe(Oe(n=>n.keyCode===27&&!this.disableClose&&!kt(n)),xe(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":xt(()=>{!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(Ve(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&&me(Vse,5),n&2){let r;G(r=W())&&(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),Rt("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:vh,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(n,o){n&1&&(ke(),h(0,"div",1,0),ae(2),_())},dependencies:[Ur],encapsulation:2,changeDetection:0})}return t})(),Zb=(()=>{class t{_dir=d(vt,{optional:!0});_element=d(X);_ngZone=d(se);_changeDetectorRef=d(we);_animationDisabled=Ue();_transitionsEnabled=!1;_allDrawers;_drawers=new On;_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(Qse);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(ye);constructor(){let e=d(je),n=d(Wn);this._dir?.change.pipe(xe(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),n.change().pipe(xe(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(Qe(this._allDrawers),xe(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(n=>!n._container||n._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Qe(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(To(10),xe(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(xe(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),e.mode!=="side"&&e.openedChange.pipe(xe(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e.onPositionChanged.pipe(xe(this._drawers.changes)).subscribe(()=>{xt({read:()=>this._validateDrawers()},{injector:this._injector})})}_watchDrawerMode(e){e._modeChanged.pipe(xe(mt(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&&(Ie(r,bh,5),Ie(r,Xb,5)),n&2){let a;G(a=W())&&(o._content=a.first),G(a=W())&&(o._allDrawers=a)}},viewQuery:function(n,o){if(n&1&&me(bh,5),n&2){let r;G(r=W())&&(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:Jb,useExisting:t}])],ngContentSelectors:jse,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&&(ke(Bse),I(0,Hse,1,2,"div",0),ae(1),ae(2,1),I(3,Use,2,0,"mat-drawer-content")),n&2&&(O(o.hasBackdrop?0:-1),p(3),O(o._content?-1:3))},dependencies:[bh],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})(),lz=(()=>{class t extends bh{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[de([{provide:Ur,useExisting:t}]),ce],ngContentSelectors:vh,decls:1,vars:0,template:function(n,o){n&1&&(ke(),ae(0))},encapsulation:2,changeDetection:0})}return t})(),Xse=(()=>{class t extends Xb{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=Te(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),Rt("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:Xb,useExisting:t}]),ce],ngContentSelectors:vh,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(n,o){n&1&&(ke(),h(0,"div",1,0),ae(2),_())},dependencies:[Ur],encapsulation:2,changeDetection:0})}return t})(),Y$e=(()=>{class t extends Zb{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(n,o,r){if(n&1&&(Ie(r,lz,5),Ie(r,Xse,5)),n&2){let a;G(a=W())&&(o._content=a.first),G(a=W())&&(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:Jb,useExisting:t},{provide:Zb,useExisting:t}]),ce],ngContentSelectors:Gse,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&&(ke($se),I(0,Wse,1,2,"div",0),ae(1),ae(2,1),I(3,qse,2,0,"mat-sidenav-content")),n&2&&(O(o.hasBackdrop?0:-1),p(3),O(o._content?-1:3))},dependencies:[lz],styles:[Yse],encapsulation:2,changeDetection:0})}return t})(),dz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,Si,Si,he]})}return t})();var Zse=["switch"],Jse=["*"];function ece(t,i){t&1&&(h(0,"span",11),Gt(),h(1,"svg",13),F(2,"path",14),_(),h(3,"svg",15),F(4,"path",16),_()())}var tce=new L("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),yh=class{source;checked;constructor(i,e){this.source=i,this.checked=e}},nce=(()=>{class t{_elementRef=d(X);_focusMonitor=d(ln);_changeDetectorRef=d(we);defaults=d(tce);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new yh(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(ct).load(dn);let e=d(new mn("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 yh(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&&me(Zse,5),n&2){let r;G(r=W())&&(o._switchElement=r.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(n,o){n&2&&(At("id",o.id),ne("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Pt(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:ft(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:fi,useExisting:It(()=>t),multi:!0},{provide:Di,useExisting:t,multi:!0}]),ze],ngContentSelectors:Jse,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();ke(),h(0,"div",1)(1,"button",2,0),N("click",function(){return U(r),$(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),_(),I(11,ece,5,0,"span",11),_()()(),h(12,"label",12),N("click",function(s){return U(r),$(s.stopPropagation())}),ae(13),_()()}if(n&2){let r=Ft(2);S("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),S("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),S("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),p(),O(o.hideIcon?-1:11),p(),S("for",o.buttonId),ne("id",o._labelId)}},dependencies:[gi,n2],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})(),uz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[nce,he,he]})}return t})();var mz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,Ei]})}return t})();function ice(t,i){if(t&1){let e=le();h(0,"div",1)(1,"button",2),N("click",function(){U(e);let o=w();return $(o.action())}),C(2),_()()}if(t&2){let e=w();p(2),te(" ",e.data.action," ")}}var oce=["label"];function rce(t,i){}var ace=Math.pow(2,31)-1,Pu=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,ace))}_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}},pz=new L("MatSnackBarData"),j2=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},sce=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),cce=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),lce=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),fz=(()=>{class t{snackBarRef=d(Pu);data=d(pz);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),C(1),_(),I(2,ice,3,1,"div",1)),n&2&&(p(),te(" ",o.data.message,`
-`),p(),O(o.hasAction?2:-1))},dependencies:[yt,sce,cce,lce],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})(),ev="_mat-snack-bar-enter",tv="_mat-snack-bar-exit",dce=(()=>{class t extends tc{_ngZone=d(se);_elementRef=d(X);_changeDetectorRef=d(we);_platform=d(je);_animationsDisabled=Ue();snackBarConfig=d(j2);_document=d(De);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=d(ye);_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===tv?this._completeExit():e===ev&&(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?xt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(ev)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(ev)},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?xt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(tv)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(tv),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&&(me(ki,7),me(oce,7)),n&2){let r;G(r=W())&&(o._portalOutlet=r.first),G(r=W())&&(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),Xe(4,rce,0,0,"ng-template",4),_(),F(5,"div"),_()()),n&2&&(p(5),ne("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[ki],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 uce(){return new j2}var mce=new L("mat-snack-bar-default-options",{providedIn:"root",factory:uce}),pce=(()=>{class t{_live=d(P0);_injector=d(ye);_breakpointObserver=d(ol);_parentSnackBar=d(t,{optional:!0,skipSelf:!0});_defaultConfig=d(mce);_animationsDisabled=Ue();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=fz;snackBarContainerComponent=dce;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=Y(Y({},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=ye.create({parent:o||this._injector,providers:[{provide:j2,useValue:n}]}),a=new Eo(this.snackBarContainerComponent,n.viewContainerRef,r),s=e.attach(a);return s.instance.snackBarConfig=n,s.instance}_attach(e,n){let o=Y(Y(Y({},new j2),this._defaultConfig),n),r=this._createOverlay(o),a=this._attachSnackBarContainer(r,o),s=new Pu(a,r);if(e instanceof it){let c=new qn(e,null,{$implicit:o.data,snackBarRef:s});s.instance=a.attachTemplatePortal(c)}else{let c=this._createInjector(o,s),u=new Eo(e,void 0,c),f=a.attachComponentPortal(u);s.instance=f.instance}return this._breakpointObserver.observe(Bp.HandsetPortrait).pipe(xe(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 go;n.direction=e.direction;let o=xa(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,_o(this._injector,n)}_createInjector(e,n){let o=e&&e.viewContainerRef&&e.viewContainerRef.injector;return ye.create({parent:o||this._injector,providers:[{provide:Pu,useValue:n},{provide:pz,useValue:e.data}]})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var hz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[pce],imports:[Li,ho,Ma,he,fz,he]})}return t})();var fce=["mat-sort-header",""],hce=["*"];function gce(t,i){t&1&&(ot(0,"div",2),Gt(),ot(1,"svg",3),Pn(2,"path",4),st()())}var gz=new L("MAT_SORT_DEFAULT_OPTIONS"),xh=(()=>{class t{_defaultOptions;_initializedStream=new yr(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=_ce(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)(Me(gz,8))};static \u0275dir=R({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:[ze]})}return t})();function _ce(t,i){let e=["asc","desc"];return t=="desc"&&e.reverse(),i||e.push(""),e}var Ch=(()=>{class t{changes=new B;static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function bce(t){return t||new Ch}var vce={provide:Ch,deps:[[new or,new da,Ch]],useFactory:bce},_z=(()=>{class t{_intl=d(Ch);_sort=d(xh,{optional:!0});_columnDef=d("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=d(we);_focusMonitor=d(ln);_elementRef=d(X);_ariaDescriber=d(t2,{optional:!0});_renderChanges;_animationsDisabled=Ue();_recentlyCleared=Se(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){d(ct).load(dn);let e=d(gz,{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=mt(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:fce,ngContentSelectors:hce,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&&(ke(),ot(0,"div",0)(1,"div",1),ae(2),st(),I(3,gce,3,0,"div",2),st()),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),O(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})(),bz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[vce],imports:[he]})}return t})();var yce=(t,i,e)=>({index:t,active:i,optional:e});function Cce(t,i){if(t&1&&jt(0,2),t&2){let e=w();S("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",q5(2,yce,e.index,e.active,e.optional))}}function xce(t,i){if(t&1&&(h(0,"span",7),C(1),_()),t&2){let e=w(2);p(),T(e._getDefaultTextForState(e.state))}}function Mce(t,i){if(t&1&&(h(0,"span",8),C(1),_()),t&2){let e=w(3);p(),T(e._intl.completedLabel)}}function wce(t,i){if(t&1&&(h(0,"span",8),C(1),_()),t&2){let e=w(3);p(),T(e._intl.editableLabel)}}function Dce(t,i){if(t&1&&(I(0,Mce,2,1,"span",8)(1,wce,2,1,"span",8),h(2,"mat-icon",7),C(3),_()),t&2){let e=w(2);O(e.state==="done"?0:e.state==="edit"?1:-1),p(3),T(e._getDefaultTextForState(e.state))}}function Sce(t,i){if(t&1&&I(0,xce,2,1,"span",7)(1,Dce,4,2),t&2){let e,n=w();O((e=n.state)==="number"?0:1)}}function kce(t,i){t&1&&(h(0,"div",4),jt(1,9),_()),t&2&&(p(),S("ngTemplateOutlet",i.template))}function Ece(t,i){if(t&1&&(h(0,"div",4),C(1),_()),t&2){let e=w();p(),T(e.label)}}function Ice(t,i){if(t&1&&(h(0,"div",5),C(1),_()),t&2){let e=w();p(),T(e._intl.optionalLabel)}}function Oce(t,i){if(t&1&&(h(0,"div",6),C(1),_()),t&2){let e=w();p(),T(e.errorMessage)}}var vz=["*"];function Tce(t,i){}function Pce(t,i){if(t&1&&(ae(0),Xe(1,Tce,0,0,"ng-template",0)),t&2){let e=w();p(),S("cdkPortalOutlet",e._portal)}}var Lce=["animatedContainer"],yz=t=>({step:t});function Ace(t,i){t&1&&ae(0)}function Rce(t,i){t&1&&F(0,"div",7)}function zce(t,i){if(t&1&&(jt(0,6),I(1,Rce,1,0,"div",7)),t&2){let e=i.$implicit,n=i.$index,o=i.$count;w(2);let r=Ft(4);S("ngTemplateOutlet",r)("ngTemplateOutletContext",zo(3,yz,e)),p(),O(n!==o-1?1:-1)}}function Nce(t,i){if(t&1&&(h(0,"div",8,1),jt(2,9),_()),t&2){let e=i.$implicit,n=i.$index,o=w(2);Pt("mat-horizontal-stepper-content-"+o._getAnimationDirection(n)),S("id",o._getStepContentId(n)),ne("aria-labelledby",o._getStepLabelId(n))("inert",o.selectedIndex===n?null:""),p(2),S("ngTemplateOutlet",e.content)}}function Fce(t,i){if(t&1&&(h(0,"div",2)(1,"div",3),et(2,zce,2,5,null,null,gt),_(),h(4,"div",4),et(5,Nce,3,6,"div",5,gt),_()()),t&2){let e=w();p(2),tt(e.steps),p(3),tt(e.steps)}}function Vce(t,i){if(t&1&&(h(0,"div",10),jt(1,6),h(2,"div",11,1)(4,"div",12)(5,"div",13),jt(6,9),_()()()()),t&2){let e=i.$implicit,n=i.$index,o=i.$index,r=i.$count,a=w(2),s=Ft(4);p(),S("ngTemplateOutlet",s)("ngTemplateOutletContext",zo(10,yz,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),S("id",a._getStepContentId(n)),ne("aria-labelledby",a._getStepLabelId(n)),p(2),S("ngTemplateOutlet",e.content)}}function Bce(t,i){if(t&1&&et(0,Vce,7,12,"div",10,gt),t&2){let e=w();tt(e.steps)}}function jce(t,i){if(t&1){let e=le();h(0,"mat-step-header",14),N("click",function(){let o=U(e).step;return $(o.select())})("keydown",function(o){U(e);let r=w();return $(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"),S("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 nv=(()=>{class t extends Gb{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=R({type:t,selectors:[["","matStepLabel",""]],features:[ce]})}return t})(),Mh=(()=>{class t{changes=new B;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Hce(t){return t||new Mh}var Uce={provide:Mh,deps:[[new or,new da,Mh]],useFactory:Hce},iv=(()=>{class t extends $b{_intl=d(Mh);_focusMonitor=d(ln);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();let e=d(ct);e.load(dn),e.load(Do);let n=d(we);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 nv?null:this.label}_templateLabel(){return this.label instanceof nv?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&&(Pt("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),I(3,Cce,1,6,"ng-container",2)(4,Sce,2,1),_()(),h(5,"div",3),I(6,kce,2,1,"div",4)(7,Ece,2,1,"div",4),I(8,Ice,2,1,"div",5),I(9,Oce,2,1,"div",6),_()),n&2){let r;S("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disableRipple),p(),Pt(Qc("mat-step-icon-state-",o.state," mat-step-icon")),oe("mat-step-icon-selected",o.selected),p(2),O(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(),O((r=o._templateLabel())?6:o._stringLabel()?7:-1,r),p(2),O(o._hasOptionalLabel()?8:-1),p(),O(o._hasErrorLabel()?9:-1)}},dependencies:[gi,As,Io],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})(),$ce=(()=>{class t{templateRef=d(it);name;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}})}return t})(),Gce=(()=>{class t{_template=d(it);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["ng-template","matStepContent",""]]})}return t})(),Wce=(()=>{class t extends fh{_errorStateMatcher=d(Ca,{skipSelf:!0});_viewContainerRef=d(pt);_isSelected=Ee.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(rt(()=>this._stepper.selectionChange.pipe(ue(e=>e.selectedStep===this),Qe(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new qn(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=Te(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-step"]],contentQueries:function(n,o,r){if(n&1&&(Ie(r,nv,5),Ie(r,Gce,5)),n&2){let a;G(a=W())&&(o.stepLabel=a.first),G(a=W())&&(o._lazyContent=a.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[de([{provide:Ca,useExisting:t},{provide:fh,useExisting:t}]),ce],ngContentSelectors:vz,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(n,o){n&1&&(ke(),Xe(0,Pce,2,1,"ng-template"))},dependencies:[ki],encapsulation:2,changeDetection:0})}return t})(),qce=(()=>{class t extends B2{_ngZone=d(se);_renderer=d(Je);_animationsDisabled=Ue();_cleanupTransition;_isAnimating=Se(!1);_stepHeader=void 0;_animatedContainers;_steps=void 0;steps=new On;_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(X).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(xe(this._destroyed)).subscribe(()=>this._stateChanged()),this.selectedIndexChange.pipe(xe(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(Qe(null),xe(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&&(Ie(r,Wce,5),Ie(r,$ce,5)),n&2){let a;G(a=W())&&(o._steps=a),G(a=W())&&(o._icons=a)}},viewQuery:function(n,o){if(n&1&&(me(iv,5),me(Lce,5)),n&2){let r;G(r=W())&&(o._stepHeader=r),G(r=W())&&(o._animatedContainers=r)}},hostAttrs:["role","tablist"],hostVars:15,hostBindings:function(n,o){n&2&&(ne("aria-orientation",o.orientation),Rt("--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:B2,useExisting:t}]),ce],ngContentSelectors:vz,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&&(ke(),I(0,Ace,1,0),I(1,Fce,7,0,"div",2)(2,Bce,2,0),Xe(3,jce,1,23,"ng-template",null,0,Ls)),n&2){let r;O(o._isServer?0:-1),p(),O((r=o.orientation)==="horizontal"?1:r==="vertical"?2:-1)}},dependencies:[As,iv],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})(),Cz=(()=>{class t extends LR{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=R({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(n,o){n&2&&At("type",o.type)},features:[ce]})}return t})(),xz=(()=>{class t extends AR{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=R({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(n,o){n&2&&At("type",o.type)},features:[ce]})}return t})(),Mz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[Uce,Ca],imports:[he,ho,RR,ah,Ei,qce,iv,he]})}return t})();var Yce=[[["caption"]],[["colgroup"],["col"]],"*"],Qce=["caption","colgroup, col","*"];function Kce(t,i){t&1&&ae(0,2)}function Xce(t,i){t&1&&(h(0,"thead",0),jt(1,1),_(),h(2,"tbody",0),jt(3,2)(4,3),_(),h(5,"tfoot",0),jt(6,4),_())}function Zce(t,i){t&1&&jt(0,1)(1,2)(2,3)(3,4)}var Yr=new L("CDK_TABLE");var Sh=(()=>{class t{template=d(it);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),kh=(()=>{class t{template=d(it);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),Eh=(()=>{class t{template=d(it);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),kl=(()=>{class t{_table=d(Yr,{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=R({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,o,r){if(n&1&&(Ie(r,Sh,5),Ie(r,kh,5),Ie(r,Eh,5)),n&2){let a;G(a=W())&&(o.cell=a.first),G(a=W())&&(o.headerCell=a.first),G(a=W())&&(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})(),Lu=class{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}},Sz=(()=>{class t extends Lu{constructor(){super(d(kl),d(X))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({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 Lu{constructor(){let e=d(kl),n=d(X);super(e,n);let o=e._table?._getCellRole();o&&n.nativeElement.setAttribute("role",o)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[ce]})}return t})(),Ez=(()=>{class t extends Lu{constructor(){let e=d(kl),n=d(X);super(e,n);let o=e._table?._getCellRole();o&&n.nativeElement.setAttribute("role",o)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[ce]})}return t})();var rv=(()=>{class t{template=d(it);_differs=d(No);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 Au?e.headerCell.template:this instanceof Ru?e.footerCell.template:e.cell.template}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,features:[ze]})}return t})(),Au=(()=>{class t extends rv{_table=d(Yr,{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(it),d(No))}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=R({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",H]},features:[ce,ze]})}return t})(),Ru=(()=>{class t extends rv{_table=d(Yr,{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(it),d(No))}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=R({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",H]},features:[ce,ze]})}return t})(),Ih=(()=>{class t extends rv{_table=d(Yr,{optional:!0});when;constructor(){super(d(it),d(No))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[ce]})}return t})(),us=(()=>{class t{_viewContainer=d(pt);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=R({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),av=(()=>{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&&jt(0,0)},dependencies:[us],encapsulation:2})}return t})(),sv=(()=>{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&&jt(0,0)},dependencies:[us],encapsulation:2})}return t})(),cv=(()=>{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&&jt(0,0)},dependencies:[us],encapsulation:2})}return t})(),Oh=(()=>{class t{templateRef=d(it);_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=R({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),wz=["top","bottom","left","right"],ov=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));xt({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(Q=>Q)||n.some(Q=>Q))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=i[0],s=a.children.length,c=this.direction==="rtl",u=c?"right":"left",f=c?"left":"right",b=e.lastIndexOf(!0),y=n.indexOf(!0),x,D,q;r&&this._updateStickyColumnReplayQueue({rows:[...i],stickyStartStates:[...e],stickyEndStates:[...n]}),xt({earlyRead:()=>{x=this._getCellWidths(a,o),D=this._getStickyStartColumnPositions(x,e),q=this._getStickyEndColumnPositions(x,n)},write:()=>{for(let Q of i)for(let K=0;K!!Q)&&(this._positionListener.stickyColumnsUpdated({sizes:b===-1?[]:x.slice(0,b+1).map((Q,K)=>e[K]?Q:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:y===-1?[]:x.slice(y).map((Q,K)=>n[K+y]?Q: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=[];xt({earlyRead:()=>{for(let u=0,f=0;u{let u=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]);wz.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 wz)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&&Jce(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 Jce(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(i=>t.classList.contains(i))}var Dh=new L("CDK_SPL");var lv=(()=>{class t{viewContainer=d(pt);elementRef=d(X);constructor(){let e=d(Yr);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","rowOutlet",""]]})}return t})(),dv=(()=>{class t{viewContainer=d(pt);elementRef=d(X);constructor(){let e=d(Yr);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),uv=(()=>{class t{viewContainer=d(pt);elementRef=d(X);constructor(){let e=d(Yr);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),mv=(()=>{class t{viewContainer=d(pt);elementRef=d(X);constructor(){let e=d(Yr);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),pv=(()=>{class t{_differs=d(No);_changeDetectorRef=d(we);_elementRef=d(X);_dir=d(vt,{optional:!0});_platform=d(je);_viewRepeater=d(w2);_viewportRuler=d(Wn);_stickyPositioningListener=d(Dh,{optional:!0,skipSelf:!0});_document=d(De);_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 dt({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=d(ye);constructor(){d(new mn("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(xe(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(),_l(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===ec.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=Dz(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=Dz(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(),wh(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=wh(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=wh(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=wh(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=[],_l(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;_l(this.dataSource)?e=this.dataSource.connect(this):di(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=re(this.dataSource)),this._renderChangeSubscription=e.pipe(xe(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))us.mostRecentCellOutlet&&us.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 ov(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:re()).pipe(xe(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=Z({imports:[ou]})}return t})();var ele=[[["caption"]],[["colgroup"],["col"]],"*"],tle=["caption","colgroup, col","*"];function nle(t,i){t&1&&ae(0,2)}function ile(t,i){t&1&&(h(0,"thead",0),jt(1,1),_(),h(2,"tbody",2),jt(3,3)(4,4),_(),h(5,"tfoot",0),jt(6,5),_())}function ole(t,i){t&1&&jt(0,1)(1,3)(2,4)(3,5)}var Th=(()=>{class t extends pv{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(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:pv,useExisting:t},{provide:Yr,useExisting:t},{provide:w2,useClass:yl},{provide:Dh,useValue:null}]),ce],ngContentSelectors:tle,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(ke(ele),ae(0),ae(1,1),I(2,nle,1,0),I(3,ile,7,0)(4,ole,4,0)),n&2&&(p(2),O(o._isServer?2:-1),p(),O(o._isNativeHtmlTable?3:4))},dependencies:[dv,lv,mv,uv],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})(),Ph=(()=>{class t extends Sh{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=R({type:t,selectors:[["","matCellDef",""]],features:[de([{provide:Sh,useExisting:t}]),ce]})}return t})(),Lh=(()=>{class t extends kh{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=R({type:t,selectors:[["","matHeaderCellDef",""]],features:[de([{provide:kh,useExisting:t}]),ce]})}return t})(),sqe=(()=>{class t extends Eh{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=R({type:t,selectors:[["","matFooterCellDef",""]],features:[de([{provide:Eh,useExisting:t}]),ce]})}return t})(),Ah=(()=>{class t extends kl{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=Te(t)))(o||t)}})();static \u0275dir=R({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[de([{provide:kl,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ce]})}return t})(),Rh=(()=>{class t extends Sz{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=R({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})(),cqe=(()=>{class t extends kz{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=R({type:t,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:[1,"mat-mdc-footer-cell","mdc-data-table__cell"],features:[ce]})}return t})(),zh=(()=>{class t extends Ez{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=R({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[ce]})}return t})();var Nh=(()=>{class t extends Au{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=R({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",H]},features:[de([{provide:Au,useExisting:t}]),ce]})}return t})(),lqe=(()=>{class t extends Ru{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=R({type:t,selectors:[["","matFooterRowDef",""]],inputs:{columns:[0,"matFooterRowDef","columns"],sticky:[2,"matFooterRowDefSticky","sticky",H]},features:[de([{provide:Ru,useExisting:t}]),ce]})}return t})(),Fh=(()=>{class t extends Ih{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=R({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[de([{provide:Ih,useExisting:t}]),ce]})}return t})(),Vh=(()=>{class t extends av{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(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:av,useExisting:t}]),ce],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&jt(0,0)},dependencies:[us],encapsulation:2})}return t})(),dqe=(()=>{class t extends sv{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(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:sv,useExisting:t}]),ce],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&jt(0,0)},dependencies:[us],encapsulation:2})}return t})(),Bh=(()=>{class t extends cv{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(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:cv,useExisting:t}]),ce],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&jt(0,0)},dependencies:[us],encapsulation:2})}return t})(),uqe=(()=>{class t extends Oh{_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=R({type:t,selectors:[["ng-template","matNoDataRow",""]],features:[de([{provide:Oh,useExisting:t}]),ce]})}return t})();var Oz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,Iz,he]})}return t})(),rle=9007199254740991,zu=class extends Js{_data;_renderData=new dt([]);_filter=new dt("");_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(Op(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),u=typeof s,f=typeof c;u!==f&&(u==="number"&&(s+=""),f==="number"&&(c+=""));let b=0;return s!=null&&c!=null?s>c?b=1:s{let n=e.trim().toLowerCase();return Object.values(i).some(o=>`${o}`.toLowerCase().includes(n))};constructor(i=[]){super(),this._data=new dt(i),this._updateChangeSubscription()}_updateChangeSubscription(){let i=this._sort?mt(this._sort.sortChange,this._sort.initialized):re(null),e=this._paginator?mt(this._paginator.page,this._internalPageChanges,this._paginator.initialized):re(null),n=this._data,o=Kn([n,this._filter]).pipe(ue(([s])=>this._filterData(s))),r=Kn([o,i]).pipe(ue(([s])=>this._orderData(s))),a=Kn([r,e]).pipe(ue(([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 H2=["*"];function ale(t,i){t&1&&ae(0)}var Az=["tabListContainer"],Rz=["tabList"],zz=["tabListInner"],Nz=["nextPaginator"],Fz=["previousPaginator"],sle=["content"];function cle(t,i){}var lle=["tabBodyWrapper"],dle=["tabHeader"];function ule(t,i){}function mle(t,i){if(t&1&&Xe(0,ule,0,0,"ng-template",12),t&2){let e=w().$implicit;S("cdkPortalOutlet",e.templateLabel)}}function ple(t,i){if(t&1&&C(0),t&2){let e=w().$implicit;T(e.textLabel)}}function fle(t,i){if(t&1){let e=le();h(0,"div",7,2),N("click",function(){let o=U(e),r=o.$implicit,a=o.$index,s=w(),c=Ft(1);return $(s._handleClick(r,c,a))})("cdkFocusChange",function(o){let r=U(e).$index,a=w();return $(a._tabFocusChanged(o,r))}),F(2,"span",8)(3,"div",9),h(4,"span",10)(5,"span",11),I(6,mle,1,1,null,12)(7,ple,1,1),_()()()}if(t&2){let e=i.$implicit,n=i.$index,o=Ft(1),r=w();Pt(e.labelClass),oe("mdc-tab--active",r.selectedIndex===n),S("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),S("matRippleTrigger",o)("matRippleDisabled",e.disabled||r.disableRipple),p(3),O(e.templateLabel?6:7)}}function hle(t,i){t&1&&ae(0)}function gle(t,i){if(t&1){let e=le();h(0,"mat-tab-body",13),N("_onCentered",function(){U(e);let o=w();return $(o._removeTabBodyWrapperHeight())})("_onCentering",function(o){U(e);let r=w();return $(r._setTabBodyWrapperHeight(o))})("_beforeCentering",function(o){U(e);let r=w();return $(r._bodyCentered(o))}),_()}if(t&2){let e=i.$implicit,n=i.$index,o=w();Pt(e.bodyClass),S("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 _le=["mat-tab-nav-bar",""],ble=["mat-tab-link",""],vle=new L("MatTabContent"),yle=(()=>{class t{template=d(it);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","matTabContent",""]],features:[de([{provide:vle,useExisting:t}])]})}return t})(),Cle=new L("MatTabLabel"),Vz=new L("MAT_TAB"),xle=(()=>{class t extends II{_closestTab=d(Vz,{optional:!0});static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=R({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[de([{provide:Cle,useExisting:t}]),ce]})}return t})(),Bz=new L("MAT_TAB_GROUP"),Mle=(()=>{class t{_viewContainerRef=d(pt);_closestTabGroup=d(Bz,{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(ct).load(dn)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new qn(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&&(Ie(r,xle,5),Ie(r,yle,7,it)),n&2){let a;G(a=W())&&(o.templateLabel=a.first),G(a=W())&&(o._explicitContent=a.first)}},viewQuery:function(n,o){if(n&1&&me(it,7),n&2){let r;G(r=W())&&(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:Vz,useExisting:t}]),ze],ngContentSelectors:H2,decls:1,vars:0,template:function(n,o){n&1&&(ke(),Tr(0,ale,1,0,"ng-template"))},encapsulation:2})}return t})(),fv="mdc-tab-indicator--active",Tz="mdc-tab-indicator--no-transition",jh=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}}},jz=(()=>{class t{_elementRef=d(X);_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(fv);return}let o=n.getBoundingClientRect(),r=e.width/o.width,a=e.left-o.left;n.classList.add(Tz),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${r})`),n.getBoundingClientRect(),n.classList.remove(Tz),n.classList.add(fv),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(fv)}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=R({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",H]}})}return t})();var Hz=(()=>{class t extends jz{elementRef=d(X);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=Te(t)))(o||t)}})();static \u0275dir=R({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})(),Pz={passive:!0},wle=650,Dle=100,Uz=(()=>{class t{_elementRef=d(X);_changeDetectorRef=d(we);_viewportRuler=d(Wn);_dir=d(vt,{optional:!0});_ngZone=d(se);_platform=d(je);_sharedResizeObserver=d(bf);_injector=d(ye);_renderer=d(Je);_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"),Pz),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),Pz))}ngAfterContentInit(){let e=this._dir?this._dir.change:re("ltr"),n=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(To(32),xe(this._destroyed)),o=this._viewportRuler.change(150).pipe(xe(this._destroyed)),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Br(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),xt(r,{injector:this._injector}),mt(e,o,n,this._items.changes,this._itemsResized()).pipe(xe(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(Qe(this._items),rt(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()}}))),kc(1),Oe(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(!kt(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 u=this.scrollDistance,f=this.scrollDistance+o;sf&&(this.scrollDistance+=Math.min(c-f,s-u))}_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(),za(wle,Dle).pipe(xe(mt(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=R({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",H],selectedIndex:[2,"selectedIndex","selectedIndex",ft]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),Sle=(()=>{class t extends Uz{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new jh(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-tab-header"]],contentQueries:function(n,o,r){if(n&1&&Ie(r,Hz,4),n&2){let a;G(a=W())&&(o._items=a)}},viewQuery:function(n,o){if(n&1&&(me(Az,7),me(Rz,7),me(zz,7),me(Nz,5),me(Fz,5)),n&2){let r;G(r=W())&&(o._tabListContainer=r.first),G(r=W())&&(o._tabList=r.first),G(r=W())&&(o._tabListInner=r.first),G(r=W())&&(o._nextPaginator=r.first),G(r=W())&&(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:H2,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();ke(),h(0,"div",5,0),N("click",function(){return U(r),$(o._handlePaginatorClick("before"))})("mousedown",function(s){return U(r),$(o._handlePaginatorPress("before",s))})("touchend",function(){return U(r),$(o._stopInterval())}),F(2,"div",6),_(),h(3,"div",7,1),N("keydown",function(s){return U(r),$(o._handleKeydown(s))}),h(5,"div",8,2),N("cdkObserveContent",function(){return U(r),$(o._onContentChanges())}),h(7,"div",9,3),ae(9),_()()(),h(10,"div",10,4),N("mousedown",function(s){return U(r),$(o._handlePaginatorPress("after",s))})("click",function(){return U(r),$(o._handlePaginatorClick("after"))})("touchend",function(){return U(r),$(o._stopInterval())}),F(12,"div",6),_()}n&2&&(oe("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),S("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),S("matRippleDisabled",o._disableScrollAfter||o.disableRipple))},dependencies:[gi,T0],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})(),$z=new L("MAT_TABS_CONFIG"),Lz=(()=>{class t extends ki{_host=d(hv);_ngZone=d(se);_centeringSub=Ee.EMPTY;_leavingSub=Ee.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Qe(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=R({type:t,selectors:[["","matTabBodyHost",""]],features:[ce]})}return t})(),hv=(()=>{class t{_elementRef=d(X);_dir=d(vt,{optional:!0});_ngZone=d(se);_injector=d(ye);_renderer=d(Je);_diAnimationsDisabled=Ue();_eventCleanups;_initialized;_fallbackTimer;_positionIndex;_dirChangeSubscription=Ee.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(we);this._dirChangeSubscription=this._dir.change.subscribe(n=>{this._computePositionAnimationState(n),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),xt(()=>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(),xt(()=>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&&(me(Lz,5),me(sle,5)),n&2){let r;G(r=W())&&(o._portalHost=r.first),G(r=W())&&(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),Xe(2,cle,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:[Lz,Ur],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})(),jqe=(()=>{class t{_elementRef=d(X);_changeDetectorRef=d(we);_ngZone=d(se);_tabsSubscription=Ee.EMPTY;_tabLabelSubscription=Ee.EMPTY;_tabBodySubscription=Ee.EMPTY;_diAnimationsDisabled=Ue();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new On;_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($z,{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(Qe(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 gv;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=mt(...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&&Ie(r,Mle,5),n&2){let a;G(a=W())&&(o._allTabs=a)}},viewQuery:function(n,o){if(n&1&&(me(lle,5),me(dle,5),me(hv,5)),n&2){let r;G(r=W())&&(o._tabBodyWrapper=r.first),G(r=W())&&(o._tabHeader=r.first),G(r=W())&&(o._tabBodies=r)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(n,o){n&2&&(ne("mat-align-tabs",o.alignTabs),Pt("mat-"+(o.color||"primary")),Rt("--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",ft],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ft],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:Bz,useExisting:t}])],ngContentSelectors:H2,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();ke(),h(0,"mat-tab-header",3,0),N("indexFocused",function(s){return U(r),$(o._focusChanged(s))})("selectFocusedIndex",function(s){return U(r),$(o.selectedIndex=s)}),et(2,fle,8,17,"div",4,gt),_(),I(4,hle,1,0),h(5,"div",5,1),et(7,gle,1,10,"mat-tab-body",6,gt),_()}n&2&&(S("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination),k1("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),p(2),tt(o._tabs),p(2),O(o._isServer?4:-1),p(),oe("_mat-animation-noopable",o._animationsDisabled()),p(2),tt(o._tabs))},dependencies:[Sle,Hz,O0,gi,ki,hv],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})(),gv=class{index;tab},kle=(()=>{class t extends Uz{_focusedItem=Se(null);get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(e){this._fitInkBarToContent.next(e),this._changeDetectorRef.markForCheck()}_fitInkBarToContent=new dt(!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=Se(!1);color="primary";tabPanel;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;constructor(){let e=d($z,{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 jh(this._items),this._items.changes.pipe(Qe(null),xe(this._destroyed)).subscribe(()=>this.updateActiveLink()),super.ngAfterContentInit(),this._keyManager.change.pipe(Qe(null),xe(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})(),Ele=(()=>{class t extends jz{_tabNavBar=d(kle);elementRef=d(X);_focusMonitor=d(ln);_destroyed=new B;_isActive=!1;_tabIndex=ti(()=>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=Se(!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(ct).load(dn);let e=d(ll,{optional:!0}),n=d(new mn("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(xe(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:ft(e)],id:"id"},exportAs:["matTabLink"],features:[ce],attrs:ble,ngContentSelectors:H2,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&&(ke(),F(0,"span",0)(1,"div",1),h(2,"span",2)(3,"span",3),ae(4),_()()),n&2&&(p(),S("matRippleTrigger",o.elementRef.nativeElement)("matRippleDisabled",o.rippleDisabled))},dependencies:[gi],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})(),Hqe=(()=>{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:H2,decls:1,vars:0,template:function(n,o){n&1&&(ke(),ae(0))},encapsulation:2,changeDetection:0})}return t})(),Gz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,he]})}return t})();var Ile=["*",[["mat-toolbar-row"]]],Ole=["*","mat-toolbar-row"],Tle=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),eYe=(()=>{class t{_elementRef=d(X);_platform=d(je);_document=d(De);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&&Ie(r,Tle,5),n&2){let a;G(a=W())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,o){n&2&&(Pt(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:Ole,decls:2,vars:0,template:function(n,o){n&1&&(ke(Ile),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 Wz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,he]})}return t})();var Hh=class{dataNodes;expansionModel=new bo(!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}},qz=class extends Hh{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)))}},Yz=class extends Hh{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)):di(n)&&n.pipe(Ve(1),Oe(Boolean)).subscribe(o=>{for(let r of o)this._getDescendants(i,r)})}},Fu=new L("CDK_TREE_NODE_OUTLET_NODE"),Nu=(()=>{class t{viewContainer=d(pt);_node=d(Fu,{optional:!0});constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","cdkTreeNodeOutlet",""]]})}return t})(),_v=class{$implicit;level;index;count;constructor(i){this.$implicit=i}},Uh=(()=>{class t{template=d(it);when;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:[0,"cdkTreeNodeDefWhen","when"]}})}return t})();function Qz(){return Error("Could not find a tree control, levelAccessor, or childrenAccessor for the tree.")}var U2=(()=>{class t{_differs=d(No);_changeDetectorRef=d(we);_elementRef=d(X);_dir=d(vt);_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 dt({start:0,end:Number.MAX_VALUE});_expansionModel;_flattenedNodes=new dt([]);_nodeType=new dt(null);_nodes=new dt(new Map);_keyManagerNodes=new dt([]);_keyManagerFactory=d(Qk);_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 bo(!0),this._expansionModel)}_subscribeToDataChanges(){if(this._dataSubscription)return;let e;_l(this._dataSource)?e=this._dataSource.connect(this):di(this._dataSource)?e=this._dataSource:Array.isArray(this._dataSource)&&(e=re(this._dataSource)),e&&(this._dataSubscription=this._getRenderData(e).pipe(xe(this._onDestroy)).subscribe(n=>{this._renderDataChanges(n)}))}_getRenderData(e){let n=this._getExpansionModel();return Kn([e,this._nodeType,n.changed.pipe(Qe(null),Dt(o=>{this._emitExpansionChanges(o)}))]).pipe(rt(([o,r])=>r===null?re({renderNodes:o,flattenedNodes:null,nodeType:r}):this._computeRenderingData(o,r).pipe(ue(a=>Ne(Y({},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=Kn([this._keyManagerNodes,this._nodes]).pipe(ue(([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,u)=>{if(s.previousIndex==null)this.insertNode(e[u],u,o,r);else if(u==null)o.remove(c);else{let f=o.get(c);o.move(f,u)}}),a?.forEachIdentityChange(s=>{let c=s.item;if(s.currentIndex!=null){let u=o.get(s.currentIndex);u.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),u=new _v(e);u.index=n,r??=this._parents.get(c)??void 0,a?u.level=a(e):r!==void 0&&this._levels.has(this._getExpansionKey(r))?u.level=this._levels.get(this._getExpansionKey(r))+1:u.level=0,this._levels.set(c,u.level),(o||this._nodeOutlet.viewContainer).createEmbeddedView(s.template,u,n),Da.mostRecentTreeNode&&(Da.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(Ve(1),xe(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(Ve(1),xe(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(rt(c=>c.added.includes(r)?re(!0):c.removed.includes(r)?re(!1):Sn),Qe(this.isExpanded(e)));if(n)return Kn([a,this._flattenedNodes]).pipe(ue(([c,u])=>c?this._findChildrenByLevel(n,u,e,1):[]));let s=this._getChildrenAccessor();if(s)return al(s(e)??[]);throw Qz()}_findChildrenByLevel(e,n,o,r){let a=this._getExpansionKey(o),s=n.findIndex(b=>this._getExpansionKey(b)===a),c=e(o),u=c+r,f=[];for(let b=s+1;bthis._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(ue(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($3((n,o)=>(n.push(...o),n),[]));throw Qz()}_getAllChildrenRecursively(e){return this.childrenAccessor?al(this.childrenAccessor(e)).pipe(Ve(1),rt(n=>{for(let o of n)this._parents.set(this._getExpansionKey(o),e);return re(...n).pipe(to(o=>Vi(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=al(o(r));return Vi(re([r]),s.pipe(Ve(1),Dt(c=>{this._ariaSets.set(a,[...c??[]]);for(let u of c??[]){let f=this._getExpansionKey(u);this._parents.set(f,r),this._levels.set(f,n+1)}}),rt(c=>c?this._flattenNestedNodesWithExpansion(c,n+1).pipe(ue(u=>this.isExpanded(r)?u:[])):re([]))))}),$3((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(ue(o=>({renderNodes:o,flattenedNodes:o})));if(this.levelAccessor&&n==="nested"){let o=this.levelAccessor;return re(e.filter(r=>o(r)===0)).pipe(ue(r=>({renderNodes:r,flattenedNodes:e})),Dt(({flattenedNodes:r})=>{this._calculateParents(r)}))}else return n==="flat"?re({renderNodes:e,flattenedNodes:e}).pipe(Dt(({flattenedNodes:o})=>{this._calculateParents(o)})):(this._clearPreviousCache(),this._ariaSets.set(null,[...e]),this._flattenNestedNodesWithExpansion(e).pipe(ue(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?Kn(o).pipe(Ve(1),xe(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&&Ie(r,Uh,5),n&2){let a;G(a=W())&&(o._nodeDefs=a)}},viewQuery:function(n,o){if(n&1&&me(Nu,7),n&2){let r;G(r=W())&&(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&&jt(0,0)},dependencies:[Nu],encapsulation:2})}return t})(),Da=(()=>{class t{_elementRef=d(X);_tree=d(U2);_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(we);constructor(){t.mostRecentTreeNode=this}ngOnInit(){this._parentNodeAriaLevel=Ple(this._elementRef.nativeElement),this._tree._getExpansionModel().changed.pipe(ue(()=>this.isExpanded),Zl(),xe(this._destroyed)).pipe(xe(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=R({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&&(At("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 Ple(t){let i=t.parentElement;for(;i&&!Lle(i);)i=i.parentElement;return i?i.classList.contains("cdk-nested-tree-node")?ft(i.getAttribute("aria-level")):0:-1}function Lle(t){let i=t.classList;return!!(i?.contains("cdk-nested-tree-node")||i?.contains("cdk-tree"))}var bv=(()=>{class t extends Da{_type="nested";_differs=d(No);_dataDiffer;_children;nodeOutlet;constructor(){super()}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy),this._tree._getDirectChildren(this.data).pipe(xe(this._destroyed)).subscribe(e=>this.updateChildrenNodes(e)),this.nodeOutlet.changes.pipe(xe(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=R({type:t,selectors:[["cdk-nested-tree-node"]],contentQueries:function(n,o,r){if(n&1&&Ie(r,Nu,5),n&2){let a;G(a=W())&&(o.nodeOutlet=a)}},hostAttrs:[1,"cdk-nested-tree-node"],exportAs:["cdkNestedTreeNode"],features:[de([{provide:Da,useExisting:t},{provide:Fu,useExisting:t}]),ce]})}return t})(),Ale=/([A-Za-z%]+)$/,vv=(()=>{class t{_treeNode=d(Da);_tree=d(U2);_element=d(X);_dir=d(vt,{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(xe(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(Ale);n=r[0],o=r[1]||o}this.indentUnits=o,this._indent=ft(n),this._setPadding()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:[2,"cdkTreeNodePadding","level",ft],indent:[0,"cdkTreeNodePaddingIndent","indent"]}})}return t})(),yv=(()=>{class t{_tree=d(U2);_treeNode=d(Da);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=R({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 Kz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})();function Rle(t){return!!t._isNoopTreeKeyManager}var AYe=(()=>{class t extends Da{get tabIndexInputBinding(){return this._tabIndexInputBinding}set tabIndexInputBinding(e){this._tabIndexInputBinding=e}_tabIndexInputBinding;defaultTabIndex=0;_getTabindexAttribute(){return Rle(this._tree._keyManager)?this.tabIndexInputBinding:this._tabindex}get disabled(){return this.isDisabled}set disabled(e){this.isDisabled=e}constructor(){super();let e=d(new mn("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=R({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&&(At("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:ft(e)],disabled:[2,"disabled","disabled",H]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["matTreeNode"],features:[de([{provide:Da,useExisting:t}]),ce]})}return t})(),RYe=(()=>{class t extends Uh{data;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=R({type:t,selectors:[["","matTreeNodeDef",""]],inputs:{when:[0,"matTreeNodeDefWhen","when"],data:[0,"matTreeNode","data"]},features:[de([{provide:Uh,useExisting:t}]),ce]})}return t})(),zYe=(()=>{class t extends bv{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=Te(t)))(o||t)}})();static \u0275dir=R({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:ft(e)]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["matNestedTreeNode"],features:[de([{provide:bv,useExisting:t},{provide:Da,useExisting:t},{provide:Fu,useExisting:t}]),ce]})}return t})(),NYe=(()=>{class t extends vv{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=Te(t)))(o||t)}})();static \u0275dir=R({type:t,selectors:[["","matTreeNodePadding",""]],inputs:{level:[2,"matTreeNodePadding","level",ft],indent:[0,"matTreeNodePaddingIndent","indent"]},features:[de([{provide:vv,useExisting:t}]),ce]})}return t})(),Xz=(()=>{class t{viewContainer=d(pt);_node=d(Fu,{optional:!0});static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[de([{provide:Nu,useExisting:t}])]})}return t})(),FYe=(()=>{class t extends U2{_nodeOutlet=void 0;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-tree"]],viewQuery:function(n,o){if(n&1&&me(Xz,7),n&2){let r;G(r=W())&&(o._nodeOutlet=r.first)}},hostAttrs:[1,"mat-tree"],exportAs:["matTree"],features:[de([{provide:U2,useExisting:t}]),ce],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(n,o){n&1&&jt(0,0)},dependencies:[Xz],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})(),VYe=(()=>{class t extends yv{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=R({type:t,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:[0,"matTreeNodeToggleRecursive","recursive"]},features:[de([{provide:yv,useExisting:t}]),ce]})}return t})();var tN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[Kz,he,he]})}return t})(),Zz=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(Ve(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}},Jz=class extends Js{_treeControl;_treeFlattener;_flattenedData=new dt([]);_expandedData=new dt([]);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 dt([]);constructor(i,e,n){super(),this._treeControl=i,this._treeFlattener=e,n&&(this.data=n)}connect(i){return mt(i.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe(ue(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}},eN=class extends Js{get data(){return this._data.value}set data(i){this._data.next(i)}_data=new dt([]);connect(i){return mt(i.viewChange,this._data).pipe(ue(()=>this.data))}disconnect(){}};var zle=["searchSelectInput"],Nle=["innerSelectSearch"],Fle=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Vle=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];function Ble(t,i){if(t&1){let e=le();h(0,"mat-checkbox",10),N("change",function(o){U(e);let r=w();return $(r._emitSelectAllBooleanToParent(o.checked))}),_()}if(t&2){let e=w();S("color",e.matFormField==null?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toggleAllCheckboxTooltipPosition)}}function jle(t,i){t&1&&F(0,"mat-spinner",7)}function Hle(t,i){t&1&&ae(0,1)}function Ule(t,i){if(t&1&&F(0,"mat-icon",12),t&2){let e=w(2);S("svgIcon",e.closeSvgIcon)}}function $le(t,i){if(t&1&&(h(0,"mat-icon"),C(1),_()),t&2){let e=w(2);p(),te(" ",e.closeIcon," ")}}function Gle(t,i){if(t&1){let e=le();h(0,"button",11),N("click",function(){U(e);let o=w();return $(o._reset(!0))}),I(1,Hle,1,0)(2,Ule,1,1,"mat-icon",12)(3,$le,2,1,"mat-icon"),_()}if(t&2){let e=w();p(),O(e.clearIcon?1:e.closeSvgIcon?2:3)}}function Wle(t,i){t&1&&ae(0,2)}function qle(t,i){if(t&1&&C(0),t&2){let e=w(2);te(" ",e.noEntriesFoundLabel," ")}}function Yle(t,i){if(t&1&&(h(0,"div",9),I(1,Wle,1,0)(2,qle,1,1),_()),t&2){let e=w();p(),O(e.noEntriesFound?1:2)}}var Qle=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","ngxMatSelectSearchClear",""]]})}return t})(),Kle=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],Xle=new L("mat-selectsearch-default-options"),Zle=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t,selectors:[["","ngxMatSelectNoEntriesFound",""]]})}return t})(),Cv=(()=>{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 dt(null);optionsList$=this._options$.pipe(rt(e=>e?e.changes.pipe(ue(n=>n.toArray()),Qe(e.toArray())):re(null)));optionsLength$=this.optionsList$.pipe(ue(e=>e?e.length:0));previousSelectedValues;_formControl=new Vs("",{nonNullable:!0});_showNoEntriesFound$=Kn([this._formControl.valueChanges,this.optionsLength$]).pipe(ue(([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 Kle)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(Na(1),xe(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(Ve(1),rt(()=>{this._options=this.matSelect.options;let e=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(Dt(()=>{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(xe(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(xe(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(xe(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(xe(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(Oe(n=>n!==this._lastExternalInputValue),Dt(()=>this._lastExternalInputValue=void 0),xe(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(xe(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)(Me(Yn),Me(we),Me(Wn),Me(un,8),Me(Ht,8),Me(Xle,8))};static \u0275cmp=P({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(n,o,r){if(n&1&&(Ie(r,Qle,5),Ie(r,Zle,5)),n&2){let a;G(a=W())&&(o.clearIcon=a.first),G(a=W())&&(o.noEntriesFound=a.first)}},viewQuery:function(n,o){if(n&1&&(me(zle,7,X),me(Nle,7,X)),n&2){let r;G(r=W())&&(o.searchSelectInput=r.first),G(r=W())&&(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:fi,useExisting:It(()=>t),multi:!0}])],ngContentSelectors:Vle,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();ke(Fle),F(0,"input",2),h(1,"div",3,0)(3,"div",4),I(4,Ble,1,5,"mat-checkbox",5),h(5,"input",6,1),N("keydown",function(s){return U(r),$(o._handleKeydown(s))})("keyup",function(s){return U(r),$(o._handleKeyup(s))})("blur",function(){return U(r),$(o.onBlur())}),_(),I(7,jle,1,0,"mat-spinner",7),I(8,Gle,4,1,"button",8),ae(9),_(),F(10,"mat-divider"),_(),I(11,Yle,3,1,"div",9),k(12,"async")}n&2&&(p(),oe("mat-select-search-inner-multiple",o.matSelect.multiple)("mat-select-search-inner-toggle-all",o._isToggleAllCheckboxVisible()),p(3),O(o._isToggleAllCheckboxVisible()?4:-1),p(),S("type",o.type)("formControl",o._formControl)("placeholder",o.placeholderLabel),ne("aria-label",o.ariaLabel),p(2),O(o.searching?7:-1),p(),O(!o.hideClearSearchButton&&o.value&&!o.searching?8:-1),p(3),O(E(12,12,o._showNoEntriesFound$)?11:-1))},dependencies:[i0,Ce,wi,fn,Ti,dl,uc,vo,nz,Io,Ma,ri],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 $h=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[Cv]})}return t})();var xv=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t})}static{this.\u0275inj=Z({providers:[{provide:yf,useValue:{appearance:"fill"}},{provide:Wb,useValue:{showError:!0,displayDefaultIndicatorType:!1}}],imports:[PR,Jk,FR,Ma,HR,mI,dE,UR,SO,z9,Jf,QR,Zs,FP,ah,kI,JR,PP,JI,ez,rz,iz,cz,cu,$h,dz,mz,uz,hz,bz,Mz,Oz,Gz,Wz,Mu,tN,nL]})}}return t})();var Mv=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)}},$2=(()=>{class t{_document=d(De);constructor(){}copy(e){let n=this.beginCopy(e),o=n.copy();return n.destroy(),o}beginCopy(e){return new Mv(e,this._document)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function e1e(t,i){if(t&1){let e=le();h(0,"span",3),N("click",function(){U(e);let o=w(2);return $(o.copyValue())}),F(1,"fa-icon",4),_()}}function t1e(t,i){if(t&1){let e=le();h(0,"span",5),N("click",function(){U(e);let o=w(2);return $(o.showValue())}),F(1,"fa-icon",6),_()}if(t&2){let e=w(2);p(),S("title",e.externalId)}}function n1e(t,i){if(t&1){let e=le();h(0,"span",7),N("click",function(){U(e);let o=w(2);return $(o.showValue())}),C(1),k(2,"externalIdentifier"),_()}if(t&2){let e=w(2);p(),T(E(2,1,e.externalId))}}function i1e(t,i){if(t&1){let e=le();h(0,"span",3),N("click",function(){U(e);let o=w(2);return $(o.showValue())}),C(1),_()}if(t&2){let e=w(2);p(),T(e.externalId)}}function o1e(t,i){if(t&1){let e=le();h(0,"span",7),N("click",function(){U(e);let o=w(2);return $(o.showValue())}),F(1,"fa-icon",6),_()}if(t&2){let e=w(2);p(),S("title",e.externalId)}}function r1e(t,i){if(t&1){let e=le();h(0,"span",5),N("click",function(){U(e);let o=w(2);return $(o.copyValue())}),F(1,"fa-icon",4),_()}}function a1e(t,i){if(t&1){let e=le();h(0,"span",0),N("mouseenter",function(){U(e);let o=w();return $(o.mouseEnter())})("mouseleave",function(){U(e);let o=w();return $(o.mouseLeave())}),I(1,e1e,2,0,"span"),I(2,t1e,2,1,"span",1),I(3,n1e,3,3,"span",2),I(4,i1e,2,1,"span"),I(5,o1e,2,1,"span",2),I(6,r1e,2,0,"span",1),_()}if(t&2){let e=w();p(),O(e.displayL&&e.iconVisible?1:-1),p(),O(e.displayL&&!e.completed&&e.iconVisible&&e.isLongValue()?2:-1),p(),O(e.completed?-1:3),p(),O(e.completed?4:-1),p(),O(e.displayR&&!e.completed&&e.iconVisible&&e.isLongValue()?5:-1),p(),O(e.displayR&&e.iconVisible?6:-1)}}var nN=(()=>{class t{constructor(){this.clipboard=d($2),this.alertService=d(zs),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&&I(0,a1e,7,6,"span"),n&2&&O(o.emptyValue?-1:0)},dependencies:[ge,Ce,Qt,np],encapsulation:2})}}return t})();var Gh=(()=>{class t{constructor(){this.http=d(kn)}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(Xn(o=>o.status===404?re(null):Co(()=>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(Y({},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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var iN=(()=>{class t{constructor(){this.http=d(kn)}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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Wh=(()=>{class t{constructor(){this.http=d(kn),this.settingsService=d(Jt),this.dateUtils=d(wo)}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(Y({},e),{charges:(e.charges??[]).map(c=>{let u=c.chargeId??c.id;if(u==null)return null;let f={chargeId:u,amount:c.amount};return c.id&&c.id!==u&&(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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var qh=(()=>{class t{constructor(){this.http=d(kn)}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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var s1e=["formRef"];function c1e(t,i){if(t&1){let e=le();h(0,"div",10)(1,"div",11),C(2),_(),h(3,"div",12)(4,"div",13)(5,"div",14),C(6),_(),h(7,"div",15),C(8),k(9,"dateFormat"),_()(),h(10,"div",16)(11,"button",17),N("click",function(){let o=U(e),r=o.$implicit,a=o.$index,s=w(2);return $(s.editNote(r.id,r.note,a))}),C(12," Edit "),_(),h(13,"button",18),N("click",function(){let o=U(e),r=o.$implicit,a=o.$index,s=w(2);return $(s.deleteNote(r.id,a))}),C(14," Delete "),_()()()()}if(t&2){let e=i.$implicit;p(2),te(" ",e.note," "),p(4),te("Created by ",e.createdByUsername),p(2),te(" ",E(9,3,e.createdOn)," ")}}function l1e(t,i){if(t&1&&(h(0,"div"),et(1,c1e,15,5,"div",10,gt),_()),t&2){let e=w();p(),tt(e.entityNotes)}}function d1e(t,i){t&1&&(h(0,"div",9),C(1,"No notes available"),_())}var oN=(()=>{class t{constructor(){this.formBuilder=d(Hs),this.savingsService=d(qh),this.loansService=d(Wh),this.clientsService=d(Gh),this.groupsService=d(iN),this.dialog=d(Zi)}ngOnInit(){this.createNoteForm()}createNoteForm(){this.noteForm=this.formBuilder.group({note:["",on.required]})}addNote(){this.callbackAdd(this.noteForm.value),this.formRef.resetForm()}editNote(e,n,o){this.dialog.open(as,{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(Gr,{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&&me(s1e,7),n&2){let r;G(r=W())&&(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"],["type","button","mat-raised-button","","color","primary",1,"flex-1",3,"click","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"],["type","button","mat-raised-button","","color","primary","title","Edit note",3,"click"],["type","button","mat-raised-button","","color","warn","title","Delete note",3,"click"]],template:function(n,o){if(n&1){let r=le();h(0,"div",1)(1,"h3"),C(2),k(3,"translate"),_(),h(4,"div",2)(5,"form",3,0),N("ngSubmit",function(){return U(r),$(o.addNote())}),h(7,"mat-form-field",4),F(8,"textarea",5),k(9,"translate"),_(),h(10,"button",6),N("click",function(){return U(r),$(o.addNote())}),F(11,"fa-icon",7),C(12),k(13,"translate"),_()()(),h(14,"div",8),I(15,l1e,3,0,"div")(16,d1e,2,0,"div",9),_()()}n&2&&(p(2),T(E(3,7,"labels.heading.Notes")),p(3),S("formGroup",o.noteForm),p(3),S("placeholder",Qc("",E(9,9,"labels.text.Write a note")," ...")),p(2),S("disabled",!o.noteForm.valid),p(2),te("",E(13,11,"labels.buttons.Add")," "),p(3),O(o.entityNotes&&o.entityNotes.length>0?15:16))},dependencies:[ge,Ce,js,wi,fn,cr,Fr,hi,jo,Ht,oi,yt,Cf,Qt,Bo,Pe],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}.note-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{min-width:auto;padding:8px 14px;font-size:14px}.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}.note-actions[_ngcontent-%COMP%]{align-self:flex-end}.note-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding:5px 10px;font-size:11px}.note-meta[_ngcontent-%COMP%]{width:100%}}"]})}}return t})();var fc=function(){return fc=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=Ze(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=u;break}c===a.length-1&&(r=u)}var b=r.split("-"),y=parseInt(b[0],10),x=parseInt(b[1],10),D=i.width(),q=i.height()-e,Q=Math.min(D,y),K=Math.min(q,x),pe=Math.min(Q/y,K/x);return{width:y*pe,height:x*pe}}},getTransform:function(t,i,e,n,o){if(o){var r=Ze(t).find("img").first();if(r.get()){var a=i.get().getBoundingClientRect(),s=a.width,c=i.height()-(e+n),u=r.width(),f=r.height(),b=r.style(),y=(s-u)/2-r.offset().left+(parseFloat(b.paddingLeft)||0)+(parseFloat(b.borderLeft)||0)+Ze(window).scrollLeft()+a.left,x=(c-f)/2-r.offset().top+(parseFloat(b.paddingTop)||0)+(parseFloat(b.borderTop)||0)+Ze(window).scrollTop()+e,D=u/o.width,q=f/o.height,Q="translate3d("+(y*=-1)+"px, "+(x*=-1)+"px, 0) scale3d("+D+", "+q+", 1)";return Q}}},getIframeMarkup:function(t,i,e,n,o,r){var a=r?'title="'+r+'"':"";return'
+}`;function LL(){var t=wL,i=DL,e=$e.cssPrefix,n=$e.replacementClass,o=Rie;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 OO=!1;function J9(){$e.autoAddCss&&!OO&&(Oie(LL()),OO=!0)}var Nie={mixout:function(){return{dom:{css:LL,insertCss:J9}}},hooks:function(){return{beforeDOMElementCreation:function(){J9()},beforeI2svg:function(){J9()}}}},ms=mc||{};ms[us]||(ms[us]={});ms[us].styles||(ms[us].styles={});ms[us].hooks||(ms[us].hooks={});ms[us].shims||(ms[us].shims=[]);var Kr=ms[us],PL=[],AL=function(){Mn.removeEventListener("DOMContentLoaded",AL),Yf=1,PL.map(function(i){return i()})},Yf=!1;ps&&(Yf=(Mn.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Mn.readyState),Yf||Mn.addEventListener("DOMContentLoaded",AL));function Fie(t){ps&&(Yf?setTimeout(t,0):PL.push(t))}function Su(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"?OL(t):"<".concat(i," ").concat(Pie(n),">").concat(r.map(Su).join(""),"")}function LO(t,i,e){if(t&&t[i]&&t[i][e])return{prefix:i,iconName:e,icon:t[i][e]}}var Vie=function(i,e){return function(n,o,r,a){return i.call(e,n,o,r,a)}},eb=function(i,e,n,o){var r=Object.keys(i),a=r.length,s=o!==void 0?Vie(e,o):e,c,u,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=PO(i);typeof Kr.hooks.addPack=="function"&&!o?Kr.hooks.addPack(t,PO(i)):Kr.styles[t]=ve(ve({},Kr.styles[t]||{}),r),t==="fas"&&db("fa",i)}var Mu=Kr.styles,Bie=Kr.shims,RL=Object.keys(xb),jie=RL.reduce(function(t,i){return t[i]=Object.keys(xb[i]),t},{}),Db=null,NL={},FL={},VL={},BL={},jL={};function Hie(t){return~kie.indexOf(t)}function Uie(t,i){var e=i.split("-"),n=e[0],o=e.slice(1).join("-");return n===t&&o!==""&&!Hie(o)?o:null}var HL=function(){var i=function(r){return eb(Mu,function(a,s,c){return a[c]=eb(s,r,{}),a},{})};NL=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}),FL=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}),jL=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 Mu||$e.autoFetchSvg,n=eb(Bie,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:{}});VL=n.names,BL=n.unicodes,Db=Xf($e.styleDefault,{family:$e.familyDefault})};Tie(function(t){Db=Xf(t.styleDefault,{family:$e.familyDefault})});HL();function Sb(t,i){return(NL[t]||{})[i]}function $ie(t,i){return(FL[t]||{})[i]}function Dl(t,i){return(jL[t]||{})[i]}function UL(t){return VL[t]||{prefix:null,iconName:null}}function Gie(t){var i=BL[t],e=Sb("fas",t);return i||(e?{prefix:"fas",iconName:e}:null)||{prefix:null,iconName:null}}function pc(){return Db}var $L=function(){return{prefix:null,iconName:null,rest:[]}};function Wie(t){var i=zi,e=RL.reduce(function(n,o){return n[o]="".concat($e.cssPrefix,"-").concat(o),n},{});return yL.forEach(function(n){(t.includes(e[n])||t.some(function(o){return jie[n].includes(o)}))&&(i=n)}),i}function Xf(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=i.family,n=e===void 0?zi:e,o=xie[n][t];if(n===wu&&!t)return"fad";var r=EO[n][t]||EO[n][o],a=t in Kr.styles?t:null,s=r||a||null;return s}function Yie(t){var i=[],e=null;return t.forEach(function(n){var o=Uie($e.cssPrefix,n);o?e=o:n&&i.push(n)}),{iconName:e,rest:i}}function AO(t){return t.sort().filter(function(i,e,n){return n.indexOf(i)===e})}var zO=xL.concat(CL);function Zf(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=i.skipLookups,n=e===void 0?!1:e,o=null,r=AO(t.filter(function(x){return zO.includes(x)})),a=AO(t.filter(function(x){return!zO.includes(x)})),s=r.filter(function(x){return o=x,!iL.includes(x)}),c=Qf(s,1),u=c[0],f=u===void 0?null:u,g=Wie(r),y=ve(ve({},Yie(a)),{},{prefix:Xf(f,{family:g})});return ve(ve(ve({},y),Xie({values:t,family:g,styles:Mu,config:$e,canonical:y,givenPrefix:o})),qie(n,o,y))}function qie(t,i,e){var n=e.prefix,o=e.iconName;if(t||!n||!o)return{prefix:n,iconName:o};var r=i==="fa"?UL(o):{},a=Dl(n,o);return o=r.iconName||a||o,n=r.prefix||n,n==="far"&&!Mu.far&&Mu.fas&&!$e.autoFetchSvg&&(n="fas"),{prefix:n,iconName:o}}var Qie=yL.filter(function(t){return t!==zi||t!==wu}),Kie=Object.keys(ob).filter(function(t){return t!==zi}).map(function(t){return Object.keys(ob[t])}).flat();function Xie(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,u=c===void 0?{}:c,f=e===wu,g=i.includes("fa-duotone")||i.includes("fad"),y=u.familyDefault==="duotone",x=n.prefix==="fad"||n.prefix==="fa-duotone";if(!f&&(g||y||x)&&(n.prefix="fad"),(i.includes("fa-brands")||i.includes("fab"))&&(n.prefix="fab"),!n.prefix&&Qie.includes(e)){var D=Object.keys(s).find(function(Q){return Kie.includes(Q)});if(D||u.autoFetchSvg){var Y=fne.get(e).defaultShortPrefixId;n.prefix=Y,n.iconName=Dl(n.prefix,n.iconName)||n.iconName}}return(n.prefix==="fa"||r==="fa")&&(n.prefix=pc()||"fas"),n}var Zie=(function(){function t(){Nte(this,t),this.definitions={}}return Fte(t,[{key:"add",value:function(){for(var e=this,n=arguments.length,o=new Array(n),r=0;r0&&f.forEach(function(g){typeof g=="string"&&(e[s][g]=u)}),e[s][c]=u}),e}}])})(),RO=[],N2={},F2={},Jie=Object.keys(F2);function eoe(t,i){var e=i.mixoutsTo;return RO=t,N2={},Object.keys(F2).forEach(function(n){Jie.indexOf(n)===-1&&delete F2[n]}),RO.forEach(function(n){var o=n.mixout?n.mixout():{};if(Object.keys(o).forEach(function(a){typeof o[a]=="function"&&(e[a]=o[a]),Wf(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){N2[a]||(N2[a]=[]),N2[a].push(r[a])})}n.provides&&n.provides(F2)}),e}function ub(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 ps?(kl("beforeI2svg",i),fc("pseudoElements2svg",i),fc("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,Fie(function(){ooe({autoReplaceSvgRoot:e}),kl("watch",i)})}},ioe={icon:function(i){if(i===null)return null;if(Wf(i)==="object"&&i.prefix&&i.iconName)return{prefix:i.prefix,iconName:Dl(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=Xf(i[0]);return{prefix:n,iconName:Dl(n,e)||e}}if(typeof i=="string"&&(i.indexOf("".concat($e.cssPrefix,"-"))>-1||i.match(Mie))){var o=Zf(i.split(" "),{skipLookups:!0});return{prefix:o.prefix||pc(),iconName:Dl(o.prefix,o.iconName)||o.iconName}}if(typeof i=="string"){var r=pc();return{prefix:r,iconName:Dl(r,i)||i}}}},Ko={noAuto:toe,config:$e,dom:noe,parse:ioe,library:GL,findIconDefinition:mb,toHtml:Su},ooe=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=i.autoReplaceSvgRoot,n=e===void 0?Mn:e;(Object.keys(Kr.styles).length>0||$e.autoFetchSvg)&&ps&&$e.autoReplaceSvg&&Ko.dom.i2svg({node:n})};function Jf(t,i){return Object.defineProperty(t,"abstract",{get:i}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(n){return Su(n)})}}),Object.defineProperty(t,"node",{get:function(){if(ps){var n=Mn.createElement("div");return n.innerHTML=t.html,n.children}}}),t}function roe(t){var i=t.children,e=t.main,n=t.mask,o=t.attributes,r=t.styles,a=t.transform;if(wb(a)&&e.found&&!n.found){var s=e.width,c=e.height,u={x:s/c/2,y:.5};o.style=Kf(ve(ve({},r),{},{"transform-origin":"".concat(u.x+a.x/16,"em ").concat(u.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:i}]}function aoe(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:ve(ve({},o),{},{id:a}),children:n}]}]}function soe(t){var i=["aria-label","aria-labelledby","title","role"];return i.some(function(e){return e in t})}function kb(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,u=t.extra,f=t.watchable,g=f===void 0?!1:f,y=n.found?n:e,x=y.width,D=y.height,Y=[$e.replacementClass,r?"".concat($e.cssPrefix,"-").concat(r):""].filter(function(Bt){return u.classes.indexOf(Bt)===-1}).filter(function(Bt){return Bt!==""||!!Bt}).concat(u.classes).join(" "),Q={children:[],attributes:ve(ve({},u.attributes),{},{"data-prefix":o,"data-icon":r,class:Y,role:u.attributes.role||"img",viewBox:"0 0 ".concat(x," ").concat(D)})};!soe(u.attributes)&&!u.attributes["aria-hidden"]&&(Q.attributes["aria-hidden"]="true"),g&&(Q.attributes[Sl]="");var K=ve(ve({},Q),{},{prefix:o,iconName:r,main:e,mask:n,maskId:c,transform:a,symbol:s,styles:ve({},u.styles)}),pe=n.found&&e.found?fc("generateAbstractMask",K)||{children:[],attributes:{}}:fc("generateAbstractIcon",K)||{children:[],attributes:{}},ut=pe.children,wt=pe.attributes;return K.children=ut,K.attributes=wt,s?aoe(K):roe(K)}function NO(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=ve(ve({},r.attributes),{},{class:r.classes.join(" ")});s&&(c[Sl]="");var u=ve({},r.styles);wb(o)&&(u.transform=zie({transform:o,startCentered:!0,width:e,height:n}),u["-webkit-transform"]=u.transform);var f=Kf(u);f.length>0&&(c.style=f);var g=[];return g.push({tag:"span",attributes:c,children:[i]}),g}function coe(t){var i=t.content,e=t.extra,n=ve(ve({},e.attributes),{},{class:e.classes.join(" ")}),o=Kf(e.styles);o.length>0&&(n.style=o);var r=[];return r.push({tag:"span",attributes:n,children:[i]}),r}var tb=Kr.styles;function pb(t){var i=t[0],e=t[1],n=t.slice(4),o=Qf(n,1),r=o[0],a=null;return Array.isArray(r)?a={tag:"g",attributes:{class:"".concat($e.cssPrefix,"-").concat(Z9.GROUP)},children:[{tag:"path",attributes:{class:"".concat($e.cssPrefix,"-").concat(Z9.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat($e.cssPrefix,"-").concat(Z9.PRIMARY),fill:"currentColor",d:r[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:i,height:e,icon:a}}var loe={found:!1,width:512,height:512};function doe(t,i){!kL&&!$e.showMissingIcons&&t&&console.error('Icon with name "'.concat(t,'" and prefix "').concat(i,'" is missing.'))}function fb(t,i){var e=i;return i==="fa"&&$e.styleDefault!==null&&(i=pc()),new Promise(function(n,o){if(e==="fa"){var r=UL(t)||{};t=r.iconName||t,i=r.prefix||i}if(t&&i&&tb[i]&&tb[i][t]){var a=tb[i][t];return n(pb(a))}doe(t,i),n(ve(ve({},loe),{},{icon:$e.showMissingIcons&&t?fc("missingIconAbstract")||{}:{}}))})}var FO=function(){},hb=$e.measurePerformance&&jf&&jf.mark&&jf.measure?jf:{mark:FO,measure:FO},yu='FA "7.1.0"',uoe=function(i){return hb.mark("".concat(yu," ").concat(i," begins")),function(){return WL(i)}},WL=function(i){hb.mark("".concat(yu," ").concat(i," ends")),hb.measure("".concat(yu," ").concat(i),"".concat(yu," ").concat(i," begins"),"".concat(yu," ").concat(i," ends"))},Eb={begin:uoe,end:WL},$f=function(){};function VO(t){var i=t.getAttribute?t.getAttribute(Sl):null;return typeof i=="string"}function moe(t){var i=t.getAttribute?t.getAttribute(yb):null,e=t.getAttribute?t.getAttribute(Cb):null;return i&&e}function poe(t){return t&&t.classList&&t.classList.contains&&t.classList.contains($e.replacementClass)}function foe(){if($e.autoReplaceSvg===!0)return Gf.replace;var t=Gf[$e.autoReplaceSvg];return t||Gf.replace}function hoe(t){return Mn.createElementNS("http://www.w3.org/2000/svg",t)}function goe(t){return Mn.createElement(t)}function YL(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=i.ceFn,n=e===void 0?t.tag==="svg"?hoe:goe: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(YL(a,{ceFn:n}))}),o}function _oe(t){var i=" ".concat(t.outerHTML," ");return i="".concat(i,"Font Awesome fontawesome.com "),i}var Gf={replace:function(i){var e=i[0];if(e.parentNode)if(i[1].forEach(function(o){e.parentNode.insertBefore(YL(o),e)}),e.getAttribute(Sl)===null&&$e.keepOriginalSource){var n=Mn.createComment(_oe(e));e.parentNode.replaceChild(n,e)}else e.remove()},nest:function(i){var e=i[0],n=i[1];if(~Mb(e).indexOf($e.replacementClass))return Gf.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 Su(s)}).join(` +`);e.setAttribute(Sl,""),e.innerHTML=a}};function BO(t){t()}function qL(t,i){var e=typeof i=="function"?i:$f;if(t.length===0)e();else{var n=BO;$e.mutateApproach===yie&&(n=mc.requestAnimationFrame||BO),n(function(){var o=foe(),r=Eb.begin("mutate");t.map(o),r(),e()})}}var Ib=!1;function QL(){Ib=!0}function gb(){Ib=!1}var qf=null;function jO(t){if(wO&&$e.observeMutations){var i=t.treeCallback,e=i===void 0?$f:i,n=t.nodeCallback,o=n===void 0?$f:n,r=t.pseudoElementsCallback,a=r===void 0?$f:r,s=t.observeMutationsRoot,c=s===void 0?Mn:s;qf=new wO(function(u){if(!Ib){var f=pc();B2(u).forEach(function(g){if(g.type==="childList"&&g.addedNodes.length>0&&!VO(g.addedNodes[0])&&($e.searchPseudoElements&&a(g.target),e(g.target)),g.type==="attributes"&&g.target.parentNode&&$e.searchPseudoElements&&a([g.target],!0),g.type==="attributes"&&VO(g.target)&&~Sie.indexOf(g.attributeName))if(g.attributeName==="class"&&moe(g.target)){var y=Zf(Mb(g.target)),x=y.prefix,D=y.iconName;g.target.setAttribute(yb,x||f),D&&g.target.setAttribute(Cb,D)}else poe(g.target)&&o(g.target)})}}),ps&&qf.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function boe(){qf&&qf.disconnect()}function voe(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 yoe(t){var i=t.getAttribute("data-prefix"),e=t.getAttribute("data-icon"),n=t.innerText!==void 0?t.innerText.trim():"",o=Zf(Mb(t));return o.prefix||(o.prefix=pc()),i&&e&&(o.prefix=i,o.iconName=e),o.iconName&&o.prefix||(o.prefix&&n.length>0&&(o.iconName=$ie(o.prefix,t.innerText)||Sb(o.prefix,zL(t.innerText))),!o.iconName&&$e.autoFetchSvg&&t.firstChild&&t.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=t.firstChild.data)),o}function Coe(t){var i=B2(t.attributes).reduce(function(e,n){return e.name!=="class"&&e.name!=="style"&&(e[n.name]=n.value),e},{});return i}function xoe(){return{iconName:null,prefix:null,transform:Ea,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function HO(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},e=yoe(t),n=e.iconName,o=e.prefix,r=e.rest,a=Coe(t),s=ub("parseNodeAttributes",{},t),c=i.styleParser?voe(t):[];return ve({iconName:n,prefix:o,transform:Ea,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:r,styles:c,attributes:a}},s)}var Moe=Kr.styles;function KL(t){var i=$e.autoReplaceSvg==="nest"?HO(t,{styleParser:!1}):HO(t);return~i.extra.classes.indexOf(IL)?fc("generateLayersText",t,i):fc("generateSvgReplacementMutation",t,i)}function woe(){return[].concat(Xr(CL),Xr(xL))}function UO(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!ps)return Promise.resolve();var e=Mn.documentElement.classList,n=function(g){return e.add("".concat(kO,"-").concat(g))},o=function(g){return e.remove("".concat(kO,"-").concat(g))},r=$e.autoFetchSvg?woe():iL.concat(Object.keys(Moe));r.includes("fa")||r.push("fa");var a=[".".concat(IL,":not([").concat(Sl,"])")].concat(r.map(function(f){return".".concat(f,":not([").concat(Sl,"])")})).join(", ");if(a.length===0)return Promise.resolve();var s=[];try{s=B2(t.querySelectorAll(a))}catch{}if(s.length>0)n("pending"),o("complete");else return Promise.resolve();var c=Eb.begin("onTree"),u=s.reduce(function(f,g){try{var y=KL(g);y&&f.push(y)}catch(x){kL||x.name==="MissingIcon"&&console.error(x)}return f},[]);return new Promise(function(f,g){Promise.all(u).then(function(y){qL(y,function(){n("active"),n("complete"),o("pending"),typeof i=="function"&&i(),c(),f()})}).catch(function(y){c(),g(y)})})}function Doe(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;KL(t).then(function(e){e&&qL([e],i)})}function Soe(t){return function(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(i||{}).icon?i:mb(i||{}),o=e.mask;return o&&(o=(o||{}).icon?o:mb(o||{})),t(n,ve(ve({},e),{},{mask:o}))}}var koe=function(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transform,o=n===void 0?Ea:n,r=e.symbol,a=r===void 0?!1:r,s=e.mask,c=s===void 0?null:s,u=e.maskId,f=u===void 0?null:u,g=e.classes,y=g===void 0?[]:g,x=e.attributes,D=x===void 0?{}:x,Y=e.styles,Q=Y===void 0?{}:Y;if(i){var K=i.prefix,pe=i.iconName,ut=i.icon;return Jf(ve({type:"icon"},i),function(){return kl("beforeDOMElementCreation",{iconDefinition:i,params:e}),kb({icons:{main:pb(ut),mask:c?pb(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:K,iconName:pe,transform:ve(ve({},Ea),o),symbol:a,maskId:f,extra:{attributes:D,styles:Q,classes:y}})})}},Eoe={mixout:function(){return{icon:Soe(koe)}},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=UO,e.nodeCallback=Doe,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 UO(o,a)},i.generateSvgReplacementMutation=function(e,n){var o=n.iconName,r=n.prefix,a=n.transform,s=n.symbol,c=n.mask,u=n.maskId,f=n.extra;return new Promise(function(g,y){Promise.all([fb(o,r),c.iconName?fb(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(x){var D=Qf(x,2),Y=D[0],Q=D[1];g([e,kb({icons:{main:Y,mask:Q},prefix:r,iconName:o,transform:a,symbol:s,maskId:u,extra:f,watchable:!0})])}).catch(y)})},i.generateAbstractIcon=function(e){var n=e.children,o=e.attributes,r=e.main,a=e.transform,s=e.styles,c=Kf(s);c.length>0&&(o.style=c);var u;return wb(a)&&(u=fc("generateAbstractTransformGrouping",{main:r,transform:a,containerWidth:r.width,iconWidth:r.width})),n.push(u||r.icon),{children:n,attributes:o}}}},Ioe={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 Jf({type:"layer"},function(){kl("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(Xr(r)).join(" ")},children:a}]})}}}},Toe={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,u=c===void 0?{}:c,f=n.styles,g=f===void 0?{}:f;return Jf({type:"counter",content:e},function(){return kl("beforeDOMElementCreation",{content:e,params:n}),coe({content:e.toString(),title:r,extra:{attributes:u,styles:g,classes:["".concat($e.cssPrefix,"-layers-counter")].concat(Xr(s))}})})}}}},Ooe={mixout:function(){return{text:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.transform,r=o===void 0?Ea:o,a=n.classes,s=a===void 0?[]:a,c=n.attributes,u=c===void 0?{}:c,f=n.styles,g=f===void 0?{}:f;return Jf({type:"text",content:e},function(){return kl("beforeDOMElementCreation",{content:e,params:n}),NO({content:e,transform:ve(ve({},Ea),r),extra:{attributes:u,styles:g,classes:["".concat($e.cssPrefix,"-layers-text")].concat(Xr(s))}})})}}},provides:function(i){i.generateLayersText=function(e,n){var o=n.transform,r=n.extra,a=null,s=null;if(tL){var c=parseInt(getComputedStyle(e).fontSize,10),u=e.getBoundingClientRect();a=u.width/c,s=u.height/c}return Promise.resolve([e,NO({content:e.innerHTML,width:a,height:s,transform:o,extra:r,watchable:!0})])}}},XL=new RegExp('"',"ug"),$O=[1105920,1112319],GO=ve(ve(ve(ve({},{FontAwesome:{normal:"fas",400:"fas"}}),pne),bie),xne),_b=Object.keys(GO).reduce(function(t,i){return t[i.toLowerCase()]=GO[i],t},{}),Loe=Object.keys(_b).reduce(function(t,i){var e=_b[i];return t[i]=e[900]||Xr(Object.entries(e))[0][1],t},{});function Poe(t){var i=t.replace(XL,"");return zL(Xr(i)[0]||"")}function Aoe(t){var i=t.getPropertyValue("font-feature-settings").includes("ss01"),e=t.getPropertyValue("content"),n=e.replace(XL,""),o=n.codePointAt(0),r=o>=$O[0]&&o<=$O[1],a=n.length===2?n[0]===n[1]:!1;return r||a||i}function zoe(t,i){var e=t.replace(/^['"]|['"]$/g,"").toLowerCase(),n=parseInt(i),o=isNaN(n)?"normal":n;return(_b[e]||{})[o]||Loe[e]}function WO(t,i){var e="".concat(vie).concat(i.replace(":","-"));return new Promise(function(n,o){if(t.getAttribute(e)!==null)return n();var r=B2(t.children),a=r.filter(function(en){return en.getAttribute(ab)===i})[0],s=mc.getComputedStyle(t,i),c=s.getPropertyValue("font-family"),u=c.match(wie),f=s.getPropertyValue("font-weight"),g=s.getPropertyValue("content");if(a&&!u)return t.removeChild(a),n();if(u&&g!=="none"&&g!==""){var y=s.getPropertyValue("content"),x=zoe(c,f),D=Poe(y),Y=u[0].startsWith("FontAwesome"),Q=Aoe(s),K=Sb(x,D),pe=K;if(Y){var ut=Gie(D);ut.iconName&&ut.prefix&&(K=ut.iconName,x=ut.prefix)}if(K&&!Q&&(!a||a.getAttribute(yb)!==x||a.getAttribute(Cb)!==pe)){t.setAttribute(e,pe),a&&t.removeChild(a);var wt=xoe(),Bt=wt.extra;Bt.attributes[ab]=i,fb(K,x).then(function(en){var Xo=kb(ve(ve({},wt),{},{icons:{main:en,mask:$L()},prefix:x,iconName:pe,extra:Bt,watchable:!0})),ci=Mn.createElementNS("http://www.w3.org/2000/svg","svg");i==="::before"?t.insertBefore(ci,t.firstChild):t.appendChild(ci),ci.outerHTML=Xo.map(function(Ll){return Su(Ll)}).join(` +`),t.removeAttribute(e),n()}).catch(o)}else n()}else n()})}function Roe(t){return Promise.all([WO(t,"::before"),WO(t,"::after")])}function Noe(t){return t.parentNode!==document.head&&!~Cie.indexOf(t.tagName.toUpperCase())&&!t.getAttribute(ab)&&(!t.parentNode||t.parentNode.tagName!=="svg")}var Foe=function(i){return!!i&&SL.some(function(e){return i.includes(e)})},Voe=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(u){return u.trim()})});var o=Uf(n),r;try{for(o.s();!(r=o.n()).done;){var a=r.value;if(Foe(a)){var s=SL.reduce(function(c,u){return c.replace(u,"")},a);s!==""&&s!=="*"&&e.add(s)}}}catch(c){o.e(c)}finally{o.f()}return e};function YO(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ps){var e;if(i)e=t;else if($e.searchPseudoElementsFullScan)e=t.querySelectorAll("*");else{var n=new Set,o=Uf(document.styleSheets),r;try{for(o.s();!(r=o.n()).done;){var a=r.value;try{var s=Uf(a.cssRules),c;try{for(s.s();!(c=s.n()).done;){var u=c.value,f=Voe(u.selectorText),g=Uf(f),y;try{for(g.s();!(y=g.n()).done;){var x=y.value;n.add(x)}}catch(Y){g.e(Y)}finally{g.f()}}}catch(Y){s.e(Y)}finally{s.f()}}catch(Y){$e.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(a.href," (").concat(Y.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(Y){o.e(Y)}finally{o.f()}if(!n.size)return;var D=Array.from(n).join(", ");try{e=t.querySelectorAll(D)}catch{}}return new Promise(function(Y,Q){var K=B2(e).filter(Noe).map(Roe),pe=Eb.begin("searchPseudoElements");QL(),Promise.all(K).then(function(){pe(),gb(),Y()}).catch(function(){pe(),gb(),Q()})})}}var Boe={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=YO,e}}},provides:function(i){i.pseudoElements2svg=function(e){var n=e.node,o=n===void 0?Mn:n;$e.searchPseudoElements&&YO(o)}}},qO=!1,joe={mixout:function(){return{dom:{unwatch:function(){QL(),qO=!0}}}},hooks:function(){return{bootstrap:function(){jO(ub("mutationObserverCallbacks",{}))},noAuto:function(){boe()},watch:function(e){var n=e.observeMutationsRoot;qO?gb():jO(ub("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},QO=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)},Hoe={mixout:function(){return{parse:{transform:function(e){return QO(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,n){var o=n.getAttribute("data-fa-transform");return o&&(e.transform=QO(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,") "),u="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),f="rotate(".concat(o.rotate," 0 0)"),g={transform:"".concat(c," ").concat(u," ").concat(f)},y={transform:"translate(".concat(a/2*-1," -256)")},x={outer:s,inner:g,path:y};return{tag:"g",attributes:ve({},x.outer),children:[{tag:"g",attributes:ve({},x.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:ve(ve({},n.icon.attributes),x.path)}]}]}}}},nb={x:0,y:0,width:"100%",height:"100%"};function KO(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 Uoe(t){return t.tag==="g"?t.children:[t]}var $oe={hooks:function(){return{parseNodeAttributes:function(e,n){var o=n.getAttribute("data-fa-mask"),r=o?Zf(o.split(" ").map(function(a){return a.trim()})):$L();return r.prefix||(r.prefix=pc()),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,u=r.width,f=r.icon,g=a.width,y=a.icon,x=Aie({transform:c,containerWidth:g,iconWidth:u}),D={tag:"rect",attributes:ve(ve({},nb),{},{fill:"white"})},Y=f.children?{children:f.children.map(KO)}:{},Q={tag:"g",attributes:ve({},x.inner),children:[KO(ve({tag:f.tag,attributes:ve(ve({},f.attributes),x.path)},Y))]},K={tag:"g",attributes:ve({},x.outer),children:[Q]},pe="mask-".concat(s||TO()),ut="clip-".concat(s||TO()),wt={tag:"mask",attributes:ve(ve({},nb),{},{id:pe,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[D,K]},Bt={tag:"defs",children:[{tag:"clipPath",attributes:{id:ut},children:Uoe(y)},wt]};return n.push(Bt,{tag:"rect",attributes:ve({fill:"currentColor","clip-path":"url(#".concat(ut,")"),mask:"url(#".concat(pe,")")},nb)}),{children:n,attributes:o}}}},Goe={provides:function(i){var e=!1;mc.matchMedia&&(e=mc.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:ve(ve({},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=ve(ve({},r),{},{attributeName:"opacity"}),s={tag:"circle",attributes:ve(ve({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return e||s.children.push({tag:"animate",attributes:ve(ve({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ve(ve({},a),{},{values:"1;0;1;1;0;1;"})}),n.push(s),n.push({tag:"path",attributes:ve(ve({},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:ve(ve({},a),{},{values:"1;0;0;0;0;1;"})}]}),e||n.push({tag:"path",attributes:ve(ve({},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:ve(ve({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},Woe={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}}}},Yoe=[Nie,Eoe,Ioe,Toe,Ooe,Boe,joe,Hoe,$oe,Goe,Woe];eoe(Yoe,{mixoutsTo:Ko});var Yze=Ko.noAuto,ZL=Ko.config,qze=Ko.library,JL=Ko.dom,eP=Ko.parse,Qze=Ko.findIconDefinition,Kze=Ko.toHtml,tP=Ko.icon,Xze=Ko.layer,qoe=Ko.text,Qoe=Ko.counter;var Koe=["*"],Xoe=(()=>{class t{defaultPrefix="fas";fallbackIcon=null;fixedWidth;set autoAddCss(e){ZL.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})(),Ob=(()=>{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})(),Zoe=t=>{throw new Error(`Could not find icon with iconName=${t.iconName} and prefix=${t.prefix} in the icon library.`)},Joe=()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")},iP=t=>t!=null&&(t===90||t===180||t===270||t==="90"||t==="180"||t==="270"),ere=t=>{let i=iP(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)},Tb=new WeakSet,nP="fa-auto-css";function tre(t,i){if(!i.autoAddCss||Tb.has(t))return;if(t.getElementById(nP)!=null){i.autoAddCss=!1,Tb.add(t);return}let e=t.createElement("style");e.setAttribute("type","text/css"),e.setAttribute("id",nP),e.innerHTML=JL.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,Tb.add(t)}var nre=t=>t.prefix!==void 0&&t.iconName!==void 0,ire=(t,i)=>nre(t)?t:Array.isArray(t)&&t.length===2?{prefix:t[0],iconName:t[1]}:{prefix:i,iconName:t},ore=(()=>{class t{stackItemSize=R1("1x");size=R1();_effect=_a(()=>{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})(),rre=(()=>{class t{size=R1();classes=ni(()=>{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=L({type:t,selectors:[["fa-stack"]],hostVars:2,hostBindings:function(n,o){n&2&&Lt(o.classes())},inputs:{size:[1,"size"]},ngContentSelectors:Koe,decls:1,vars:0,template:function(n,o){n&1&&(ke(),ae(0))},encapsulation:2,changeDetection:0})}return t})(),Qt=(()=>{class t{icon=lo();title=lo();animation=lo();mask=lo();flip=lo();size=lo();pull=lo();border=lo();inverse=lo();symbol=lo();rotate=lo();fixedWidth=lo();transform=lo();a11yRole=lo();renderedIconHTML=ni(()=>{let e=this.icon()??this.config.fallbackIcon;if(!e)return Joe(),"";let n=this.findIconDefinition(e);if(!n)return"";let o=this.buildParams();tre(this.document,this.config);let r=tP(n,o);return this.sanitizer.bypassSecurityTrustHtml(r.html.join(` +`))});document=d(De);sanitizer=d(ts);config=d(Xoe);iconLibrary=d(Ob);stackItem=d(ore,{optional:!0});stack=d(rre,{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=ire(e,this.config.defaultPrefix);if("icon"in n)return n;let o=this.iconLibrary.getIconDefinition(n.prefix,n.iconName);return o??(Zoe(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"?eP.transform(o):o,a=this.mask(),s=a!=null?this.findIconDefinition(a):null,c={},u=this.a11yRole();u!=null&&(c.role=u);let f={};return n.rotate!=null&&!iP(n.rotate)&&(f["--fa-rotate-angle"]=`${n.rotate}`),{title:this.title(),transform:r,classes:ere(n),mask:s??void 0,symbol:this.symbol(),attributes:c,styles:f}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({type:t,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(n,o){n&2&&(At("innerHTML",o.renderedIconHTML(),Xc),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 oP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})();var are=t=>({flex:t}),eh=(()=>{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=L({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),b(),h(3,"span",4)(4,"button",5),N("click",function(){U(r);let s=Ft(9);return $(s.click())}),F(5,"fa-icon",6),C(6),k(7,"translate"),b()()(),h(8,"input",7,0),N("change",function(s){return U(r),$(o.onFileSelect(s))}),b()}n&2&&(p(),S("ngStyle",jo(10,are,"0 0 "+(o.flex||"83%"))),p(),S("readonly",!0)("value",o.fileName||""),p(4),te(" \xA0\xA0 ",E(7,8,"labels.buttons.Browse")," "),p(2),zt("display","none"),S("accept",Vt(o.acceptFilter)))},dependencies:[ge,S7,Ce,Ht,ri,yt,Qt,Le],encapsulation:2})}}return t})();var j2=(()=>{class t{constructor(){this.http=d(En),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 rP=(()=>{class t{constructor(){this.http=d(En),this.apiActuator=Ge.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 hc=(()=>{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=L({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})(),th=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,he]})}return t})();function sre(t,i){if(t&1&&(h(0,"tr")(1,"td",5),C(2),k(3,"translate"),b(),h(4,"td",6),C(5),b()()),t&2){let e=w(2);p(2),O(E(3,2,"labels.inputs.Server")),p(3),te(" ",e.server," ")}}function cre(t,i){if(t&1&&(h(0,"tr")(1,"td",5),C(2),k(3,"translate"),b(),h(4,"td",10)(5,"b"),C(6),k(7,"date"),b()()()),t&2){let e=w(2);p(2),te("",E(3,2,"labels.text.Current Business Date"),":"),p(4),O(lr(7,4,e.businessDate,"EEEE, MMMM dd, y"))}}function lre(t,i){if(t&1&&(h(0,"div",1),F(1,"mat-divider",2),h(2,"div",3)(3,"table",4)(4,"tr")(5,"td",5),C(6,"Tenant"),b(),h(7,"td",6),C(8),k(9,"titlecase"),b()(),h(10,"tr")(11,"td",5),C(12,"Mifos"),b(),h(13,"td",6),C(14),h(15,"b"),C(16),b()()(),h(17,"tr")(18,"td",5),C(19),k(20,"translate"),b(),h(21,"td",6),C(22),h(23,"b"),C(24),b()()(),Xe(25,sre,6,4,"tr",7)(26,cre,8,7,"tr",7),b()(),h(27,"div",8)(28,"p",9),C(29),k(30,"translate"),k(31,"translate"),b()()()),t&2){let e=w();S("ngClass",Vt(e.styleClass)),p(8),te(" ",E(9,12,e.tenant)," "),p(6),te(" ",e.versions.mifos," - "),p(2),O(e.hash),p(3),O(E(20,14,"labels.text.Fineract")),p(3),te(" ",e.versions.fineract.version," - "),p(2),O(e.versions.fineract.hash),p(),S("ngIf",e.displayBackEndInfo),p(),S("ngIf",e.isBusinessDateDefined),p(3),Et("",E(30,16,"APP_NAME")," ",E(31,18,"labels.text.by")," Mifos")}}var aP=(()=>{class t{constructor(){this.systemService=d(j2),this.settingsService=d(Jt),this.authenticationService=d(bp),this.alertService=d(Bs),this.dateUtils=d(Eo),this.versionService=d(rP),this.styleClass="",this.versions={mifos:Ge.version,fineract:{version:"",hash:""}},this.hash=Ge.hash,this.server="",this.businessDate=null,this.isBusinessDateEnabled=!1,this.isBusinessDateDefined=!1,this.displayBackEndInfo=!0,this.displayBackEndInfo=Ge.displayBackEndInfo==="true"}ngOnInit(){this.displayBackEndInfo&&(this.alert$=this.alertService.alertEvent.subscribe(e=>{let n=e.type;n===Jt.businessDateType+" Set Config"?(this.isBusinessDateEnabled=e.message==="enabled",this.isBusinessDateDefined=!1,this.isBusinessDateEnabled&&this.setBusinessDate()):n===Jt.businessDateType+" Set"?this.isBusinessDateEnabled&&this.setBusinessDate():n==="Authentication Start"&&(this.timer=setTimeout(()=>{this.getConfigurations()},6e4))}),this.getConfigurations(),this.server=this.settingsService.server,this.tenant=this.tenantIdentifier(),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]}}))}tenantIdentifier(){return!this.settingsService.tenantIdentifier||this.settingsService.tenantIdentifier===""?"default":this.settingsService.tenantIdentifier}ngOnDestroy(){this.displayBackEndInfo&&clearTimeout(this.timer)}getConfigurations(){this.authenticationService.isAuthenticated()?this.systemService.getConfigurationByName(Jt.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(Jt.businessDateType).subscribe(e=>{this.businessDate=new Date(e.date),this.settingsService.setBusinessDate(this.dateUtils.formatDate(this.businessDate,Jt.businessDateFormat)),this.isBusinessDateDefined=!0})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=L({type:t,selectors:[["mifosx-footer"]],inputs:{styleClass:"styleClass"},decls:1,vars:1,consts:[["class","layout-column m-b-20 f12","id","footer",3,"ngClass",4,"ngIf"],["id","footer",1,"layout-column","m-b-20","f12",3,"ngClass"],[1,"divider","align-center"],[1,"layout-column","m-b-20","content-wrapper","footer-center"],[1,"versions"],[1,"footer-content"],[1,"right","footer-content"],[4,"ngIf"],[1,"layout-column","m-b-20","copy-label"],[1,"footer-content","align-center"],[1,"center","footer-content","business-date"]],template:function(n,o){n&1&&Xe(0,lre,32,20,"div",0),n&2&&S("ngIf",o.displayBackEndInfo)},dependencies:[ge,Gn,D7,Ce,hc,k7,F1,Le],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 dre(t,i){if(t&1&&(h(0,"mat-option",2),C(1),k(2,"translate"),b()),t&2){let e=i.$implicit;S("value",e),p(),te(" ",E(2,2,"languages."+e)," ")}}var sP=(()=>{class t{constructor(){this.translateService=d(uo),this.settingsService=d(Jt),this.languageSelector=new Qi,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=L({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"),C(2),k(3,"translate"),b(),h(4,"mat-select",1),N("selectionChange",function(){return o.setLanguage()}),et(5,dre,3,4,"mat-option",2,gt),b()()),n&2&&(p(2),O(E(3,2,"labels.inputs.Language")),p(2),S("formControl",o.languageSelector),p(),tt(o.languages))},dependencies:[ge,Ce,fn,Li,Ht,Cn,Qn,un,Le],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 cP=(()=>{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 lP=(()=>{class t{constructor(){this.themeManagerService=d(cP),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 ure=["mat-menu-item",""],mre=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],pre=["mat-icon, [matMenuItemIcon]","*"];function fre(t,i){t&1&&(Gt(),h(0,"svg",2),F(1,"polygon",3),b())}var hre=["*"];function gre(t,i){if(t&1){let e=le();ot(0,"div",0),hm("click",function(){U(e);let o=w();return $(o.closed.emit("click"))})("animationstart",function(o){U(e);let r=w();return $(r._onAnimationStart(o.animationName))})("animationend",function(o){U(e);let r=w();return $(r._onAnimationDone(o.animationName))})("animationcancel",function(o){U(e);let r=w();return $(r._onAnimationDone(o.animationName))}),ot(1,"div",1),ae(2),st()()}if(t&2){let e=w();Lt(e._classList),oe("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),At("id",e.panelId),ne("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var Pb=new P("MAT_MENU_PANEL"),El=(()=>{class t{_elementRef=d(X);_document=d(De);_focusMonitor=d(ln);_parentMenu=d(Pb,{optional:!0});_changeDetectorRef=d(we);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new B;_focused=new B;_highlighted=!1;_triggersSubmenu=!1;constructor(){d(ct).load(dn),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(X);_changeDetectorRef=d(we);_injector=d(ye);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=Ue();_allItems;_directDescendantItems=new On;_classList={};_panelAnimationState="void";_animationDone=new B;_isAnimating=Se(!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(bre);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 $r(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Qe(this._directDescendantItems),rt(e=>mt(...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(Qe(this._directDescendantItems),rt(n=>mt(...n.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let n=e.keyCode,o=this._keyManager;switch(n){case 27:kt(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=xt(()=>{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===nh;(n||e===Lb)&&(n&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(n?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===Lb||e===nh)&&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(nh),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?Lb:nh)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(Qe(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=L({type:t,selectors:[["mat-menu"]],contentQueries:function(n,o,r){if(n&1&&(Ie(r,_re,5),Ie(r,El,5),Ie(r,El,4)),n&2){let a;G(a=W())&&(o.lazyContent=a.first),G(a=W())&&(o._allItems=a),G(a=W())&&(o.items=a)}},viewQuery:function(n,o){if(n&1&&me(it,5),n&2){let r;G(r=W())&&(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:Pb,useExisting:t}])],ngContentSelectors:hre,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&&(ke(),zr(0,gre,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})(),dP=new P("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(ye);return()=>vi(t)}});function yre(t){let i=d(ye);return()=>vi(i)}var Cre={provide:dP,deps:[],useFactory:yre};var H2=new WeakMap,xre=(()=>{class t{_canHaveBackdrop;_element=d(X);_viewContainerRef=d(pt);_menuItemInstance=d(El,{optional:!0,self:!0});_dir=d(vt,{optional:!0});_focusMonitor=d(ln);_ngZone=d(se);_injector=d(ye);_scrollStrategy=d(dP);_changeDetectorRef=d(we);_animationsDisabled=Ue();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=Ee.EMPTY;_menuCloseSubscription=Ee.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(Pb,{optional:!0});this._parentMaterialMenu=n instanceof gc?n:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&H2.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=H2.get(n);H2.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 gc&&(n._setIsOpen(!0),n._directDescendantItems.changes.pipe(xe(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 gc&&this._ownsMenu(o)?(this._pendingRemoval=o._animationDone.pipe(Ve(1)).subscribe(()=>{n.detach(),H2.has(o)||o.lazyContent?.detach()}),o._setIsOpen(!1)):(n.detach(),o?.lazyContent?.detach()),o&&this._ownsMenu(o)&&H2.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=Co(this._injector,n),this._overlayRef.keydownEvents().subscribe(o=>{this._menu instanceof gc&&this._menu._handleKeydown(o)})}return this._overlayRef}_getOverlayConfig(e){return new yo({positionStrategy:qr(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,u]=[a,s],[f,g]=[o,r],y=0;if(this._triggersSubmenu()){if(g=o=e.xPosition==="before"?"start":"end",r=f=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let x=this._parentMaterialMenu.items.first;this._parentInnerPadding=x?x._getHostElement().offsetTop:0}y=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(c=a==="top"?"bottom":"top",u=s==="top"?"bottom":"top");n.withPositions([{originX:o,originY:c,overlayX:f,overlayY:a,offsetY:y},{originX:r,originY:c,overlayX:g,overlayY:a,offsetY:y},{originX:o,originY:u,overlayX:f,overlayY:s,offsetY:-y},{originX:r,originY:u,overlayX:g,overlayY:s,offsetY:-y}])}_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(Te(a=>this._menuOpen&&a!==this._menuItemInstance)):re();return mt(e,o,r,n)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new qn(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return H2.get(e)===this}static \u0275fac=function(n){Zc()};static \u0275dir=z({type:t})}return t})(),ih=(()=>{class t extends xre{_cleanupTouchstart;_hoverSubscription=Ee.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(Je);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",n=>{rs(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){os(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 uP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[Cre],imports:[Ii,he,Ai,ki,he]})}return t})(),mP={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:{}}},wNe=mP.fadeInItems,DNe=mP.transformMenu;var ku=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[A9],imports:[as,Ai,he,he,ki]})}return t})();var oh=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 Ab(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} +`,fP=new P("MAT_GRID_LIST"),Fb=(()=>{class t{_element=d(X);_gridList=d(fP,{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=L({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:pP,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(n,o){n&1&&(ke(),ot(0,"div",0),ae(1),st())},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 wre=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,Eu=class{_gutterSize;_rows=0;_rowspan=0;_cols;_direction;init(i,e,n,o){this._gutterSize=hP(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":Il(`(${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",Il(this.getTileSize(r,i.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(i){return`${this._rowspan} * ${this.getTileSize(i,1)}`}getComputedHeight(){return null}},zb=class extends Eu{fixedRowHeight;constructor(i){super(),this.fixedRowHeight=i}init(i,e,n,o){super.init(i,e,n,o),this.fixedRowHeight=hP(this.fixedRowHeight),wre.test(this.fixedRowHeight)}setRowStyles(i,e){i._setStyle("top",this.getTilePosition(this.fixedRowHeight,e)),i._setStyle("height",Il(this.getTileSize(this.fixedRowHeight,i.rowspan)))}getComputedHeight(){return["height",Il(`${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)})}},Rb=class extends Eu{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",Il(this.getTileSize(this.baseTileHeight,i.rowspan)))}getComputedHeight(){return["paddingBottom",Il(`${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])}},Nb=class extends Eu{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",Il(this.getTileSize(r,i.rowspan)))}reset(i){i._tiles&&i._tiles.forEach(e=>{e._setStyle("top",null),e._setStyle("height",null)})}};function Il(t){return`calc(${t})`}function hP(t){return t.match(/([A-Za-z%]+)$/)?t:`${t}px`}var Dre="fit",gP=(()=>{class t{_element=d(X);_dir=d(vt,{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===Dre?this._tileStyler=new Nb:e&&e.indexOf(":")>-1?this._tileStyler=new Rb(e):this._tileStyler=new zb(e)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new oh);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=L({type:t,selectors:[["mat-grid-list"]],contentQueries:function(n,o,r){if(n&1&&Ie(r,Fb,5),n&2){let a;G(a=W())&&(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:fP,useExisting:t}])],ngContentSelectors:pP,decls:2,vars:0,template:function(n,o){n&1&&(ke(),ot(0,"div"),ae(1),st())},styles:[Mre],encapsulation:2,changeDetection:0})}return t})(),_P=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[k9,he,k9,he]})}return t})();function Sre(t,i){t&1&&F(0,"fa-icon",7)}function kre(t,i){if(t&1){let e=le();h(0,"mat-grid-tile")(1,"div",5),N("click",function(){let o=U(e).$implicit,r=w();return $(r.installTheme(o))}),h(2,"div",6),I(3,Sre,1,0,"fa-icon",7),F(4,"div",8)(5,"div",9),b()()()}if(t&2){let e=i.$implicit,n=w();p(3),T(n.currentTheme.href===e.href?3:-1),p(),zt("background",e.primary),p(),zt("background",e.accent)}}var bP=(()=>{class t{constructor(){this.themeStorageService=d(lP),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=L({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),k(1,"translate"),F(2,"fa-icon",2),b(),h(3,"mat-menu",3,0)(5,"mat-grid-list",4),et(6,kre,6,5,"mat-grid-tile",null,gt),b()()),n&2){let r=Ft(4);S("matTooltip",Vt(E(1,3,"tooltips.Color Schemes")))("matMenuTriggerFor",r),p(6),tt(o.themes)}},dependencies:[ge,Ce,ai,ih,Mo,Qt,gc,gP,Fb,El,Le],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 vP(){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 rh=class t{constructor(){this.minPasswordLength=Ge.minPasswordLength|12}static{this.PASSWORD_REGEX="^(?!.*(.)\\1{1,})(?!.*\\s)(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[^\\w\\s]).{"+(Ge.minPasswordLength|12)+",50}$"}getPasswordValidators(){return[on.required,on.minLength(this.minPasswordLength),on.maxLength(50),vP()]}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 ah;function Ere(){if(ah===void 0&&(ah=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(ah=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return ah}function Iu(t){return Ere()?.createHTML(t)||t}function yP(t){return Error(`Unable to find icon with the name "${t}"`)}function Ire(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function CP(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function xP(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var fs=class{url;svgText;options;svgElement;constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}},wP=(()=>{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 fs(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,o,r){let a=this._sanitizer.sanitize(jn.HTML,o);if(!a)throw xP(o);let s=Iu(a);return this._addSvgIconConfig(e,n,new fs("",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 fs(n,null,o))}addSvgIconSetLiteralInNamespace(e,n,o){let r=this._sanitizer.sanitize(jn.HTML,n);if(!r)throw xP(n);let a=Iu(r);return this._addSvgIconSetConfig(e,new fs("",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(jn.RESOURCE_URL,e);if(!n)throw CP(e);let o=this._cachedIconsByUrl.get(n);return o?re(sh(o)):this._loadSvgIconFromConfig(new fs(e,null)).pipe(Dt(r=>this._cachedIconsByUrl.set(n,r)),ue(r=>sh(r)))}getNamedSvgIcon(e,n=""){let o=MP(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):Do(yP(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?re(sh(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(ue(n=>sh(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(Zn(s=>{let u=`Loading icon set URL: ${this._sanitizer.sanitize(jn.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(u)),re(null)})));return Va(r).pipe(ue(()=>{let a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw yP(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(Dt(n=>e.svgText=n),ue(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?re(null):this._fetchIcon(e).pipe(Dt(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(Iu(""));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(Iu("")),o=e.attributes;for(let r=0;rIu(u)),kr(()=>this._inProgressUrlFetches.delete(a)),md());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,n,o){return this._svgIconConfigs.set(MP(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 DP=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],zre=DP.map(t=>`[${t}]`).join(", "),Rre=/^url\(['"]?#(.*?)['"]?\)$/,Po=(()=>{class t{_elementRef=d(X);_iconRegistry=d(wP);_location=d(Pre);_errorHandler=d(Ci);_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=Ee.EMPTY;constructor(){let e=d(new mn("aria-hidden"),{optional:!0}),n=d(Lre,{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(zre),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{let s=n[r],c=s.getAttribute(a),u=c?c.match(Rre):null;if(u){let f=o.get(s);f||(f=[],o.set(s,f)),f.push({name:a,value:u[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(Ve(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=L({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),Lt(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:Ore,decls:1,vars:0,template:function(n,o){n&1&&(ke(),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})(),ch=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,he]})}return t})();function Nre(t,i){if(t&1&&(h(0,"mat-error"),C(1),b()),t&2){let e=w();p(),te("",e.label," is a required field.")}}function Fre(t,i){if(t&1&&(h(0,"mat-error"),C(1),b()),t&2){let e=w();p(),O(e.customErrorMessage)}}var lh=(()=>{class t{get matcher(){return this}get required(){return this._required??this.ngControl?.control?.hasValidator(on.required)??!1}set required(e){this._required=e}constructor(){this.ngControl=d(oi,{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=L({type:t,selectors:[["mifosx-input-password"]],viewQuery:function(n,o){if(n&1&&me(ri,5),n&2){let r;G(r=W())&&(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"),C(2),b(),h(3,"input",1),N("focusout",function(){return o.onFocusOut()})("input",function(a){return o.onInput(a)}),b(),h(4,"mat-icon",2),N("click",function(a){return o.onVisibilityClick(a)}),C(5),b(),I(6,Nre,2,1,"mat-error"),I(7,Fre,2,1,"mat-error"),b()),n&2&&(p(2),O(o.label),p(),S("disabled",o.disabled)("errorStateMatcher",o.matcher)("required",o.required)("type",o.type)("value",o.value),p(2),O(o.icon),p(),T(o.ngControl.hasError("required")?6:-1),p(),T(o.ngControl.hasError(o.customErrorName)?7:-1))},dependencies:[ge,Ce,Ht,Cn,bo,cs,ri,Po],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 Vre=(t,i)=>({password:t,repeatPassword:i}),Bre=t=>({minchar:t});function jre(t,i){if(t&1&&(h(0,"p"),C(1),k(2,"translate"),b()),t&2){let e=w();p(),te(" ",lr(2,1,"labels.commons.Password validation",jo(4,Bre,e.minPasswordLength))," ")}}function Hre(t,i){t&1&&(h(0,"p"),C(1),k(2,"translateKey"),b()),t&2&&(p(),te(" ",lr(2,1,"Passwords do not match","inputs")," "))}var SP=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(Tn),this.formBuilder=d(Ws),this.passwordsUtility=d(rh),this.minPasswordLength=Ge.minPasswordLength|12,this.passwordInputType=["password","password"]}ngOnInit(){this.createChangePasswordForm()}createChangePasswordForm(){this.changePasswordForm=this.formBuilder.group({password:["",this.passwordsUtility.getPasswordValidators()],repeatPassword:["",[on.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=L({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),C(1),k(2,"translate"),b(),h(3,"div",3)(4,"form",4)(5,"div",5),F(6,"mifosx-input-password",6,0),k(8,"translateKey"),h(9,"mat-error"),I(10,jre,3,6,"p"),b(),F(11,"mifosx-input-password",7,1),k(13,"translateKey"),b(),h(14,"div",8),I(15,Hre,3,4,"p"),b()()(),h(16,"mat-dialog-actions",9)(17,"button",10),C(18),k(19,"translate"),b(),h(20,"button",11),C(21),k(22,"translate"),b()()),n&2){let r,a;p(),O(E(2,12,"labels.heading.Change Password")),p(3),S("formGroup",o.changePasswordForm),p(2),S("label",Vt(lr(8,14,"Password","inputs"))),p(4),T((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(),S("label",Vt(lr(13,17,"Confirm Password","inputs"))),p(4),T((a=o.changePasswordForm.get("repeatPassword").errors)!=null&&a.notequal?15:-1),p(3),O(E(19,20,"labels.buttons.Cancel")),p(2),S("disabled",!o.changePasswordForm.valid)("mat-dialog-close",z1(24,Vre,o.changePasswordForm.get("password").value,o.changePasswordForm.get("repeatPassword").value)),p(),te(" ",E(22,22,"labels.buttons.Confirm")," ")}},dependencies:[ge,Ce,Gs,fn,mr,gi,Go,bo,yt,xn,Nn,lh,Fn,Rn,Le,nl],styles:[".error[_ngcontent-%COMP%]{color:red}mat-dialog-content[_ngcontent-%COMP%]{min-width:240px;width:240px}"]})}}return t})();var Ure=()=>({enable:!0}),kP=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(Tn)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=L({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),C(1),k(2,"translate"),b(),h(3,"div",1)(4,"p"),C(5),k(6,"translate"),b()(),h(7,"mat-dialog-actions",2)(8,"button",3),C(9),k(10,"translate"),b(),h(11,"button",4),C(12),k(13,"translate"),b()()),n&2&&(p(),O(E(2,6,"labels.heading.Enable")),p(4),Et("",E(6,8,"labels.text.Are you sure you want to enable")," ",o.data.enableContext," ?"),p(4),O(E(10,10,"labels.buttons.Cancel")),p(2),S("mat-dialog-close",Bo(14,Ure)),p(),te(" ",E(13,12,"labels.buttons.Confirm")," "))},dependencies:[ge,Ce,yt,xn,Nn,Fn,Rn,Le],encapsulation:2})}}return t})();var $re=()=>({disable:!0}),EP=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(Tn)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=L({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),C(1),k(2,"translate"),b(),h(3,"div",1)(4,"p"),C(5),k(6,"translate"),b()(),h(7,"mat-dialog-actions",2)(8,"button",3),C(9),k(10,"translate"),b(),h(11,"button",4),C(12),k(13,"translate"),b()()),n&2&&(p(),O(E(2,6,"labels.heading.Disable")),p(4),Et("",E(6,8,"labels.text.Are you sure you want to disable")," ",o.data.disableContext," ?"),p(4),O(E(10,10,"labels.buttons.Cancel")),p(2),S("mat-dialog-close",Bo(14,$re)),p(),te(" ",E(13,12,"labels.buttons.Confirm")," "))},dependencies:[ge,Ce,yt,xn,Nn,Fn,Rn,Le],encapsulation:2})}}return t})();var IP=(()=>{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 Gre=()=>({confirm:!0}),TP=(()=>{class t{constructor(){this.dialogRef=d(qt),this.dialogs=d(IP),this.data=d(Tn)}ngOnInit(){this.setColor()}setColor(){this.color=this.dialogs.setColor(this.data.type)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=L({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),C(1),b(),h(2,"div",1)(3,"p"),C(4),b()(),h(5,"mat-dialog-actions",2)(6,"button",3),C(7),k(8,"translate"),b(),h(9,"button",4),C(10),k(11,"translate"),b()()),n&2&&(p(),O(o.data.heading),p(3),te("",o.data.dialogContext," ?"),p(3),O(E(8,7,"labels.buttons.Cancel")),p(2),S("color",Vt(o.color))("mat-dialog-close",Bo(11,Gre)),p(),te(" ",E(11,9,"labels.buttons.Confirm")," "))},dependencies:[ge,Ce,yt,xn,Nn,Fn,Rn,Le],encapsulation:2})}}return t})();function Wre(t,i){if(t&1&&(h(0,"p"),C(1),b()),t&2){let e=w();p(),O(e.displayData)}}function Yre(t,i){if(t&1&&F(0,"span",2),t&2){let e=w();S("innerHTML",e.sanitizedData,Xc)}}var OP=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(Tn),this.sanitizer=d(ts),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(jn.HTML,this.displayData)||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=L({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),C(1),k(2,"translate"),b(),h(3,"div",1),I(4,Wre,2,1,"p"),I(5,Yre,1,1,"span",2),b(),h(6,"mat-dialog-actions",3)(7,"button",4),C(8),k(9,"translate"),b()()),n&2&&(p(),O(E(2,4,"Error Log")),p(3),T(o.showAsCode?-1:4),p(),T(o.showAsCode?5:-1),p(3),O(E(9,6,"Cancel")))},dependencies:[ge,Ce,yt,xn,Nn,Fn,Rn,Le],encapsulation:2})}}return t})();var LP=(()=>{class t{constructor(){this.http=d(En)}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 PP="mat-badge-content",qre=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({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})(),AP=(()=>{class t{_ngZone=d(se);_elementRef=d(X);_ariaDescriber=d(r2);_renderer=d(Je);_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(Qs);_document=d(De);constructor(){let e=d(ct);e.load(qre),e.load(Io)}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(PP),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 > .${PP}`);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})(),zP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[as,he,he]})}return t})();var RP=(t,i)=>[t,i];function Qre(t,i){t&1&&(h(0,"div",6)(1,"mat-icon",7),C(2,"notifications_none"),b(),h(3,"p",8),C(4),k(5,"translate"),b()()),t&2&&(p(4),O(E(5,1,"labels.text.No notifications")))}function Kre(t,i){if(t&1&&(h(0,"button",12)(1,"div",14)(2,"span",15),C(3),b(),h(4,"span",16),C(5,"\u25CF"),b()(),h(6,"span",17),C(7),b()()),t&2){let e=i.$implicit,n=w(2);S("routerLink",z1(3,RP,n.routeMap[e.objectType],e.objectId)),p(3),O(e.content),p(4),O(e.createdAt)}}function Xre(t,i){if(t&1&&(h(0,"button",13)(1,"div",14)(2,"span",15),C(3),b()(),h(4,"span",17),C(5),b()()),t&2){let e=i.$implicit,n=w(2);S("routerLink",z1(3,RP,n.routeMap[e.objectType],e.objectId)),p(3),O(e.content),p(2),O(e.createdAt)}}function Zre(t,i){if(t&1&&(h(0,"div",9)(1,"h3",10),C(2),k(3,"translate"),b()(),h(4,"div",11),et(5,Kre,8,6,"button",12,gt),et(7,Xre,6,6,"button",13,gt),b()),t&2){let e=w();p(2),O(E(3,1,"labels.menus.Notifications")),p(3),tt(e.unreadNotifications),p(2),tt(e.displayedReadNotifications)}}var NP=(()=>{class t{constructor(){this.notificationsService=d(LP),this.waitTime=Ge.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/"},Va([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=L({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),k(1,"translate"),k(2,"translate"),N("menuClosed",function(){return U(r),$(o.menuClosed())}),h(3,"span",2),C(4),k(5,"translate"),b(),F(6,"fa-icon",3),b(),h(7,"mat-menu",4,0)(9,"div",5),I(10,Qre,6,3,"div",6)(11,Zre,9,3),b()()}if(n&2){let r=Ft(8);S("matTooltip",Vt(E(1,9,"tooltips.Notifications")))("matMenuTriggerFor",r)("matBadge",o.unreadNotifications.length)("matBadgeHidden",!o.unreadNotifications.length),ne("aria-label",E(2,11,"tooltips.Notifications")),p(4),O(E(5,13,"tooltips.Notifications")),p(3),S("overlapTrigger",!1),p(3),T(o.unreadNotifications.length===0&&o.displayedReadNotifications.length===0?10:11)}},dependencies:[ge,Ce,M2,ai,Mo,ih,AP,Qt,gc,Po,El,Le],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 _c=(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})(_c||{}),Jre="*";function jb(t,i){return{type:_c.Trigger,name:t,definitions:i,options:{}}}function dh(t,i=null){return{type:_c.Animate,styles:i,timings:t}}function dBe(t,i=null){return{type:_c.Sequence,steps:t,options:i}}function Tu(t){return{type:_c.Style,styles:t,offset:null}}function eae(t,i,e){return{type:_c.State,name:t,styles:i,options:e}}function uh(t,i,e=null){return{type:_c.Transition,expr:t,animation:i,options:e}}var Vb=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}},Bb=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}},tae="!";function nae(t,i){if(t&1&&(h(0,"mat-option",9),C(1),k(2,"translate"),b()),t&2){let e=i.$implicit;S("value",e.value),p(),te(" ",E(2,2,"labels.text."+e.name)," ")}}function iae(t,i){if(t&1){let e=le();h(0,"div",1)(1,"mat-form-field",5)(2,"mat-label"),C(3),k(4,"translate"),b(),h(5,"input",6),N("keydown.enter",function(){U(e);let o=w();return $(o.search())}),b()(),h(6,"mat-form-field",7)(7,"mat-label"),C(8),k(9,"translate"),b(),h(10,"mat-select",8),et(11,nae,3,4,"mat-option",9,gt),b()()()}if(t&2){let e=w();S("@fadeInOut",void 0),p(3),O(E(4,5,"labels.text.Search")),p(2),S("formControl",e.query),p(3),O(E(9,7,"labels.inputs.Resource")),p(2),S("formControl",e.resource),p(),tt(e.resourceOptions)}}var FP=(()=>{class t{constructor(){this.router=d(To),this.query=new Qi(""),this.resource=new Qi(""),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=L({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),I(1,iae,13,9,"div",1),h(2,"div",2)(3,"button",3),N("click",function(){return o.toggleSearchVisibility()}),F(4,"fa-icon",4),k(5,"translate"),b()()()),n&2&&(p(),T(o.searchVisible?1:-1),p(3),S("matTooltip",Vt(E(5,3,"labels.text.Search"))))},dependencies:[ge,Ce,Di,fn,Li,Ht,Cn,ri,Qn,un,ai,Qt,Mo,Le],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:[jb("fadeInOut",[uh(":enter",[Tu({opacity:0}),dh(500,Tu({opacity:1}))]),uh(":leave",[dh(500,Tu({opacity:0}))])])]}})}}return t})();var mh=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 oae(t,i){t&1&&(h(0,"span")(1,"span",6),C(2),k(3,"translate"),b(),C(4," + "),b()),t&2&&(p(2),O(E(3,1,"labels.inputs.Ctrl")))}function rae(t,i){t&1&&(h(0,"span")(1,"span",6),C(2),k(3,"translate"),b(),C(4," + "),b()),t&2&&(p(2),O(E(3,1,"labels.inputs.Shift")))}function aae(t,i){t&1&&(h(0,"span")(1,"span",6),C(2),k(3,"translate"),b(),C(4," + "),b()),t&2&&(p(2),O(E(3,1,"labels.inputs.Alt")))}function sae(t,i){if(t&1&&(h(0,"span")(1,"span",6),C(2),b()()),t&2){let e=w().$implicit;p(2),O(e.key)}}function cae(t,i){if(t&1&&(F(0,"mat-divider",3),h(1,"div",4)(2,"span",5),I(3,oae,5,3,"span"),I(4,rae,5,3,"span"),I(5,aae,5,3,"span"),I(6,sae,3,1,"span"),b(),h(7,"span",5),C(8),b()()),t&2){let e=i.$implicit;S("inset",!0),p(3),T(e.ctrlKey?3:-1),p(),T(e.shiftKey?4:-1),p(),T(e.altKey?5:-1),p(),T(e.key?6:-1),p(2),O(e.title)}}var VP=(()=>{class t{constructor(){this.dialogRef=d(qt)}ngOnInit(){this.dialogRef.updateSize("800px"),this.buttonConfig=new mh}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=L({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),C(1),k(2,"translate"),b(),h(3,"div",1)(4,"div",2),et(5,cae,9,6,null,null,gt),b()()),n&2&&(p(),O(E(2,1,"labels.heading.Keyboard Shortcuts")),p(4),tt(o.buttonConfig.buttonCombinations))},dependencies:[ge,Ce,xn,Nn,hc,Le],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 lae(t,i){t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),h(3,"strong"),C(4),k(5,"translate"),b()()),t&2&&(p(),te(" ",E(2,2,"labels.inputs.Url")," "),p(3),O(E(5,4,"labels.commons.is required")))}function dae(t,i){if(t&1&&(h(0,"mat-option",9),C(1),b()),t&2){let e=i.$implicit;S("value",e),p(),te(" ",e," ")}}function uae(t,i){if(t&1){let e=le();h(0,"mat-form-field",0)(1,"mat-label"),C(2),k(3,"translate"),b(),h(4,"mat-select",1),N("selectionChange",function(){U(e);let o=w();return $(o.setServer())}),h(5,"div",2)(6,"form",3),N("ngSubmit",function(){U(e);let o=w();return $(o.addNewServer())}),h(7,"div",4)(8,"mat-form-field",5)(9,"span",6)(10,"mat-icon"),C(11,"language"),b()(),h(12,"mat-label"),C(13),k(14,"translate"),b(),F(15,"input",7),I(16,lae,6,6,"mat-error"),b(),h(17,"button",8),C(18),k(19,"translate"),b()()()(),et(20,dae,2,2,"mat-option",9,gt),b()()}if(t&2){let e=w();p(2),O(E(3,7,"labels.inputs.Server")),p(2),S("formControl",e.serverSelector),p(2),S("formGroup",e.form),p(7),O(E(14,9,"labels.placeholders.Add new server")),p(3),T(e.form.controls.url.hasError("required")?16:-1),p(),S("disabled",e.form.invalid),p(),te(" ",E(19,11,"labels.buttons.Add")," "),p(2),tt(e.servers)}}var BP=(()=>{class t{constructor(){this.settingsService=d(Jt),this.dialog=d(Ji),this.formBuilder=d(Ws),this.serverSelector=new Qi(""),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:["",[on.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=L({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&&I(0,uae,22,13,"mat-form-field",0),n&2&&T(o.existMoreThanOneServer?0:-1)},dependencies:[ge,Ce,Gs,Di,fn,mr,Li,gi,Go,Ht,Cn,bo,ri,Qn,un,yt,ru,Po,Le],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 mae(t,i){if(t&1&&(h(0,"mat-option",4),C(1),b()),t&2){let e=i.$implicit;S("value",e),p(),te(" ",e," ")}}var jP=(()=>{class t{constructor(){this.settingsService=d(Jt),this.tenantSelector=new Qi}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=L({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),b(),h(3,"mat-label"),C(4),k(5,"translate"),b(),h(6,"mat-select",3),N("selectionChange",function(){return o.setTenantIdentifier()}),et(7,mae,2,2,"mat-option",4,gt),b()()),n&2&&(p(4),O(E(5,2,"labels.inputs.Tenant")),p(2),S("formControl",o.tenantSelector),p(),tt(o.tenants))},dependencies:[ge,Ce,fn,Li,Ht,Cn,Qn,un,ru,Qt,Le],styles:["#tenant-selector[_ngcontent-%COMP%], .tenantselector[_ngcontent-%COMP%]{width:14rem;margin-bottom:.6rem}"]})}}return t})();var HP={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 pae={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"]},UP=pae,$P={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 fae={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"]},GP=fae;var hae={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"]},WP=hae;var gae={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"]},YP=gae;var _ae={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"]},qP=_ae;var QP={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 bae={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"]},KP=bae;var vae={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"]},XP=vae;var ZP={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 JP={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 Hb={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 yae={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"]},eA=yae;var Cae={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"]},tA=Cae;var nA={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"]},xae={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"]},iA=xae;var oA={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 rA={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 aA={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 Mae={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"]},sA=Mae;var cA={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"]},lA={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 dA={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 uA={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 mA={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 pA={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 Ub={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 wae={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"]},fA=wae;var hA={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 Dae={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"]},gA=Dae;var _A={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 Sae={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"]},bA=Sae;var vA={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 yA={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 CA={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 xA={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 kae={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 MA=kae;var wA={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 Eae={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 DA=Eae;var Iae={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 SA=Iae;var Tae={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"]},kA=Tae;var EA={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 IA={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 TA={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 OA={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 LA={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 PA={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 AA={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 Oae={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"]},zA=Oae;var RA={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 NA={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 FA={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 Lae={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"]},VA=Lae;var Pae={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"]},BA=Pae;var jA={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 HA={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 UA={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 $A={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 GA={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 WA={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 YA={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 Aae={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 $b=Aae;var zae={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"]},qA=zae;var QA={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 Rae={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"]},KA=Rae;var XA={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 ZA={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 JA={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 ez={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 tz={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 nz={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 Nae={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"]},iz=Nae;var Fae={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"]},oz=Fae;var rz={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 az={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 sz={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 cz={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 lz={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 dz={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 Vae={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"]},uz=Vae;var mz={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 pz={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 Bae={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"]},fz=Bae;var hz={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 gz={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 _z={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 bz={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 jae={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"]},vz=jae;var Hae={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"]},yz=Hae,Cz={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 xz={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 Mz={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 Uae={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 wz=Uae;var Dz={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 Sz={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 $ae={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"]},kz=$ae;var Ez={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 Iz={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 Tz={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 Gae={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"]},Oz=Gae;var Lz={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 Pz={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 Az={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 zz={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 Wae={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"]},Rz=Wae;var Yae={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"]},Nz=Yae;var qae={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"]},Fz=qae;var Vz={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 Qae={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 Bz=Qae;var Gb=(()=>{class t{constructor(){d(Ob).addIcons(Lz,XP,HA,LA,Ub,Hb,cz,Pz,zz,Ez,tz,Tz,WP,YA,_A,Az,bA,gz,Dz,Sz,AA,eA,XA,ZP,KA,kz,UP,xz,Vz,sA,WA,oz,tA,Rz,NA,lA,lz,GP,$A,gA,wA,TA,Iz,HP,BA,iz,mA,mz,rA,_z,pA,aA,PA,QA,YP,qA,EA,CA,KP,pz,Mz,Oz,zA,fA,IA,fz,kA,qP,nA,SA,JP,uz,GA,RA,Nz,jA,$b,Bz,yz,uA,cA,Cz,yA,nz,az,DA,MA,wz,Fz,rz,Ub,sz,QP,iA,dA,OA,FA,oA,bz,dz,hA,vA,xA,ZA,$P,vz,ez,JA,Hb,$b,hz,UA,VA)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t})}static{this.\u0275inj=Z({imports:[oP]})}}return t})();function qb(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 Xae(t,i){let e=i.leftt.right,o=i.topt.bottom;return e||n||o||r}function Pu(t,i,e){t.top+=i,t.bottom=t.top+t.height,t.left+=e,t.right=t.left+t.width}function $z(t,i,e,n){let{top:o,right:r,bottom:a,left:s,width:c,height:u}=t,f=c*i,g=u*i;return n>o-g&&ns-f&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:ev(e)})})}handleScroll(i){let e=Un(i),n=this.positions.get(e);if(!n)return null;let o=n.scrollPosition,r,a;if(e===this._document){let u=this.getViewportScrollPosition();r=u.top,a=u.left}else r=e.scrollTop,a=e.scrollLeft;let s=o.top-r,c=o.left-a;return this.positions.forEach((u,f)=>{u.clientRect&&e!==f&&e.contains(f)&&Pu(u.clientRect,s,c)}),o.top=r,o.left=a,{top:s,left:c}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function iR(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 tv(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 U2(t,i){let e=i?"":"none";tv(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 Gz(t,i,e){tv(t.style,{position:i?"":"fixed",top:i?"":"0",opacity:i?"":"0",left:i?"":"-999em"},e)}function fh(t,i){return i&&i!="none"?t+" "+i:t}function Wz(t,i){t.style.width=`${i.width}px`,t.style.height=`${i.height}px`,t.style.transform=Au(i.left,i.top)}function Au(t,i){return`translate3d(${Math.round(t)}px, ${Math.round(i)}px, 0)`}function Yz(t){let i=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*i}function Zae(t){let i=getComputedStyle(t),e=Wb(i,"transition-property"),n=e.find(s=>s==="transform"||s==="all");if(!n)return 0;let o=e.indexOf(n),r=Wb(i,"transition-duration"),a=Wb(i,"transition-delay");return Yz(r[o])+Yz(a[o])}function Wb(t,i){return t.getPropertyValue(i).split(",").map(n=>n.trim())}var Jae=new Set(["position"]),Kb=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,u,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=u,this._renderer=f}attach(i){this._preview=this._createPreview(),i.appendChild(this._preview),qz(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 Zae(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=iR(a,this._document),this._previewEmbeddedView=a,i.matchSize?Wz(o,r):o.style.transform=Au(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else o=qb(this._rootElement),Wz(o,this._initialDomRect),this._initialTransform&&(o.style.transform=this._initialTransform);return tv(o.style,{"pointer-events":"none",margin:qz(o)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},Jae),U2(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 qz(t){return"showPopover"in t}var ese={passive:!0},Qz={passive:!1},tse={passive:!1,capture:!0},nse=800,Kz="cdk-drag-placeholder",Xz=new Set(["position"]),Xb=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=Se(!1);_hasMoved;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new B;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement;_rootElementTapHighlight;_pointerMoveSubscription=Ee.EMPTY;_pointerUpSubscription=Ee.EMPTY;_scrollSubscription=Ee.EMPTY;_resizeSubscription=Ee.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=>U2(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 ph(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=>In(n)),this._handles.forEach(n=>U2(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=In(i);if(e!==this._rootElement){this._removeRootElementListeners();let n=this._renderer;this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[n.listen(e,"mousedown",this._pointerDown,Qz),n.listen(e,"touchstart",this._pointerDown,ese),n.listen(e,"dragstart",this._nativeDragStart,Qz)]),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?In(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&&Xae(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=Au(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),U2(i,!0))}enableHandle(i){this._disabledHandles.has(i)&&(this._disabledHandles.delete(i),U2(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){Ou(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",ise,tse)}),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 Kb(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)),Gz(o,!1,Xz),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=Ou(e),r=!o&&e.button!==0,a=this._rootElement,s=Un(e),c=!o&&this._lastTouchEventTime&&this._lastTouchEventTime+nse>Date.now(),u=o?rs(e):os(e);if(s&&s.draggable&&e.type==="mousedown"&&e.preventDefault(),n||r||c||u)return;if(this._handles.length){let y=a.style;this._rootElementTapHighlight=y.webkitTapHighlightColor||"",y.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(y=>this._updateOnScroll(y)),this._boundaryElement&&(this._boundaryRect=ev(this._boundaryElement));let f=this._previewTemplate;this._pickupPositionInElement=f&&f.template&&!f.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,i,e);let g=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:g.x,y:g.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(i){Gz(this._rootElement,!0,Xz),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&&Un(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=iR(this._placeholderRef,this._document)):n=qb(this._rootElement),n.style.pointerEvents="none",n.classList.add(Kz),n}_getPointerPositionInElement(i,e,n){let o=e===this._rootElement?null:e,r=o?o.getBoundingClientRect():i,a=Ou(n)?n.targetTouches[0]:n,s=this._getViewportScrollPosition(),c=a.pageX-r.left-s.left,u=a.pageY-r.top-s.top;return{x:r.left-i.left+c,y:r.top-i.top+u}}_getPointerPositionOnPage(i){let e=this._getViewportScrollPosition(),n=Ou(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:u}=this._getPreviewRect(),f=s.top+a,g=s.bottom-(u-a),y=s.left+r,x=s.right-(c-r);n=Zz(n,y,x),o=Zz(o,f,g)}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,U2(this._rootElement,i))}_removeRootElementListeners(){this._rootElementCleanups?.forEach(i=>i()),this._rootElementCleanups=void 0}_applyRootElementTransform(i,e){let n=1/this.scale,o=Au(i*n,e*n),r=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=r.transform&&r.transform!="none"?r.transform:""),r.transform=fh(o,this._initialTransform)}_applyPreviewTransform(i,e){let n=this._previewTemplate?.template?void 0:this._initialTransform,o=Au(i,e);this._preview.setTransform(fh(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:Ou(i)?e.touch:e?e.mouse:0}_updateOnScroll(i){let e=this._parentPositions.handleScroll(i);if(e){let n=Un(i);this._boundaryRect&&n!==this._boundaryElement&&n.contains(this._boundaryElement)&&Pu(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=al(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 In(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??=qb(this._placeholder);o.classList.remove(Kz),o.classList.add("cdk-drag-anchor"),o.style.transform="",n?n.before(o):In(e.element).appendChild(o)}}};function Zz(t,i,e){return Math.max(i,Math.min(e,t))}function Ou(t){return t.type[0]==="t"}function ise(t){t.preventDefault()}function oR(t,i,e){let n=Jz(i,t.length-1),o=Jz(e,t.length-1);if(n===o)return;let r=t[n],a=o0)return null;let s=this.orientation==="horizontal",c=r.findIndex(Q=>Q.drag===i),u=r[a],f=r[c].clientRect,g=u.clientRect,y=c>a?1:-1,x=this._getItemOffsetPx(f,g,y),D=this._getSiblingOffsetPx(c,r,y),Y=r.slice();return oR(r,c,a),r.forEach((Q,K)=>{if(Y[K]===Q)return;let pe=Q.drag===i,ut=pe?x:D,wt=pe?i.getPlaceholderElement():Q.drag.getRootElement();Q.offset+=ut;let Bt=Math.round(Q.offset*(1/Q.drag.scale));s?(wt.style.transform=fh(`translate3d(${Bt}px, 0, 0)`,Q.initialTransform),Pu(Q.clientRect,0,ut)):(wt.style.transform=fh(`translate3d(0, ${Bt}px, 0)`,Q.initialTransform),Pu(Q.clientRect,ut,0))}),this._previousSwap.overlaps=Qb(g,e,n),this._previousSwap.drag=u.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(),u=a[r];if(u===i&&(u=a[r+1]),!u&&(r==null||r===-1||r-1&&a.splice(s,1),u&&!this._dragDropRegistry.isDragging(u)){let f=u.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})=>{Pu(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:ev(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",u=o?"right":"bottom";n===-1?s-=a.clientRect[c]-r[u]:s+=r[c]-a.clientRect[u]}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 u=r?o.x:o.y;if(s===this._previousSwap.drag&&this._previousSwap.overlaps&&u===this._previousSwap.delta)return!1}return r?e>=Math.floor(c.left)&&e=Math.floor(c.top)&&nc?f.after(u):f.before(u),oR(this._activeItems,c,r);let g=this._getRootNode().elementFromPoint(e,n);return a.deltaX=o.x,a.deltaY=o.y,a.drag=s,a.overlaps=f===g||f.contains(g),{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=al(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=Ee.EMPTY;_verticalScrollDirection=vr.NONE;_horizontalScrollDirection=wo.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=In(i);this._document=n,this.withOrientation("vertical").withElementContainer(a),e.registerDropContainer(this),this._parentPositions=new ph(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 hh&&(this._sortStrategy.direction=i),this}connectedTo(i){return this._siblings=i.slice(),this}withOrientation(i){if(i==="mixed")this._sortStrategy=new Zb(this._document,this._dragDropRegistry);else{let e=new hh(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=In(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||!$z(this._domRect,eR,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=vr.NONE,r=wo.NONE;if(this._parentPositions.positions.forEach((a,s)=>{s===this._document||!a.clientRect||n||$z(a.clientRect,eR,i,e)&&([o,r]=ose(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=aR(c,e),r=sR(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(),tg(0,I3).pipe(xe(this._stopScrollTimers)).subscribe(()=>{let i=this._scrollNode,e=this.autoScrollStep;this._verticalScrollDirection===vr.UP?i.scrollBy(0,-e):this._verticalScrollDirection===vr.DOWN&&i.scrollBy(0,e),this._horizontalScrollDirection===wo.LEFT?i.scrollBy(-e,0):this._horizontalScrollDirection===wo.RIGHT&&i.scrollBy(e,0)})};_isOverContainer(i,e){return this._domRect!=null&&Qb(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||!Qb(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=al(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 aR(t,i){let{top:e,bottom:n,height:o}=t,r=o*rR;return i>=e-r&&i<=e+r?vr.UP:i>=n-r&&i<=n+r?vr.DOWN:vr.NONE}function sR(t,i){let{left:e,right:n,width:o}=t,r=o*rR;return i>=e-r&&i<=e+r?wo.LEFT:i>=n-r&&i<=n+r?wo.RIGHT:wo.NONE}function ose(t,i,e,n,o){let r=aR(i,o),a=sR(i,n),s=vr.NONE,c=wo.NONE;if(r){let u=t.scrollTop;r===vr.UP?u>0&&(s=vr.UP):t.scrollHeight-u>t.clientHeight&&(s=vr.DOWN)}if(a){let u=t.scrollLeft;e==="rtl"?a===wo.RIGHT?u<0&&(c=wo.RIGHT):t.scrollWidth+u>t.clientWidth&&(c=wo.LEFT):a===wo.LEFT?u>0&&(c=wo.LEFT):t.scrollWidth-u>t.clientWidth&&(c=wo.RIGHT)}return[s,c]}var Lu={capture:!0},Yb={passive:!1,capture:!0},rse=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({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})(),cR=(()=>{class t{_ngZone=d(se);_document=d(De);_styleLoader=d(ct);_renderer=d(Ln).createRenderer(null,null);_cleanupDocumentTouchmove;_scroll=new B;_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=Se([]);_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,Yb)})}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(rse),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),Lu],["selectstart",this._preventDefaultWhileDragging,Yb]];o?a.push(["touchend",r,Lu],["touchcancel",r,Lu]):a.push(["mouseup",r,Lu]),o||a.push(["mousemove",s=>this.pointerMove.next(s),Yb]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=a.map(([s,c,u])=>this._renderer.listen(this._document,s,c,u))})}}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)},Lu);return()=>{r()}}))),mt(...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})(),ase={dragStartThreshold:5,pointerDirectionChangeThreshold:5},nv=(()=>{class t{_document=d(De);_ngZone=d(se);_viewportRuler=d(Yn);_dragDropRegistry=d(cR);_renderer=d(Ln).createRenderer(null,null);constructor(){}createDrag(e,n=ase){return new Xb(e,n,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry,this._renderer)}createDropList(e){return new Jb(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})(),tR=new P("CDK_DRAG_PARENT");var sse=new P("CdkDragHandle");var lR=new P("CDK_DRAG_CONFIG"),dR=new P("CdkDropList"),Lje=(()=>{class t{element=d(X);dropContainer=d(dR,{optional:!0,skipSelf:!0});_ngZone=d(se);_viewContainerRef=d(pt);_dir=d(vt,{optional:!0});_changeDetectorRef=d(we);_selfHandle=d(sse,{optional:!0,self:!0});_parentDrag=d(tR,{optional:!0,skipSelf:!0});_dragDropRegistry=d(cR);_destroyed=new B;_handles=new dt([]);_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(ue(o=>({source:this,pointerPosition:o.pointerPosition,event:o.event,delta:o.delta,distance:o.distance}))).subscribe(e);return()=>{n.unsubscribe()}});_injector=d(ye);constructor(){let e=this.dropContainer,n=d(lR,{optional:!0}),o=d(nv);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(xe(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(){xt(()=>{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):In(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(Ve(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:u,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),u&&(this.rootElementSelector=u),f&&(this.previewContainer=f)}_setupHandlesListener(){this._handles.pipe(Dt(e=>{let n=e.map(o=>o.element);this._selfHandle&&this.rootElementSelector&&n.push(this.element),this._dragRef.withHandles(n)}),rt(e=>mt(...e.map(n=>n._stateChanges.pipe(Qe(n))))),xe(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",ft]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[de([{provide:tR,useExisting:t}]),Re]})}return t})(),nR=new P("CdkDropListGroup");var Pje=(()=>{class t{element=d(X);_changeDetectorRef=d(we);_scrollDispatcher=d(_r);_dir=d(vt,{optional:!0});_group=d(nR,{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(nv),n=d(lR,{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(Qe(this._dir.value),xe(this._destroyed)).subscribe(n=>e.withDirection(n)),e.beforeStarted.subscribe(()=>{let n=Ur(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()}),mt(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:nR,useValue:void 0},{provide:dR,useExisting:t}])]})}return t})();var uR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[nv],imports:[ki]})}return t})();var cse=["*"];function lse(t,i){t&1&&ae(0)}var iv=(()=>{class t{_elementRef=d(X);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})(),ov=(()=>{class t{template=d(it);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkStepLabel",""]]})}return t})();var Tl={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},rv=new P("STEPPER_GLOBAL_OPTIONS"),gh=(()=>{class t{_stepperOptions;_stepper=d($2);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;get interacted(){return this._interacted()}set interacted(e){this._interacted.set(e)}_interacted=Se(!1);interactedStream=new j;label;errorMessage;ariaLabel;ariaLabelledby;get state(){return this._state()}set state(e){this._state.set(e)}_state=Se(void 0);get editable(){return this._editable()}set editable(e){this._editable.set(e)}_editable=Se(!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=Se(null);index=Se(-1);isSelected=ni(()=>this._stepper.selectedIndex===this.index());indicatorType=ni(()=>{let e=this.isSelected(),n=this.completed,o=this._state()??Tl.NUMBER,r=this._editable();return this._showError()&&this.hasError&&!e?Tl.ERROR:this._displayDefaultIndicatorType?!n||e?Tl.NUMBER:r?Tl.EDIT:Tl.DONE:n&&!e?Tl.DONE:n&&e?o:r&&e?Tl.EDIT:o});isNavigable=ni(()=>{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=Se(null);_getDefaultError(){return this.interacted&&!!this.stepControl?.invalid}constructor(){let e=d(rv,{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=L({type:t,selectors:[["cdk-step"]],contentQueries:function(n,o,r){if(n&1&&(Ie(r,ov,5),Ie(r,wi,5)),n&2){let a;G(a=W())&&(o.stepLabel=a.first),G(a=W())&&(o._childForms=a)}},viewQuery:function(n,o){if(n&1&&me(it,7),n&2){let r;G(r=W())&&(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:cse,decls:1,vars:0,template:function(n,o){n&1&&(ke(),zr(0,lse,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return t})(),$2=(()=>{class t{_dir=d(vt,{optional:!0});_changeDetectorRef=d(we);_elementRef=d(X);_destroyed=new B;_keyManager;_steps;steps=new On;_stepHeader;_sortedHeaders=new On;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=Se(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(Qe(this._steps),xe(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(Qe(this._stepHeader),xe(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 $r(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:re()).pipe(Qe(this._layoutDirection()),xe(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=kt(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=fo();return e===n||e.contains(n)}_isValidIndex(e){return e>-1&&(!this.steps||e{class t{_stepper=d($2);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&&At("type",o.type)},inputs:{type:"type"}})}return t})(),pR=(()=>{class t{_stepper=d($2);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&&At("type",o.type)},inputs:{type:"type"}})}return t})(),fR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[va]})}return t})();var dse=["panel"],use=["*"];function mse(t,i){if(t&1&&(ot(0,"div",1,0),ae(2),st()),t&2){let e=i.id,n=w();Lt(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"),At("id",n.id),ne("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(e))}}var av=class{source;option;constructor(i,e){this.source=i,this.option=e}},hR=new P("mat-autocomplete-default-options",{providedIn:"root",factory:pse});function pse(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}var IHe=(()=>{class t{_changeDetectorRef=d(we);_elementRef=d(X);_defaults=d(hR);_animationsDisabled=Ue();_activeOptionChanges=Ee.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 ll(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 av(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=L({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(n,o,r){if(n&1&&(Ie(r,un,5),Ie(r,k2,5)),n&2){let a;G(a=W())&&(o.options=a),G(a=W())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&(me(it,7),me(dse,5)),n&2){let r;G(r=W())&&(o.template=r.first),G(r=W())&&(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:S2,useExisting:t}])],ngContentSelectors:use,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&&(ke(),zr(0,mse,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 fse={provide:hi,useExisting:It(()=>_se),multi:!0};var gR=new P("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(ye);return()=>vi(t)}});function hse(t){let i=d(ye);return()=>vi(i)}var gse={provide:gR,deps:[],useFactory:hse},_se=(()=>{class t{_environmentInjector=d(Xt);_element=d(X);_injector=d(ye);_viewContainerRef=d(pt);_zone=d(se);_changeDetectorRef=d(we);_dir=d(vt,{optional:!0});_formField=d(wa,{optional:!0,host:!0});_viewportRuler=d(Yn);_scrollStrategy=d(gR);_renderer=d(Je);_animationsDisabled=Ue();_defaults=d(hR,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new B;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=Ee.EMPTY;_breakpointObserver=d(cl);_handsetLandscapeSubscription=Ee.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new B;_overlayPanelClass=Ur(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&&Ks(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return mt(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Te(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Te(()=>this._overlayAttached)):re()).pipe(ue(e=>e instanceof D2?e:null))}optionSelections=ji(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(Qe(e),rt(()=>mt(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(rt(()=>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=Un(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=kt(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 fo()===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=>{xt(()=>{o.next()},{injector:this._environmentInjector})}),n=this.autocomplete.options?.changes.pipe(Dt(()=>this._positionStrategy.reapplyLastPosition()),ja(0))??re();return mt(e,n).pipe(rt(()=>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})),Ve(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;o2(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 qn(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),n=Co(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(Hp.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&&!kt(e)||e.keyCode===38&&kt(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 yo({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=qr(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&&Ks(this._trackedModal,"aria-owns",n),o2(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;Ks(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([fse]),Re]})}return t})(),_R=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[gse],imports:[Ai,L2,he,ki,L2,he]})}return t})();var bse=["button"],vse=["*"];function yse(t,i){if(t&1&&(h(0,"div",2),F(1,"mat-pseudo-checkbox",6),b()),t&2){let e=w();p(),S("disabled",e.disabled)}}var bR=new P("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:Cse});function Cse(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}var vR=new P("MatButtonToggleGroup"),xse={provide:hi,useExisting:It(()=>Mse),multi:!0},_h=class{source;value;constructor(i,e){this.source=i,this.value=e}},Mse=(()=>{class t{_changeDetector=d(we);_dir=d(vt,{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(bR,{optional:!0});this.appearance=e&&e.appearance?e.appearance:"standard",this.hideSingleSelectionIndicator=e?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=e?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new xo(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||kt(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 _h(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&&Ie(r,yR,5),n&2){let a;G(a=W())&&(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([xse,{provide:vR,useExisting:t}])]})}return t})(),yR=(()=>{class t{_changeDetectorRef=d(we);_elementRef=d(X);_focusMonitor=d(ln);_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(ct).load(dn);let e=d(vR,{optional:!0}),n=d(new mn("tabindex"),{optional:!0})||"",o=d(bR,{optional:!0});this._tabIndex=Se(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 _h(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=L({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(n,o){if(n&1&&me(bse,5),n&2){let r;G(r=W())&&(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:vse,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();ke(),h(0,"button",1,0),N("click",function(){return U(r),$(o._onButtonClick())}),I(2,yse,2,1,"div",2),h(3,"span",3),ae(4),b()(),F(5,"span",4)(6,"span",5)}if(n&2){let r=Ft(1);S("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),T(o.buttonToggleGroup&&(!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator||o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),p(4),S("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[_i,Df],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})(),CR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,Ii,yR,he]})}return t})();var wse=new P("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})});var xR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[Da,{provide:wse,useValue:{separatorKeyCodes:[13]}}],imports:[he,Ii,he]})}return t})();var sv=new P("CdkAccordion"),MR=(()=>{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:sv,useExisting:t}]),Re]})}return t})(),wR=(()=>{class t{accordion=d(sv,{optional:!0,skipSelf:!0});_changeDetectorRef=d(we);_expansionDispatcher=d(Ml);_openCloseAllSubscription=Ee.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=Se(!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:sv,useValue:void 0}])]})}return t})(),DR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})();var Dse=["body"],Sse=["bodyWrapper"],kse=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Ese=["mat-expansion-panel-header","*","mat-action-row"];function Ise(t,i){}var Tse=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Ose=["mat-panel-title","mat-panel-description","*"];function Lse(t,i){t&1&&(ot(0,"span",1),Gt(),ot(1,"svg",2),Pn(2,"path",3),st()())}var cv=new P("MAT_ACCORDION"),SR=new P("MAT_EXPANSION_PANEL"),Pse=(()=>{class t{_template=d(it);_expansionPanel=d(SR,{optional:!0});constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]})}return t})(),kR=new P("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),Ase=(()=>{class t extends wR{_viewContainerRef=d(pt);_animationsDisabled=Ue();_document=d(De);_ngZone=d(se);_elementRef=d(X);_renderer=d(Je);_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(cv,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=d(He).getId("mat-expansion-panel-header-");constructor(){super();let e=d(kR,{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(Qe(null),Te(()=>this.expanded&&!this._portal),Ve(1)).subscribe(()=>{this._portal=new qn(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=L({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(n,o,r){if(n&1&&Ie(r,Pse,5),n&2){let a;G(a=W())&&(o._lazyContent=a.first)}},viewQuery:function(n,o){if(n&1&&(me(Dse,5),me(Sse,5)),n&2){let r;G(r=W())&&(o._body=r.first),G(r=W())&&(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:cv,useValue:void 0},{provide:SR,useExisting:t}]),ce,Re],ngContentSelectors:Ese,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&&(ke(kse),ae(0),h(1,"div",2,0)(3,"div",3,1)(5,"div",4),ae(6,1),Xe(7,Ise,0,0,"ng-template",5),b(),ae(8,2),b()()),n&2&&(p(),ne("inert",o.expanded?null:""),p(2),S("id",o.id),ne("aria-labelledby",o._headerId),p(4),S("cdkPortalOutlet",o._portal))},dependencies:[Ei],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 zse=(()=>{class t{panel=d(Ase,{host:!0});_element=d(X);_focusMonitor=d(ln);_changeDetectorRef=d(we);_parentChangeSubscription=Ee.EMPTY;constructor(){d(ct).load(dn);let e=this.panel,n=d(kR,{optional:!0}),o=d(new mn("tabindex"),{optional:!0}),r=e.accordion?e.accordion._stateChanges.pipe(Te(a=>!!(a.hideToggle||a.togglePosition))):kn;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=mt(e.opened,e.closed,r,e._inputChanges.pipe(Te(a=>!!(a.hideToggle||a.disabled||a.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(Te(()=>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:kt(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=L({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),zt("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:ft(e)]},ngContentSelectors:Ose,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&&(ke(Tse),ot(0,"span",0),ae(1),ae(2,1),ae(3,2),st(),I(4,Lse,3,0,"span",1)),n&2&&(oe("mat-content-hide-toggle",!o._showToggle()),p(4),T(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})(),WUe=(()=>{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})(),YUe=(()=>{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})(),qUe=(()=>{class t extends MR{_keyManager;_ownHeaders=new On;_headers;hideToggle=!1;displayMode="default";togglePosition="after";ngAfterContentInit(){this._headers.changes.pipe(Qe(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(n=>n.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new $r(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=Oe(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["mat-accordion"]],contentQueries:function(n,o,r){if(n&1&&Ie(r,zse,5),n&2){let a;G(a=W())&&(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:cv,useExisting:t}]),ce]})}return t})(),ER=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,DR,vo]})}return t})();var IR=["*"],TR=`.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))}
+`,Rse=["unscopedContent"],Nse=["text"],Fse=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],Vse=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var Bse=new P("ListOption"),jse=(()=>{class t{_elementRef=d(X);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})(),Hse=(()=>{class t{_elementRef=d(X);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})(),Use=(()=>{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})(),OR=(()=>{class t{_listOption=d(Bse,{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})(),$se=(()=>{class t extends OR{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[ce]})}return t})(),Gse=(()=>{class t extends OR{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[ce]})}return t})(),Wse=new P("MAT_LIST_CONFIG"),zu=(()=>{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=Se(!1);_defaultOptions=d(Wse,{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})(),Yse=(()=>{class t{_elementRef=d(X);_ngZone=d(se);_listBase=d(zu,{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=Se(!1);_subscriptions=new Ee;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){d(ct).load(dn);let e=d(pl,{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 ml(this,this._ngZone,this._hostElement,this._platform,d(ye)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(mt(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&&(Ie(r,$se,4),Ie(r,Gse,4)),n&2){let a;G(a=W())&&(o._avatars=a),G(a=W())&&(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 b$e=(()=>{class t extends zu{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275cmp=L({type:t,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[de([{provide:zu,useExisting:t}]),ce],ngContentSelectors:IR,decls:1,vars:0,template:function(n,o){n&1&&(ke(),ae(0))},styles:[TR],encapsulation:2,changeDetection:0})}return t})(),v$e=(()=>{class t extends Yse{_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=Oe(t)))(o||t)}})();static \u0275cmp=L({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(n,o,r){if(n&1&&(Ie(r,Hse,5),Ie(r,jse,5),Ie(r,Use,5)),n&2){let a;G(a=W())&&(o._lines=a),G(a=W())&&(o._titles=a),G(a=W())&&(o._meta=a)}},viewQuery:function(n,o){if(n&1&&(me(Rse,5),me(Nse,5)),n&2){let r;G(r=W())&&(o._unscopedContent=r.first),G(r=W())&&(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:Vse,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();ke(Fse),ae(0),h(1,"span",1),ae(2,1),ae(3,2),h(4,"span",2,0),N("cdkObserveContent",function(){return U(r),$(o._updateItemLines(!0))}),ae(6,3),b()(),ae(7,4),ae(8,5),F(9,"div",3)}},dependencies:[z0],encapsulation:2,changeDetection:0})}return t})();var y$e=(()=>{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 C$e=(()=>{class t extends zu{_isNonInteractive=!1;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275cmp=L({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:zu,useExisting:t}]),ce],ngContentSelectors:IR,decls:1,vars:0,template:function(n,o){n&1&&(ke(),ae(0))},styles:[TR],encapsulation:2,changeDetection:0})}return t})();var LR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[e2,he,Ii,Pf,th]})}return t})();function qse(t,i){if(t&1&&(h(0,"mat-option",17),C(1),b()),t&2){let e=i.$implicit;S("value",e),p(),te(" ",e," ")}}function Qse(t,i){if(t&1){let e=le();h(0,"mat-form-field",14)(1,"mat-select",16,0),N("selectionChange",function(o){U(e);let r=w(2);return $(r._changePageSize(o.value))}),et(3,qse,2,2,"mat-option",17,gt),b(),h(5,"div",18),N("click",function(){U(e);let o=Ft(2);return $(o.open())}),b()()}if(t&2){let e=w(2);S("appearance",e._formFieldAppearance)("color",e.color),p(),S("value",e.pageSize)("disabled",e.disabled),O1("aria-labelledby",e._pageSizeLabelId),S("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),p(2),tt(e._displayedPageSizeOptions)}}function Kse(t,i){if(t&1&&(h(0,"div",15),C(1),b()),t&2){let e=w(2);p(),O(e.pageSize)}}function Xse(t,i){if(t&1&&(h(0,"div",3)(1,"div",13),C(2),b(),I(3,Qse,6,7,"mat-form-field",14),I(4,Kse,2,1,"div",15),b()),t&2){let e=w();p(),ne("id",e._pageSizeLabelId),p(),te(" ",e._intl.itemsPerPageLabel," "),p(),T(e._displayedPageSizeOptions.length>1?3:-1),p(),T(e._displayedPageSizeOptions.length<=1?4:-1)}}function Zse(t,i){if(t&1){let e=le();h(0,"button",19),N("click",function(){U(e);let o=w();return $(o._buttonClicked(0,o._previousButtonsDisabled()))}),Gt(),h(1,"svg",8),F(2,"path",20),b()()}if(t&2){let e=w();S("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),ne("aria-label",e._intl.firstPageLabel)}}function Jse(t,i){if(t&1){let e=le();h(0,"button",21),N("click",function(){U(e);let o=w();return $(o._buttonClicked(o.getNumberOfPages()-1,o._nextButtonsDisabled()))}),Gt(),h(1,"svg",8),F(2,"path",22),b()()}if(t&2){let e=w();S("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),ne("aria-label",e._intl.lastPageLabel)}}var bh=(()=>{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(bh);_changeDetectorRef=d(we);_formFieldAppearance;_pageSizeLabelId=d(He).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new wr(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=>ft(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(ice,{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=L({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ft],length:[2,"length","length",ft],pageSize:[2,"pageSize","pageSize",ft],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),I(2,Xse,5,4,"div",3),h(3,"div",4)(4,"div",5),C(5),b(),I(6,Zse,3,5,"button",6),h(7,"button",7),N("click",function(){return o._buttonClicked(o.pageIndex-1,o._previousButtonsDisabled())}),Gt(),h(8,"svg",8),F(9,"path",9),b()(),sr(),h(10,"button",10),N("click",function(){return o._buttonClicked(o.pageIndex+1,o._nextButtonsDisabled())}),Gt(),h(11,"svg",8),F(12,"path",11),b()(),I(13,Jse,3,5,"button",12),b()()()),n&2&&(p(2),T(o.hidePageSize?-1:2),p(3),te(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),p(),T(o.showFirstLastButtons?6:-1),p(),S("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("disabled",o._previousButtonsDisabled())("tabindex",o._previousButtonsDisabled()?-1:null),ne("aria-label",o._intl.previousPageLabel),p(3),S("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("disabled",o._nextButtonsDisabled())("tabindex",o._nextButtonsDisabled()?-1:null),ne("aria-label",o._intl.nextPageLabel),p(3),T(o.showFirstLastButtons?13:-1))},dependencies:[Ht,Qn,un,ai,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})(),PR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[tce],imports:[ka,mu,ku,lv]})}return t})();var oce=["determinateSpinner"];function rce(t,i){if(t&1&&(Gt(),h(0,"svg",11),F(1,"circle",12),b()),t&2){let e=w();ne("viewBox",e._viewBox()),p(),zt("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),ne("r",e._circleRadius())}}var ace=new P("mat-progress-spinner-default-options",{providedIn:"root",factory:sce});function sce(){return{diameter:AR}}var AR=100,cce=10,zR=(()=>{class t{_elementRef=d(X);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=d(ace),n=V0(),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=AR;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-cce)/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=L({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,o){if(n&1&&me(oce,5),n&2){let r;G(r=W())&&(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),Lt("mat-"+o.color),zt("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",ft],diameter:[2,"diameter","diameter",ft],strokeWidth:[2,"strokeWidth","strokeWidth",ft]},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&&(Xe(0,rce,2,8,"ng-template",null,0,Ns),h(2,"div",2,1),Gt(),h(4,"svg",3),F(5,"circle",4),b()(),sr(),h(6,"div",5)(7,"div",6)(8,"div",7),jt(9,8),b(),h(10,"div",9),jt(11,8),b(),h(12,"div",10),jt(13,8),b()()()),n&2){let r=Ft(1);p(4),ne("viewBox",o._viewBox()),p(),zt("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),ne("r",o._circleRadius()),p(4),S("ngTemplateOutlet",r),p(2),S("ngTemplateOutlet",r),p(2),S("ngTemplateOutlet",r)}},dependencies:[Fs],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 RR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he]})}return t})();function lce(t,i){t&1&&Pn(0,"div",2)}var dce=new P("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");var sGe=(()=>{class t{_elementRef=d(X);_ngZone=d(se);_changeDetectorRef=d(we);_renderer=d(Je);_cleanupTransitionEnd;constructor(){let e=V0(),n=d(dce,{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=NR(e||0),this._changeDetectorRef.markForCheck()}_value=0;get bufferValue(){return this._bufferValue||0}set bufferValue(e){this._bufferValue=NR(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=L({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),Lt("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",ft],bufferValue:[2,"bufferValue","bufferValue",ft],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&&(ot(0,"div",0),Pn(1,"div",1),I(2,lce,1,0,"div",2),st(),ot(3,"div",3),Pn(4,"span",4),st(),ot(5,"div",5),Pn(6,"span",4),st()),n&2&&(p(),zt("flex-basis",o._getBufferBarFlexBasis()),p(),T(o.mode==="buffer"?2:-1),p(),zt("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 NR(t,i=0,e=100){return Math.max(i,Math.min(e,t))}var FR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he]})}return t})();var uce=["input"],mce=["formField"],pce=["*"],vh=class{source;value;constructor(i,e){this.source=i,this.value=e}},fce={provide:hi,useExisting:It(()=>_ce),multi:!0},VR=new P("MatRadioGroup"),hce=new P("mat-radio-default-options",{providedIn:"root",factory:gce});function gce(){return{color:"accent",disabledInteractive:!1}}var _ce=(()=>{class t{_changeDetector=d(we);_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 vh(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&&Ie(r,BR,5),n&2){let a;G(a=W())&&(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([fce,{provide:VR,useExisting:t}])]})}return t})(),BR=(()=>{class t{_elementRef=d(X);_changeDetector=d(we);_focusMonitor=d(ln);_radioDispatcher=d(Ml);_defaultOptions=d(hce,{optional:!0});_ngZone=d(se);_renderer=d(Je);_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(ye);constructor(){d(ct).load(dn);let e=d(VR,{optional:!0}),n=d(new mn("tabindex"),{optional:!0});this.radioGroup=e,this._disabledInteractive=this._defaultOptions?.disabledInteractive??!1,n&&(this.tabIndex=ft(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 vh(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,xt(()=>{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=L({type:t,selectors:[["mat-radio-button"]],viewQuery:function(n,o){if(n&1&&(me(uce,5),me(mce,7,X)),n&2){let r;G(r=W())&&(o._inputElement=r.first),G(r=W())&&(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:ft(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:pce,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();ke(),h(0,"div",2,0)(2,"div",3)(3,"div",4),N("click",function(s){return U(r),$(o._onTouchTargetClick(s))}),b(),h(4,"input",5,1),N("change",function(s){return U(r),$(o._onInputInteraction(s))}),b(),h(6,"div",6),F(7,"div",7)(8,"div",8),b(),h(9,"div",9),F(10,"div",10),b()(),h(11,"label",11),ae(12),b()()}n&2&&(S("labelPosition",o.labelPosition),p(2),oe("mdc-radio--disabled",o.disabled),p(2),S("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),S("matRippleTrigger",o._rippleTrigger.nativeElement)("matRippleDisabled",o._isRippleDisabled())("matRippleCentered",!0),p(2),S("for",o.inputId))},dependencies:[_i,a2],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})(),jR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,Ii,BR,he]})}return t})();var Ch=["*"],bce=["content"],vce=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],yce=["mat-drawer","mat-drawer-content","*"];function Cce(t,i){if(t&1){let e=le();h(0,"div",1),N("click",function(){U(e);let o=w();return $(o._onBackdropClicked())}),b()}if(t&2){let e=w();oe("mat-drawer-shown",e._isShowingBackdrop())}}function xce(t,i){t&1&&(h(0,"mat-drawer-content"),ae(1,2),b())}var Mce=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],wce=["mat-sidenav","mat-sidenav-content","*"];function Dce(t,i){if(t&1){let e=le();h(0,"div",1),N("click",function(){U(e);let o=w();return $(o._onBackdropClicked())}),b()}if(t&2){let e=w();oe("mat-drawer-shown",e._isShowingBackdrop())}}function Sce(t,i){t&1&&(h(0,"mat-sidenav-content"),ae(1,2),b())}var kce=`.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 Ece=new P("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:Ice}),mv=new P("MAT_DRAWER_CONTAINER");function Ice(){return!1}var yh=(()=>{class t extends Yr{_platform=d(je);_changeDetectorRef=d(we);_container=d(uv);constructor(){let e=d(X),n=d(_r),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=L({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(n,o){n&2&&(zt("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px"),oe("mat-drawer-content-hidden",o._shouldBeHidden()))},features:[de([{provide:Yr,useExisting:t}]),ce],ngContentSelectors:Ch,decls:1,vars:0,template:function(n,o){n&1&&(ke(),ae(0))},encapsulation:2,changeDetection:0})}return t})(),dv=(()=>{class t{_elementRef=d(X);_focusTrapFactory=d(t2);_focusMonitor=d(ln);_platform=d(je);_ngZone=d(se);_renderer=d(Je);_interactivityChecker=d(Qs);_doc=d(De);_container=d(mv,{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=Se(!1);_openedVia;_animationStarted=new B;_animationEnd=new B;openedChange=new j(!0);_openedStream=this.openedChange.pipe(Te(e=>e),ue(()=>{}));openedStart=this._animationStarted.pipe(Te(()=>this.opened),t1(void 0));_closedStream=this.openedChange.pipe(Te(e=>!e),ue(()=>{}));closedStart=this._animationStarted.pipe(Te(()=>!this.opened),t1(void 0));_destroyed=new B;onPositionChanged=new j;_content;_modeChanged=new B;_injector=d(ye);_changeDetectorRef=d(we);constructor(){this.openedChange.pipe(xe(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;ud(e,"keydown").pipe(Te(n=>n.keyCode===27&&!this.disableClose&&!kt(n)),xe(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":xt(()=>{!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(Ve(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=L({type:t,selectors:[["mat-drawer"]],viewQuery:function(n,o){if(n&1&&me(bce,5),n&2){let r;G(r=W())&&(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),zt("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:Ch,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(n,o){n&1&&(ke(),h(0,"div",1,0),ae(2),b())},dependencies:[Yr],encapsulation:2,changeDetection:0})}return t})(),uv=(()=>{class t{_dir=d(vt,{optional:!0});_element=d(X);_ngZone=d(se);_changeDetectorRef=d(we);_animationDisabled=Ue();_transitionsEnabled=!1;_allDrawers;_drawers=new On;_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(Ece);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(ye);constructor(){let e=d(je),n=d(Yn);this._dir?.change.pipe(xe(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),n.change().pipe(xe(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(Qe(this._allDrawers),xe(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(n=>!n._container||n._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Qe(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(Ro(10),xe(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(xe(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),e.mode!=="side"&&e.openedChange.pipe(xe(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e.onPositionChanged.pipe(xe(this._drawers.changes)).subscribe(()=>{xt({read:()=>this._validateDrawers()},{injector:this._injector})})}_watchDrawerMode(e){e._modeChanged.pipe(xe(mt(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=L({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(n,o,r){if(n&1&&(Ie(r,yh,5),Ie(r,dv,5)),n&2){let a;G(a=W())&&(o._content=a.first),G(a=W())&&(o._allDrawers=a)}},viewQuery:function(n,o){if(n&1&&me(yh,5),n&2){let r;G(r=W())&&(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:mv,useExisting:t}])],ngContentSelectors:yce,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&&(ke(vce),I(0,Cce,1,2,"div",0),ae(1),ae(2,1),I(3,xce,2,0,"mat-drawer-content")),n&2&&(T(o.hasBackdrop?0:-1),p(3),T(o._content?-1:3))},dependencies:[yh],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})(),HR=(()=>{class t extends yh{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275cmp=L({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[de([{provide:Yr,useExisting:t}]),ce],ngContentSelectors:Ch,decls:1,vars:0,template:function(n,o){n&1&&(ke(),ae(0))},encapsulation:2,changeDetection:0})}return t})(),Tce=(()=>{class t extends dv{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=Oe(t)))(o||t)}})();static \u0275cmp=L({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),zt("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:dv,useExisting:t}]),ce],ngContentSelectors:Ch,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(n,o){n&1&&(ke(),h(0,"div",1,0),ae(2),b())},dependencies:[Yr],encapsulation:2,changeDetection:0})}return t})(),KGe=(()=>{class t extends uv{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275cmp=L({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(n,o,r){if(n&1&&(Ie(r,HR,5),Ie(r,Tce,5)),n&2){let a;G(a=W())&&(o._content=a.first),G(a=W())&&(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:mv,useExisting:t},{provide:uv,useExisting:t}]),ce],ngContentSelectors:wce,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&&(ke(Mce),I(0,Dce,1,2,"div",0),ae(1),ae(2,1),I(3,Sce,2,0,"mat-sidenav-content")),n&2&&(T(o.hasBackdrop?0:-1),p(3),T(o._content?-1:3))},dependencies:[HR],styles:[kce],encapsulation:2,changeDetection:0})}return t})(),UR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,ki,ki,he]})}return t})();var Oce=["switch"],Lce=["*"];function Pce(t,i){t&1&&(h(0,"span",11),Gt(),h(1,"svg",13),F(2,"path",14),b(),h(3,"svg",15),F(4,"path",16),b()())}var Ace=new P("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),xh=class{source;checked;constructor(i,e){this.source=i,this.checked=e}},zce=(()=>{class t{_elementRef=d(X);_focusMonitor=d(ln);_changeDetectorRef=d(we);defaults=d(Ace);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new xh(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(ct).load(dn);let e=d(new mn("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 xh(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(n,o){if(n&1&&me(Oce,5),n&2){let r;G(r=W())&&(o._switchElement=r.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(n,o){n&2&&(At("id",o.id),ne("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Lt(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:ft(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:hi,useExisting:It(()=>t),multi:!0},{provide:Si,useExisting:t,multi:!0}]),Re],ngContentSelectors:Lce,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();ke(),h(0,"div",1)(1,"button",2,0),N("click",function(){return U(r),$(o._handleClick())}),F(3,"div",3)(4,"span",4),h(5,"span",5)(6,"span",6)(7,"span",7),F(8,"span",8),b(),h(9,"span",9),F(10,"span",10),b(),I(11,Pce,5,0,"span",11),b()()(),h(12,"label",12),N("click",function(s){return U(r),$(s.stopPropagation())}),ae(13),b()()}if(n&2){let r=Ft(2);S("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),S("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),S("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),p(),T(o.hideIcon?-1:11),p(),S("for",o.buttonId),ne("id",o._labelId)}},dependencies:[_i,a2],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})(),$R=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[zce,he,he]})}return t})();var GR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,Ii]})}return t})();function Rce(t,i){if(t&1){let e=le();h(0,"div",1)(1,"button",2),N("click",function(){U(e);let o=w();return $(o.action())}),C(2),b()()}if(t&2){let e=w();p(2),te(" ",e.data.action," ")}}var Nce=["label"];function Fce(t,i){}var Vce=Math.pow(2,31)-1,Ru=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,Vce))}_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}},WR=new P("MatSnackBarData"),G2=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},Bce=(()=>{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})(),jce=(()=>{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})(),Hce=(()=>{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})(),YR=(()=>{class t{snackBarRef=d(Ru);data=d(WR);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({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),C(1),b(),I(2,Rce,3,1,"div",1)),n&2&&(p(),te(" ",o.data.message,`
+`),p(),T(o.hasAction?2:-1))},dependencies:[yt,Bce,jce,Hce],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})(),pv="_mat-snack-bar-enter",fv="_mat-snack-bar-exit",Uce=(()=>{class t extends rc{_ngZone=d(se);_elementRef=d(X);_changeDetectorRef=d(we);_platform=d(je);_animationsDisabled=Ue();snackBarConfig=d(G2);_document=d(De);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=d(ye);_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===fv?this._completeExit():e===pv&&(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?xt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(pv)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(pv)},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?xt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(fv)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(fv),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=L({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,o){if(n&1&&(me(Ei,7),me(Nce,7)),n&2){let r;G(r=W())&&(o._portalOutlet=r.first),G(r=W())&&(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),Xe(4,Fce,0,0,"ng-template",4),b(),F(5,"div"),b()()),n&2&&(p(5),ne("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[Ei],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 $ce(){return new G2}var Gce=new P("mat-snack-bar-default-options",{providedIn:"root",factory:$ce}),Wce=(()=>{class t{_live=d(R0);_injector=d(ye);_breakpointObserver=d(cl);_parentSnackBar=d(t,{optional:!0,skipSelf:!0});_defaultConfig=d(Gce);_animationsDisabled=Ue();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=YR;snackBarContainerComponent=Uce;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=ye.create({parent:o||this._injector,providers:[{provide:G2,useValue:n}]}),a=new Lo(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 G2),this._defaultConfig),n),r=this._createOverlay(o),a=this._attachSnackBarContainer(r,o),s=new Ru(a,r);if(e instanceof it){let c=new qn(e,null,{$implicit:o.data,snackBarRef:s});s.instance=a.attachTemplatePortal(c)}else{let c=this._createInjector(o,s),u=new Lo(e,void 0,c),f=a.attachComponentPortal(u);s.instance=f.instance}return this._breakpointObserver.observe(Hp.HandsetPortrait).pipe(xe(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 yo;n.direction=e.direction;let o=Sa(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,Co(this._injector,n)}_createInjector(e,n){let o=e&&e.viewContainerRef&&e.viewContainerRef.injector;return ye.create({parent:o||this._injector,providers:[{provide:Ru,useValue:n},{provide:WR,useValue:e.data}]})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var qR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[Wce],imports:[Ai,vo,ka,he,YR,he]})}return t})();var Yce=["mat-sort-header",""],qce=["*"];function Qce(t,i){t&1&&(ot(0,"div",2),Gt(),ot(1,"svg",3),Pn(2,"path",4),st()())}var QR=new P("MAT_SORT_DEFAULT_OPTIONS"),wh=(()=>{class t{_defaultOptions;_initializedStream=new wr(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=Kce(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)(Me(QR,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 Kce(t,i){let e=["asc","desc"];return t=="desc"&&e.reverse(),i||e.push(""),e}var Mh=(()=>{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 Xce(t){return t||new Mh}var Zce={provide:Mh,deps:[[new cr,new fa,Mh]],useFactory:Xce},KR=(()=>{class t{_intl=d(Mh);_sort=d(wh,{optional:!0});_columnDef=d("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=d(we);_focusMonitor=d(ln);_elementRef=d(X);_ariaDescriber=d(r2,{optional:!0});_renderChanges;_animationsDisabled=Ue();_recentlyCleared=Se(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){d(ct).load(dn);let e=d(QR,{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=mt(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=L({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:Yce,ngContentSelectors:qce,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&&(ke(),ot(0,"div",0)(1,"div",1),ae(2),st(),I(3,Qce,3,0,"div",2),st()),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),T(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})(),XR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[Zce],imports:[he]})}return t})();var Jce=(t,i,e)=>({index:t,active:i,optional:e});function ele(t,i){if(t&1&&jt(0,2),t&2){let e=w();S("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",Q5(2,Jce,e.index,e.active,e.optional))}}function tle(t,i){if(t&1&&(h(0,"span",7),C(1),b()),t&2){let e=w(2);p(),O(e._getDefaultTextForState(e.state))}}function nle(t,i){if(t&1&&(h(0,"span",8),C(1),b()),t&2){let e=w(3);p(),O(e._intl.completedLabel)}}function ile(t,i){if(t&1&&(h(0,"span",8),C(1),b()),t&2){let e=w(3);p(),O(e._intl.editableLabel)}}function ole(t,i){if(t&1&&(I(0,nle,2,1,"span",8)(1,ile,2,1,"span",8),h(2,"mat-icon",7),C(3),b()),t&2){let e=w(2);T(e.state==="done"?0:e.state==="edit"?1:-1),p(3),O(e._getDefaultTextForState(e.state))}}function rle(t,i){if(t&1&&I(0,tle,2,1,"span",7)(1,ole,4,2),t&2){let e,n=w();T((e=n.state)==="number"?0:1)}}function ale(t,i){t&1&&(h(0,"div",4),jt(1,9),b()),t&2&&(p(),S("ngTemplateOutlet",i.template))}function sle(t,i){if(t&1&&(h(0,"div",4),C(1),b()),t&2){let e=w();p(),O(e.label)}}function cle(t,i){if(t&1&&(h(0,"div",5),C(1),b()),t&2){let e=w();p(),O(e._intl.optionalLabel)}}function lle(t,i){if(t&1&&(h(0,"div",6),C(1),b()),t&2){let e=w();p(),O(e.errorMessage)}}var ZR=["*"];function dle(t,i){}function ule(t,i){if(t&1&&(ae(0),Xe(1,dle,0,0,"ng-template",0)),t&2){let e=w();p(),S("cdkPortalOutlet",e._portal)}}var mle=["animatedContainer"],JR=t=>({step:t});function ple(t,i){t&1&&ae(0)}function fle(t,i){t&1&&F(0,"div",7)}function hle(t,i){if(t&1&&(jt(0,6),I(1,fle,1,0,"div",7)),t&2){let e=i.$implicit,n=i.$index,o=i.$count;w(2);let r=Ft(4);S("ngTemplateOutlet",r)("ngTemplateOutletContext",jo(3,JR,e)),p(),T(n!==o-1?1:-1)}}function gle(t,i){if(t&1&&(h(0,"div",8,1),jt(2,9),b()),t&2){let e=i.$implicit,n=i.$index,o=w(2);Lt("mat-horizontal-stepper-content-"+o._getAnimationDirection(n)),S("id",o._getStepContentId(n)),ne("aria-labelledby",o._getStepLabelId(n))("inert",o.selectedIndex===n?null:""),p(2),S("ngTemplateOutlet",e.content)}}function _le(t,i){if(t&1&&(h(0,"div",2)(1,"div",3),et(2,hle,2,5,null,null,gt),b(),h(4,"div",4),et(5,gle,3,6,"div",5,gt),b()()),t&2){let e=w();p(2),tt(e.steps),p(3),tt(e.steps)}}function ble(t,i){if(t&1&&(h(0,"div",10),jt(1,6),h(2,"div",11,1)(4,"div",12)(5,"div",13),jt(6,9),b()()()()),t&2){let e=i.$implicit,n=i.$index,o=i.$index,r=i.$count,a=w(2),s=Ft(4);p(),S("ngTemplateOutlet",s)("ngTemplateOutletContext",jo(10,JR,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),S("id",a._getStepContentId(n)),ne("aria-labelledby",a._getStepLabelId(n)),p(2),S("ngTemplateOutlet",e.content)}}function vle(t,i){if(t&1&&et(0,ble,7,12,"div",10,gt),t&2){let e=w();tt(e.steps)}}function yle(t,i){if(t&1){let e=le();h(0,"mat-step-header",14),N("click",function(){let o=U(e).step;return $(o.select())})("keydown",function(o){U(e);let r=w();return $(r._onKeydown(o))}),b()}if(t&2){let e=i.step,n=w();oe("mat-horizontal-stepper-header",n.orientation==="horizontal")("mat-vertical-stepper-header",n.orientation==="vertical"),S("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 hv=(()=>{class t extends ov{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matStepLabel",""]],features:[ce]})}return t})(),Dh=(()=>{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 Cle(t){return t||new Dh}var xle={provide:Dh,deps:[[new cr,new fa,Dh]],useFactory:Cle},gv=(()=>{class t extends iv{_intl=d(Dh);_focusMonitor=d(ln);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();let e=d(ct);e.load(dn),e.load(Io);let n=d(we);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 hv?null:this.label}_templateLabel(){return this.label instanceof hv?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=L({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:4,hostBindings:function(n,o){n&2&&(Lt("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),I(3,ele,1,6,"ng-container",2)(4,rle,2,1),b()(),h(5,"div",3),I(6,ale,2,1,"div",4)(7,sle,2,1,"div",4),I(8,cle,2,1,"div",5),I(9,lle,2,1,"div",6),b()),n&2){let r;S("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disableRipple),p(),Lt(Jc("mat-step-icon-state-",o.state," mat-step-icon")),oe("mat-step-icon-selected",o.selected),p(2),T(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(),T((r=o._templateLabel())?6:o._stringLabel()?7:-1,r),p(2),T(o._hasOptionalLabel()?8:-1),p(),T(o._hasErrorLabel()?9:-1)}},dependencies:[_i,Fs,Po],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})(),Mle=(()=>{class t{templateRef=d(it);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})(),wle=(()=>{class t{_template=d(it);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["ng-template","matStepContent",""]]})}return t})(),Dle=(()=>{class t extends gh{_errorStateMatcher=d(Da,{skipSelf:!0});_viewContainerRef=d(pt);_isSelected=Ee.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(rt(()=>this._stepper.selectionChange.pipe(ue(e=>e.selectedStep===this),Qe(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new qn(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=Oe(t)))(o||t)}})();static \u0275cmp=L({type:t,selectors:[["mat-step"]],contentQueries:function(n,o,r){if(n&1&&(Ie(r,hv,5),Ie(r,wle,5)),n&2){let a;G(a=W())&&(o.stepLabel=a.first),G(a=W())&&(o._lazyContent=a.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[de([{provide:Da,useExisting:t},{provide:gh,useExisting:t}]),ce],ngContentSelectors:ZR,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(n,o){n&1&&(ke(),Xe(0,ule,2,1,"ng-template"))},dependencies:[Ei],encapsulation:2,changeDetection:0})}return t})(),Sle=(()=>{class t extends $2{_ngZone=d(se);_renderer=d(Je);_animationsDisabled=Ue();_cleanupTransition;_isAnimating=Se(!1);_stepHeader=void 0;_animatedContainers;_steps=void 0;steps=new On;_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(X).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(xe(this._destroyed)).subscribe(()=>this._stateChanged()),this.selectedIndexChange.pipe(xe(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(Qe(null),xe(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=L({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(n,o,r){if(n&1&&(Ie(r,Dle,5),Ie(r,Mle,5)),n&2){let a;G(a=W())&&(o._steps=a),G(a=W())&&(o._icons=a)}},viewQuery:function(n,o){if(n&1&&(me(gv,5),me(mle,5)),n&2){let r;G(r=W())&&(o._stepHeader=r),G(r=W())&&(o._animatedContainers=r)}},hostAttrs:["role","tablist"],hostVars:15,hostBindings:function(n,o){n&2&&(ne("aria-orientation",o.orientation),zt("--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:$2,useExisting:t}]),ce],ngContentSelectors:ZR,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&&(ke(),I(0,ple,1,0),I(1,_le,7,0,"div",2)(2,vle,2,0),Xe(3,yle,1,23,"ng-template",null,0,Ns)),n&2){let r;T(o._isServer?0:-1),p(),T((r=o.orientation)==="horizontal"?1:r==="vertical"?2:-1)}},dependencies:[Fs,gv],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})(),eN=(()=>{class t extends mR{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(n,o){n&2&&At("type",o.type)},features:[ce]})}return t})(),tN=(()=>{class t extends pR{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(n,o){n&2&&At("type",o.type)},features:[ce]})}return t})(),nN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({providers:[xle,Da],imports:[he,vo,fR,ch,Ii,Sle,gv,he]})}return t})();var kle=[[["caption"]],[["colgroup"],["col"]],"*"],Ele=["caption","colgroup, col","*"];function Ile(t,i){t&1&&ae(0,2)}function Tle(t,i){t&1&&(h(0,"thead",0),jt(1,1),b(),h(2,"tbody",0),jt(3,2)(4,3),b(),h(5,"tfoot",0),jt(6,4),b())}function Ole(t,i){t&1&&jt(0,1)(1,2)(2,3)(3,4)}var Zr=new P("CDK_TABLE");var Eh=(()=>{class t{template=d(it);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),Ih=(()=>{class t{template=d(it);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),Th=(()=>{class t{template=d(it);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),Ol=(()=>{class t{_table=d(Zr,{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&&(Ie(r,Eh,5),Ie(r,Ih,5),Ie(r,Th,5)),n&2){let a;G(a=W())&&(o.cell=a.first),G(a=W())&&(o.headerCell=a.first),G(a=W())&&(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})(),Nu=class{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}},rN=(()=>{class t extends Nu{constructor(){super(d(Ol),d(X))}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})(),aN=(()=>{class t extends Nu{constructor(){let e=d(Ol),n=d(X);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})(),sN=(()=>{class t extends Nu{constructor(){let e=d(Ol),n=d(X);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 bv=(()=>{class t{template=d(it);_differs=d(Ho);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 Fu?e.headerCell.template:this instanceof Vu?e.footerCell.template:e.cell.template}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,features:[Re]})}return t})(),Fu=(()=>{class t extends bv{_table=d(Zr,{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(it),d(Ho))}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})(),Vu=(()=>{class t extends bv{_table=d(Zr,{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(it),d(Ho))}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})(),Oh=(()=>{class t extends bv{_table=d(Zr,{optional:!0});when;constructor(){super(d(it),d(Ho))}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})(),hs=(()=>{class t{_viewContainer=d(pt);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})(),vv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({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&&jt(0,0)},dependencies:[hs],encapsulation:2})}return t})(),yv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({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&&jt(0,0)},dependencies:[hs],encapsulation:2})}return t})(),Cv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({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&&jt(0,0)},dependencies:[hs],encapsulation:2})}return t})(),Lh=(()=>{class t{templateRef=d(it);_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})(),iN=["top","bottom","left","right"],_v=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));xt({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(Q=>Q)||n.some(Q=>Q))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=i[0],s=a.children.length,c=this.direction==="rtl",u=c?"right":"left",f=c?"left":"right",g=e.lastIndexOf(!0),y=n.indexOf(!0),x,D,Y;r&&this._updateStickyColumnReplayQueue({rows:[...i],stickyStartStates:[...e],stickyEndStates:[...n]}),xt({earlyRead:()=>{x=this._getCellWidths(a,o),D=this._getStickyStartColumnPositions(x,e),Y=this._getStickyEndColumnPositions(x,n)},write:()=>{for(let Q of i)for(let K=0;K!!Q)&&(this._positionListener.stickyColumnsUpdated({sizes:g===-1?[]:x.slice(0,g+1).map((Q,K)=>e[K]?Q:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:y===-1?[]:x.slice(y).map((Q,K)=>n[K+y]?Q: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=[];xt({earlyRead:()=>{for(let u=0,f=0;u{let u=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]);iN.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 iN)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&&Lle(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 Lle(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(i=>t.classList.contains(i))}var kh=new P("CDK_SPL");var xv=(()=>{class t{viewContainer=d(pt);elementRef=d(X);constructor(){let e=d(Zr);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","rowOutlet",""]]})}return t})(),Mv=(()=>{class t{viewContainer=d(pt);elementRef=d(X);constructor(){let e=d(Zr);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),wv=(()=>{class t{viewContainer=d(pt);elementRef=d(X);constructor(){let e=d(Zr);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),Dv=(()=>{class t{viewContainer=d(pt);elementRef=d(X);constructor(){let e=d(Zr);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),Sv=(()=>{class t{_differs=d(Ho);_changeDetectorRef=d(we);_elementRef=d(X);_dir=d(vt,{optional:!0});_platform=d(je);_viewRepeater=d(E2);_viewportRuler=d(Yn);_stickyPositioningListener=d(kh,{optional:!0,skipSelf:!0});_document=d(De);_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 dt({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=d(ye);constructor(){d(new mn("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(xe(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(),Cl(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===oc.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=oN(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=oN(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(),Sh(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=Sh(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Sh(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Sh(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=[],Cl(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;Cl(this.dataSource)?e=this.dataSource.connect(this):ui(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=re(this.dataSource)),this._renderChangeSubscription=e.pipe(xe(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))hs.mostRecentCellOutlet&&hs.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 _v(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:re()).pipe(xe(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=Z({imports:[cu]})}return t})();var Ple=[[["caption"]],[["colgroup"],["col"]],"*"],Ale=["caption","colgroup, col","*"];function zle(t,i){t&1&&ae(0,2)}function Rle(t,i){t&1&&(h(0,"thead",0),jt(1,1),b(),h(2,"tbody",2),jt(3,3)(4,4),b(),h(5,"tfoot",0),jt(6,5),b())}function Nle(t,i){t&1&&jt(0,1)(1,3)(2,4)(3,5)}var Ph=(()=>{class t extends Sv{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275cmp=L({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:Sv,useExisting:t},{provide:Zr,useExisting:t},{provide:E2,useClass:wl},{provide:kh,useValue:null}]),ce],ngContentSelectors:Ale,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(ke(Ple),ae(0),ae(1,1),I(2,zle,1,0),I(3,Rle,7,0)(4,Nle,4,0)),n&2&&(p(2),T(o._isServer?2:-1),p(),T(o._isNativeHtmlTable?3:4))},dependencies:[Mv,xv,Dv,wv],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})(),Ah=(()=>{class t extends Eh{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matCellDef",""]],features:[de([{provide:Eh,useExisting:t}]),ce]})}return t})(),zh=(()=>{class t extends Ih{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matHeaderCellDef",""]],features:[de([{provide:Ih,useExisting:t}]),ce]})}return t})(),lqe=(()=>{class t extends Th{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matFooterCellDef",""]],features:[de([{provide:Th,useExisting:t}]),ce]})}return t})(),Rh=(()=>{class t extends Ol{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=Oe(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[de([{provide:Ol,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ce]})}return t})(),Nh=(()=>{class t extends rN{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(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})(),dqe=(()=>{class t extends aN{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(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})(),Fh=(()=>{class t extends sN{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(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 Fu{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",H]},features:[de([{provide:Fu,useExisting:t}]),ce]})}return t})(),uqe=(()=>{class t extends Vu{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matFooterRowDef",""]],inputs:{columns:[0,"matFooterRowDef","columns"],sticky:[2,"matFooterRowDefSticky","sticky",H]},features:[de([{provide:Vu,useExisting:t}]),ce]})}return t})(),Bh=(()=>{class t extends Oh{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[de([{provide:Oh,useExisting:t}]),ce]})}return t})(),jh=(()=>{class t extends vv{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275cmp=L({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:vv,useExisting:t}]),ce],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&jt(0,0)},dependencies:[hs],encapsulation:2})}return t})(),mqe=(()=>{class t extends yv{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275cmp=L({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:yv,useExisting:t}]),ce],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&jt(0,0)},dependencies:[hs],encapsulation:2})}return t})(),Hh=(()=>{class t extends Cv{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275cmp=L({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[de([{provide:Cv,useExisting:t}]),ce],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&jt(0,0)},dependencies:[hs],encapsulation:2})}return t})(),pqe=(()=>{class t extends Lh{_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:Lh,useExisting:t}]),ce]})}return t})();var lN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,cN,he]})}return t})(),Fle=9007199254740991,Bu=class extends ic{_data;_renderData=new dt([]);_filter=new dt("");_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(Lp(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),u=typeof s,f=typeof c;u!==f&&(u==="number"&&(s+=""),f==="number"&&(c+=""));let g=0;return s!=null&&c!=null?s>c?g=1:s{let n=e.trim().toLowerCase();return Object.values(i).some(o=>`${o}`.toLowerCase().includes(n))};constructor(i=[]){super(),this._data=new dt(i),this._updateChangeSubscription()}_updateChangeSubscription(){let i=this._sort?mt(this._sort.sortChange,this._sort.initialized):re(null),e=this._paginator?mt(this._paginator.page,this._internalPageChanges,this._paginator.initialized):re(null),n=this._data,o=Xn([n,this._filter]).pipe(ue(([s])=>this._filterData(s))),r=Xn([o,i]).pipe(ue(([s])=>this._orderData(s))),a=Xn([r,e]).pipe(ue(([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 W2=["*"];function Vle(t,i){t&1&&ae(0)}var pN=["tabListContainer"],fN=["tabList"],hN=["tabListInner"],gN=["nextPaginator"],_N=["previousPaginator"],Ble=["content"];function jle(t,i){}var Hle=["tabBodyWrapper"],Ule=["tabHeader"];function $le(t,i){}function Gle(t,i){if(t&1&&Xe(0,$le,0,0,"ng-template",12),t&2){let e=w().$implicit;S("cdkPortalOutlet",e.templateLabel)}}function Wle(t,i){if(t&1&&C(0),t&2){let e=w().$implicit;O(e.textLabel)}}function Yle(t,i){if(t&1){let e=le();h(0,"div",7,2),N("click",function(){let o=U(e),r=o.$implicit,a=o.$index,s=w(),c=Ft(1);return $(s._handleClick(r,c,a))})("cdkFocusChange",function(o){let r=U(e).$index,a=w();return $(a._tabFocusChanged(o,r))}),F(2,"span",8)(3,"div",9),h(4,"span",10)(5,"span",11),I(6,Gle,1,1,null,12)(7,Wle,1,1),b()()()}if(t&2){let e=i.$implicit,n=i.$index,o=Ft(1),r=w();Lt(e.labelClass),oe("mdc-tab--active",r.selectedIndex===n),S("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),S("matRippleTrigger",o)("matRippleDisabled",e.disabled||r.disableRipple),p(3),T(e.templateLabel?6:7)}}function qle(t,i){t&1&&ae(0)}function Qle(t,i){if(t&1){let e=le();h(0,"mat-tab-body",13),N("_onCentered",function(){U(e);let o=w();return $(o._removeTabBodyWrapperHeight())})("_onCentering",function(o){U(e);let r=w();return $(r._setTabBodyWrapperHeight(o))})("_beforeCentering",function(o){U(e);let r=w();return $(r._bodyCentered(o))}),b()}if(t&2){let e=i.$implicit,n=i.$index,o=w();Lt(e.bodyClass),S("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 Kle=["mat-tab-nav-bar",""],Xle=["mat-tab-link",""],Zle=new P("MatTabContent"),Jle=(()=>{class t{template=d(it);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matTabContent",""]],features:[de([{provide:Zle,useExisting:t}])]})}return t})(),e1e=new P("MatTabLabel"),bN=new P("MAT_TAB"),t1e=(()=>{class t extends cT{_closestTab=d(bN,{optional:!0});static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[de([{provide:e1e,useExisting:t}]),ce]})}return t})(),vN=new P("MAT_TAB_GROUP"),n1e=(()=>{class t{_viewContainerRef=d(pt);_closestTabGroup=d(vN,{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(ct).load(dn)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new qn(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=L({type:t,selectors:[["mat-tab"]],contentQueries:function(n,o,r){if(n&1&&(Ie(r,t1e,5),Ie(r,Jle,7,it)),n&2){let a;G(a=W())&&(o.templateLabel=a.first),G(a=W())&&(o._explicitContent=a.first)}},viewQuery:function(n,o){if(n&1&&me(it,7),n&2){let r;G(r=W())&&(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:bN,useExisting:t}]),Re],ngContentSelectors:W2,decls:1,vars:0,template:function(n,o){n&1&&(ke(),zr(0,Vle,1,0,"ng-template"))},encapsulation:2})}return t})(),kv="mdc-tab-indicator--active",dN="mdc-tab-indicator--no-transition",Uh=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}}},yN=(()=>{class t{_elementRef=d(X);_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(kv);return}let o=n.getBoundingClientRect(),r=e.width/o.width,a=e.left-o.left;n.classList.add(dN),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${r})`),n.getBoundingClientRect(),n.classList.remove(dN),n.classList.add(kv),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(kv)}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 CN=(()=>{class t extends yN{elementRef=d(X);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=Oe(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})(),uN={passive:!0},i1e=650,o1e=100,xN=(()=>{class t{_elementRef=d(X);_changeDetectorRef=d(we);_viewportRuler=d(Yn);_dir=d(vt,{optional:!0});_ngZone=d(se);_platform=d(je);_sharedResizeObserver=d(yf);_injector=d(ye);_renderer=d(Je);_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"),uN),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),uN))}ngAfterContentInit(){let e=this._dir?this._dir.change:re("ltr"),n=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Ro(32),xe(this._destroyed)),o=this._viewportRuler.change(150).pipe(xe(this._destroyed)),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new $r(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),xt(r,{injector:this._injector}),mt(e,o,n,this._items.changes,this._itemsResized()).pipe(xe(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"?kn:this._items.changes.pipe(Qe(this._items),rt(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()}}))),Oc(1),Te(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(!kt(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 u=this.scrollDistance,f=this.scrollDistance+o;sf&&(this.scrollDistance+=Math.min(c-f,s-u))}_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(),Ba(i1e,o1e).pipe(xe(mt(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",ft]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),r1e=(()=>{class t extends xN{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new Uh(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275cmp=L({type:t,selectors:[["mat-tab-header"]],contentQueries:function(n,o,r){if(n&1&&Ie(r,CN,4),n&2){let a;G(a=W())&&(o._items=a)}},viewQuery:function(n,o){if(n&1&&(me(pN,7),me(fN,7),me(hN,7),me(gN,5),me(_N,5)),n&2){let r;G(r=W())&&(o._tabListContainer=r.first),G(r=W())&&(o._tabList=r.first),G(r=W())&&(o._tabListInner=r.first),G(r=W())&&(o._nextPaginator=r.first),G(r=W())&&(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:W2,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();ke(),h(0,"div",5,0),N("click",function(){return U(r),$(o._handlePaginatorClick("before"))})("mousedown",function(s){return U(r),$(o._handlePaginatorPress("before",s))})("touchend",function(){return U(r),$(o._stopInterval())}),F(2,"div",6),b(),h(3,"div",7,1),N("keydown",function(s){return U(r),$(o._handleKeydown(s))}),h(5,"div",8,2),N("cdkObserveContent",function(){return U(r),$(o._onContentChanges())}),h(7,"div",9,3),ae(9),b()()(),h(10,"div",10,4),N("mousedown",function(s){return U(r),$(o._handlePaginatorPress("after",s))})("click",function(){return U(r),$(o._handlePaginatorClick("after"))})("touchend",function(){return U(r),$(o._stopInterval())}),F(12,"div",6),b()}n&2&&(oe("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),S("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),S("matRippleDisabled",o._disableScrollAfter||o.disableRipple))},dependencies:[_i,z0],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})(),MN=new P("MAT_TABS_CONFIG"),mN=(()=>{class t extends Ei{_host=d(Ev);_ngZone=d(se);_centeringSub=Ee.EMPTY;_leavingSub=Ee.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Qe(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})(),Ev=(()=>{class t{_elementRef=d(X);_dir=d(vt,{optional:!0});_ngZone=d(se);_injector=d(ye);_renderer=d(Je);_diAnimationsDisabled=Ue();_eventCleanups;_initialized;_fallbackTimer;_positionIndex;_dirChangeSubscription=Ee.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(we);this._dirChangeSubscription=this._dir.change.subscribe(n=>{this._computePositionAnimationState(n),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),xt(()=>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(),xt(()=>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=L({type:t,selectors:[["mat-tab-body"]],viewQuery:function(n,o){if(n&1&&(me(mN,5),me(Ble,5)),n&2){let r;G(r=W())&&(o._portalHost=r.first),G(r=W())&&(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),Xe(2,jle,0,0,"ng-template",2),b()),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:[mN,Yr],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})(),Uqe=(()=>{class t{_elementRef=d(X);_changeDetectorRef=d(we);_ngZone=d(se);_tabsSubscription=Ee.EMPTY;_tabLabelSubscription=Ee.EMPTY;_tabBodySubscription=Ee.EMPTY;_diAnimationsDisabled=Ue();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new On;_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(MN,{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(Qe(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 Iv;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=mt(...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=L({type:t,selectors:[["mat-tab-group"]],contentQueries:function(n,o,r){if(n&1&&Ie(r,n1e,5),n&2){let a;G(a=W())&&(o._allTabs=a)}},viewQuery:function(n,o){if(n&1&&(me(Hle,5),me(Ule,5),me(Ev,5)),n&2){let r;G(r=W())&&(o._tabBodyWrapper=r.first),G(r=W())&&(o._tabHeader=r.first),G(r=W())&&(o._tabBodies=r)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(n,o){n&2&&(ne("mat-align-tabs",o.alignTabs),Lt("mat-"+(o.color||"primary")),zt("--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",ft],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ft],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:vN,useExisting:t}])],ngContentSelectors:W2,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();ke(),h(0,"mat-tab-header",3,0),N("indexFocused",function(s){return U(r),$(o._focusChanged(s))})("selectFocusedIndex",function(s){return U(r),$(o.selectedIndex=s)}),et(2,Yle,8,17,"div",4,gt),b(),I(4,qle,1,0),h(5,"div",5,1),et(7,Qle,1,10,"mat-tab-body",6,gt),b()}n&2&&(S("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination),O1("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),p(2),tt(o._tabs),p(2),T(o._isServer?4:-1),p(),oe("_mat-animation-noopable",o._animationsDisabled()),p(2),tt(o._tabs))},dependencies:[r1e,CN,A0,_i,Ei,Ev],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})(),Iv=class{index;tab},a1e=(()=>{class t extends xN{_focusedItem=Se(null);get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(e){this._fitInkBarToContent.next(e),this._changeDetectorRef.markForCheck()}_fitInkBarToContent=new dt(!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=Se(!1);color="primary";tabPanel;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;constructor(){let e=d(MN,{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 Uh(this._items),this._items.changes.pipe(Qe(null),xe(this._destroyed)).subscribe(()=>this.updateActiveLink()),super.ngAfterContentInit(),this._keyManager.change.pipe(Qe(null),xe(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})(),s1e=(()=>{class t extends yN{_tabNavBar=d(a1e);elementRef=d(X);_focusMonitor=d(ln);_destroyed=new B;_isActive=!1;_tabIndex=ni(()=>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=Se(!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(ct).load(dn);let e=d(pl,{optional:!0}),n=d(new mn("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(xe(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=L({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:ft(e)],id:"id"},exportAs:["matTabLink"],features:[ce],attrs:Xle,ngContentSelectors:W2,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&&(ke(),F(0,"span",0)(1,"div",1),h(2,"span",2)(3,"span",3),ae(4),b()()),n&2&&(p(),S("matRippleTrigger",o.elementRef.nativeElement)("matRippleDisabled",o.rippleDisabled))},dependencies:[_i],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})(),$qe=(()=>{class t{id=d(He).getId("mat-tab-nav-panel-");_activeTabId;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({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:W2,decls:1,vars:0,template:function(n,o){n&1&&(ke(),ae(0))},encapsulation:2,changeDetection:0})}return t})(),wN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,he]})}return t})();var c1e=["*",[["mat-toolbar-row"]]],l1e=["*","mat-toolbar-row"],d1e=(()=>{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})(),nQe=(()=>{class t{_elementRef=d(X);_platform=d(je);_document=d(De);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=L({type:t,selectors:[["mat-toolbar"]],contentQueries:function(n,o,r){if(n&1&&Ie(r,d1e,5),n&2){let a;G(a=W())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,o){n&2&&(Lt(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:l1e,decls:2,vars:0,template:function(n,o){n&1&&(ke(c1e),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 DN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[he,he]})}return t})();var $h=class{dataNodes;expansionModel=new xo(!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}},SN=class extends $h{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)))}},kN=class extends $h{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)):ui(n)&&n.pipe(Ve(1),Te(Boolean)).subscribe(o=>{for(let r of o)this._getDescendants(i,r)})}},Hu=new P("CDK_TREE_NODE_OUTLET_NODE"),ju=(()=>{class t{viewContainer=d(pt);_node=d(Hu,{optional:!0});constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkTreeNodeOutlet",""]]})}return t})(),Tv=class{$implicit;level;index;count;constructor(i){this.$implicit=i}},Gh=(()=>{class t{template=d(it);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 EN(){return Error("Could not find a tree control, levelAccessor, or childrenAccessor for the tree.")}var Y2=(()=>{class t{_differs=d(Ho);_changeDetectorRef=d(we);_elementRef=d(X);_dir=d(vt);_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 dt({start:0,end:Number.MAX_VALUE});_expansionModel;_flattenedNodes=new dt([]);_nodeType=new dt(null);_nodes=new dt(new Map);_keyManagerNodes=new dt([]);_keyManagerFactory=d(EE);_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 xo(!0),this._expansionModel)}_subscribeToDataChanges(){if(this._dataSubscription)return;let e;Cl(this._dataSource)?e=this._dataSource.connect(this):ui(this._dataSource)?e=this._dataSource:Array.isArray(this._dataSource)&&(e=re(this._dataSource)),e&&(this._dataSubscription=this._getRenderData(e).pipe(xe(this._onDestroy)).subscribe(n=>{this._renderDataChanges(n)}))}_getRenderData(e){let n=this._getExpansionModel();return Xn([e,this._nodeType,n.changed.pipe(Qe(null),Dt(o=>{this._emitExpansionChanges(o)}))]).pipe(rt(([o,r])=>r===null?re({renderNodes:o,flattenedNodes:null,nodeType:r}):this._computeRenderingData(o,r).pipe(ue(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=Xn([this._keyManagerNodes,this._nodes]).pipe(ue(([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,u)=>{if(s.previousIndex==null)this.insertNode(e[u],u,o,r);else if(u==null)o.remove(c);else{let f=o.get(c);o.move(f,u)}}),a?.forEachIdentityChange(s=>{let c=s.item;if(s.currentIndex!=null){let u=o.get(s.currentIndex);u.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),u=new Tv(e);u.index=n,r??=this._parents.get(c)??void 0,a?u.level=a(e):r!==void 0&&this._levels.has(this._getExpansionKey(r))?u.level=this._levels.get(this._getExpansionKey(r))+1:u.level=0,this._levels.set(c,u.level),(o||this._nodeOutlet.viewContainer).createEmbeddedView(s.template,u,n),Ia.mostRecentTreeNode&&(Ia.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(Ve(1),xe(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(Ve(1),xe(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(rt(c=>c.added.includes(r)?re(!0):c.removed.includes(r)?re(!1):kn),Qe(this.isExpanded(e)));if(n)return Xn([a,this._flattenedNodes]).pipe(ue(([c,u])=>c?this._findChildrenByLevel(n,u,e,1):[]));let s=this._getChildrenAccessor();if(s)return dl(s(e)??[]);throw EN()}_findChildrenByLevel(e,n,o,r){let a=this._getExpansionKey(o),s=n.findIndex(g=>this._getExpansionKey(g)===a),c=e(o),u=c+r,f=[];for(let g=s+1;gthis._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(ue(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(Y3((n,o)=>(n.push(...o),n),[]));throw EN()}_getAllChildrenRecursively(e){return this.childrenAccessor?dl(this.childrenAccessor(e)).pipe(Ve(1),rt(n=>{for(let o of n)this._parents.set(this._getExpansionKey(o),e);return re(...n).pipe(io(o=>Bi(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=dl(o(r));return Bi(re([r]),s.pipe(Ve(1),Dt(c=>{this._ariaSets.set(a,[...c??[]]);for(let u of c??[]){let f=this._getExpansionKey(u);this._parents.set(f,r),this._levels.set(f,n+1)}}),rt(c=>c?this._flattenNestedNodesWithExpansion(c,n+1).pipe(ue(u=>this.isExpanded(r)?u:[])):re([]))))}),Y3((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(ue(o=>({renderNodes:o,flattenedNodes:o})));if(this.levelAccessor&&n==="nested"){let o=this.levelAccessor;return re(e.filter(r=>o(r)===0)).pipe(ue(r=>({renderNodes:r,flattenedNodes:e})),Dt(({flattenedNodes:r})=>{this._calculateParents(r)}))}else return n==="flat"?re({renderNodes:e,flattenedNodes:e}).pipe(Dt(({flattenedNodes:o})=>{this._calculateParents(o)})):(this._clearPreviousCache(),this._ariaSets.set(null,[...e]),this._flattenNestedNodesWithExpansion(e).pipe(ue(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?Xn(o).pipe(Ve(1),xe(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=L({type:t,selectors:[["cdk-tree"]],contentQueries:function(n,o,r){if(n&1&&Ie(r,Gh,5),n&2){let a;G(a=W())&&(o._nodeDefs=a)}},viewQuery:function(n,o){if(n&1&&me(ju,7),n&2){let r;G(r=W())&&(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&&jt(0,0)},dependencies:[ju],encapsulation:2})}return t})(),Ia=(()=>{class t{_elementRef=d(X);_tree=d(Y2);_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(we);constructor(){t.mostRecentTreeNode=this}ngOnInit(){this._parentNodeAriaLevel=u1e(this._elementRef.nativeElement),this._tree._getExpansionModel().changed.pipe(ue(()=>this.isExpanded),n1(),xe(this._destroyed)).pipe(xe(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&&(At("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 u1e(t){let i=t.parentElement;for(;i&&!m1e(i);)i=i.parentElement;return i?i.classList.contains("cdk-nested-tree-node")?ft(i.getAttribute("aria-level")):0:-1}function m1e(t){let i=t.classList;return!!(i?.contains("cdk-nested-tree-node")||i?.contains("cdk-tree"))}var Ov=(()=>{class t extends Ia{_type="nested";_differs=d(Ho);_dataDiffer;_children;nodeOutlet;constructor(){super()}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy),this._tree._getDirectChildren(this.data).pipe(xe(this._destroyed)).subscribe(e=>this.updateChildrenNodes(e)),this.nodeOutlet.changes.pipe(xe(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&&Ie(r,ju,5),n&2){let a;G(a=W())&&(o.nodeOutlet=a)}},hostAttrs:[1,"cdk-nested-tree-node"],exportAs:["cdkNestedTreeNode"],features:[de([{provide:Ia,useExisting:t},{provide:Hu,useExisting:t}]),ce]})}return t})(),p1e=/([A-Za-z%]+)$/,Lv=(()=>{class t{_treeNode=d(Ia);_tree=d(Y2);_element=d(X);_dir=d(vt,{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(xe(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(p1e);n=r[0],o=r[1]||o}this.indentUnits=o,this._indent=ft(n),this._setPadding()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:[2,"cdkTreeNodePadding","level",ft],indent:[0,"cdkTreeNodePaddingIndent","indent"]}})}return t})(),Pv=(()=>{class t{_tree=d(Y2);_treeNode=d(Ia);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 IN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({})}return t})();function f1e(t){return!!t._isNoopTreeKeyManager}var RQe=(()=>{class t extends Ia{get tabIndexInputBinding(){return this._tabIndexInputBinding}set tabIndexInputBinding(e){this._tabIndexInputBinding=e}_tabIndexInputBinding;defaultTabIndex=0;_getTabindexAttribute(){return f1e(this._tree._keyManager)?this.tabIndexInputBinding:this._tabindex}get disabled(){return this.isDisabled}set disabled(e){this.isDisabled=e}constructor(){super();let e=d(new mn("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&&(At("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:ft(e)],disabled:[2,"disabled","disabled",H]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["matTreeNode"],features:[de([{provide:Ia,useExisting:t}]),ce]})}return t})(),NQe=(()=>{class t extends Gh{data;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matTreeNodeDef",""]],inputs:{when:[0,"matTreeNodeDefWhen","when"],data:[0,"matTreeNode","data"]},features:[de([{provide:Gh,useExisting:t}]),ce]})}return t})(),FQe=(()=>{class t extends Ov{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=Oe(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:ft(e)]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["matNestedTreeNode"],features:[de([{provide:Ov,useExisting:t},{provide:Ia,useExisting:t},{provide:Hu,useExisting:t}]),ce]})}return t})(),VQe=(()=>{class t extends Lv{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=Oe(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matTreeNodePadding",""]],inputs:{level:[2,"matTreeNodePadding","level",ft],indent:[0,"matTreeNodePaddingIndent","indent"]},features:[de([{provide:Lv,useExisting:t}]),ce]})}return t})(),TN=(()=>{class t{viewContainer=d(pt);_node=d(Hu,{optional:!0});static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[de([{provide:ju,useExisting:t}])]})}return t})(),BQe=(()=>{class t extends Y2{_nodeOutlet=void 0;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275cmp=L({type:t,selectors:[["mat-tree"]],viewQuery:function(n,o){if(n&1&&me(TN,7),n&2){let r;G(r=W())&&(o._nodeOutlet=r.first)}},hostAttrs:[1,"mat-tree"],exportAs:["matTree"],features:[de([{provide:Y2,useExisting:t}]),ce],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(n,o){n&1&&jt(0,0)},dependencies:[TN],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})(),jQe=(()=>{class t extends Pv{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Oe(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:[0,"matTreeNodeToggleRecursive","recursive"]},features:[de([{provide:Pv,useExisting:t}]),ce]})}return t})();var AN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[IN,he,he]})}return t})(),ON=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(Ve(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}},LN=class extends ic{_treeControl;_treeFlattener;_flattenedData=new dt([]);_expandedData=new dt([]);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 dt([]);constructor(i,e,n){super(),this._treeControl=i,this._treeFlattener=e,n&&(this.data=n)}connect(i){return mt(i.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe(ue(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}},PN=class extends ic{get data(){return this._data.value}set data(i){this._data.next(i)}_data=new dt([]);connect(i){return mt(i.viewChange,this._data).pipe(ue(()=>this.data))}disconnect(){}};var h1e=["searchSelectInput"],g1e=["innerSelectSearch"],_1e=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],b1e=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];function v1e(t,i){if(t&1){let e=le();h(0,"mat-checkbox",10),N("change",function(o){U(e);let r=w();return $(r._emitSelectAllBooleanToParent(o.checked))}),b()}if(t&2){let e=w();S("color",e.matFormField==null?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toggleAllCheckboxTooltipPosition)}}function y1e(t,i){t&1&&F(0,"mat-spinner",7)}function C1e(t,i){t&1&&ae(0,1)}function x1e(t,i){if(t&1&&F(0,"mat-icon",12),t&2){let e=w(2);S("svgIcon",e.closeSvgIcon)}}function M1e(t,i){if(t&1&&(h(0,"mat-icon"),C(1),b()),t&2){let e=w(2);p(),te(" ",e.closeIcon," ")}}function w1e(t,i){if(t&1){let e=le();h(0,"button",11),N("click",function(){U(e);let o=w();return $(o._reset(!0))}),I(1,C1e,1,0)(2,x1e,1,1,"mat-icon",12)(3,M1e,2,1,"mat-icon"),b()}if(t&2){let e=w();p(),T(e.clearIcon?1:e.closeSvgIcon?2:3)}}function D1e(t,i){t&1&&ae(0,2)}function S1e(t,i){if(t&1&&C(0),t&2){let e=w(2);te(" ",e.noEntriesFoundLabel," ")}}function k1e(t,i){if(t&1&&(h(0,"div",9),I(1,D1e,1,0)(2,S1e,1,1),b()),t&2){let e=w();p(),T(e.noEntriesFound?1:2)}}var E1e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","ngxMatSelectSearchClear",""]]})}return t})(),I1e=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],T1e=new P("mat-selectsearch-default-options"),O1e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","ngxMatSelectNoEntriesFound",""]]})}return t})(),Av=(()=>{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 dt(null);optionsList$=this._options$.pipe(rt(e=>e?e.changes.pipe(ue(n=>n.toArray()),Qe(e.toArray())):re(null)));optionsLength$=this.optionsList$.pipe(ue(e=>e?e.length:0));previousSelectedValues;_formControl=new Us("",{nonNullable:!0});_showNoEntriesFound$=Xn([this._formControl.valueChanges,this.optionsLength$]).pipe(ue(([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 I1e)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(ja(1),xe(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(Ve(1),rt(()=>{this._options=this.matSelect.options;let e=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(Dt(()=>{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(xe(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(xe(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(xe(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(xe(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(Te(n=>n!==this._lastExternalInputValue),Dt(()=>this._lastExternalInputValue=void 0),xe(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(xe(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)(Me(Qn),Me(we),Me(Yn),Me(un,8),Me(Ht,8),Me(T1e,8))};static \u0275cmp=L({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(n,o,r){if(n&1&&(Ie(r,E1e,5),Ie(r,O1e,5)),n&2){let a;G(a=W())&&(o.clearIcon=a.first),G(a=W())&&(o.noEntriesFound=a.first)}},viewQuery:function(n,o){if(n&1&&(me(h1e,7,X),me(g1e,7,X)),n&2){let r;G(r=W())&&(o.searchSelectInput=r.first),G(r=W())&&(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:hi,useExisting:It(()=>t),multi:!0}])],ngContentSelectors:b1e,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();ke(_1e),F(0,"input",2),h(1,"div",3,0)(3,"div",4),I(4,v1e,1,5,"mat-checkbox",5),h(5,"input",6,1),N("keydown",function(s){return U(r),$(o._handleKeydown(s))})("keyup",function(s){return U(r),$(o._handleKeyup(s))})("blur",function(){return U(r),$(o.onBlur())}),b(),I(7,y1e,1,0,"mat-spinner",7),I(8,w1e,4,1,"button",8),ae(9),b(),F(10,"mat-divider"),b(),I(11,k1e,3,1,"div",9),k(12,"async")}n&2&&(p(),oe("mat-select-search-inner-multiple",o.matSelect.multiple)("mat-select-search-inner-toggle-all",o._isToggleAllCheckboxVisible()),p(3),T(o._isToggleAllCheckboxVisible()?4:-1),p(),S("type",o.type)("formControl",o._formControl)("placeholder",o.placeholderLabel),ne("aria-label",o.ariaLabel),p(2),T(o.searching?7:-1),p(),T(!o.hideClearSearchButton&&o.value&&!o.searching?8:-1),p(3),T(E(12,12,o._showNoEntriesFound$)?11:-1))},dependencies:[s0,Ce,Di,fn,Li,fl,hc,Mo,zR,Po,ka,ai],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 Wh=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[Av]})}return t})();var zv=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t})}static{this.\u0275inj=Z({providers:[{provide:xf,useValue:{appearance:"fill"}},{provide:rv,useValue:{showError:!0,displayDefaultIndicatorType:!1}}],imports:[uR,LE,_R,ka,CR,GI,UE,xR,rO,Q9,th,ER,nc,_P,ch,aT,LR,uP,LT,PR,FR,RR,jR,mu,Wh,UR,GR,$R,qR,XR,nN,lN,wN,DN,ku,AN,zP]})}}return t})();var Rv=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)}},q2=(()=>{class t{_document=d(De);constructor(){}copy(e){let n=this.beginCopy(e),o=n.copy();return n.destroy(),o}beginCopy(e){return new Rv(e,this._document)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function P1e(t,i){if(t&1){let e=le();h(0,"span",3),N("click",function(){U(e);let o=w(2);return $(o.copyValue())}),F(1,"fa-icon",4),b()}}function A1e(t,i){if(t&1){let e=le();h(0,"span",5),N("click",function(){U(e);let o=w(2);return $(o.showValue())}),F(1,"fa-icon",6),b()}if(t&2){let e=w(2);p(),S("title",e.externalId)}}function z1e(t,i){if(t&1){let e=le();h(0,"span",7),N("click",function(){U(e);let o=w(2);return $(o.showValue())}),C(1),k(2,"externalIdentifier"),b()}if(t&2){let e=w(2);p(),O(E(2,1,e.externalId))}}function R1e(t,i){if(t&1){let e=le();h(0,"span",3),N("click",function(){U(e);let o=w(2);return $(o.showValue())}),C(1),b()}if(t&2){let e=w(2);p(),O(e.externalId)}}function N1e(t,i){if(t&1){let e=le();h(0,"span",7),N("click",function(){U(e);let o=w(2);return $(o.showValue())}),F(1,"fa-icon",6),b()}if(t&2){let e=w(2);p(),S("title",e.externalId)}}function F1e(t,i){if(t&1){let e=le();h(0,"span",5),N("click",function(){U(e);let o=w(2);return $(o.copyValue())}),F(1,"fa-icon",4),b()}}function V1e(t,i){if(t&1){let e=le();h(0,"span",0),N("mouseenter",function(){U(e);let o=w();return $(o.mouseEnter())})("mouseleave",function(){U(e);let o=w();return $(o.mouseLeave())}),I(1,P1e,2,0,"span"),I(2,A1e,2,1,"span",1),I(3,z1e,3,3,"span",2),I(4,R1e,2,1,"span"),I(5,N1e,2,1,"span",2),I(6,F1e,2,0,"span",1),b()}if(t&2){let e=w();p(),T(e.displayL&&e.iconVisible?1:-1),p(),T(e.displayL&&!e.completed&&e.iconVisible&&e.isLongValue()?2:-1),p(),T(e.completed?-1:3),p(),T(e.completed?4:-1),p(),T(e.displayR&&!e.completed&&e.iconVisible&&e.isLongValue()?5:-1),p(),T(e.displayR&&e.iconVisible?6:-1)}}var zN=(()=>{class t{constructor(){this.clipboard=d(q2),this.alertService=d(Bs),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=L({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&&I(0,V1e,7,6,"span"),n&2&&T(o.emptyValue?-1:0)},dependencies:[ge,Ce,Qt,op],encapsulation:2})}}return t})();var Yh=(()=>{class t{constructor(){this.http=d(En)}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(Zn(o=>o.status===404?re(null):Do(()=>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 RN=(()=>{class t{constructor(){this.http=d(En)}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 qh=(()=>{class t{constructor(){this.http=d(En),this.settingsService=d(Jt),this.dateUtils=d(Eo)}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 u=c.chargeId??c.id;if(u==null)return null;let f={chargeId:u,amount:c.amount};return c.id&&c.id!==u&&(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 Qh=(()=>{class t{constructor(){this.http=d(En)}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 B1e=["formRef"];function j1e(t,i){if(t&1){let e=le();h(0,"div",10)(1,"div",11),C(2),b(),h(3,"div",12)(4,"div",13)(5,"div",14),C(6),b(),h(7,"div",15),C(8),k(9,"dateFormat"),b()(),h(10,"div",16)(11,"button",17),N("click",function(){let o=U(e),r=o.$implicit,a=o.$index,s=w(2);return $(s.editNote(r.id,r.note,a))}),C(12," Edit "),b(),h(13,"button",18),N("click",function(){let o=U(e),r=o.$implicit,a=o.$index,s=w(2);return $(s.deleteNote(r.id,a))}),C(14," Delete "),b()()()()}if(t&2){let e=i.$implicit;p(2),te(" ",e.note," "),p(4),te("Created by ",e.createdByUsername),p(2),te(" ",E(9,3,e.createdOn)," ")}}function H1e(t,i){if(t&1&&(h(0,"div"),et(1,j1e,15,5,"div",10,gt),b()),t&2){let e=w();p(),tt(e.entityNotes)}}function U1e(t,i){t&1&&(h(0,"div",9),C(1,"No notes available"),b())}var NN=(()=>{class t{constructor(){this.formBuilder=d(Ws),this.savingsService=d(Qh),this.loansService=d(qh),this.clientsService=d(Yh),this.groupsService=d(RN),this.dialog=d(Ji)}ngOnInit(){this.createNoteForm()}createNoteForm(){this.noteForm=this.formBuilder.group({note:["",on.required]})}addNote(){this.callbackAdd(this.noteForm.value),this.formRef.resetForm()}editNote(e,n,o){this.dialog.open(ds,{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(Qr,{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=L({type:t,selectors:[["mifosx-entity-notes-tab"]],viewQuery:function(n,o){if(n&1&&me(B1e,7),n&2){let r;G(r=W())&&(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"],["type","button","mat-raised-button","","color","primary",1,"flex-1",3,"click","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"],["type","button","mat-raised-button","","color","primary","title","Edit note",3,"click"],["type","button","mat-raised-button","","color","warn","title","Delete note",3,"click"]],template:function(n,o){if(n&1){let r=le();h(0,"div",1)(1,"h3"),C(2),k(3,"translate"),b(),h(4,"div",2)(5,"form",3,0),N("ngSubmit",function(){return U(r),$(o.addNote())}),h(7,"mat-form-field",4),F(8,"textarea",5),k(9,"translate"),b(),h(10,"button",6),N("click",function(){return U(r),$(o.addNote())}),F(11,"fa-icon",7),C(12),k(13,"translate"),b()()(),h(14,"div",8),I(15,H1e,3,0,"div")(16,U1e,2,0,"div",9),b()()}n&2&&(p(2),O(E(3,7,"labels.heading.Notes")),p(3),S("formGroup",o.noteForm),p(3),S("placeholder",Jc("",E(9,9,"labels.text.Write a note")," ...")),p(2),S("disabled",!o.noteForm.valid),p(2),te("",E(13,11,"labels.buttons.Add")," "),p(3),T(o.entityNotes&&o.entityNotes.length>0?15:16))},dependencies:[ge,Ce,Gs,Di,fn,mr,Hr,gi,Go,Ht,ri,yt,Mf,Qt,$o,Le],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}.note-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{min-width:auto;padding:8px 14px;font-size:14px}.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}.note-actions[_ngcontent-%COMP%]{align-self:flex-end}.note-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding:5px 10px;font-size:11px}.note-meta[_ngcontent-%COMP%]{width:100%}}"]})}}return t})();var bc=function(){return bc=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=Ze(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=u;break}c===a.length-1&&(r=u)}var g=r.split("-"),y=parseInt(g[0],10),x=parseInt(g[1],10),D=i.width(),Y=i.height()-e,Q=Math.min(D,y),K=Math.min(Y,x),pe=Math.min(Q/y,K/x);return{width:y*pe,height:x*pe}}},getTransform:function(t,i,e,n,o){if(o){var r=Ze(t).find("img").first();if(r.get()){var a=i.get().getBoundingClientRect(),s=a.width,c=i.height()-(e+n),u=r.width(),f=r.height(),g=r.style(),y=(s-u)/2-r.offset().left+(parseFloat(g.paddingLeft)||0)+(parseFloat(g.borderLeft)||0)+Ze(window).scrollLeft()+a.left,x=(c-f)/2-r.offset().top+(parseFloat(g.paddingTop)||0)+(parseFloat(g.borderTop)||0)+Ze(window).scrollTop()+e,D=u/o.width,Y=f/o.height,Q="translate3d("+(y*=-1)+"px, "+(x*=-1)+"px, 0) scale3d("+D+", "+Y+", 1)";return Q}}},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="',u="";if(r){var f=typeof r=="string"?JSON.parse(r):r;u=f.map(function(b){var y="";return Object.keys(b).forEach(function(x){y+=" "+x+'="'+b[x]+'"'}),""})}return""+u+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="',u="";if(r){var f=typeof r=="string"?JSON.parse(r):r;u=f.map(function(g){var y="";return Object.keys(g).forEach(function(x){y+=" "+x+'="'+g[x]+'"'}),""})}return""+u+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=u1e(f1e,i);return[].forEach.call(t,function(a){for(var s={},c=0;c-1&&(b=f),b&&(s[b]=u.value)}}var y=Ze(a),x=y.find("img").first().attr("alt"),D=y.attr("title"),q=n?y.attr(n):y.find("img").first().attr("src");s.thumb=q,e&&!s.subHtml&&(s.subHtml=D||x||""),s.alt=x||D||"",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}}},rN=0,g1e=(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(rN++,this.lgId=rN,this.el=i,this.LGel=Ze(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=fc(fc({},m1e),i),this.settings.isMobile&&typeof this.settings.isMobile=="function"?this.settings.isMobile():vi.isMobile()){var e=fc(fc({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=fc(fc({},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=Ze(a),c=aN.generateUUID();s.attr("data-lg-id",c).on("click.lgcustom-item-"+c,function(u){u.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":""),u=this.settings.closable&&this.settings.showCloseIcon?'':"",f=this.settings.showMaximizeIcon?'':"",b=` +
`},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=$1e(Y1e,i);return[].forEach.call(t,function(a){for(var s={},c=0;c-1&&(g=f),g&&(s[g]=u.value)}}var y=Ze(a),x=y.find("img").first().attr("alt"),D=y.attr("title"),Y=n?y.attr(n):y.find("img").first().attr("src");s.thumb=Y,e&&!s.subHtml&&(s.subHtml=D||x||""),s.alt=x||D||"",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}}},FN=0,Q1e=(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(FN++,this.lgId=FN,this.el=i,this.LGel=Ze(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=bc(bc({},G1e),i),this.settings.isMobile&&typeof this.settings.isMobile=="function"?this.settings.isMobile():yi.isMobile()){var e=bc(bc({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=bc(bc({},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=Ze(a),c=VN.generateUUID();s.attr("data-lg-id",c).on("click.lgcustom-item-"+c,function(u){u.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":""),u=this.settings.closable&&this.settings.showCloseIcon?'':"",f=this.settings.showMaximizeIcon?'':"",g=`
- `;Ze(this.settings.container).append(b),document.body!==this.settings.container&&Ze(this.settings.container).css("position","relative"),this.outer=this.getElementById("lg-outer"),this.$lgComponents=this.getElementById("lg-components"),this.$backdrop=this.getElementById("lg-backdrop"),this.$container=this.getElementById("lg-container"),this.$inner=this.getElementById("lg-inner"),this.$content=this.getElementById("lg-content"),this.$toolbar=this.getElementById("lg-toolbar"),this.$backdrop.css("transition-duration",this.settings.backdropDuration+"ms");var y=this.settings.mode+" ";this.manageSingleSlideClassName(),this.settings.enableDrag&&(y+="lg-grab "),this.outer.addClass(y),this.$inner.css("transition-timing-function",this.settings.easing),this.$inner.css("transition-duration",this.settings.speed+"ms"),this.settings.download&&this.$toolbar.append(''),this.counter(),Ze(window).on("resize.lg.global"+this.lgId+" orientationchange.lg.global"+this.lgId,function(){i.refreshOnResize()}),this.hideBars(),this.manageCloseGallery(),this.toggleMaximize(),this.initModules()}},t.prototype.refreshOnResize=function(){if(this.lgOpened){var i=this.galleryItems[this.index],e=i.__slideVideoInfo;this.mediaContainerPosition=this.getMediaContainerPosition();var n=this.mediaContainerPosition,o=n.top,r=n.bottom;if(this.currentImageSize=vi.getSize(this.items[this.index],this.outer,o+r,e&&this.settings.videoMaxSize),e&&this.resizeVideoSlide(this.index,this.currentImageSize),this.zoomFromOrigin&&!this.isDummyImageRemoved){var a=this.getDummyImgStyles(this.currentImageSize);this.outer.find(".lg-current .lg-dummy-img").first().attr("style",a)}this.LGel.trigger(wn.containerResize)}},t.prototype.resizeVideoSlide=function(i,e){var n=this.getVideoContStyle(e),o=this.getSlideItem(i);o.find(".lg-video-cont").attr("style",n)},t.prototype.updateSlides=function(i,e){if(this.index>i.length-1&&(this.index=i.length-1),i.length===1&&(this.index=0),!i.length){this.closeGallery();return}var n=this.galleryItems[e].src;this.galleryItems=i,this.updateControls(),this.$inner.empty(),this.currentItemsInDom=[];var o=0;this.galleryItems.some(function(r,a){return r.src===n?(o=a,!0):!1}),this.currentItemsInDom=this.organizeSlideItems(o,-1),this.loadContent(o,!0),this.getSlideItem(o).addClass("lg-current"),this.index=o,this.updateCurrentCounter(o),this.LGel.trigger(wn.updateSlides)},t.prototype.getItems=function(){if(this.items=[],this.settings.dynamic)return this.settings.dynamicEl||[];if(this.settings.selector==="this")this.items.push(this.el);else if(this.settings.selector)if(typeof this.settings.selector=="string")if(this.settings.selectWithin){var i=Ze(this.settings.selectWithin);this.items=i.find(this.settings.selector).get()}else this.items=this.el.querySelectorAll(this.settings.selector);else this.items=this.settings.selector;else this.items=this.el.children;return vi.getDynamicOptions(this.items,this.settings.extraProps,this.settings.getCaptionFromTitleOrAlt,this.settings.exThumbImage)},t.prototype.shouldHideScrollbar=function(){return this.settings.hideScrollbar&&document.body===this.settings.container},t.prototype.hideScrollbar=function(){if(this.shouldHideScrollbar()){this.bodyPaddingRight=parseFloat(Ze("body").style().paddingRight);var i=document.documentElement.getBoundingClientRect(),e=window.innerWidth-i.width;Ze(document.body).css("padding-right",e+this.bodyPaddingRight+"px"),Ze(document.body).addClass("lg-overlay-open")}},t.prototype.resetScrollBar=function(){this.shouldHideScrollbar()&&(Ze(document.body).css("padding-right",this.bodyPaddingRight+"px"),Ze(document.body).removeClass("lg-overlay-open"))},t.prototype.openGallery=function(i,e){var n=this;if(i===void 0&&(i=this.settings.index),!this.lgOpened){this.lgOpened=!0,this.outer.removeClass("lg-hide-items"),this.hideScrollbar(),this.$container.addClass("lg-show");var o=this.getItemsToBeInsertedToDom(i,i);this.currentItemsInDom=o;var r="";o.forEach(function(y){r=r+('
')}),this.$inner.append(r),this.addHtml(i);var a="";this.mediaContainerPosition=this.getMediaContainerPosition();var s=this.mediaContainerPosition,c=s.top,u=s.bottom;this.settings.allowMediaOverlap||this.setMediaContainerPosition(c,u);var f=this.galleryItems[i].__slideVideoInfo;this.zoomFromOrigin&&e&&(this.currentImageSize=vi.getSize(e,this.outer,c+u,f&&this.settings.videoMaxSize),a=vi.getTransform(e,this.outer,c,u,this.currentImageSize)),(!this.zoomFromOrigin||!a)&&(this.outer.addClass(this.settings.startClass),this.getSlideItem(i).removeClass("lg-complete"));var b=this.settings.zoomFromOrigin?100:this.settings.backdropDuration;setTimeout(function(){n.outer.addClass("lg-components-open")},b),this.index=i,this.LGel.trigger(wn.beforeOpen),this.getSlideItem(i).addClass("lg-current"),this.lGalleryOn=!1,this.prevScrollTop=Ze(window).scrollTop(),setTimeout(function(){if(n.zoomFromOrigin&&a){var y=n.getSlideItem(i);y.css("transform",a),setTimeout(function(){y.addClass("lg-start-progress lg-start-end-progress").css("transition-duration",n.settings.startAnimationDuration+"ms"),n.outer.addClass("lg-zoom-from-image")}),setTimeout(function(){y.css("transform","translate3d(0, 0, 0)")},100)}setTimeout(function(){n.$backdrop.addClass("in"),n.$container.addClass("lg-show-in")},10),setTimeout(function(){n.settings.trapFocus&&document.body===n.settings.container&&n.trapFocus()},n.settings.backdropDuration+50),(!n.zoomFromOrigin||!a)&&setTimeout(function(){n.outer.addClass("lg-visible")},n.settings.backdropDuration),n.slide(i,!1,!1,!1),n.LGel.trigger(wn.afterOpen)}),document.body===this.settings.container&&Ze("html").addClass("lg-on")}},t.prototype.getMediaContainerPosition=function(){if(this.settings.allowMediaOverlap)return{top:0,bottom:0};var i=this.$toolbar.get().clientHeight||0,e=this.outer.find(".lg-components .lg-sub-html").get(),n=this.settings.defaultCaptionHeight||e&&e.clientHeight||0,o=this.outer.find(".lg-thumb-outer").get(),r=o?o.clientHeight:0,a=r+n;return{top:i,bottom:a}},t.prototype.setMediaContainerPosition=function(i,e){i===void 0&&(i=0),e===void 0&&(e=0),this.$content.css("top",i+"px").css("bottom",e+"px")},t.prototype.hideBars=function(){var i=this;setTimeout(function(){i.outer.removeClass("lg-hide-items"),i.settings.hideBarsDelay>0&&(i.outer.on("mousemove.lg click.lg touchstart.lg",function(){i.outer.removeClass("lg-hide-items"),clearTimeout(i.hideBarTimeout),i.hideBarTimeout=setTimeout(function(){i.outer.addClass("lg-hide-items")},i.settings.hideBarsDelay)}),i.outer.trigger("mousemove.lg"))},this.settings.showBarsAfter)},t.prototype.initPictureFill=function(i){if(this.settings.supportLegacyBrowser)try{picturefill({elements:[i.get()]})}catch{console.warn("lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.")}},t.prototype.counter=function(){if(this.settings.counter){var i=`
+ `;Ze(this.settings.container).append(g),document.body!==this.settings.container&&Ze(this.settings.container).css("position","relative"),this.outer=this.getElementById("lg-outer"),this.$lgComponents=this.getElementById("lg-components"),this.$backdrop=this.getElementById("lg-backdrop"),this.$container=this.getElementById("lg-container"),this.$inner=this.getElementById("lg-inner"),this.$content=this.getElementById("lg-content"),this.$toolbar=this.getElementById("lg-toolbar"),this.$backdrop.css("transition-duration",this.settings.backdropDuration+"ms");var y=this.settings.mode+" ";this.manageSingleSlideClassName(),this.settings.enableDrag&&(y+="lg-grab "),this.outer.addClass(y),this.$inner.css("transition-timing-function",this.settings.easing),this.$inner.css("transition-duration",this.settings.speed+"ms"),this.settings.download&&this.$toolbar.append(''),this.counter(),Ze(window).on("resize.lg.global"+this.lgId+" orientationchange.lg.global"+this.lgId,function(){i.refreshOnResize()}),this.hideBars(),this.manageCloseGallery(),this.toggleMaximize(),this.initModules()}},t.prototype.refreshOnResize=function(){if(this.lgOpened){var i=this.galleryItems[this.index],e=i.__slideVideoInfo;this.mediaContainerPosition=this.getMediaContainerPosition();var n=this.mediaContainerPosition,o=n.top,r=n.bottom;if(this.currentImageSize=yi.getSize(this.items[this.index],this.outer,o+r,e&&this.settings.videoMaxSize),e&&this.resizeVideoSlide(this.index,this.currentImageSize),this.zoomFromOrigin&&!this.isDummyImageRemoved){var a=this.getDummyImgStyles(this.currentImageSize);this.outer.find(".lg-current .lg-dummy-img").first().attr("style",a)}this.LGel.trigger(wn.containerResize)}},t.prototype.resizeVideoSlide=function(i,e){var n=this.getVideoContStyle(e),o=this.getSlideItem(i);o.find(".lg-video-cont").attr("style",n)},t.prototype.updateSlides=function(i,e){if(this.index>i.length-1&&(this.index=i.length-1),i.length===1&&(this.index=0),!i.length){this.closeGallery();return}var n=this.galleryItems[e].src;this.galleryItems=i,this.updateControls(),this.$inner.empty(),this.currentItemsInDom=[];var o=0;this.galleryItems.some(function(r,a){return r.src===n?(o=a,!0):!1}),this.currentItemsInDom=this.organizeSlideItems(o,-1),this.loadContent(o,!0),this.getSlideItem(o).addClass("lg-current"),this.index=o,this.updateCurrentCounter(o),this.LGel.trigger(wn.updateSlides)},t.prototype.getItems=function(){if(this.items=[],this.settings.dynamic)return this.settings.dynamicEl||[];if(this.settings.selector==="this")this.items.push(this.el);else if(this.settings.selector)if(typeof this.settings.selector=="string")if(this.settings.selectWithin){var i=Ze(this.settings.selectWithin);this.items=i.find(this.settings.selector).get()}else this.items=this.el.querySelectorAll(this.settings.selector);else this.items=this.settings.selector;else this.items=this.el.children;return yi.getDynamicOptions(this.items,this.settings.extraProps,this.settings.getCaptionFromTitleOrAlt,this.settings.exThumbImage)},t.prototype.shouldHideScrollbar=function(){return this.settings.hideScrollbar&&document.body===this.settings.container},t.prototype.hideScrollbar=function(){if(this.shouldHideScrollbar()){this.bodyPaddingRight=parseFloat(Ze("body").style().paddingRight);var i=document.documentElement.getBoundingClientRect(),e=window.innerWidth-i.width;Ze(document.body).css("padding-right",e+this.bodyPaddingRight+"px"),Ze(document.body).addClass("lg-overlay-open")}},t.prototype.resetScrollBar=function(){this.shouldHideScrollbar()&&(Ze(document.body).css("padding-right",this.bodyPaddingRight+"px"),Ze(document.body).removeClass("lg-overlay-open"))},t.prototype.openGallery=function(i,e){var n=this;if(i===void 0&&(i=this.settings.index),!this.lgOpened){this.lgOpened=!0,this.outer.removeClass("lg-hide-items"),this.hideScrollbar(),this.$container.addClass("lg-show");var o=this.getItemsToBeInsertedToDom(i,i);this.currentItemsInDom=o;var r="";o.forEach(function(y){r=r+('
')}),this.$inner.append(r),this.addHtml(i);var a="";this.mediaContainerPosition=this.getMediaContainerPosition();var s=this.mediaContainerPosition,c=s.top,u=s.bottom;this.settings.allowMediaOverlap||this.setMediaContainerPosition(c,u);var f=this.galleryItems[i].__slideVideoInfo;this.zoomFromOrigin&&e&&(this.currentImageSize=yi.getSize(e,this.outer,c+u,f&&this.settings.videoMaxSize),a=yi.getTransform(e,this.outer,c,u,this.currentImageSize)),(!this.zoomFromOrigin||!a)&&(this.outer.addClass(this.settings.startClass),this.getSlideItem(i).removeClass("lg-complete"));var g=this.settings.zoomFromOrigin?100:this.settings.backdropDuration;setTimeout(function(){n.outer.addClass("lg-components-open")},g),this.index=i,this.LGel.trigger(wn.beforeOpen),this.getSlideItem(i).addClass("lg-current"),this.lGalleryOn=!1,this.prevScrollTop=Ze(window).scrollTop(),setTimeout(function(){if(n.zoomFromOrigin&&a){var y=n.getSlideItem(i);y.css("transform",a),setTimeout(function(){y.addClass("lg-start-progress lg-start-end-progress").css("transition-duration",n.settings.startAnimationDuration+"ms"),n.outer.addClass("lg-zoom-from-image")}),setTimeout(function(){y.css("transform","translate3d(0, 0, 0)")},100)}setTimeout(function(){n.$backdrop.addClass("in"),n.$container.addClass("lg-show-in")},10),setTimeout(function(){n.settings.trapFocus&&document.body===n.settings.container&&n.trapFocus()},n.settings.backdropDuration+50),(!n.zoomFromOrigin||!a)&&setTimeout(function(){n.outer.addClass("lg-visible")},n.settings.backdropDuration),n.slide(i,!1,!1,!1),n.LGel.trigger(wn.afterOpen)}),document.body===this.settings.container&&Ze("html").addClass("lg-on")}},t.prototype.getMediaContainerPosition=function(){if(this.settings.allowMediaOverlap)return{top:0,bottom:0};var i=this.$toolbar.get().clientHeight||0,e=this.outer.find(".lg-components .lg-sub-html").get(),n=this.settings.defaultCaptionHeight||e&&e.clientHeight||0,o=this.outer.find(".lg-thumb-outer").get(),r=o?o.clientHeight:0,a=r+n;return{top:i,bottom:a}},t.prototype.setMediaContainerPosition=function(i,e){i===void 0&&(i=0),e===void 0&&(e=0),this.$content.css("top",i+"px").css("bottom",e+"px")},t.prototype.hideBars=function(){var i=this;setTimeout(function(){i.outer.removeClass("lg-hide-items"),i.settings.hideBarsDelay>0&&(i.outer.on("mousemove.lg click.lg touchstart.lg",function(){i.outer.removeClass("lg-hide-items"),clearTimeout(i.hideBarTimeout),i.hideBarTimeout=setTimeout(function(){i.outer.addClass("lg-hide-items")},i.settings.hideBarsDelay)}),i.outer.trigger("mousemove.lg"))},this.settings.showBarsAfter)},t.prototype.initPictureFill=function(i){if(this.settings.supportLegacyBrowser)try{picturefill({elements:[i.get()]})}catch{console.warn("lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.")}},t.prototype.counter=function(){if(this.settings.counter){var i=`
'+(this.index+1)+` / - '+this.galleryItems.length+"
";this.outer.find(this.settings.appendCounterTo).append(i)}},t.prototype.addHtml=function(i){var e,n;if(this.galleryItems[i].subHtmlUrl?n=this.galleryItems[i].subHtmlUrl:e=this.galleryItems[i].subHtml,!n)if(e){var o=e.substring(0,1);if(o==="."||o==="#")try{this.settings.subHtmlSelectorRelative&&!this.settings.dynamic?e=Ze(this.items).eq(i).find(e).first().html():e=Ze(e).first().html()}catch{console.warn('Error processing subHtml selector "'+e+'"'),e=""}}else e="";if(this.settings.appendSubHtmlTo!==".lg-item")n?vi.fetchCaptionFromUrl(n,this.outer.find(".lg-sub-html"),"replace"):this.outer.find(".lg-sub-html").html(e);else{var r=Ze(this.getSlideItemId(i));n?vi.fetchCaptionFromUrl(n,r,"append"):r.append('
'+e+"
")}typeof e<"u"&&e!==null&&(e===""?this.outer.find(this.settings.appendSubHtmlTo).addClass("lg-empty-html"):this.outer.find(this.settings.appendSubHtmlTo).removeClass("lg-empty-html")),this.LGel.trigger(wn.afterAppendSubHtml,{index:i})},t.prototype.preload=function(i){for(var e=1;e<=this.settings.preload&&!(e>=this.galleryItems.length-i);e++)this.loadContent(i+e,!1);for(var n=1;n<=this.settings.preload&&!(i-n<0);n++)this.loadContent(i-n,!1)},t.prototype.getDummyImgStyles=function(i){return i?"width:"+i.width+`px; + '+this.galleryItems.length+"
";this.outer.find(this.settings.appendCounterTo).append(i)}},t.prototype.addHtml=function(i){var e,n;if(this.galleryItems[i].subHtmlUrl?n=this.galleryItems[i].subHtmlUrl:e=this.galleryItems[i].subHtml,!n)if(e){var o=e.substring(0,1);if(o==="."||o==="#")try{this.settings.subHtmlSelectorRelative&&!this.settings.dynamic?e=Ze(this.items).eq(i).find(e).first().html():e=Ze(e).first().html()}catch{console.warn('Error processing subHtml selector "'+e+'"'),e=""}}else e="";if(this.settings.appendSubHtmlTo!==".lg-item")n?yi.fetchCaptionFromUrl(n,this.outer.find(".lg-sub-html"),"replace"):this.outer.find(".lg-sub-html").html(e);else{var r=Ze(this.getSlideItemId(i));n?yi.fetchCaptionFromUrl(n,r,"append"):r.append('
'+e+"
")}typeof e<"u"&&e!==null&&(e===""?this.outer.find(this.settings.appendSubHtmlTo).addClass("lg-empty-html"):this.outer.find(this.settings.appendSubHtmlTo).removeClass("lg-empty-html")),this.LGel.trigger(wn.afterAppendSubHtml,{index:i})},t.prototype.preload=function(i){for(var e=1;e<=this.settings.preload&&!(e>=this.galleryItems.length-i);e++)this.loadContent(i+e,!1);for(var n=1;n<=this.settings.preload&&!(i-n<0);n++)this.loadContent(i-n,!1)},t.prototype.getDummyImgStyles=function(i){return i?"width:"+i.width+`px; margin-left: -`+i.width/2+`px; margin-top: -`+i.height/2+`px; height:`+i.height+"px":""},t.prototype.getVideoContStyle=function(i){return i?"width:"+i.width+`px; - height:`+i.height+"px":""},t.prototype.getDummyImageContent=function(i,e,n){var o;if(this.settings.dynamic||(o=Ze(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,u="",f=r?'alt="'+r+'"':"";this.isFirstSlideWithZoomAnimation()?u=this.getDummyImageContent(e,n,f):u=vi.getImgMarkup(n,i,f,a,s,c);var b=document.createElement("picture");b.className="lg-img-wrap",Ze(b).append(u),e.prepend(b)},t.prototype.onSlideObjectLoad=function(i,e,n,o){var r=i.find(".lg-object").first();vi.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=vi.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=Ze(this.getSlideItemId(i)),a=o.poster,s=o.srcset,c=o.sizes,u=o.sources,f=o.src,b=o.video,y=b&&typeof b=="string"?JSON.parse(b):b;if(o.responsive){var x=o.responsive.split(",");f=vi.getResponsiveSrc(x)||f}var D=o.__slideVideoInfo,q="",Q=!!o.iframe,K=!this.lGalleryOn,pe=0;if(K&&(this.zoomFromOrigin&&this.currentImageSize?pe=this.settings.startAnimationDuration+10:pe=this.settings.backdropDuration+10),!r.hasClass("lg-loaded")){if(D){var ut=this.mediaContainerPosition,wt=ut.top,Bt=ut.bottom,en=vi.getSize(this.items[i],this.outer,wt+Bt,D&&this.settings.videoMaxSize);q=this.getVideoContStyle(en)}if(Q){var qo=vi.getIframeMarkup(this.settings.iframeWidth,this.settings.iframeHeight,this.settings.iframeMaxWidth,this.settings.iframeMaxHeight,f,o.iframeTitle);r.prepend(qo)}else if(a){var si="",El=K&&this.zoomFromOrigin&&this.currentImageSize;El&&(si=this.getDummyImageContent(r,i,""));var qo=vi.getVideoPosterMarkup(a,si||"",q,this.settings.strings.playVideo,D);r.prepend(qo)}else if(D){var qo='
';r.prepend(qo)}else if(this.setImgMarkup(f,r,i),s||u){var Bu=r.find(".lg-object");this.initPictureFill(Bu)}(a||D)&&this.LGel.trigger(wn.hasVideo,{index:i,src:f,html5Video:y,hasPoster:!!a}),this.LGel.trigger(wn.afterAppendSlide,{index:i}),this.lGalleryOn&&this.settings.appendSubHtmlTo===".lg-item"&&this.addHtml(i)}var Ri=0;pe&&!Ze(document.body).hasClass("lg-from-hash")&&(Ri=pe),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 ju=o.alt,G2=ju?'alt="'+ju+'"':"";if(r.find(".lg-img-wrap").append(vi.getImgMarkup(i,f,G2,s,c,o.sources)),s||u){var W2=r.find(".lg-object");n.initPictureFill(W2)}}(n.getSlideType(o)==="image"||n.getSlideType(o)==="video"&&a)&&(n.onLgObjectLoad(r,i,pe,Ri,!0,!1),n.onSlideObjectLoad(r,!!(D&&D.html5&&!a),function(){n.loadContentOnFirstSlideLoad(i,r,Ri)},function(){n.loadContentOnFirstSlideLoad(i,r,Ri)}))},this.settings.startAnimationDuration+100)),r.addClass("lg-loaded"),(!this.isFirstSlideWithZoomAnimation()||this.getSlideType(o)==="video"&&!a)&&this.onLgObjectLoad(r,i,pe,Ri,K,!!(D&&D.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,b){r.push("lg-item-"+o.lgId+"-"+b)}),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 u=r.length,c=0;c')}),this.currentItemsInDom.forEach(function(r){o.indexOf(r)===-1&&Ze("#"+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),u=this.getSlideItem(a),f=this.galleryItems[i],b=f.__slideVideoInfo;if(this.outer.attr("data-lg-slide-type",this.getSlideType(f)),this.setDownloadValue(i),b){var y=this.mediaContainerPosition,x=y.top,D=y.bottom,q=vi.getSize(this.items[i],this.outer,x+D,b&&this.settings.videoMaxSize);this.resizeVideoSlide(i,q)}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,u);else{this.outer.find(".lg-item").removeClass("lg-prev-slide lg-current lg-next-slide");var Q=void 0,K=void 0;s>2?(Q=i-1,K=i+1,(i===0&&a===s-1||i===s-1&&a===0)&&(K=0,Q=s-1)):(Q=0,K=1),o==="prev"?this.getSlideItem(K).addClass("lg-next-slide"):this.getSlideItem(Q).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,u.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,u=c*15/100,f=u-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 b=1-Math.abs(r)/window.innerHeight;this.$backdrop.css("opacity",b);var y=1-Math.abs(r)/(window.innerWidth*2);this.setTranslate(s,0,r,y,y),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=Ze(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);(Ze(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=Ze(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);(Ze(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)))}),Ze(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))}),Ze(window).on("mouseup.lg.global"+this.lgId,function(a){if(i.lgOpened){var s=Ze(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(Ze(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;Ze(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=Ze(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,u="",f=r?'alt="'+r+'"':"";this.isFirstSlideWithZoomAnimation()?u=this.getDummyImageContent(e,n,f):u=yi.getImgMarkup(n,i,f,a,s,c);var g=document.createElement("picture");g.className="lg-img-wrap",Ze(g).append(u),e.prepend(g)},t.prototype.onSlideObjectLoad=function(i,e,n,o){var r=i.find(".lg-object").first();yi.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=yi.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=Ze(this.getSlideItemId(i)),a=o.poster,s=o.srcset,c=o.sizes,u=o.sources,f=o.src,g=o.video,y=g&&typeof g=="string"?JSON.parse(g):g;if(o.responsive){var x=o.responsive.split(",");f=yi.getResponsiveSrc(x)||f}var D=o.__slideVideoInfo,Y="",Q=!!o.iframe,K=!this.lGalleryOn,pe=0;if(K&&(this.zoomFromOrigin&&this.currentImageSize?pe=this.settings.startAnimationDuration+10:pe=this.settings.backdropDuration+10),!r.hasClass("lg-loaded")){if(D){var ut=this.mediaContainerPosition,wt=ut.top,Bt=ut.bottom,en=yi.getSize(this.items[i],this.outer,wt+Bt,D&&this.settings.videoMaxSize);Y=this.getVideoContStyle(en)}if(Q){var Xo=yi.getIframeMarkup(this.settings.iframeWidth,this.settings.iframeHeight,this.settings.iframeMaxWidth,this.settings.iframeMaxHeight,f,o.iframeTitle);r.prepend(Xo)}else if(a){var ci="",Ll=K&&this.zoomFromOrigin&&this.currentImageSize;Ll&&(ci=this.getDummyImageContent(r,i,""));var Xo=yi.getVideoPosterMarkup(a,ci||"",Y,this.settings.strings.playVideo,D);r.prepend(Xo)}else if(D){var Xo='
';r.prepend(Xo)}else if(this.setImgMarkup(f,r,i),s||u){var $u=r.find(".lg-object");this.initPictureFill($u)}(a||D)&&this.LGel.trigger(wn.hasVideo,{index:i,src:f,html5Video:y,hasPoster:!!a}),this.LGel.trigger(wn.afterAppendSlide,{index:i}),this.lGalleryOn&&this.settings.appendSubHtmlTo===".lg-item"&&this.addHtml(i)}var Ri=0;pe&&!Ze(document.body).hasClass("lg-from-hash")&&(Ri=pe),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 Gu=o.alt,Q2=Gu?'alt="'+Gu+'"':"";if(r.find(".lg-img-wrap").append(yi.getImgMarkup(i,f,Q2,s,c,o.sources)),s||u){var K2=r.find(".lg-object");n.initPictureFill(K2)}}(n.getSlideType(o)==="image"||n.getSlideType(o)==="video"&&a)&&(n.onLgObjectLoad(r,i,pe,Ri,!0,!1),n.onSlideObjectLoad(r,!!(D&&D.html5&&!a),function(){n.loadContentOnFirstSlideLoad(i,r,Ri)},function(){n.loadContentOnFirstSlideLoad(i,r,Ri)}))},this.settings.startAnimationDuration+100)),r.addClass("lg-loaded"),(!this.isFirstSlideWithZoomAnimation()||this.getSlideType(o)==="video"&&!a)&&this.onLgObjectLoad(r,i,pe,Ri,K,!!(D&&D.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,g){r.push("lg-item-"+o.lgId+"-"+g)}),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 u=r.length,c=0;c')}),this.currentItemsInDom.forEach(function(r){o.indexOf(r)===-1&&Ze("#"+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),u=this.getSlideItem(a),f=this.galleryItems[i],g=f.__slideVideoInfo;if(this.outer.attr("data-lg-slide-type",this.getSlideType(f)),this.setDownloadValue(i),g){var y=this.mediaContainerPosition,x=y.top,D=y.bottom,Y=yi.getSize(this.items[i],this.outer,x+D,g&&this.settings.videoMaxSize);this.resizeVideoSlide(i,Y)}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,u);else{this.outer.find(".lg-item").removeClass("lg-prev-slide lg-current lg-next-slide");var Q=void 0,K=void 0;s>2?(Q=i-1,K=i+1,(i===0&&a===s-1||i===s-1&&a===0)&&(K=0,Q=s-1)):(Q=0,K=1),o==="prev"?this.getSlideItem(K).addClass("lg-next-slide"):this.getSlideItem(Q).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,u.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,u=c*15/100,f=u-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 g=1-Math.abs(r)/window.innerHeight;this.$backdrop.css("opacity",g);var y=1-Math.abs(r)/(window.innerWidth*2);this.setTranslate(s,0,r,y,y),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=Ze(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);(Ze(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=Ze(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);(Ze(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)))}),Ze(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))}),Ze(window).on("mouseup.lg.global"+this.lgId,function(a){if(i.lgOpened){var s=Ze(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(Ze(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;Ze(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+` webkitfullscreenchange.lg.global`+this.core.lgId+` mozfullscreenchange.lg.global`+this.core.lgId+` - MSFullscreenChange.lg.global`+this.core.lgId)},t})(),cN=v1e;var Qh=function(){return Qh=Object.assign||function(i){for(var e,n=1,o=arguments.length;n + MSFullscreenChange.lg.global`+this.core.lgId)},t})(),jN=Z1e;var Xh=function(){return Xh=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})(),lN=C1e;var Kh=function(){return Kh=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(ms.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 u=this.getDragAllowedAxises(0,e),f=u.allowY,b=u.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 y=this.getPossibleSwipeDragCords(e),x,D,q=r-this.pageX,Q=a-this.pageY;if(i-e>1){var K=(i-e)/Math.abs(e);q=(e<0?-q:q)+this.left*(K+(e<0?-1:1)),Q=(e<0?-Q:Q)+this.top*(K+(e<0?-1:1)),x=q/K,D=Q/K}else{var K=(i-e)*e;x=q*K,D=Q*K}n&&(b?this.isBeyondPossibleLeft(x,y.minX)?x=y.minX:this.isBeyondPossibleRight(x,y.maxX)&&(x=y.maxX):i>1&&(xy.maxX&&(x=y.maxX)),f?this.isBeyondPossibleTop(D,y.minY)?D=y.minY:this.isBeyondPossibleBottom(D,y.maxY)&&(D=y.maxY):i>1&&(Dy.maxY&&(D=y.maxY))),this.setZoomStyles({x,y:D,scale:i}),this.left=x,this.top=D,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)},wv),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")}},wv+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},wv+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(ms.containerResize+".zoom "+ms.rotateRight+".zoom "+ms.rotateLeft+".zoom "+ms.flipHorizontal+".zoom "+ms.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(ms.beforeOpen+".zoom",function(){i.core.outer.find(".lg-item").removeClass("lg-zoomable")}),this.core.LGel.on(ms.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(ms.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),u=e-c;if(!n&&Math.abs(u)>5&&(n=!0),n){r=i.scale;var f=Math.max(1,o+-u*.02);i.scale=Math.round((f+Number.EPSILON)*100)/100;var b=i.scale-r;i.zoomImage(i.scale,Math.round((b+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 u=c-i.scale;u===0&&(u=.01),i.zoomImage(c,u,!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,u=Math.abs(s)/r+1;c>2&&(c+=1),u>2&&(u+=1),a=a*c,s=s*u;var f=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),b={};b.x=this.left+a,b.y=this.top+s;var y=this.getPossibleSwipeDragCords();(Math.abs(a)>15||Math.abs(s)>15)&&(o&&(this.isBeyondPossibleTop(b.y,y.minY)?b.y=y.minY:this.isBeyondPossibleBottom(b.y,y.maxY)&&(b.y=y.maxY)),n&&(this.isBeyondPossibleLeft(b.x,y.minX)?b.x=y.minX:this.isBeyondPossibleRight(b.x,y.maxX)&&(b.x=y.maxX)),o?this.top=b.y:b.y=this.top,n?this.left=b.x:b.x=this.left,this.setZoomSwipeStyles(f,b),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 u=r.minX-a.x;a.x=r.minX-u/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,u=(a-this.containerRect.width)/2,f=(this.containerRect.width-a)/2,b={minY:s,maxY:c,minX:u,maxX:f};return b},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,u,f,b=this.core.getSlideItem(this.core.index);this.core.$inner.on("touchstart.lg",function(y){if(i.isImageSlide(i.core.index)&&(b=i.core.getSlideItem(i.core.index),(i.$LG(y.target).hasClass("lg-item")||b.get().contains(y.target))&&y.touches.length===1&&i.core.outer.hasClass("lg-zoomed"))){y.preventDefault(),s=new Date,i.core.touchAction="zoomSwipe",f=i.core.getSlideItem(i.core.index).find(".lg-img-wrap").first();var x=i.getDragAllowedAxises(0);a=x.allowY,r=x.allowX,(r||a)&&(e=i.getSwipeCords(y)),u=i.getPossibleSwipeDragCords(),i.core.outer.addClass("lg-zoom-dragging lg-zoom-drag-transition")}}),this.core.$inner.on("touchmove.lg",function(y){if(y.touches.length===1&&i.core.touchAction==="zoomSwipe"&&(i.$LG(y.target).hasClass("lg-item")||b.get().contains(y.target))){y.preventDefault(),i.core.touchAction="zoomSwipe",n=i.getSwipeCords(y);var x=i.getZoomSwipeCords(e,n,r,a,u);(Math.abs(n.x-e.x)>15||Math.abs(n.y-e.y)>15)&&(o=!0,i.setZoomSwipeStyles(f,x))}}),this.core.$inner.on("touchend.lg",function(y){if(i.core.touchAction==="zoomSwipe"&&(i.$LG(y.target).hasClass("lg-item")||b.get().contains(y.target))){if(y.preventDefault(),i.core.touchAction=void 0,i.core.outer.removeClass("lg-zoom-dragging"),!o)return;o=!1,c=new Date;var x=c.valueOf()-s.valueOf();i.touchendZoom(e,n,r,a,x)}})},t.prototype.zoomDrag=function(){var i=this,e={},n={},o=!1,r=!1,a=!1,s=!1,c,u,f,b;this.core.outer.on("mousedown.lg.zoom",function(y){if(i.isImageSlide(i.core.index)){var x=i.core.getSlideItem(i.core.index);if(i.$LG(y.target).hasClass("lg-item")||x.get().contains(y.target)){c=new Date,b=i.core.getSlideItem(i.core.index).find(".lg-img-wrap").first();var D=i.getDragAllowedAxises(0);s=D.allowY,a=D.allowX,i.core.outer.hasClass("lg-zoomed")&&i.$LG(y.target).hasClass("lg-object")&&(a||s)&&(y.preventDefault(),e=i.getDragCords(y),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(y){if(o){r=!0,n=i.getDragCords(y);var x=i.getZoomSwipeCords(e,n,a,s,f);i.setZoomSwipeStyles(b,x)}}),this.$LG(window).on("mouseup.lg.zoom.global"+this.core.lgId,function(y){if(o){if(u=new Date,o=!1,i.core.outer.removeClass("lg-zoom-dragging"),r&&(e.x!==n.x||e.y!==n.y)){n=i.getDragCords(y);var x=u.valueOf()-c.valueOf();i.touchendZoom(e,n,a,s,x)}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})(),dN=M1e;function w1e(t,i){t&1&&(C(0),k(1,"translate")),t&2&&te(" ",E(1,1,"labels.heading.Add Client Identifier")," ")}function D1e(t,i){if(t&1&&(C(0),k(1,"translate"),k(2,"translate")),t&2){let e=w();Qa(" ",E(1,3,"labels.heading.Upload")," ",e.entityType," ",E(2,5,"labels.heading.Documents")," ")}}function S1e(t,i){if(t&1&&(h(0,"mat-option",10),C(1),_()),t&2){let e=i.$implicit;S("value",e.id),p(),te(" ",e.name," ")}}function k1e(t,i){t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),k(3,"translate"),h(4,"strong"),C(5),k(6,"translate"),_()()),t&2&&(p(),Et(" ",E(2,3,"labels.inputs.Document Type")," ",E(3,5,"labels.commons.is")," "),p(4),T(E(6,7,"labels.commons.required")))}function E1e(t,i){if(t&1&&(h(0,"mat-option",10),C(1),_()),t&2){let e=i.$implicit;S("value",e.value),p(),te(" ",e.label," ")}}function I1e(t,i){t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),k(3,"translate"),h(4,"strong"),C(5),k(6,"translate"),_()()),t&2&&(p(),Et(" ",E(2,3,"labels.inputs.Status")," ",E(3,5,"labels.commons.is")," "),p(4),T(E(6,7,"labels.commons.required")))}function O1e(t,i){t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),k(3,"translate"),h(4,"strong"),C(5),k(6,"translate"),_()()),t&2&&(p(),Et(" ",E(2,3,"labels.inputs.Document Key")," ",E(3,5,"labels.commons.is")," "),p(4),T(E(6,7,"labels.commons.required")))}function T1e(t,i){if(t&1&&(h(0,"mat-form-field",3)(1,"mat-label"),C(2),k(3,"translate"),_(),h(4,"mat-select",9),et(5,S1e,2,2,"mat-option",10,gt),_(),I(7,k1e,7,9,"mat-error"),_(),h(8,"mat-form-field",3)(9,"mat-label"),C(10),k(11,"translate"),_(),h(12,"mat-select",11),et(13,E1e,2,2,"mat-option",10,gt),_(),I(15,I1e,7,9,"mat-error"),_(),h(16,"mat-form-field",3)(17,"mat-label"),C(18),k(19,"translate"),_(),F(20,"input",12),I(21,O1e,7,9,"mat-error"),_(),h(22,"mat-form-field",3)(23,"mat-label"),C(24),k(25,"translate"),_(),F(26,"input",13),_()),t&2){let e=w();p(2),T(E(3,7,"labels.inputs.Document Type")),p(3),tt(e.allowedDocumentTypes),p(2),O(e.uploadDocumentForm.controls.documentTypeId!=null&&e.uploadDocumentForm.controls.documentTypeId.hasError("required")?7:-1),p(3),T(E(11,9,"labels.inputs.Status")),p(3),tt(e.statusOptions),p(2),O(e.uploadDocumentForm.controls.status!=null&&e.uploadDocumentForm.controls.status.hasError("required")?15:-1),p(3),T(E(19,11,"labels.inputs.Document Key")),p(3),O(e.uploadDocumentForm.controls.documentKey!=null&&e.uploadDocumentForm.controls.documentKey.hasError("required")?21:-1),p(3),T(E(25,13,"labels.inputs.Description"))}}function P1e(t,i){t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),k(3,"translate"),h(4,"strong"),C(5),k(6,"translate"),_()()),t&2&&(p(),Et(" ",E(2,3,"labels.inputs.File Name")," ",E(3,5,"labels.commons.is")," "),p(4),T(E(6,7,"labels.commons.required")))}function L1e(t,i){t&1&&(h(0,"mat-form-field",3)(1,"mat-label"),C(2),k(3,"translate"),_(),F(4,"input",13),_()),t&2&&(p(2),T(E(3,1,"labels.inputs.Description")))}function A1e(t,i){t&1&&(C(0),k(1,"translate")),t&2&&te(" ",E(1,1,"labels.buttons.Add")," ")}function R1e(t,i){t&1&&(C(0),k(1,"translate")),t&2&&te(" ",E(1,1,"labels.buttons.Upload")," ")}var uN=(()=>{class t{constructor(){this.dialogRef=d(Yt),this.formBuilder=d(Hs),this.data=d(In),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:["",on.required],status:["Active",on.required],documentKey:["",on.required],description:[""],fileName:["",on.required],file:[""]}):this.uploadDocumentForm=this.formBuilder.group({fileName:["",on.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),I(1,w1e,2,3)(2,D1e,3,7),_(),h(3,"div",1)(4,"form",2),I(5,T1e,27,15),h(6,"mat-form-field",3)(7,"mat-label"),C(8),k(9,"translate"),_(),F(10,"input",4),I(11,P1e,7,9,"mat-error"),_(),I(12,L1e,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),C(16),k(17,"translate"),_(),h(18,"button",8),I(19,A1e,2,3)(20,R1e,2,3),_()()()()),n&2&&(p(),O(o.documentIdentifier?1:2),p(3),S("formGroup",o.uploadDocumentForm),p(),O(o.documentIdentifier?5:-1),p(3),T(E(9,10,"labels.inputs.File Name")),p(3),O(o.uploadDocumentForm.controls.fileName.hasError("required")?11:-1),p(),O(o.documentIdentifier?-1:12),p(4),T(E(17,12,"labels.buttons.Cancel")),p(2),S("disabled",!o.uploadDocumentForm.valid)("mat-dialog-close",o.uploadDocumentForm.value),p(),O(o.documentIdentifier?19:20))},dependencies:[ge,Ce,js,wi,fn,cr,Fr,hi,jo,Ht,Cn,fo,oi,Yn,un,yt,xn,Zf,Nn,Rn,Pe],encapsulation:2})}}return t})();var mN=(()=>{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 li(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 u=this.detectType(r.mimeType,e.fileName,e.fileData);return this.previewCache.set(e.id,{url:r.url,type:u,isObjectUrl:r.isObjectUrl}),{url:r.url,type:u}}let a=yield X6(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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var z1e=["lightboxRoot"];function N1e(t,i){if(t&1){let e=le();h(0,"div",7)(1,"button",8),N("click",function(){U(e);let o=w();return $(o.uploadDocument())}),F(2,"fa-icon",9),C(3),k(4,"translate"),_()()}t&2&&(p(3),te("",E(4,1,"labels.buttons.Add")," "))}function F1e(t,i){if(t&1&&F(0,"img",13),t&2){let e=w().$implicit,n=w(2);S("src",n.previewThumbnails[e.id],M1)("alt",e.name)("title",e.name)}}function V1e(t,i){if(t&1&&(h(0,"div",14),F(1,"fa-icon",22),h(2,"span"),C(3),_()()),t&2){let e=w().$implicit;p(3),T(e.fileName||e.name)}}function B1e(t,i){t&1&&(h(0,"div",15),F(1,"fa-icon",23),_())}function j1e(t,i){if(t&1&&(h(0,"div",18),C(1),_()),t&2){let e=w().$implicit;p(),T(e.fileName)}}function H1e(t,i){if(t&1&&(h(0,"div",19),C(1),_()),t&2){let e=w().$implicit;p(),T(e.description)}}function U1e(t,i){if(t&1){let e=le();h(0,"button",24),k(1,"translate"),N("click",function(){U(e);let o=w().$implicit,r=w(2);return $(r.deleteDocument(o.id,o.name))}),F(2,"fa-icon",25),_()}t&2&&ne("aria-label",E(1,1,"labels.buttons.Delete"))}function $1e(t,i){if(t&1){let e=le();h(0,"div",11)(1,"div",12),k(2,"translate"),N("keydown.enter",function(){let o=U(e).$implicit,r=w(2);return $(r.isPreviewable(o)&&r.openPreview(o))})("keydown.space",function(){let o=U(e).$implicit,r=w(2);return $(r.isPreviewable(o)&&r.openPreview(o))})("click",function(){let o=U(e).$implicit,r=w(2);return $(r.isPreviewable(o)&&r.openPreview(o))}),I(3,F1e,1,3,"img",13)(4,V1e,4,1,"div",14),I(5,B1e,2,0,"div",15),_(),h(6,"div",16)(7,"div",17),C(8),_(),I(9,j1e,2,1,"div",18),I(10,H1e,2,1,"div",19),h(11,"div",20),Xe(12,U1e,3,3,"button",21),_()()()}if(t&2){let e=i.$implicit,n=w(2);p(),oe("clickable",n.isPreviewable(e)),ne("aria-label",E(2,9,"labels.buttons.Preview")+": "+e.name),p(2),O(n.previewThumbnails[e.id]?3:4),p(2),O(n.isPreviewable(e)?5:-1),p(3),T(e.name),p(),O(e.fileName?9:-1),p(),O(e.description?10:-1),p(2),S("mifosxHasPermission","DELETE_DOCUMENT")}}function G1e(t,i){if(t&1&&(h(0,"div")(1,"div",10),et(2,$1e,13,11,"div",11,U5().trackByDocumentId,!0),_()()),t&2){let e=w();p(2),tt(e.entityDocuments)}}function W1e(t,i){t&1&&(h(0,"div",5)(1,"p"),C(2),k(3,"translate"),_(),h(4,"p",26),C(5),k(6,"translate"),_()()),t&2&&(p(2),T(E(3,2,"labels.text.NoDocuments")),p(3),T(E(6,4,"labels.text.UploadDocumentHint")))}var pN=(()=>{class t{constructor(){this.dialog=d(Zi),this.savingsService=d(qh),this.loansService=d(Wh),this.clientsService=d(Gh),this.documentPreviewService=d(mN),this.previewThumbnails={},this.lightboxInstance=null,this.lightboxPlugins=[dN,lN,cN]}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(uN,{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(Gr,{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 li(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=sN(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&&me(z1e,7),n&2){let r;G(r=W())&&(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),C(3),k(4,"translate"),_(),Xe(5,N1e,5,3,"div",4),_(),I(6,G1e,4,0,"div")(7,W1e,7,6,"div",5),_(),F(8,"div",6,0)),n&2&&(p(3),T(E(4,3,"labels.heading.Documents")),p(2),S("mifosxHasPermission","CREATE_DOCUMENT"),p(),O(o.entityDocuments!=null&&o.entityDocuments.length?6:7))},dependencies:[ge,Ce,yt,Fs,Qt,Pe],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 Xh=class extends lr{constructor(i){super(i),this.controlType="checkbox"}};var Zh=class extends lr{constructor(i={}){super(i),this.controlType="datepicker",this.minDate=i.minDate||new Date(2e3,0,1),this.maxDate=i.maxDate||new Date}};var Jh=class extends lr{constructor(i={}){super(i),this.controlType="datetimepicker",this.minDate=i.minDate||new Date(2e3,0,1),this.maxDate=i.maxDate||new Date}};var e6=class extends lr{constructor(i={}){super(i),this.controlType="input",this.type=i.type||"text"}};var t6=class extends lr{constructor(i={}){super(i),this.controlType="select",this.options=i.options||{label:"",value:"",data:[]}}};var n6=(()=>{class t{constructor(){this.dateUtils=d(wo),this.settingsService=d(Jt),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 e6({controlName:r.columnName,label:a,value:"",type:r.columnDisplayType==="INTEGER"||r.columnDisplayType==="DECIMAL"?"number":"text",required:!r.isColumnNullable});case"BOOLEAN":return new Xh({controlName:r.columnName,label:a,value:"",type:"checkbox",required:!r.isColumnNullable});case"CODELOOKUP":return new t6({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=wo.DEFAULT_DATEFORMAT),new Zh({controlName:r.columnName,label:a,value:"",maxDate:this.settingsService.maxAllowedDate,required:!r.isColumnNullable});case"DATETIME":return n.push(r.columnName),o.dateFormat=wo.DEFAULT_DATETIMEFORMAT,new Jh({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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var q1e=["dataTable"];function Y1e(t,i){if(t&1){let e=le();h(0,"span")(1,"button",11),N("click",function(){U(e);let o=w();return $(o.add())}),F(2,"fa-icon",12),C(3),k(4,"translate"),_()()}t&2&&(p(3),te("",E(4,1,"labels.buttons.Add")," "))}function Q1e(t,i){if(t&1){let e=le();h(0,"span")(1,"button",13),N("click",function(){U(e);let o=w(2);return $(o.deleteSelected())}),F(2,"fa-icon",14),C(3),k(4,"translate"),_()()}t&2&&(p(3),te(" ",E(4,1,"labels.buttons.Delete Selected")," "))}function K1e(t,i){if(t&1&&(Gi(0),I(1,Q1e,5,3,"span"),Wi()),t&2){let e=w();p(),O(e.isSelected?1:-1)}}function X1e(t,i){if(t&1){let e=le();h(0,"span")(1,"button",13),N("click",function(){U(e);let o=w(2);return $(o.delete())}),F(2,"fa-icon",14),C(3),k(4,"translate"),_()()}t&2&&(p(3),te(" ",E(4,1,"labels.buttons.Delete All")," "))}function Z1e(t,i){if(t&1&&(Gi(0),I(1,X1e,5,3,"span"),Wi()),t&2){let e=w();p(),O(e.datatableData.length>0?1:-1)}}function J1e(t,i){t&1&&F(0,"th",17)}function e2e(t,i){if(t&1){let e=le();h(0,"td",18)(1,"mat-checkbox",19),N("click",function(o){return U(e),$(o.stopPropagation())})("change",function(o){let r=U(e).$implicit,a=w(3);return $(o?a.itemToggle(r):null)}),_()()}if(t&2){let e=i.$implicit,n=w(3);p(),S("checked",n.selection.isSelected(e))}}function t2e(t,i){t&1&&Xe(0,J1e,1,0,"th",15)(1,e2e,2,1,"td",16)}function n2e(t,i){if(t&1&&(h(0,"th",22),C(1),_()),t&2){let e=w(2).$implicit,n=w();p(),T(n.getInputName(e))}}function i2e(t,i){if(t&1&&(h(0,"td",23),C(1),_()),t&2){let e=i.$implicit,n=w(2).$implicit,o=w();S("ngClass",o.isToDelete(e)),p(),te(" ",o.formatValue(e,n)," ")}}function o2e(t,i){t&1&&Xe(0,n2e,2,1,"th",20)(1,i2e,2,2,"td",21)}function r2e(t,i){if(t&1&&(Gi(0,8),I(1,t2e,2,0),I(2,o2e,2,0),Wi()),t&2){let e=i.$implicit,n=i.$index;S("matColumnDef",e),p(),O(n===0?1:-1),p(),O(n>0?2:-1)}}function a2e(t,i){t&1&&F(0,"tr",24)}function s2e(t,i){t&1&&F(0,"tr",25)}var i6=(()=>{class t{constructor(){this.route=d(po),this.dateUtils=d(wo),this.systemService=d(N2),this.settingsService=d(Jt),this.dialog=d(Zi),this.datatables=d(n6),this.dateFormat=d(Bo),this.dateTimeFormat=d(fa),this.numberFormat=d(o0),this.SELECT_NAME_FIELD="select",this.datatableColumns=[],this.isSelected=!1,this.isLoading=!1}ngOnInit(){this.selection=new bo(!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(as,{data:a,width:"50rem"}).afterClosed().subscribe(c=>{c.data&&(n.forEach(u=>{c.data.value[u]=this.dateUtils.formatDate(c.data.value[u],e.dateFormat)}),e=Y(Y({},c.data.value),e),this.systemService.addEntityDatatableEntry(this.entityId,this.datatableName,e).subscribe(u=>{this.getData()}))})}delete(){this.dialog.open(Gr,{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(Gr,{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 bo(!0,[]),this.isSelected=this.selection.selected.length>0)})})})):(this.selection=new bo(!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(u=>u.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 bo(!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&&me(q1e,5),n&2){let r;G(r=W())&&(o.dataTableRef=r.first)}},inputs:{dataObject:"dataObject",entityId:"entityId",entityType:"entityType"},features:[ze],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"),C(4),_()(),h(5,"div",4),Xe(6,Y1e,5,3,"span",5)(7,K1e,2,1,"ng-container",5)(8,Z1e,2,1,"ng-container",5),_()(),h(9,"div",6)(10,"table",7,0),et(12,r2e,3,3,"ng-container",8,gt),Xe(14,a2e,1,0,"tr",9)(15,s2e,1,0,"tr",10),_()()()),n&2&&(p(4),T(o.datatableName),p(2),S("mifosxHasPermission","CREATE_"+o.datatableName),p(),S("mifosxHasPermission","DELETE_"+o.datatableName),p(),S("mifosxHasPermission","DELETE_"+o.datatableName),p(2),S("dataSource",o.datatableData),p(2),tt(o.datatableColumns),p(2),S("matHeaderRowDef",o.datatableColumns),p(),S("matRowDefColumns",o.datatableColumns))},dependencies:[ge,$n,Ce,yt,dl,Fs,Qt,Th,Ah,Lh,Rh,Ph,zh,Nh,Vh,Fh,Bh,Pe],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 c2e(t,i){if(t&1){let e=le();h(0,"button",5),N("click",function(){U(e);let o=w();return $(o.add())}),F(1,"fa-icon",6),C(2),k(3,"translate"),_()}t&2&&(p(2),te("",E(3,1,"labels.buttons.Add")," "))}function l2e(t,i){if(t&1){let e=le();h(0,"button",5),N("click",function(){U(e);let o=w();return $(o.edit())}),F(1,"fa-icon",7),C(2),k(3,"translate"),_()}t&2&&(p(2),te("",E(3,1,"labels.buttons.Edit")," "))}function d2e(t,i){if(t&1){let e=le();h(0,"button",8),N("click",function(){U(e);let o=w();return $(o.delete())}),F(1,"fa-icon",9),C(2),k(3,"translate"),_()}t&2&&(p(2),te("",E(3,1,"labels.buttons.Delete")," "))}function u2e(t,i){if(t&1&&(h(0,"span"),C(1),k(2,"dateFormat"),_()),t&2){let e=w().$index,n=w(2);p(),te(" ",E(2,1,n.dataObject.data[0].row[e])," ")}}function m2e(t,i){if(t&1&&(h(0,"span"),C(1),k(2,"datetimeFormat"),_()),t&2){let e=w().$index,n=w(2);p(),te(" ",E(2,1,n.dataObject.data[0].row[e])," ")}}function p2e(t,i){if(t&1&&(h(0,"span"),C(1),_()),t&2){let e=w().$index,n=w(2);p(),te(" ",n.dataObject.data[0].row[e]," ")}}function f2e(t,i){if(t&1&&(h(0,"span"),C(1),k(2,"formatNumber"),_()),t&2){let e=w().$index,n=w(2);p(),te(" ",E(2,1,n.dataObject.data[0].row[e])," ")}}function h2e(t,i){if(t&1&&(h(0,"span"),C(1),_()),t&2){let e=w(),n=e.$implicit,o=e.$index,r=w(2);p(),te(" ",r.datatables.getCodeLookupValue(n,r.dataObject.data[0].row[o])," ")}}function g2e(t,i){if(t&1&&(h(0,"span",13),C(1),_()),t&2){let e=w().$index,n=w(2);p(),te(" ",n.dataObject.data[0].row[e]," ")}}function _2e(t,i){if(t&1&&(h(0,"textarea",14),k(1,"prettyPrint"),C(2," "),_()),t&2){let e=w().$index,n=w(2);S("innerHTML",E(1,1,n.dataObject.data[0].row[e].value),qc)}}function b2e(t,i){if(t&1){let e=le();h(0,"span",15)(1,"button",16),k(2,"translate"),N("click",function(){U(e);let o=w(2).$index,r=w(2);return $(r.openSite(r.dataObject.data[0].row[o]))}),F(3,"fa-icon",17),_()()}t&2&&(p(),S("matTooltip",Vt(E(2,2,"tooltips.View Link"))))}function v2e(t,i){if(t&1&&(h(0,"span"),I(1,b2e,4,4,"span",15),C(2),_()),t&2){let e=w().$index,n=w(2);p(),O(n.isValidUrl(n.dataObject.data[0].row[e])?1:-1),p(),te(" ",n.dataObject.data[0].row[e]," ")}}function y2e(t,i){if(t&1&&(h(0,"div",10)(1,"div",11),C(2),_(),h(3,"div",12),I(4,u2e,3,3,"span")(5,m2e,3,3,"span")(6,p2e,2,1,"span")(7,f2e,3,3,"span")(8,h2e,2,1,"span")(9,g2e,2,1,"span",13)(10,_2e,3,3,"textarea",14)(11,v2e,3,2,"span"),_()()),t&2){let e,n=i.$implicit,o=w(2);S("ngClass",o.setAttributeClass(n.columnName)),p(2),te(" ",o.datatables.toDisplayLabel(n.columnName)," "),p(2),O((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 C2e(t,i){if(t&1&&(h(0,"div",4),et(1,y2e,12,3,"div",10,gt),_()),t&2){let e=w();p(),tt(e.dataObject.columnHeaders)}}var o6=(()=>{class t{constructor(){this.route=d(po),this.dateUtils=d(wo),this.dialog=d(Zi),this.settingsService=d(Jt),this.datatables=d(n6),this.systemService=d(N2)}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(as,{data:a,width:"50rem"}).afterClosed().subscribe(c=>{c.data&&(n.forEach(u=>{c.data.value[u]=this.dateUtils.formatDate(c.data.value[u],e.dateFormat)}),e=Y(Y({},c.data.value),e),this.systemService.addEntityDatatableEntry(this.entityId,this.datatableName,e).subscribe(()=>{this.systemService.getEntityDatatable(this.entityId,this.datatableName).subscribe(u=>{this.dataObject=u})}))})}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,u)=>(c.controlType==="datepicker"?c.value=this.dataObject.data[0].row[o[u].idx]?this.dateUtils.parseDate(this.dataObject.data[0].row[o[u].idx]):"":c.controlType==="datetimepicker"?c.value=this.dataObject.data[0].row[o[u].idx]?this.dateUtils.parseDatetime(this.dataObject.data[0].row[o[u].idx]):"":c.value=this.dataObject.data[0].row[o[u].idx]?this.dataObject.data[0].row[o[u].idx]:"",c));let a={title:"Edit "+this.datatableName+" for "+this.entityType,formfields:r,layout:{addButtonText:"Submit"},pristine:!1};this.dialog.open(as,{data:a,width:"50rem"}).afterClosed().subscribe(c=>{c.data&&(n.forEach(u=>{c.data.value[u]=this.dateUtils.formatDate(c.data.value[u],e.dateFormat)}),e=Y(Y({},c.data.value),e),this.systemService.editEntityDatatableEntry(this.entityId,this.datatableName,e).subscribe(()=>{this.systemService.getEntityDatatable(this.entityId,this.datatableName).subscribe(u=>{this.dataObject=u})}))})}delete(){this.dialog.open(Gr,{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"),C(2),_(),h(3,"div",1),I(4,c2e,4,3,"button",2),I(5,l2e,4,3,"button",2),I(6,d2e,4,3,"button",3),_(),F(7,"mat-divider"),I(8,C2e,3,0,"div",4),_()),n&2&&(p(2),T(o.datatableName),p(2),O(o.dataObject.data[0]?-1:4),p(),O(o.dataObject.data[0]?5:-1),p(),O(o.dataObject.data[0]?6:-1),p(2),O(o.dataObject.data.length>0?8:-1))},dependencies:[ge,$n,Ce,yt,Qt,uc,Cf,ri,vo,Bo,Pe,fa,Ns,op],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 x2e(t,i){if(t&1&&F(0,"mifosx-datatable-multi-row",0),t&2){let e=w();S("entityType",e.entityType)("entityId",e.entityId)("dataObject",e.entityDatatable)}}function M2e(t,i){if(t&1&&F(0,"mifosx-datatable-single-row",0),t&2){let e=w();S("entityType",e.entityType)("entityId",e.entityId)("dataObject",e.entityDatatable)}}var fN=(()=>{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"),I(1,x2e,1,3,"mifosx-datatable-multi-row",0),I(2,M2e,1,3,"mifosx-datatable-single-row",0),_()),n&2&&(p(),O(o.multiRowDatatableFlag?1:-1),p(),O(o.multiRowDatatableFlag?-1:2))},dependencies:[ge,Ce,i6,o6],encapsulation:2})}}return t})();var hN=(()=>{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&&(Gt(),h(0,"svg",0),F(1,"use"),_()),n&2&&(Rt("width",o.iconWidth,"px"),S("ngClass",o.iconClass),p(),ne("href","assets/images/icons_"+o.iconFile+".svg#"+o.iconName,null,"xlink"))},dependencies:[ge,$n,Ce],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 w2e(t,i){t&1&&(h(0,"span"),C(1),k(2,"translate"),_()),t&2&&(p(),T(E(2,1,"labels.inputs.Credit")))}function D2e(t,i){t&1&&(h(0,"span"),C(1),k(2,"translate"),_()),t&2&&(p(),T(E(2,1,"labels.inputs.Debit")))}function S2e(t,i){if(t&1&&(h(0,"tr")(1,"th"),C(2),k(3,"translate"),_(),h(4,"td"),C(5),_()()),t&2){let e=w();p(2),T(E(3,2,"labels.inputs.Reference Number")),p(3),T(e.data.journalEntry.referenceNumber)}}function k2e(t,i){if(t&1&&(h(0,"tr")(1,"th"),C(2),k(3,"translate"),_(),h(4,"td"),C(5),_()()),t&2){let e=w();p(2),T(E(3,2,"labels.inputs.Comments")),p(3),T(e.data.journalEntry.comments)}}function E2e(t,i){t&1&&(h(0,"tr")(1,"th",4),C(2),k(3,"translate"),_()()),t&2&&(p(2),T(E(3,1,"labels.inputs.Payment Details")))}function I2e(t,i){if(t&1&&(h(0,"tr")(1,"th"),C(2),k(3,"translate"),_(),h(4,"td"),C(5),_()()),t&2){let e=w();p(2),T(E(3,2,"labels.inputs.Payment Type")),p(3),T(e.data.journalEntry.transactionDetails.paymentDetails.paymentType.name)}}function O2e(t,i){if(t&1&&(h(0,"tr")(1,"th"),C(2),k(3,"translate"),_(),h(4,"td"),C(5),_()()),t&2){let e=w();p(2),T(E(3,2,"labels.inputs.Account Number")),p(3),T(e.data.journalEntry.transactionDetails.paymentDetails.accountNumber)}}function T2e(t,i){if(t&1&&(h(0,"tr")(1,"th"),C(2),k(3,"translate"),_(),h(4,"td"),C(5),_()()),t&2){let e=w();p(2),T(E(3,2,"labels.inputs.Cheque Number")),p(3),T(e.data.journalEntry.transactionDetails.paymentDetails.checkNumber)}}function P2e(t,i){if(t&1&&(h(0,"tr")(1,"th"),C(2),k(3,"translate"),_(),h(4,"td"),C(5),_()()),t&2){let e=w();p(2),T(E(3,2,"labels.inputs.Routing Code")),p(3),T(e.data.journalEntry.transactionDetails.paymentDetails.routingCode)}}function L2e(t,i){if(t&1&&(h(0,"tr")(1,"th"),C(2),k(3,"translate"),_(),h(4,"td"),C(5),_()()),t&2){let e=w();p(2),T(E(3,2,"labels.inputs.Receipt Number")),p(3),T(e.data.journalEntry.transactionDetails.paymentDetails.receiptNumber)}}function A2e(t,i){if(t&1&&(h(0,"tr")(1,"th"),C(2),k(3,"translate"),_(),h(4,"td"),C(5),_()()),t&2){let e=w();p(2),T(E(3,2,"labels.inputs.Bank Number")),p(3),T(e.data.journalEntry.transactionDetails.paymentDetails.bankNumber)}}function R2e(t,i){if(t&1&&(h(0,"tr")(1,"th"),C(2),k(3,"translate"),_(),h(4,"td"),C(5),_()()),t&2){let e=w();p(2),T(E(3,2,"labels.inputs.Created by")),p(3),T(e.data.journalEntry.createdByUserName)}}var r6=(()=>{class t{constructor(){this.dialogRef=d(Yt),this.data=d(In),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),C(1),k(2,"translate"),_(),h(3,"div",1)(4,"table")(5,"tr")(6,"th"),C(7),k(8,"translate"),_(),h(9,"td"),C(10),_()(),h(11,"tr")(12,"th"),C(13),k(14,"translate"),_(),h(15,"td"),C(16),_()(),h(17,"tr")(18,"th"),C(19),k(20,"translate"),_(),h(21,"td"),C(22),_()(),h(23,"tr")(24,"th"),C(25),k(26,"translate"),_(),h(27,"td"),C(28),k(29,"dateFormat"),_()(),h(30,"tr")(31,"th"),C(32),k(33,"translate"),_(),h(34,"td"),C(35),_()(),h(36,"tr")(37,"th"),C(38),k(39,"translate"),_(),h(40,"td"),C(41),_()(),h(42,"tr")(43,"th"),C(44),k(45,"translate"),_(),h(46,"td"),C(47),_()(),h(48,"tr")(49,"th"),I(50,w2e,3,3,"span"),I(51,D2e,3,3,"span"),_(),h(52,"td"),C(53),k(54,"formatNumber"),_()(),h(55,"tr")(56,"th"),C(57),k(58,"translate"),_(),h(59,"td"),C(60),_()(),I(61,S2e,6,4,"tr"),I(62,k2e,6,4,"tr"),I(63,E2e,4,3,"tr"),I(64,I2e,6,4,"tr"),I(65,O2e,6,4,"tr"),I(66,T2e,6,4,"tr"),I(67,P2e,6,4,"tr"),I(68,L2e,6,4,"tr"),I(69,A2e,6,4,"tr"),I(70,R2e,6,4,"tr"),h(71,"tr")(72,"th"),C(73),k(74,"translate"),_(),h(75,"td"),C(76),k(77,"datetimeFormat"),_()()()(),h(78,"mat-dialog-actions",2)(79,"button",3),C(80),k(81,"translate"),_()()),n&2&&(p(),T(E(2,35,"labels.heading.View Journal Entry")),p(6),T(E(8,37,"labels.inputs.Office")),p(3),T(o.data.journalEntry.officeName),p(3),T(E(14,39,"labels.inputs.Entry ID")),p(3),T(o.data.journalEntry.id),p(3),T(E(20,41,"labels.inputs.Transaction ID")),p(3),T(o.data.journalEntry.transactionId),p(3),T(E(26,43,"labels.inputs.Transaction Date")),p(3),T(E(29,45,o.data.journalEntry.transactionDate)),p(4),T(E(33,47,"labels.inputs.Type")),p(3),T(o.data.journalEntry.glAccountType.value),p(3),T(E(39,49,"labels.inputs.Account Code")),p(3),T(o.data.journalEntry.glAccountId),p(3),T(E(45,51,"labels.inputs.Account Name")),p(3),T(o.data.journalEntry.glAccountName),p(3),O(o.data.journalEntry.entryType.value==="CREDIT"?50:-1),p(),O(o.data.journalEntry.entryType.value==="DEBIT"?51:-1),p(2),Et("",o.data.journalEntry.currency.displaySymbol," ",E(54,53,o.data.journalEntry.amount)),p(4),T(E(58,55,"labels.inputs.Currency")),p(3),Et("(",o.data.journalEntry.currency.code,") ",o.data.journalEntry.currency.name),p(),O(o.data.journalEntry.referenceNumber?61:-1),p(),O(o.data.journalEntry.comments?62:-1),p(),O(o.existsPaymentDetails?63:-1),p(),O(o.existsPaymentDetails&&(o.data.journalEntry.transactionDetails.paymentDetails!=null&&o.data.journalEntry.transactionDetails.paymentDetails.paymentType)?64:-1),p(),O(o.existsPaymentDetails&&(o.data.journalEntry.transactionDetails.paymentDetails!=null&&o.data.journalEntry.transactionDetails.paymentDetails.accountNumber)?65:-1),p(),O(o.existsPaymentDetails&&(o.data.journalEntry.transactionDetails.paymentDetails!=null&&o.data.journalEntry.transactionDetails.paymentDetails.checkNumber)?66:-1),p(),O(o.existsPaymentDetails&&(o.data.journalEntry.transactionDetails.paymentDetails!=null&&o.data.journalEntry.transactionDetails.paymentDetails.routingCode)?67:-1),p(),O(o.existsPaymentDetails&&(o.data.journalEntry.transactionDetails.paymentDetails!=null&&o.data.journalEntry.transactionDetails.paymentDetails.receiptNumber)?68:-1),p(),O(o.existsPaymentDetails&&(o.data.journalEntry.transactionDetails.paymentDetails!=null&&o.data.journalEntry.transactionDetails.paymentDetails.bankNumber)?69:-1),p(),O(o.existsPaymentDetails?70:-1),p(3),T(E(74,57,"labels.inputs.Submitted on")),p(3),T(E(77,59,o.data.journalEntry.submittedOnDate)),p(4),T(E(81,61,"labels.buttons.Close")))},dependencies:[ge,Ce,yt,xn,zn,Nn,Rn,Bo,Pe,fa,Ns],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 z2e=t=>({revert:!0,comments:t}),N2e=()=>({redirect:!0});function F2e(t,i){if(t&1&&(h(0,"div")(1,"h1",0),C(2),k(3,"translate"),_(),h(4,"div",1)(5,"p"),C(6),k(7,"translate"),_(),h(8,"mat-form-field",2)(9,"mat-label"),C(10),k(11,"translate"),_(),F(12,"textarea",3),_()(),h(13,"mat-dialog-actions",4)(14,"button",5),C(15),k(16,"translate"),_(),h(17,"button",6),C(18),k(19,"translate"),_()()()),t&2){let e=w();p(2),T(E(3,7,"labels.heading.Revert Transaction")),p(4),T(E(7,9,"labels.text.Revert this transaction?")),p(4),T(E(11,11,"labels.inputs.Comments")),p(2),S("formControl",e.comments),p(3),T(E(16,13,"labels.buttons.No")),p(2),S("mat-dialog-close",zo(17,z2e,e.comments.value)),p(),te(" ",E(19,15,"labels.buttons.Yes")," ")}}function V2e(t,i){if(t&1&&(h(0,"h1",0),C(1),k(2,"translate"),_(),h(3,"div",1)(4,"h4"),C(5),k(6,"translate"),_(),h(7,"p"),C(8),k(9,"translate"),_(),h(10,"p"),C(11),k(12,"translate"),_()(),h(13,"mat-dialog-actions",4)(14,"button",5),C(15),k(16,"translate"),_(),h(17,"button",6),C(18),k(19,"translate"),_()()),t&2){let e=w();p(),T(E(2,8,"labels.heading.Transaction Reverted")),p(4),T(E(6,10,"labels.heading.Success!")),p(3),T(E(9,12,"labels.text.Journal entry reverse transaction")),p(3),Et("",E(12,14,"labels.text.Transaction ID"),": ",e.data.transactionId),p(4),T(E(16,16,"labels.buttons.Close")),p(2),S("mat-dialog-close",Ro(20,N2e)),p(),te(" ",E(19,18,"labels.buttons.Redirect to New Transaction")," ")}}var gN=(()=>{class t{constructor(){this.dialogRef=d(Yt),this.data=d(In),this.comments=new Yi("")}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&&I(0,F2e,20,19,"div")(1,V2e,20,21),n&2&&O(o.data.reverted?1:0)},dependencies:[ge,Ce,wi,fn,Ti,Ht,Cn,oi,yt,xn,zn,Nn,Rn,Pe],encapsulation:2})}}return t})();var _N=(()=>{class t{constructor(){this.http=d(kn)}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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function B2e(t,i){t&1&&(h(0,"span"),F(1,"fa-icon",18),C(2),k(3,"translate"),_()),t&2&&(p(2),te("",E(3,1,"labels.buttons.Revert Transaction")," "))}function j2e(t,i){t&1&&(h(0,"span"),C(1),k(2,"translate"),_()),t&2&&(p(),T(E(2,1,"labels.buttons.Transaction Reverted")))}function H2e(t,i){if(t&1){let e=le();h(0,"button",17),N("click",function(){U(e);let o=w(3);return $(o.revertTransaction())}),I(1,B2e,4,3,"span"),I(2,j2e,3,3,"span"),_()}if(t&2){let e=w(3);S("disabled",e.dataSource==null?null:e.dataSource.data[0].reversed),p(),O(e.dataSource.data[0].reversed?-1:1),p(),O(e.dataSource.data[0].reversed?2:-1)}}function U2e(t,i){t&1&&(h(0,"div",1),Xe(1,H2e,3,3,"button",16),_()),t&2&&(p(),S("mifosxHasPermission","REVERSE_JOURNALENTRY"))}function $2e(t,i){t&1&&(h(0,"div",21),C(1),k(2,"translate"),_()),t&2&&(p(),te(" ",E(2,1,"labels.inputs.External Asset Owner")," "))}function G2e(t,i){if(t&1&&(h(0,"div",22),C(1),_()),t&2){let e=w(4);p(),te(" ",e.dataSource.data[0].externalAssetOwner," ")}}function W2e(t,i){if(t&1&&(h(0,"mat-card",19)(1,"mat-card-content")(2,"div",20)(3,"div",21),C(4),k(5,"translate"),_(),h(6,"div",22),C(7),_(),h(8,"div",21),C(9),k(10,"translate"),_(),h(11,"div",22),C(12),k(13,"dateFormat"),_(),h(14,"div",21),C(15),k(16,"translate"),_(),h(17,"div",22),C(18),_(),h(19,"div",21),C(20),k(21,"translate"),_(),h(22,"div",22),C(23),k(24,"datetimeFormat"),_(),h(25,"div",21),C(26),k(27,"translate"),_(),h(28,"div",22),C(29),k(30,"yesNo"),_(),I(31,$2e,3,3,"div",21),I(32,G2e,2,1,"div",22),_()()()),t&2){let e=w(3);S("ngClass",Vt(e.journalEntryColor())),p(4),te(" ",E(5,14,"labels.inputs.Office")," "),p(3),te(" ",e.dataSource.data[0].officeName," "),p(2),te(" ",E(10,16,"labels.inputs.Transaction Date")," "),p(3),te(" ",E(13,18,e.dataSource.data[0].transactionDate)," "),p(3),te(" ",E(16,20,"labels.inputs.Created By")," "),p(3),te(" ",e.dataSource.data[0].createdByUserName," "),p(2),te(" ",E(21,22,"labels.inputs.Submitted on")," "),p(3),te(" ",E(24,24,e.dataSource.data[0].submittedOnDate)," "),p(3),te(" ",E(27,26,"labels.inputs.Manual Journal Entry")," "),p(3),te(" ",E(30,28,e.dataSource.data[0].manualEntry)," "),p(2),O(e.dataSource.data[0].externalAssetOwner?31:-1),p(),O(e.dataSource.data[0].externalAssetOwner?32:-1)}}function q2e(t,i){if(t&1&&(h(0,"div",0),I(1,W2e,33,30,"mat-card",19),_()),t&2){let e=w(2);p(),O(e.dataSource?1:-1)}}function Y2e(t,i){t&1&&(h(0,"th",23),C(1),k(2,"translate"),_()),t&2&&(p(),te(" ",E(2,1,"labels.inputs.Entry ID")," "))}function Q2e(t,i){if(t&1&&(h(0,"td",24),C(1),_()),t&2){let e=i.$implicit;p(),T(e.id)}}function K2e(t,i){t&1&&(h(0,"th",23),C(1),k(2,"translate"),_()),t&2&&(p(),te(" ",E(2,1,"labels.inputs.Type")," "))}function X2e(t,i){if(t&1&&(h(0,"td",24),C(1),_()),t&2){let e=i.$implicit;p(),T(e.glAccountType.value)}}function Z2e(t,i){t&1&&(h(0,"th",23),C(1),k(2,"translate"),_()),t&2&&(p(),te(" ",E(2,1,"labels.inputs.Account Code")," "))}function J2e(t,i){if(t&1&&(h(0,"td",24),C(1),_()),t&2){let e=i.$implicit;p(),T(e.glAccountCode)}}function ede(t,i){t&1&&(h(0,"th",23),C(1),k(2,"translate"),_()),t&2&&(p(),te(" ",E(2,1,"labels.inputs.Account Name")," "))}function tde(t,i){if(t&1&&(h(0,"td",24),C(1),_()),t&2){let e=i.$implicit;p(),T(e.glAccountName)}}function nde(t,i){t&1&&(h(0,"th",23),C(1),k(2,"translate"),_()),t&2&&(p(),te(" ",E(2,1,"labels.inputs.Debit")," "))}function ide(t,i){if(t&1&&(h(0,"span"),C(1),k(2,"formatNumber"),_()),t&2){let e=w().$implicit;p(),Et(" ",e.currency.displaySymbol||e.currency.code," ",E(2,2,e.amount)," ")}}function ode(t,i){if(t&1&&(h(0,"td",24),I(1,ide,3,4,"span"),_()),t&2){let e=i.$implicit;p(),O(e.entryType.value==="DEBIT"?1:-1)}}function rde(t,i){t&1&&(h(0,"th",23),C(1),k(2,"translate"),_()),t&2&&(p(),te(" ",E(2,1,"labels.inputs.Credit")," "))}function ade(t,i){if(t&1&&(h(0,"span"),C(1),k(2,"formatNumber"),_()),t&2){let e=w().$implicit;p(),Et(" ",e.currency.displaySymbol||e.currency.code," ",E(2,2,e.amount)," ")}}function sde(t,i){if(t&1&&(h(0,"td",24),I(1,ade,3,4,"span"),_()),t&2){let e=i.$implicit;p(),O(e.entryType.value==="CREDIT"?1:-1)}}function cde(t,i){t&1&&F(0,"tr",25)}function lde(t,i){if(t&1){let e=le();h(0,"tr",26),N("click",function(){let o=U(e).$implicit,r=w(2);return $(r.viewJournalEntry(o))}),_()}}function dde(t,i){if(t&1){let e=le();h(0,"div"),I(1,U2e,2,1,"div",1),I(2,q2e,2,1,"div",0),h(3,"div",2)(4,"table",3),Gi(5,4),Xe(6,Y2e,3,3,"th",5)(7,Q2e,2,1,"td",6),Wi(),Gi(8,7),Xe(9,K2e,3,3,"th",5)(10,X2e,2,1,"td",6),Wi(),Gi(11,8),Xe(12,Z2e,3,3,"th",5)(13,J2e,2,1,"td",6),Wi(),Gi(14,9),Xe(15,ede,3,3,"th",5)(16,tde,2,1,"td",6),Wi(),Gi(17,10),Xe(18,nde,3,3,"th",5)(19,ode,2,1,"td",6),Wi(),Gi(20,11),Xe(21,rde,3,3,"th",5)(22,sde,2,1,"td",6),Wi(),Xe(23,cde,1,0,"tr",12)(24,lde,1,0,"tr",13),_(),h(25,"div",14)(26,"button",15),N("click",function(){U(e);let o=w();return $(o.goBack())}),C(27),k(28,"translate"),_()()()()}if(t&2){let e=w();p(),O(e.dataSource!=null&&e.dataSource.data[0].manualEntry?1:-1),p(),O(e.isViewTransaction()?2:-1),p(2),S("dataSource",e.dataSource),p(19),S("matHeaderRowDef",e.displayedColumns),p(),S("matRowDefColumns",e.displayedColumns),p(3),te(" ",E(28,6,"labels.buttons.Back")," ")}}function ude(t,i){if(t&1){let e=le();h(0,"div",0)(1,"div",27)(2,"div",28),F(3,"i",29),C(4),k(5,"translate"),_()(),h(6,"div",14)(7,"button",15),N("click",function(){U(e);let o=w();return $(o.goBack())}),C(8),k(9,"translate"),_()()()}t&2&&(p(4),te(" ",E(5,2,"labels.text.No data found")," "),p(4),te(" ",E(9,4,"labels.buttons.Back")," "))}var bN=(()=>{class t{constructor(){this.accountingService=d(_N),this.route=d(po),this.router=d(So),this.dialog=d(Zi),this.location=d(ar),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 zu(this.journalEntriesData):(this.dataSource=new zu(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(r6,{data:{journalEntry:e}})}revertTransaction(e){this.dialog.open(gN,{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&&(me(Kb,7),me(xh,7)),n&2){let r;G(r=W())&&(o.paginator=r.first),G(r=W())&&(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&&(I(0,dde,29,8,"div"),I(1,ude,10,6,"div",0)),n&2&&(O(o.isJournalEntryLoaded?0:-1),p(),O(o.isJournalEntryLoaded?-1:1))},dependencies:[ge,$n,Ce,dI,uI,yt,Fs,Qt,Th,xh,Ah,Lh,Rh,_z,Ph,zh,Nh,Vh,Fh,Bh,Bo,Pe,fa,Ns,ap],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}"]})}}return t})();function mde(t,i){if(t&1){let e=le();h(0,"span",3),N("click",function(){U(e);let o=w();return $(o.copyValue())}),h(1,"b"),F(2,"fa-icon",4),k(3,"translate"),_()()}t&2&&(p(2),S("title",Vt(E(3,2,"labels.text.Copy Account Number"))))}function pde(t,i){if(t&1&&(h(0,"span",1)(1,"a",5),C(2),_()()),t&2){let e=w();p(),S("href",Vt(e.getAccountLink()),M1),p(),T(e.accountNo)}}function fde(t,i){if(t&1&&(h(0,"span",1),C(1),_()),t&2){let e=w();p(),T(e.accountNo)}}function hde(t,i){if(t&1){let e=le();h(0,"span",6),N("click",function(){U(e);let o=w();return $(o.copyValue())}),h(1,"b"),F(2,"fa-icon",4),k(3,"translate"),_()()}t&2&&(p(2),S("title",Vt(E(3,2,"labels.text.Copy Account Number"))))}var vN=(()=>{class t{constructor(){this.clipboard=d($2),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()}),I(1,mde,4,4,"span",1),I(2,pde,3,3,"span",1),I(3,fde,2,1,"span",1),I(4,hde,4,4,"span",2),_()),n&2&&(p(),O(o.displayL&&o.iconVisible?1:-1),p(),O(o.accountType?2:-1),p(),O(o.accountType?-1:3),p(),O(o.displayR&&o.iconVisible?4:-1))},dependencies:[ge,Ce,Qt,Pe],encapsulation:2})}}return t})();function gde(t,i){if(t&1){let e=le();h(0,"span",3),N("click",function(){U(e);let o=w();return $(o.copyValue())}),h(1,"b"),F(2,"fa-icon",4),k(3,"translate"),_()()}t&2&&(p(2),S("title",Vt(E(3,2,"labels.text.Copy Account Number"))))}function _de(t,i){if(t&1){let e=le();h(0,"span",5),N("click",function(){U(e);let o=w();return $(o.copyValue())}),h(1,"b"),F(2,"fa-icon",4),k(3,"translate"),_()()}t&2&&(p(2),S("title",Vt(E(3,2,"labels.text.Copy Account Number"))))}var yN=(()=>{class t{constructor(){this.clipboard=d($2),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()}),I(1,gde,4,4,"span",1),h(2,"span",1)(3,"b"),C(4),_()(),I(5,_de,4,4,"span",2),_()),n&2&&(p(),O(o.displayL&&o.iconVisible?1:-1),p(3),T(o.entityName),p(),O(o.displayR&&o.iconVisible?5:-1))},dependencies:[ge,Ce,Qt,Pe],encapsulation:2})}}return t})();function bde(t,i){if(t&1&&(ot(0,"tr")(1,"td",4),C(2),k(3,"translate"),st(),ot(4,"td"),C(5),st()()),t&2){let e=w(2);p(2),T(E(3,2,"labels.inputs.Account No")),p(3),T(e.paymentDetailData.accountNumber)}}function vde(t,i){if(t&1&&(ot(0,"tr")(1,"td",4),C(2),k(3,"translate"),st(),ot(4,"td"),C(5),st()()),t&2){let e=w(2);p(2),T(E(3,2,"labels.inputs.Cheque Number")),p(3),T(e.paymentDetailData.checkNumber)}}function yde(t,i){if(t&1&&(ot(0,"tr")(1,"td",4),C(2),k(3,"translate"),st(),ot(4,"td",4),C(5),st()()),t&2){let e=w(2);p(2),T(E(3,2,"labels.inputs.Routing Code")),p(3),T(e.paymentDetailData.routingCode)}}function Cde(t,i){if(t&1&&(ot(0,"tr")(1,"td",4),C(2),k(3,"translate"),st(),ot(4,"td"),C(5),st()()),t&2){let e=w(2);p(2),T(E(3,2,"labels.inputs.Receipt No")),p(3),T(e.paymentDetailData.receiptNumber)}}function xde(t,i){if(t&1&&(ot(0,"tr")(1,"td",4),C(2),k(3,"translate"),st(),ot(4,"td"),C(5),st()()),t&2){let e=w(2);p(2),T(E(3,2,"labels.inputs.Bank No")),p(3),T(e.paymentDetailData.bankNumber)}}function Mde(t,i){if(t&1&&(ot(0,"table")(1,"tbody")(2,"tr")(3,"td",3),C(4),k(5,"translate"),st()(),I(6,bde,6,4,"tr"),I(7,vde,6,4,"tr"),I(8,yde,6,4,"tr"),I(9,Cde,6,4,"tr"),I(10,xde,6,4,"tr"),st()()),t&2){let e=w();p(4),T(E(5,6,"labels.inputs.Payment Details")),p(2),O(e.isNotNullOrEmpty(e.paymentDetailData.accountNumber)?6:-1),p(),O(e.isNotNullOrEmpty(e.paymentDetailData.checkNumber)?7:-1),p(),O(e.isNotNullOrEmpty(e.paymentDetailData.routingCode)?8:-1),p(),O(e.isNotNullOrEmpty(e.paymentDetailData.receiptNumber)?9:-1),p(),O(e.isNotNullOrEmpty(e.paymentDetailData.bankNumber)?10:-1)}}var CN=(()=>{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&&(ot(0,"div",0)(1,"div",1),C(2),k(3,"translate"),st(),ot(4,"div",2),C(5),st()(),I(6,Mde,11,8,"table")),n&2&&(p(2),te(" ",E(3,3,"labels.inputs.Payment Type")," "),p(3),te(" ",o.paymentDetailData.paymentType.name," "),p(),O(o.hasSomeValue()?6:-1))},dependencies:[ge,Ce,Pe],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 xN=(()=>{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),C(3),k(4,"translate"),_(),h(5,"button",3),C(6),k(7,"translate"),F(8,"fa-icon",4),_()()),n&2&&(p(),S("disabled",o.disablePrevious),p(2),te(" ",E(4,4,"labels.buttons.Previous")," "),p(2),S("disabled",o.disableNext),p(),te(" ",E(7,6,"labels.buttons.Next")," "))},dependencies:[ge,Ce,yt,Qt,xz,Cz,Pe],encapsulation:2})}}return t})();function wde(t,i){if(t&1&&(h(0,"mat-option",4),C(1),_()),t&2){let e=i.$implicit;S("value",e.id),p(),te(" ","("+e.glCode+") "+e.name," ")}}function Dde(t,i){t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),k(3,"translate"),h(4,"strong"),C(5),k(6,"translate"),_()()),t&2&&(p(),Et(" ",E(2,3,"labels.inputs.Account")," ",E(3,5,"labels.commons.is")," "),p(4),T(E(6,7,"labels.commons.required")))}function Sde(t,i){if(t&1&&(h(0,"mat-form-field",1)(1,"mat-label"),C(2),k(3,"translate"),_(),h(4,"mat-select",2)(5,"mat-option"),F(6,"ngx-mat-select-search",3),_(),et(7,wde,2,2,"mat-option",4,gt),k(9,"async"),_(),I(10,Dde,7,9,"mat-error"),_()),t&2){let e=w();p(2),T(E(3,8,"labels.inputs."+e.inputLabel)),p(2),S("formControl",e.inputFormControl),p(2),S("placeholderLabel",Vt(e.placeHolderLabel))("noEntriesFoundLabel",Vt(e.noEntriesFoundLabel))("formControl",e.filterFormCtrl),p(),tt(E(9,10,e.glAccountData)),p(3),O(e.inputFormControl.hasError("required")?10:-1)}}function kde(t,i){if(t&1&&(h(0,"mat-option",4),C(1),_()),t&2){let e=i.$implicit;S("value",e.id),p(),te(" ","("+e.glCode+") "+e.name," ")}}function Ede(t,i){if(t&1&&(h(0,"mat-form-field",1)(1,"mat-label"),C(2),k(3,"translate"),_(),h(4,"mat-select",5)(5,"mat-option"),F(6,"ngx-mat-select-search",6),_(),et(7,kde,2,2,"mat-option",4,gt),k(9,"async"),_()()),t&2){let e=w();p(2),T(E(3,7,"labels.inputs."+e.inputLabel)),p(2),S("formControl",e.inputFormControl),p(2),S("placeholderLabel",Vt(e.placeHolderLabel))("noEntriesFoundLabel",Vt(e.noEntriesFoundLabel))("formControl",e.filterFormCtrl),p(),tt(E(9,9,e.glAccountData))}}var MN=(()=>{class t{constructor(){this.translateService=d(Vo),this.glAccountList=[],this.required=!1,this.inputLabel="",this.glAccountData=new yr(1),this.filterFormCtrl=new Yi(""),this._onDestroy=new B,this.placeHolderLabel="",this.noEntriesFoundLabel=""}ngOnInit(){this.filterFormCtrl.valueChanges.pipe(xe(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:[ze],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),I(1,Sde,11,12,"mat-form-field",1),I(2,Ede,10,11,"mat-form-field",1),_()),n&2&&(p(),O(o.required?1:-1),p(),O(o.required?-1:2))},dependencies:[ge,Ce,fn,Fr,Ti,Ht,Cn,fo,Yn,un,$h,Cv,i0,Pe],encapsulation:2})}}return t})();function Ide(t,i){if(t&1&&(h(0,"span",0)(1,"div",2),C(2),k(3,"translate"),_(),h(4,"div",3),C(5),_()()),t&2){let e=w();p(),S("ngClass",e.getWithClass(e.withTitle)),p(),te(" ",E(3,4,"labels.inputs."+e.accountTitle)," "),p(2),S("ngClass",e.getWithClass(e.withAccount)),p(),te(" ",e.glAccountValue()," ")}}function Ode(t,i){if(t&1&&(h(0,"div",1),C(1),_()),t&2){let e=w();p(),te(" ",e.glAccountValue()," ")}}var a6=(()=>{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&&(I(0,Ide,6,6,"span",0),I(1,Ode,2,1,"div",1)),n&2&&(O(o.accountTitle?0:-1),p(),O(o.accountTitle?-1:1))},dependencies:[ge,$n,Ce,Pe],styles:["div[_ngcontent-%COMP%]{margin:.3rem 0;word-wrap:break-word}div.header[_ngcontent-%COMP%]{font-weight:500}"]})}}return t})();var wN=(()=>{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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Tde(t,i){if(t&1&&(h(0,"div",1)(1,"span",3),C(2),k(3,"translate"),_(),h(4,"span",4),C(5),k(6,"translate"),_()()),t&2){let e=w();p(2),te("",E(3,2,"labels.inputs.Type"),":"),p(3),T(E(6,4,"labels.accounting."+e.getAccountingRuleName(e.accountingRule.value)))}}function Pde(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=w(2);S("accountTitle","Overdraft portfolio")("glAccount",e.accountingMappings.overdraftPortfolioControl)("withTitle","40%")}}function Lde(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=w(2);S("accountTitle","Fees Receivable")("glAccount",e.accountingMappings.feeReceivableAccount)("withTitle","40%")}}function Ade(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=w(2);S("accountTitle","Penalties Receivable")("glAccount",e.accountingMappings.penaltyReceivableAccount)("withTitle","40%")}}function Rde(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=w(2);S("accountTitle","Interest Receivable")("glAccount",e.accountingMappings.interestReceivableAccount)("withTitle","40%")}}function zde(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=w(2);S("accountTitle","Interest Payable")("glAccount",e.accountingMappings.interestPayableAccount)("withTitle","40%")}}function Nde(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=w(2);S("accountTitle","Escheat liability")("glAccount",e.accountingMappings.escheatLiabilityAccount)("withTitle","40%")}}function Fde(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=w(2);S("accountTitle","Income from Interest")("glAccount",e.accountingMappings.incomeFromInterest)("withTitle","40%")}}function Vde(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=w(2);S("accountTitle","Write-off")("glAccount",e.accountingMappings.writeOffAccount)("withTitle","40%")}}function Bde(t,i){if(t&1&&(h(0,"div",2)(1,"h4",5),C(2),k(3,"translate"),_(),h(4,"div",6),F(5,"mifosx-gl-account-display",7),_(),h(6,"div",6),I(7,Pde,1,3,"mifosx-gl-account-display",7),_(),h(8,"div",6),I(9,Lde,1,3,"mifosx-gl-account-display",7),_(),h(10,"div",6),I(11,Ade,1,3,"mifosx-gl-account-display",7),I(12,Rde,1,3,"mifosx-gl-account-display",7),h(13,"h4",5),C(14),k(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),I(21,zde,1,3,"mifosx-gl-account-display",7),_(),h(22,"div",6),I(23,Nde,1,3,"mifosx-gl-account-display",7),_(),h(24,"h4",5),C(25),k(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),I(32,Fde,1,3,"mifosx-gl-account-display",7),_(),h(33,"h4",5),C(34),k(35,"translate"),_(),h(36,"div",6),F(37,"mifosx-gl-account-display",7),_(),h(38,"div",6),I(39,Vde,1,3,"mifosx-gl-account-display",7),_()()()),t&2){let e=w();p(2),T(E(3,30,"labels.heading.Assets")),p(3),S("accountTitle","Saving reference")("glAccount",e.accountingMappings.savingsReferenceAccount)("withTitle","40%"),p(2),O(e.accountingMappings.overdraftPortfolioControl?7:-1),p(2),O(e.isAccrualAccounting()?9:-1),p(2),O(e.isAccrualAccounting()?11:-1),p(),O(e.isAccrualAccounting()?12:-1),p(2),T(E(15,32,"labels.heading.Liabilities")),p(3),S("accountTitle","Saving control")("glAccount",e.accountingMappings.savingsControlAccount)("withTitle","40%"),p(2),S("accountTitle","Savings transfers in suspense")("glAccount",e.accountingMappings.transfersInSuspenseAccount)("withTitle","40%"),p(2),O(e.isAccrualAccounting()?21:-1),p(2),O(e.accountingMappings.escheatLiabilityAccount?23:-1),p(2),T(E(26,34,"labels.heading.Income")),p(3),S("accountTitle","Income from fees")("glAccount",e.accountingMappings.incomeFromFeeAccount)("withTitle","40%"),p(2),S("accountTitle","Income from penalties")("glAccount",e.accountingMappings.incomeFromPenaltyAccount)("withTitle","40%"),p(2),O(e.accountingMappings.incomeFromInterest?32:-1),p(2),T(E(35,36,"labels.heading.Expenses")),p(3),S("accountTitle","Interest on savings")("glAccount",e.accountingMappings.interestOnSavingsAccount)("withTitle","40%"),p(2),O(e.accountingMappings.writeOffAccount?39:-1)}}var DN=(()=>{class t{constructor(){this.accounting=d(wN),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),I(1,Tde,7,6,"div",1),h(2,"div",2),I(3,Bde,40,38,"div",2),_()()),n&2&&(p(),O(o.accountingRule?1:-1),p(2),O(o.isCashOrAccrualAccounting()?3:-1))},dependencies:[ge,Ce,a6,Pe],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 SN=(()=>{class t{constructor(){this.ref=d(pi),this.darkModeOn=!1,this.themes=["dark-theme","light-theme"],this.theme=new dt("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=z({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var kN=(()=>{class t{constructor(){this.themingService=d(SN),this.settingsService=d(Jt)}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:[ze],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"),C(2),_()()),n&2&&(p(2),T(o.darkModeOn?"wb_sunny":"nights_stay"))},dependencies:[ge,Ce,ri,Io],encapsulation:2})}}return t})();function jde(t,i){if(t&1){let e=le();h(0,"span",3),N("click",function(){U(e);let o=w(2);return $(o.showValue())}),F(1,"fa-icon",4),_()}if(t&2){let e=w(2);p(),S("title",e.textValue)}}function Hde(t,i){if(t&1){let e=le();h(0,"span",5),N("click",function(){U(e);let o=w(2);return $(o.showValue())}),C(1),k(2,"truncateText"),_()}if(t&2){let e=w(2);p(),te("",rr(2,1,e.textValue,e.printChars),"...")}}function Ude(t,i){if(t&1){let e=le();h(0,"span",5),N("click",function(){U(e);let o=w(2);return $(o.showValue())}),C(1),_()}if(t&2){let e=w(2);p(),T(e.textValue)}}function $de(t,i){if(t&1){let e=le();h(0,"span",0),N("mouseenter",function(){U(e);let o=w();return $(o.mouseEnter())})("mouseleave",function(){U(e);let o=w();return $(o.mouseLeave())}),I(1,jde,2,1,"span",1),I(2,Hde,3,4,"span",2),I(3,Ude,2,1,"span",2),_()}if(t&2){let e=w();p(),O(e.isLongValue()?1:-1),p(),O(e.isLongValue()?2:-1),p(),O(e.isLongValue()?-1:3)}}var EN=(()=>{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&&I(0,$de,4,3,"span"),n&2&&O(o.emptyValue?-1:0)},dependencies:[ge,Ce,Qt,rp],encapsulation:2})}}return t})();function Gde(t,i){if(t&1&&(h(0,"mat-option",2),C(1),k(2,"translateKey"),_()),t&2){let e=i.$implicit;S("value",e.id),p(),te(" ",rr(2,2,e.value,"catalogs")," ")}}function Wde(t,i){if(t&1){let e=le();h(0,"button",4),N("click",function(o){U(e);let r=w();return $(r.clearProperty(o))}),h(1,"mat-icon"),C(2),k(3,"translate"),_()()}t&2&&(p(2),T(E(3,1,"labels.buttons.Close")))}var IN=(()=>{class t{constructor(){this.translateService=d(Vo),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"),C(2),_(),h(3,"mat-select",1),et(4,Gde,3,5,"mat-option",2,gt),_(),I(6,Wde,4,3,"button",3),_()),n&2&&(p(2),T(o.getLabelText()),p(),S("placeholder",Vt(o.getPlaceHolderText())),p(),tt(o.selectOptions),p(2),O(o.controlSelect?6:-1))},dependencies:[ge,Ce,fn,jo,Ht,Cn,os,Yn,un,ri,Io,Pe,Zc],encapsulation:2})}}return t})();function qde(t,i){if(t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),k(3,"translate"),h(4,"strong"),C(5),k(6,"translate"),_()()),t&2){let e=w(2);p(),Et(" ",E(2,3,"labels.inputs."+e.inputLabel)," ",E(3,5,"labels.commons.is")," "),p(4),T(E(6,7,"labels.commons.required"))}}function Yde(t,i){if(t&1&&(h(0,"mat-hint",4),C(1),k(2,"currency"),_()),t&2){let e=w(2);p(),T(_m(2,1,e.inputFormControl.value,e.currency.code,e.currency.displaySymbol,"1.2-2"))}}function Qde(t,i){if(t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),k(3,"translate"),_()),t&2){let e=w(2);p(),Qa(" ",E(2,3,"labels.inputs.Amount")," ",E(3,5,"labels.commons.Must be at least")," ",e.minVal," ")}}function Kde(t,i){if(t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),k(3,"translate"),_()),t&2){let e=w(2);p(),Qa(" ",E(2,3,"labels.inputs.Amount")," ",E(3,5,"labels.commons.Must be less or equal to")," ",e.maxVal," ")}}function Xde(t,i){if(t&1){let e=le();h(0,"mat-form-field",0)(1,"mat-label"),C(2),k(3,"translate"),_(),h(4,"div",2)(5,"span"),C(6),_(),h(7,"input",3),N("keypress",function(o){U(e);let r=w();return $(r.numberOnly(o))})("blur",function(){U(e);let o=w();return $(o.displayHint=!1)})("focus",function(){U(e);let o=w();return $(o.displayHint=!0)}),_()(),I(8,qde,7,9,"mat-error"),I(9,Yde,3,6,"mat-hint",4),I(10,Qde,4,7,"mat-error"),I(11,Kde,4,7,"mat-error"),_()}if(t&2){let e=w();p(2),T(E(3,10,"labels.inputs."+e.inputLabel)),p(4),T(e.currency.code),p(),S("mifosxFormatAmount",hm("",e.currency.code,":",e.currency.displaySymbol))("formControl",e.inputFormControl),p(),O(e.inputFormControl.hasError("required")?8:-1),p(),O(e.displayHint?9:-1),p(),O(e.minVal&&e.inputFormControl.hasError("min")?10:-1),p(),O(e.maxVal&&e.inputFormControl.hasError("max")?11:-1)}}function Zde(t,i){if(t&1&&(h(0,"mat-hint",4),C(1),k(2,"currency"),_()),t&2){let e=w(2);p(),T(_m(2,1,e.inputFormControl.value,e.currency.code,e.currency.displaySymbol,"1.2-2"))}}function Jde(t,i){if(t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),k(3,"translate"),_()),t&2){let e=w(2);p(),Qa(" ",E(2,3,"labels.inputs.Amount")," ",E(3,5,"labels.commons.Must be at least")," ",e.minVal," ")}}function e0e(t,i){if(t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),k(3,"translate"),_()),t&2){let e=w(2);p(),Qa(" ",E(2,3,"labels.inputs.Amount")," ",E(3,5,"labels.commons.Must be less or equal to")," ",e.maxVal," ")}}function t0e(t,i){if(t&1){let e=le();h(0,"mat-form-field",1)(1,"mat-label"),C(2),k(3,"translate"),_(),h(4,"span",5),C(5),_(),F(6,"span",6),h(7,"input",7),N("keypress",function(o){U(e);let r=w();return $(r.numberOnly(o))})("blur",function(){U(e);let o=w();return $(o.displayHint=!1)})("focus",function(){U(e);let o=w();return $(o.displayHint=!0)}),_(),I(8,Zde,3,6,"mat-hint",4),I(9,Jde,4,7,"mat-error"),I(10,e0e,4,7,"mat-error"),_()}if(t&2){let e=w();p(2),T(E(3,9,"labels.inputs."+e.inputLabel)),p(3),T(e.currency.code),p(2),S("mifosxFormatAmount",hm("",e.currency.code,":",e.currency.displaySymbol))("formControl",e.inputFormControl),p(),O(e.displayHint?8:-1),p(),O(e.minVal&&e.inputFormControl.hasError("min")?9:-1),p(),O(e.maxVal&&e.inputFormControl.hasError("max")?10:-1)}}var ON=(()=>{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&&(I(0,Xde,12,12,"mat-form-field",0),I(1,t0e,11,11,"mat-form-field",1)),n&2&&(O(o.isRequired?0:-1),p(),O(o.isRequired?-1:1))},dependencies:[ge,Ce,wi,fn,Fr,Ti,Ht,Cn,fo,os,eu,oi,kk,S7,Pe],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 TN=(()=>{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=Ft(2);S("for",r)}},dependencies:[ge,Ce,mu,zf],encapsulation:2})}}return t})();var fnt=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t})}static{this.\u0275inj=Z({imports:[ge,Pb,xv,Ce,K7,NS,Ek,Ff,as,Gr,VO,Zf,kP,EP,VP,qP,YP,QP,XP,aL,ZP,oL,rL,sL,cL,nN,oN,pN,fN,o6,i6,hN,r6,bN,vN,yN,CN,xN,MN,a6,DN,kN,EN,IN,ON,sh,TN,ge,Pb,xv,Sk,Ce,K7]})}}return t})();export{Ee as a,Fe as b,B as c,dt as d,yr as e,Sn as f,Yue as g,Kt as h,re as i,Co as j,ue as k,Kn as l,rn as m,Ra as n,sd as o,za as p,mt as q,Oe as r,Xn as s,To as t,Ve as u,Zl as v,Mr as w,xo as x,xs as y,kc as z,Qe as A,rt as B,xe as C,Dt as D,fe as E,It as F,z as G,Z as H,L as I,be as J,d as K,U as L,$ as M,Gt as N,ir as O,ye as P,De as Q,$i as R,or as S,ze as T,Te as U,X as V,Wc as W,Nd as X,Bn as Y,qc as Z,M1 as _,uM as $,qU as aa,YU as ba,p as ca,j as da,se as ea,it as fa,Tn as ga,Je as ha,Me as ia,P as ja,J as ka,R as la,ce as ma,Xe as na,k1 as oa,ne as pa,U5 as qa,I as ra,O as sa,gt as ta,et as ua,tt as va,S as wa,h as xa,_ as ya,F as za,ot as Aa,st as Ba,Pn as Ca,Gi as Da,Wi as Ea,jt as Fa,le as Ga,At as Ha,N as Ia,w as Ja,ke as Ka,ae as La,Ie as Ma,me as Na,G as Oa,W as Pa,Ft as Qa,Rt as Ra,oe as Sa,Pt as Ta,C as Ua,T as Va,te as Wa,Et as Xa,Qa as Ya,Nw as Za,I1 as _a,Yd as $a,O1 as ab,Vt as bb,Qc as cb,de as db,Ro as eb,zo as fb,T1 as gb,k as hb,E as ib,rr as jb,iq as kb,_m as lb,Ls as mb,we as nb,Ar as ob,ar as pb,$n as qb,GD as rb,M7 as sb,WD as tb,rY as ub,w7 as vb,As as wb,i0 as xb,cY as yb,D7 as zb,A1 as Ab,mY as Bb,o0 as Cb,S7 as Db,ge as Eb,Eve as Fb,XD as Gb,z7 as Hb,OY as Ib,LY as Jb,N1 as Kb,d0 as Lb,xi as Mb,ee as Nb,u0 as Ob,z1 as Pb,kn as Qb,Km as Rb,iQ as Sb,oQ as Tb,yS as Ub,Xa as Vb,pc as Wb,yre as Xb,Eb as Yb,ch as Zb,cVe as _b,Su as $b,Cre as ac,lh as bc,Sb as cc,kb as dc,xre as ec,$o as fc,po as gc,Q_ as hc,ZE as ic,So as jc,v2 as kc,fZ as lc,vZ as mc,ol as nc,Bp as oc,ri as pc,yt as qc,_Pe as rc,Eo as sc,qn as tc,tc as uc,ki as vc,ho as wc,$I as xc,Li as yc,pce as zc,Yt as Ac,In as Bc,Zi as Cc,Rn as Dc,xn as Ec,zn as Fc,Nn as Gc,z9 as Hc,V1 as Ic,f0 as Jc,Vo as Kc,Pe as Lc,K7 as Mc,Ge as Nc,OP as Oc,zs as Pc,fp as Qc,gxe as Rc,wo as Sc,Jt as Tc,US as Uc,gp as Vc,fi as Wc,wi as Xc,on as Yc,fn as Zc,cr as _c,gk as $c,Q1 as ad,Yi as bd,qQ as cd,js as dd,QQ as ed,Ti as fd,hi as gd,yk as hd,Ck as id,jo as jd,nK as kd,oK as ld,Fr as md,sK as nd,lK as od,dK as pd,Hs as qd,Sk as rd,Ce as sd,dI as td,Dke as ud,Ske as vd,uI as wd,kke as xd,Eke as yd,Ike as zd,Oke as Ad,Tke as Bd,Cn as Cd,fo as Dd,eu as Ed,tu as Fd,os as Gd,Ht as Hd,Cf as Id,oi as Jd,un as Kd,bo as Ld,Yn as Md,TJ as Nd,vo as Od,zf as Pd,Nf as Qd,mu as Rd,dl as Sd,Bo as Td,Zc as Ud,Fs as Vd,dh as Wd,SN as Xd,Qt as Yd,DP as Zd,lr as _d,as as $d,Gr as ae,VO as be,Zf as ce,N2 as de,uc as ee,kP as fe,EP as ge,wl as he,mc as ie,th as je,Db as ke,NP as le,VP as me,ih as ne,Io as oe,qP as pe,YP as qe,QP as re,XP as se,ZP as te,JP as ue,oL as ve,rL as we,aL as xe,sL as ye,cL as ze,DR as Ae,OBe as Be,TBe as Ce,PR as De,kje as Ee,Fae as Fe,$ae as Ge,jR as He,tse as Ie,nse as Je,$He as Ke,GHe as Le,WHe as Me,gUe as Ne,_Ue as Oe,bUe as Pe,vUe as Qe,Kb as Re,ez as Se,nz as Te,r$e as Ue,Fse as Ve,sz as We,lz as Xe,Xse as Ye,Y$e as Ze,nce as _e,xh as $e,_z as af,bz as bf,nv as cf,$ce as df,Wce as ef,qce as ff,Cz as gf,xz as hf,Th as if,Ph as jf,Lh as kf,sqe as lf,Ah as mf,Rh as nf,cqe as of,zh as pf,Nh as qf,lqe as rf,Fh as sf,Vh as tf,dqe as uf,Bh as vf,uqe as wf,Oz as xf,zu as yf,yle as zf,xle as Af,Mle as Bf,jqe as Cf,kle as Df,Ele as Ef,Hqe as Ff,eYe as Gf,qz as Hf,Yz as If,AYe as Jf,RYe as Kf,zYe as Lf,NYe as Mf,Xz as Nf,FYe as Of,VYe as Pf,Zz as Qf,Jz as Rf,eN as Sf,Cv as Tf,$h as Uf,nN as Vf,SS as Wf,kS as Xf,ES as Yf,fa as Zf,OS as _f,Ns as $f,AS as ag,ap as bg,NS as cg,Gh as dg,iN as eg,Wh as fg,qh as gg,oN as hg,sN as ig,cN as jg,lN as kg,dN as lg,uN as mg,mN as ng,pN as og,vMe as pg,Ek as qg,Zh as rg,e6 as sg,t6 as tg,n6 as ug,fN as vg,hN as wg,gN as xg,_N as yg,bN as zg,vN as Ag,yN as Bg,CN as Cg,xN as Dg,MN as Eg,a6 as Fg,wN as Gg,DN as Hg,kN as Ig,EN as Jg,ON as Kg,fnt as Lg}; + `;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})(),HN=e2e;var Zh=function(){return Zh=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(gs.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 u=this.getDragAllowedAxises(0,e),f=u.allowY,g=u.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 y=this.getPossibleSwipeDragCords(e),x,D,Y=r-this.pageX,Q=a-this.pageY;if(i-e>1){var K=(i-e)/Math.abs(e);Y=(e<0?-Y:Y)+this.left*(K+(e<0?-1:1)),Q=(e<0?-Q:Q)+this.top*(K+(e<0?-1:1)),x=Y/K,D=Q/K}else{var K=(i-e)*e;x=Y*K,D=Q*K}n&&(g?this.isBeyondPossibleLeft(x,y.minX)?x=y.minX:this.isBeyondPossibleRight(x,y.maxX)&&(x=y.maxX):i>1&&(xy.maxX&&(x=y.maxX)),f?this.isBeyondPossibleTop(D,y.minY)?D=y.minY:this.isBeyondPossibleBottom(D,y.maxY)&&(D=y.maxY):i>1&&(Dy.maxY&&(D=y.maxY))),this.setZoomStyles({x,y:D,scale:i}),this.left=x,this.top=D,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)},Nv),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")}},Nv+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},Nv+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(gs.containerResize+".zoom "+gs.rotateRight+".zoom "+gs.rotateLeft+".zoom "+gs.flipHorizontal+".zoom "+gs.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(gs.beforeOpen+".zoom",function(){i.core.outer.find(".lg-item").removeClass("lg-zoomable")}),this.core.LGel.on(gs.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(gs.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),u=e-c;if(!n&&Math.abs(u)>5&&(n=!0),n){r=i.scale;var f=Math.max(1,o+-u*.02);i.scale=Math.round((f+Number.EPSILON)*100)/100;var g=i.scale-r;i.zoomImage(i.scale,Math.round((g+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 u=c-i.scale;u===0&&(u=.01),i.zoomImage(c,u,!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,u=Math.abs(s)/r+1;c>2&&(c+=1),u>2&&(u+=1),a=a*c,s=s*u;var f=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),g={};g.x=this.left+a,g.y=this.top+s;var y=this.getPossibleSwipeDragCords();(Math.abs(a)>15||Math.abs(s)>15)&&(o&&(this.isBeyondPossibleTop(g.y,y.minY)?g.y=y.minY:this.isBeyondPossibleBottom(g.y,y.maxY)&&(g.y=y.maxY)),n&&(this.isBeyondPossibleLeft(g.x,y.minX)?g.x=y.minX:this.isBeyondPossibleRight(g.x,y.maxX)&&(g.x=y.maxX)),o?this.top=g.y:g.y=this.top,n?this.left=g.x:g.x=this.left,this.setZoomSwipeStyles(f,g),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 u=r.minX-a.x;a.x=r.minX-u/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,u=(a-this.containerRect.width)/2,f=(this.containerRect.width-a)/2,g={minY:s,maxY:c,minX:u,maxX:f};return g},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,u,f,g=this.core.getSlideItem(this.core.index);this.core.$inner.on("touchstart.lg",function(y){if(i.isImageSlide(i.core.index)&&(g=i.core.getSlideItem(i.core.index),(i.$LG(y.target).hasClass("lg-item")||g.get().contains(y.target))&&y.touches.length===1&&i.core.outer.hasClass("lg-zoomed"))){y.preventDefault(),s=new Date,i.core.touchAction="zoomSwipe",f=i.core.getSlideItem(i.core.index).find(".lg-img-wrap").first();var x=i.getDragAllowedAxises(0);a=x.allowY,r=x.allowX,(r||a)&&(e=i.getSwipeCords(y)),u=i.getPossibleSwipeDragCords(),i.core.outer.addClass("lg-zoom-dragging lg-zoom-drag-transition")}}),this.core.$inner.on("touchmove.lg",function(y){if(y.touches.length===1&&i.core.touchAction==="zoomSwipe"&&(i.$LG(y.target).hasClass("lg-item")||g.get().contains(y.target))){y.preventDefault(),i.core.touchAction="zoomSwipe",n=i.getSwipeCords(y);var x=i.getZoomSwipeCords(e,n,r,a,u);(Math.abs(n.x-e.x)>15||Math.abs(n.y-e.y)>15)&&(o=!0,i.setZoomSwipeStyles(f,x))}}),this.core.$inner.on("touchend.lg",function(y){if(i.core.touchAction==="zoomSwipe"&&(i.$LG(y.target).hasClass("lg-item")||g.get().contains(y.target))){if(y.preventDefault(),i.core.touchAction=void 0,i.core.outer.removeClass("lg-zoom-dragging"),!o)return;o=!1,c=new Date;var x=c.valueOf()-s.valueOf();i.touchendZoom(e,n,r,a,x)}})},t.prototype.zoomDrag=function(){var i=this,e={},n={},o=!1,r=!1,a=!1,s=!1,c,u,f,g;this.core.outer.on("mousedown.lg.zoom",function(y){if(i.isImageSlide(i.core.index)){var x=i.core.getSlideItem(i.core.index);if(i.$LG(y.target).hasClass("lg-item")||x.get().contains(y.target)){c=new Date,g=i.core.getSlideItem(i.core.index).find(".lg-img-wrap").first();var D=i.getDragAllowedAxises(0);s=D.allowY,a=D.allowX,i.core.outer.hasClass("lg-zoomed")&&i.$LG(y.target).hasClass("lg-object")&&(a||s)&&(y.preventDefault(),e=i.getDragCords(y),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(y){if(o){r=!0,n=i.getDragCords(y);var x=i.getZoomSwipeCords(e,n,a,s,f);i.setZoomSwipeStyles(g,x)}}),this.$LG(window).on("mouseup.lg.zoom.global"+this.core.lgId,function(y){if(o){if(u=new Date,o=!1,i.core.outer.removeClass("lg-zoom-dragging"),r&&(e.x!==n.x||e.y!==n.y)){n=i.getDragCords(y);var x=u.valueOf()-c.valueOf();i.touchendZoom(e,n,a,s,x)}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})(),UN=n2e;function i2e(t,i){t&1&&(C(0),k(1,"translate")),t&2&&te(" ",E(1,1,"labels.heading.Add Client Identifier")," ")}function o2e(t,i){if(t&1&&(C(0),k(1,"translate"),k(2,"translate")),t&2){let e=w();Ja(" ",E(1,3,"labels.heading.Upload")," ",e.entityType," ",E(2,5,"labels.heading.Documents")," ")}}function r2e(t,i){if(t&1&&(h(0,"mat-option",10),C(1),b()),t&2){let e=i.$implicit;S("value",e.id),p(),te(" ",e.name," ")}}function a2e(t,i){t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),k(3,"translate"),h(4,"strong"),C(5),k(6,"translate"),b()()),t&2&&(p(),Et(" ",E(2,3,"labels.inputs.Document Type")," ",E(3,5,"labels.commons.is")," "),p(4),O(E(6,7,"labels.commons.required")))}function s2e(t,i){if(t&1&&(h(0,"mat-option",10),C(1),b()),t&2){let e=i.$implicit;S("value",e.value),p(),te(" ",e.label," ")}}function c2e(t,i){t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),k(3,"translate"),h(4,"strong"),C(5),k(6,"translate"),b()()),t&2&&(p(),Et(" ",E(2,3,"labels.inputs.Status")," ",E(3,5,"labels.commons.is")," "),p(4),O(E(6,7,"labels.commons.required")))}function l2e(t,i){t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),k(3,"translate"),h(4,"strong"),C(5),k(6,"translate"),b()()),t&2&&(p(),Et(" ",E(2,3,"labels.inputs.Document Key")," ",E(3,5,"labels.commons.is")," "),p(4),O(E(6,7,"labels.commons.required")))}function d2e(t,i){if(t&1&&(h(0,"mat-form-field",3)(1,"mat-label"),C(2),k(3,"translate"),b(),h(4,"mat-select",9),et(5,r2e,2,2,"mat-option",10,gt),b(),I(7,a2e,7,9,"mat-error"),b(),h(8,"mat-form-field",3)(9,"mat-label"),C(10),k(11,"translate"),b(),h(12,"mat-select",11),et(13,s2e,2,2,"mat-option",10,gt),b(),I(15,c2e,7,9,"mat-error"),b(),h(16,"mat-form-field",3)(17,"mat-label"),C(18),k(19,"translate"),b(),F(20,"input",12),I(21,l2e,7,9,"mat-error"),b(),h(22,"mat-form-field",3)(23,"mat-label"),C(24),k(25,"translate"),b(),F(26,"input",13),b()),t&2){let e=w();p(2),O(E(3,7,"labels.inputs.Document Type")),p(3),tt(e.allowedDocumentTypes),p(2),T(e.uploadDocumentForm.controls.documentTypeId!=null&&e.uploadDocumentForm.controls.documentTypeId.hasError("required")?7:-1),p(3),O(E(11,9,"labels.inputs.Status")),p(3),tt(e.statusOptions),p(2),T(e.uploadDocumentForm.controls.status!=null&&e.uploadDocumentForm.controls.status.hasError("required")?15:-1),p(3),O(E(19,11,"labels.inputs.Document Key")),p(3),T(e.uploadDocumentForm.controls.documentKey!=null&&e.uploadDocumentForm.controls.documentKey.hasError("required")?21:-1),p(3),O(E(25,13,"labels.inputs.Description"))}}function u2e(t,i){t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),k(3,"translate"),h(4,"strong"),C(5),k(6,"translate"),b()()),t&2&&(p(),Et(" ",E(2,3,"labels.inputs.File Name")," ",E(3,5,"labels.commons.is")," "),p(4),O(E(6,7,"labels.commons.required")))}function m2e(t,i){t&1&&(h(0,"mat-form-field",3)(1,"mat-label"),C(2),k(3,"translate"),b(),F(4,"input",13),b()),t&2&&(p(2),O(E(3,1,"labels.inputs.Description")))}function p2e(t,i){t&1&&(C(0),k(1,"translate")),t&2&&te(" ",E(1,1,"labels.buttons.Add")," ")}function f2e(t,i){t&1&&(C(0),k(1,"translate")),t&2&&te(" ",E(1,1,"labels.buttons.Upload")," ")}var $N=(()=>{class t{constructor(){this.dialogRef=d(qt),this.formBuilder=d(Ws),this.data=d(Tn),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:["",on.required],status:["Active",on.required],documentKey:["",on.required],description:[""],fileName:["",on.required],file:[""]}):this.uploadDocumentForm=this.formBuilder.group({fileName:["",on.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=L({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),I(1,i2e,2,3)(2,o2e,3,7),b(),h(3,"div",1)(4,"form",2),I(5,d2e,27,15),h(6,"mat-form-field",3)(7,"mat-label"),C(8),k(9,"translate"),b(),F(10,"input",4),I(11,u2e,7,9,"mat-error"),b(),I(12,m2e,5,3,"mat-form-field",3),h(13,"mifosx-file-upload",5),N("change",function(a){return o.onFileSelect(a)}),b(),h(14,"mat-dialog-actions",6)(15,"button",7),C(16),k(17,"translate"),b(),h(18,"button",8),I(19,p2e,2,3)(20,f2e,2,3),b()()()()),n&2&&(p(),T(o.documentIdentifier?1:2),p(3),S("formGroup",o.uploadDocumentForm),p(),T(o.documentIdentifier?5:-1),p(3),O(E(9,10,"labels.inputs.File Name")),p(3),T(o.uploadDocumentForm.controls.fileName.hasError("required")?11:-1),p(),T(o.documentIdentifier?-1:12),p(4),O(E(17,12,"labels.buttons.Cancel")),p(2),S("disabled",!o.uploadDocumentForm.valid)("mat-dialog-close",o.uploadDocumentForm.value),p(),T(o.documentIdentifier?19:20))},dependencies:[ge,Ce,Gs,Di,fn,mr,Hr,gi,Go,Ht,Cn,bo,ri,Qn,un,yt,xn,eh,Fn,Rn,Le],encapsulation:2})}}return t})();var GN=(()=>{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 di(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 u=this.detectType(r.mimeType,e.fileName,e.fileData);return this.previewCache.set(e.id,{url:r.url,type:u,isObjectUrl:r.isObjectUrl}),{url:r.url,type:u}}let a=yield J6(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 h2e=["lightboxRoot"];function g2e(t,i){if(t&1){let e=le();h(0,"div",7)(1,"button",8),N("click",function(){U(e);let o=w();return $(o.uploadDocument())}),F(2,"fa-icon",9),C(3),k(4,"translate"),b()()}t&2&&(p(3),te("",E(4,1,"labels.buttons.Add")," "))}function _2e(t,i){if(t&1&&F(0,"img",13),t&2){let e=w().$implicit,n=w(2);S("src",n.previewThumbnails[e.id],k1)("alt",e.name)("title",e.name)}}function b2e(t,i){if(t&1&&(h(0,"div",14),F(1,"fa-icon",22),h(2,"span"),C(3),b()()),t&2){let e=w().$implicit;p(3),O(e.fileName||e.name)}}function v2e(t,i){t&1&&(h(0,"div",15),F(1,"fa-icon",23),b())}function y2e(t,i){if(t&1&&(h(0,"div",18),C(1),b()),t&2){let e=w().$implicit;p(),O(e.fileName)}}function C2e(t,i){if(t&1&&(h(0,"div",19),C(1),b()),t&2){let e=w().$implicit;p(),O(e.description)}}function x2e(t,i){if(t&1){let e=le();h(0,"button",24),k(1,"translate"),N("click",function(){U(e);let o=w().$implicit,r=w(2);return $(r.deleteDocument(o.id,o.name))}),F(2,"fa-icon",25),b()}t&2&&ne("aria-label",E(1,1,"labels.buttons.Delete"))}function M2e(t,i){if(t&1){let e=le();h(0,"div",11)(1,"div",12),k(2,"translate"),N("keydown.enter",function(){let o=U(e).$implicit,r=w(2);return $(r.isPreviewable(o)&&r.openPreview(o))})("keydown.space",function(){let o=U(e).$implicit,r=w(2);return $(r.isPreviewable(o)&&r.openPreview(o))})("click",function(){let o=U(e).$implicit,r=w(2);return $(r.isPreviewable(o)&&r.openPreview(o))}),I(3,_2e,1,3,"img",13)(4,b2e,4,1,"div",14),I(5,v2e,2,0,"div",15),b(),h(6,"div",16)(7,"div",17),C(8),b(),I(9,y2e,2,1,"div",18),I(10,C2e,2,1,"div",19),h(11,"div",20),Xe(12,x2e,3,3,"button",21),b()()()}if(t&2){let e=i.$implicit,n=w(2);p(),oe("clickable",n.isPreviewable(e)),ne("aria-label",E(2,9,"labels.buttons.Preview")+": "+e.name),p(2),T(n.previewThumbnails[e.id]?3:4),p(2),T(n.isPreviewable(e)?5:-1),p(3),O(e.name),p(),T(e.fileName?9:-1),p(),T(e.description?10:-1),p(2),S("mifosxHasPermission","DELETE_DOCUMENT")}}function w2e(t,i){if(t&1&&(h(0,"div")(1,"div",10),et(2,M2e,13,11,"div",11,G5().trackByDocumentId,!0),b()()),t&2){let e=w();p(2),tt(e.entityDocuments)}}function D2e(t,i){t&1&&(h(0,"div",5)(1,"p"),C(2),k(3,"translate"),b(),h(4,"p",26),C(5),k(6,"translate"),b()()),t&2&&(p(2),O(E(3,2,"labels.text.NoDocuments")),p(3),O(E(6,4,"labels.text.UploadDocumentHint")))}var WN=(()=>{class t{constructor(){this.dialog=d(Ji),this.savingsService=d(Qh),this.loansService=d(qh),this.clientsService=d(Yh),this.documentPreviewService=d(GN),this.previewThumbnails={},this.lightboxInstance=null,this.lightboxPlugins=[UN,HN,jN]}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($N,{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(Qr,{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 di(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=BN(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=L({type:t,selectors:[["mifosx-entity-documents-tab"]],viewQuery:function(n,o){if(n&1&&me(h2e,7),n&2){let r;G(r=W())&&(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),C(3),k(4,"translate"),b(),Xe(5,g2e,5,3,"div",4),b(),I(6,w2e,4,0,"div")(7,D2e,7,6,"div",5),b(),F(8,"div",6,0)),n&2&&(p(3),O(E(4,3,"labels.heading.Documents")),p(2),S("mifosxHasPermission","CREATE_DOCUMENT"),p(),T(o.entityDocuments!=null&&o.entityDocuments.length?6:7))},dependencies:[ge,Ce,yt,Hs,Qt,Le],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 Jh=class extends pr{constructor(i){super(i),this.controlType="checkbox"}};var e6=class extends pr{constructor(i={}){super(i),this.controlType="datepicker",this.minDate=i.minDate||new Date(2e3,0,1),this.maxDate=i.maxDate||new Date}};var t6=class extends pr{constructor(i={}){super(i),this.controlType="datetimepicker",this.minDate=i.minDate||new Date(2e3,0,1),this.maxDate=i.maxDate||new Date}};var n6=class extends pr{constructor(i={}){super(i),this.controlType="input",this.type=i.type||"text"}};var i6=class extends pr{constructor(i={}){super(i),this.controlType="select",this.options=i.options||{label:"",value:"",data:[]}}};var o6=(()=>{class t{constructor(){this.dateUtils=d(Eo),this.settingsService=d(Jt),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 n6({controlName:r.columnName,label:a,value:"",type:r.columnDisplayType==="INTEGER"||r.columnDisplayType==="DECIMAL"?"number":"text",required:!r.isColumnNullable});case"BOOLEAN":return new Jh({controlName:r.columnName,label:a,value:"",type:"checkbox",required:!r.isColumnNullable});case"CODELOOKUP":return new i6({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=Eo.DEFAULT_DATEFORMAT),new e6({controlName:r.columnName,label:a,value:"",maxDate:this.settingsService.maxAllowedDate,required:!r.isColumnNullable});case"DATETIME":return n.push(r.columnName),o.dateFormat=Eo.DEFAULT_DATETIMEFORMAT,new t6({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 S2e=["dataTable"];function k2e(t,i){if(t&1){let e=le();h(0,"span")(1,"button",11),N("click",function(){U(e);let o=w();return $(o.add())}),F(2,"fa-icon",12),C(3),k(4,"translate"),b()()}t&2&&(p(3),te("",E(4,1,"labels.buttons.Add")," "))}function E2e(t,i){if(t&1){let e=le();h(0,"span")(1,"button",13),N("click",function(){U(e);let o=w(2);return $(o.deleteSelected())}),F(2,"fa-icon",14),C(3),k(4,"translate"),b()()}t&2&&(p(3),te(" ",E(4,1,"labels.buttons.Delete Selected")," "))}function I2e(t,i){if(t&1&&(Wi(0),I(1,E2e,5,3,"span"),Yi()),t&2){let e=w();p(),T(e.isSelected?1:-1)}}function T2e(t,i){if(t&1){let e=le();h(0,"span")(1,"button",13),N("click",function(){U(e);let o=w(2);return $(o.delete())}),F(2,"fa-icon",14),C(3),k(4,"translate"),b()()}t&2&&(p(3),te(" ",E(4,1,"labels.buttons.Delete All")," "))}function O2e(t,i){if(t&1&&(Wi(0),I(1,T2e,5,3,"span"),Yi()),t&2){let e=w();p(),T(e.datatableData.length>0?1:-1)}}function L2e(t,i){t&1&&F(0,"th",17)}function P2e(t,i){if(t&1){let e=le();h(0,"td",18)(1,"mat-checkbox",19),N("click",function(o){return U(e),$(o.stopPropagation())})("change",function(o){let r=U(e).$implicit,a=w(3);return $(o?a.itemToggle(r):null)}),b()()}if(t&2){let e=i.$implicit,n=w(3);p(),S("checked",n.selection.isSelected(e))}}function A2e(t,i){t&1&&Xe(0,L2e,1,0,"th",15)(1,P2e,2,1,"td",16)}function z2e(t,i){if(t&1&&(h(0,"th",22),C(1),b()),t&2){let e=w(2).$implicit,n=w();p(),O(n.getInputName(e))}}function R2e(t,i){if(t&1&&(h(0,"td",23),C(1),b()),t&2){let e=i.$implicit,n=w(2).$implicit,o=w();S("ngClass",o.isToDelete(e)),p(),te(" ",o.formatValue(e,n)," ")}}function N2e(t,i){t&1&&Xe(0,z2e,2,1,"th",20)(1,R2e,2,2,"td",21)}function F2e(t,i){if(t&1&&(Wi(0,8),I(1,A2e,2,0),I(2,N2e,2,0),Yi()),t&2){let e=i.$implicit,n=i.$index;S("matColumnDef",e),p(),T(n===0?1:-1),p(),T(n>0?2:-1)}}function V2e(t,i){t&1&&F(0,"tr",24)}function B2e(t,i){t&1&&F(0,"tr",25)}var r6=(()=>{class t{constructor(){this.route=d(_o),this.dateUtils=d(Eo),this.systemService=d(j2),this.settingsService=d(Jt),this.dialog=d(Ji),this.datatables=d(o6),this.dateFormat=d($o),this.dateTimeFormat=d(ba),this.numberFormat=d(c0),this.SELECT_NAME_FIELD="select",this.datatableColumns=[],this.isSelected=!1,this.isLoading=!1}ngOnInit(){this.selection=new xo(!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(ds,{data:a,width:"50rem"}).afterClosed().subscribe(c=>{c.data&&(n.forEach(u=>{c.data.value[u]=this.dateUtils.formatDate(c.data.value[u],e.dateFormat)}),e=q(q({},c.data.value),e),this.systemService.addEntityDatatableEntry(this.entityId,this.datatableName,e).subscribe(u=>{this.getData()}))})}delete(){this.dialog.open(Qr,{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(Qr,{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 xo(!0,[]),this.isSelected=this.selection.selected.length>0)})})})):(this.selection=new xo(!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(u=>u.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 xo(!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=L({type:t,selectors:[["mifosx-datatable-multi-row"]],viewQuery:function(n,o){if(n&1&&me(S2e,5),n&2){let r;G(r=W())&&(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"),C(4),b()(),h(5,"div",4),Xe(6,k2e,5,3,"span",5)(7,I2e,2,1,"ng-container",5)(8,O2e,2,1,"ng-container",5),b()(),h(9,"div",6)(10,"table",7,0),et(12,F2e,3,3,"ng-container",8,gt),Xe(14,V2e,1,0,"tr",9)(15,B2e,1,0,"tr",10),b()()()),n&2&&(p(4),O(o.datatableName),p(2),S("mifosxHasPermission","CREATE_"+o.datatableName),p(),S("mifosxHasPermission","DELETE_"+o.datatableName),p(),S("mifosxHasPermission","DELETE_"+o.datatableName),p(2),S("dataSource",o.datatableData),p(2),tt(o.datatableColumns),p(2),S("matHeaderRowDef",o.datatableColumns),p(),S("matRowDefColumns",o.datatableColumns))},dependencies:[ge,Gn,Ce,yt,fl,Hs,Qt,Ph,Rh,zh,Nh,Ah,Fh,Vh,jh,Bh,Hh,Le],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 j2e(t,i){if(t&1){let e=le();h(0,"button",5),N("click",function(){U(e);let o=w();return $(o.add())}),F(1,"fa-icon",6),C(2),k(3,"translate"),b()}t&2&&(p(2),te("",E(3,1,"labels.buttons.Add")," "))}function H2e(t,i){if(t&1){let e=le();h(0,"button",5),N("click",function(){U(e);let o=w();return $(o.edit())}),F(1,"fa-icon",7),C(2),k(3,"translate"),b()}t&2&&(p(2),te("",E(3,1,"labels.buttons.Edit")," "))}function U2e(t,i){if(t&1){let e=le();h(0,"button",8),N("click",function(){U(e);let o=w();return $(o.delete())}),F(1,"fa-icon",9),C(2),k(3,"translate"),b()}t&2&&(p(2),te("",E(3,1,"labels.buttons.Delete")," "))}function $2e(t,i){if(t&1&&(h(0,"span"),C(1),k(2,"dateFormat"),b()),t&2){let e=w().$index,n=w(2);p(),te(" ",E(2,1,n.dataObject.data[0].row[e])," ")}}function G2e(t,i){if(t&1&&(h(0,"span"),C(1),k(2,"datetimeFormat"),b()),t&2){let e=w().$index,n=w(2);p(),te(" ",E(2,1,n.dataObject.data[0].row[e])," ")}}function W2e(t,i){if(t&1&&(h(0,"span"),C(1),b()),t&2){let e=w().$index,n=w(2);p(),te(" ",n.dataObject.data[0].row[e]," ")}}function Y2e(t,i){if(t&1&&(h(0,"span"),C(1),k(2,"formatNumber"),b()),t&2){let e=w().$index,n=w(2);p(),te(" ",E(2,1,n.dataObject.data[0].row[e])," ")}}function q2e(t,i){if(t&1&&(h(0,"span"),C(1),b()),t&2){let e=w(),n=e.$implicit,o=e.$index,r=w(2);p(),te(" ",r.datatables.getCodeLookupValue(n,r.dataObject.data[0].row[o])," ")}}function Q2e(t,i){if(t&1&&(h(0,"span",13),C(1),b()),t&2){let e=w().$index,n=w(2);p(),te(" ",n.dataObject.data[0].row[e]," ")}}function K2e(t,i){if(t&1&&(h(0,"textarea",14),k(1,"prettyPrint"),C(2," "),b()),t&2){let e=w().$index,n=w(2);S("innerHTML",E(1,1,n.dataObject.data[0].row[e].value),Xc)}}function X2e(t,i){if(t&1){let e=le();h(0,"span",15)(1,"button",16),k(2,"translate"),N("click",function(){U(e);let o=w(2).$index,r=w(2);return $(r.openSite(r.dataObject.data[0].row[o]))}),F(3,"fa-icon",17),b()()}t&2&&(p(),S("matTooltip",Vt(E(2,2,"tooltips.View Link"))))}function Z2e(t,i){if(t&1&&(h(0,"span"),I(1,X2e,4,4,"span",15),C(2),b()),t&2){let e=w().$index,n=w(2);p(),T(n.isValidUrl(n.dataObject.data[0].row[e])?1:-1),p(),te(" ",n.dataObject.data[0].row[e]," ")}}function J2e(t,i){if(t&1&&(h(0,"div",10)(1,"div",11),C(2),b(),h(3,"div",12),I(4,$2e,3,3,"span")(5,G2e,3,3,"span")(6,W2e,2,1,"span")(7,Y2e,3,3,"span")(8,q2e,2,1,"span")(9,Q2e,2,1,"span",13)(10,K2e,3,3,"textarea",14)(11,Z2e,3,2,"span"),b()()),t&2){let e,n=i.$implicit,o=w(2);S("ngClass",o.setAttributeClass(n.columnName)),p(2),te(" ",o.datatables.toDisplayLabel(n.columnName)," "),p(2),T((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 ede(t,i){if(t&1&&(h(0,"div",4),et(1,J2e,12,3,"div",10,gt),b()),t&2){let e=w();p(),tt(e.dataObject.columnHeaders)}}var a6=(()=>{class t{constructor(){this.route=d(_o),this.dateUtils=d(Eo),this.dialog=d(Ji),this.settingsService=d(Jt),this.datatables=d(o6),this.systemService=d(j2)}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(ds,{data:a,width:"50rem"}).afterClosed().subscribe(c=>{c.data&&(n.forEach(u=>{c.data.value[u]=this.dateUtils.formatDate(c.data.value[u],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(u=>{this.dataObject=u})}))})}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,u)=>(c.controlType==="datepicker"?c.value=this.dataObject.data[0].row[o[u].idx]?this.dateUtils.parseDate(this.dataObject.data[0].row[o[u].idx]):"":c.controlType==="datetimepicker"?c.value=this.dataObject.data[0].row[o[u].idx]?this.dateUtils.parseDatetime(this.dataObject.data[0].row[o[u].idx]):"":c.value=this.dataObject.data[0].row[o[u].idx]?this.dataObject.data[0].row[o[u].idx]:"",c));let a={title:"Edit "+this.datatableName+" for "+this.entityType,formfields:r,layout:{addButtonText:"Submit"},pristine:!1};this.dialog.open(ds,{data:a,width:"50rem"}).afterClosed().subscribe(c=>{c.data&&(n.forEach(u=>{c.data.value[u]=this.dateUtils.formatDate(c.data.value[u],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(u=>{this.dataObject=u})}))})}delete(){this.dialog.open(Qr,{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=L({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"),C(2),b(),h(3,"div",1),I(4,j2e,4,3,"button",2),I(5,H2e,4,3,"button",2),I(6,U2e,4,3,"button",3),b(),F(7,"mat-divider"),I(8,ede,3,0,"div",4),b()),n&2&&(p(2),O(o.datatableName),p(2),T(o.dataObject.data[0]?-1:4),p(),T(o.dataObject.data[0]?5:-1),p(),T(o.dataObject.data[0]?6:-1),p(2),T(o.dataObject.data.length>0?8:-1))},dependencies:[ge,Gn,Ce,yt,Qt,hc,Mf,ai,Mo,$o,Le,ba,js,ap],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 tde(t,i){if(t&1&&F(0,"mifosx-datatable-multi-row",0),t&2){let e=w();S("entityType",e.entityType)("entityId",e.entityId)("dataObject",e.entityDatatable)}}function nde(t,i){if(t&1&&F(0,"mifosx-datatable-single-row",0),t&2){let e=w();S("entityType",e.entityType)("entityId",e.entityId)("dataObject",e.entityDatatable)}}var YN=(()=>{class t{constructor(){this.multiRowDatatableFlag=!1}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=L({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"),I(1,tde,1,3,"mifosx-datatable-multi-row",0),I(2,nde,1,3,"mifosx-datatable-single-row",0),b()),n&2&&(p(),T(o.multiRowDatatableFlag?1:-1),p(),T(o.multiRowDatatableFlag?-1:2))},dependencies:[ge,Ce,r6,a6],encapsulation:2})}}return t})();var qN=(()=>{class t{constructor(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=L({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&&(Gt(),h(0,"svg",0),F(1,"use"),b()),n&2&&(zt("width",o.iconWidth,"px"),S("ngClass",o.iconClass),p(),ne("href","assets/images/icons_"+o.iconFile+".svg#"+o.iconName,null,"xlink"))},dependencies:[ge,Gn,Ce],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 ide(t,i){t&1&&(h(0,"span"),C(1),k(2,"translate"),b()),t&2&&(p(),O(E(2,1,"labels.inputs.Credit")))}function ode(t,i){t&1&&(h(0,"span"),C(1),k(2,"translate"),b()),t&2&&(p(),O(E(2,1,"labels.inputs.Debit")))}function rde(t,i){if(t&1&&(h(0,"tr")(1,"th"),C(2),k(3,"translate"),b(),h(4,"td"),C(5),b()()),t&2){let e=w();p(2),O(E(3,2,"labels.inputs.Reference Number")),p(3),O(e.data.journalEntry.referenceNumber)}}function ade(t,i){if(t&1&&(h(0,"tr")(1,"th"),C(2),k(3,"translate"),b(),h(4,"td"),C(5),b()()),t&2){let e=w();p(2),O(E(3,2,"labels.inputs.Comments")),p(3),O(e.data.journalEntry.comments)}}function sde(t,i){t&1&&(h(0,"tr")(1,"th",4),C(2),k(3,"translate"),b()()),t&2&&(p(2),O(E(3,1,"labels.inputs.Payment Details")))}function cde(t,i){if(t&1&&(h(0,"tr")(1,"th"),C(2),k(3,"translate"),b(),h(4,"td"),C(5),b()()),t&2){let e=w();p(2),O(E(3,2,"labels.inputs.Payment Type")),p(3),O(e.data.journalEntry.transactionDetails.paymentDetails.paymentType.name)}}function lde(t,i){if(t&1&&(h(0,"tr")(1,"th"),C(2),k(3,"translate"),b(),h(4,"td"),C(5),b()()),t&2){let e=w();p(2),O(E(3,2,"labels.inputs.Account Number")),p(3),O(e.data.journalEntry.transactionDetails.paymentDetails.accountNumber)}}function dde(t,i){if(t&1&&(h(0,"tr")(1,"th"),C(2),k(3,"translate"),b(),h(4,"td"),C(5),b()()),t&2){let e=w();p(2),O(E(3,2,"labels.inputs.Cheque Number")),p(3),O(e.data.journalEntry.transactionDetails.paymentDetails.checkNumber)}}function ude(t,i){if(t&1&&(h(0,"tr")(1,"th"),C(2),k(3,"translate"),b(),h(4,"td"),C(5),b()()),t&2){let e=w();p(2),O(E(3,2,"labels.inputs.Routing Code")),p(3),O(e.data.journalEntry.transactionDetails.paymentDetails.routingCode)}}function mde(t,i){if(t&1&&(h(0,"tr")(1,"th"),C(2),k(3,"translate"),b(),h(4,"td"),C(5),b()()),t&2){let e=w();p(2),O(E(3,2,"labels.inputs.Receipt Number")),p(3),O(e.data.journalEntry.transactionDetails.paymentDetails.receiptNumber)}}function pde(t,i){if(t&1&&(h(0,"tr")(1,"th"),C(2),k(3,"translate"),b(),h(4,"td"),C(5),b()()),t&2){let e=w();p(2),O(E(3,2,"labels.inputs.Bank Number")),p(3),O(e.data.journalEntry.transactionDetails.paymentDetails.bankNumber)}}function fde(t,i){if(t&1&&(h(0,"tr")(1,"th"),C(2),k(3,"translate"),b(),h(4,"td"),C(5),b()()),t&2){let e=w();p(2),O(E(3,2,"labels.inputs.Created by")),p(3),O(e.data.journalEntry.createdByUserName)}}var s6=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(Tn),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=L({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),C(1),k(2,"translate"),b(),h(3,"div",1)(4,"table")(5,"tr")(6,"th"),C(7),k(8,"translate"),b(),h(9,"td"),C(10),b()(),h(11,"tr")(12,"th"),C(13),k(14,"translate"),b(),h(15,"td"),C(16),b()(),h(17,"tr")(18,"th"),C(19),k(20,"translate"),b(),h(21,"td"),C(22),b()(),h(23,"tr")(24,"th"),C(25),k(26,"translate"),b(),h(27,"td"),C(28),k(29,"dateFormat"),b()(),h(30,"tr")(31,"th"),C(32),k(33,"translate"),b(),h(34,"td"),C(35),b()(),h(36,"tr")(37,"th"),C(38),k(39,"translate"),b(),h(40,"td"),C(41),b()(),h(42,"tr")(43,"th"),C(44),k(45,"translate"),b(),h(46,"td"),C(47),b()(),h(48,"tr")(49,"th"),I(50,ide,3,3,"span"),I(51,ode,3,3,"span"),b(),h(52,"td"),C(53),k(54,"formatNumber"),b()(),h(55,"tr")(56,"th"),C(57),k(58,"translate"),b(),h(59,"td"),C(60),b()(),I(61,rde,6,4,"tr"),I(62,ade,6,4,"tr"),I(63,sde,4,3,"tr"),I(64,cde,6,4,"tr"),I(65,lde,6,4,"tr"),I(66,dde,6,4,"tr"),I(67,ude,6,4,"tr"),I(68,mde,6,4,"tr"),I(69,pde,6,4,"tr"),I(70,fde,6,4,"tr"),h(71,"tr")(72,"th"),C(73),k(74,"translate"),b(),h(75,"td"),C(76),k(77,"datetimeFormat"),b()()()(),h(78,"mat-dialog-actions",2)(79,"button",3),C(80),k(81,"translate"),b()()),n&2&&(p(),O(E(2,35,"labels.heading.View Journal Entry")),p(6),O(E(8,37,"labels.inputs.Office")),p(3),O(o.data.journalEntry.officeName),p(3),O(E(14,39,"labels.inputs.Entry ID")),p(3),O(o.data.journalEntry.id),p(3),O(E(20,41,"labels.inputs.Transaction ID")),p(3),O(o.data.journalEntry.transactionId),p(3),O(E(26,43,"labels.inputs.Transaction Date")),p(3),O(E(29,45,o.data.journalEntry.transactionDate)),p(4),O(E(33,47,"labels.inputs.Type")),p(3),O(o.data.journalEntry.glAccountType.value),p(3),O(E(39,49,"labels.inputs.Account Code")),p(3),O(o.data.journalEntry.glAccountId),p(3),O(E(45,51,"labels.inputs.Account Name")),p(3),O(o.data.journalEntry.glAccountName),p(3),T(o.data.journalEntry.entryType.value==="CREDIT"?50:-1),p(),T(o.data.journalEntry.entryType.value==="DEBIT"?51:-1),p(2),Et("",o.data.journalEntry.currency.displaySymbol," ",E(54,53,o.data.journalEntry.amount)),p(4),O(E(58,55,"labels.inputs.Currency")),p(3),Et("(",o.data.journalEntry.currency.code,") ",o.data.journalEntry.currency.name),p(),T(o.data.journalEntry.referenceNumber?61:-1),p(),T(o.data.journalEntry.comments?62:-1),p(),T(o.existsPaymentDetails?63:-1),p(),T(o.existsPaymentDetails&&(o.data.journalEntry.transactionDetails.paymentDetails!=null&&o.data.journalEntry.transactionDetails.paymentDetails.paymentType)?64:-1),p(),T(o.existsPaymentDetails&&(o.data.journalEntry.transactionDetails.paymentDetails!=null&&o.data.journalEntry.transactionDetails.paymentDetails.accountNumber)?65:-1),p(),T(o.existsPaymentDetails&&(o.data.journalEntry.transactionDetails.paymentDetails!=null&&o.data.journalEntry.transactionDetails.paymentDetails.checkNumber)?66:-1),p(),T(o.existsPaymentDetails&&(o.data.journalEntry.transactionDetails.paymentDetails!=null&&o.data.journalEntry.transactionDetails.paymentDetails.routingCode)?67:-1),p(),T(o.existsPaymentDetails&&(o.data.journalEntry.transactionDetails.paymentDetails!=null&&o.data.journalEntry.transactionDetails.paymentDetails.receiptNumber)?68:-1),p(),T(o.existsPaymentDetails&&(o.data.journalEntry.transactionDetails.paymentDetails!=null&&o.data.journalEntry.transactionDetails.paymentDetails.bankNumber)?69:-1),p(),T(o.existsPaymentDetails?70:-1),p(3),O(E(74,57,"labels.inputs.Submitted on")),p(3),O(E(77,59,o.data.journalEntry.submittedOnDate)),p(4),O(E(81,61,"labels.buttons.Close")))},dependencies:[ge,Ce,yt,xn,Nn,Fn,Rn,$o,Le,ba,js],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 hde=t=>({revert:!0,comments:t}),gde=()=>({redirect:!0});function _de(t,i){if(t&1&&(h(0,"div")(1,"h1",0),C(2),k(3,"translate"),b(),h(4,"div",1)(5,"p"),C(6),k(7,"translate"),b(),h(8,"mat-form-field",2)(9,"mat-label"),C(10),k(11,"translate"),b(),F(12,"textarea",3),b()(),h(13,"mat-dialog-actions",4)(14,"button",5),C(15),k(16,"translate"),b(),h(17,"button",6),C(18),k(19,"translate"),b()()()),t&2){let e=w();p(2),O(E(3,7,"labels.heading.Revert Transaction")),p(4),O(E(7,9,"labels.text.Revert this transaction?")),p(4),O(E(11,11,"labels.inputs.Comments")),p(2),S("formControl",e.comments),p(3),O(E(16,13,"labels.buttons.No")),p(2),S("mat-dialog-close",jo(17,hde,e.comments.value)),p(),te(" ",E(19,15,"labels.buttons.Yes")," ")}}function bde(t,i){if(t&1&&(h(0,"h1",0),C(1),k(2,"translate"),b(),h(3,"div",1)(4,"h4"),C(5),k(6,"translate"),b(),h(7,"p"),C(8),k(9,"translate"),b(),h(10,"p"),C(11),k(12,"translate"),b()(),h(13,"mat-dialog-actions",4)(14,"button",5),C(15),k(16,"translate"),b(),h(17,"button",6),C(18),k(19,"translate"),b()()),t&2){let e=w();p(),O(E(2,8,"labels.heading.Transaction Reverted")),p(4),O(E(6,10,"labels.heading.Success!")),p(3),O(E(9,12,"labels.text.Journal entry reverse transaction")),p(3),Et("",E(12,14,"labels.text.Transaction ID"),": ",e.data.transactionId),p(4),O(E(16,16,"labels.buttons.Close")),p(2),S("mat-dialog-close",Bo(20,gde)),p(),te(" ",E(19,18,"labels.buttons.Redirect to New Transaction")," ")}}var QN=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(Tn),this.comments=new Qi("")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=L({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&&I(0,_de,20,19,"div")(1,bde,20,21),n&2&&T(o.data.reverted?1:0)},dependencies:[ge,Ce,Di,fn,Li,Ht,Cn,ri,yt,xn,Nn,Fn,Rn,Le],encapsulation:2})}}return t})();var KN=(()=>{class t{constructor(){this.http=d(En)}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 vde(t,i){t&1&&(h(0,"span"),F(1,"fa-icon",18),C(2),k(3,"translate"),b()),t&2&&(p(2),te("",E(3,1,"labels.buttons.Revert Transaction")," "))}function yde(t,i){t&1&&(h(0,"span"),C(1),k(2,"translate"),b()),t&2&&(p(),O(E(2,1,"labels.buttons.Transaction Reverted")))}function Cde(t,i){if(t&1){let e=le();h(0,"button",17),N("click",function(){U(e);let o=w(3);return $(o.revertTransaction())}),I(1,vde,4,3,"span"),I(2,yde,3,3,"span"),b()}if(t&2){let e=w(3);S("disabled",e.dataSource==null?null:e.dataSource.data[0].reversed),p(),T(e.dataSource.data[0].reversed?-1:1),p(),T(e.dataSource.data[0].reversed?2:-1)}}function xde(t,i){t&1&&(h(0,"div",1),Xe(1,Cde,3,3,"button",16),b()),t&2&&(p(),S("mifosxHasPermission","REVERSE_JOURNALENTRY"))}function Mde(t,i){t&1&&(h(0,"div",21),C(1),k(2,"translate"),b()),t&2&&(p(),te(" ",E(2,1,"labels.inputs.External Asset Owner")," "))}function wde(t,i){if(t&1&&(h(0,"div",22),C(1),b()),t&2){let e=w(4);p(),te(" ",e.dataSource.data[0].externalAssetOwner," ")}}function Dde(t,i){if(t&1&&(h(0,"mat-card",19)(1,"mat-card-content")(2,"div",20)(3,"div",21),C(4),k(5,"translate"),b(),h(6,"div",22),C(7),b(),h(8,"div",21),C(9),k(10,"translate"),b(),h(11,"div",22),C(12),k(13,"dateFormat"),b(),h(14,"div",21),C(15),k(16,"translate"),b(),h(17,"div",22),C(18),b(),h(19,"div",21),C(20),k(21,"translate"),b(),h(22,"div",22),C(23),k(24,"datetimeFormat"),b(),h(25,"div",21),C(26),k(27,"translate"),b(),h(28,"div",22),C(29),k(30,"yesNo"),b(),I(31,Mde,3,3,"div",21),I(32,wde,2,1,"div",22),b()()()),t&2){let e=w(3);S("ngClass",Vt(e.journalEntryColor())),p(4),te(" ",E(5,14,"labels.inputs.Office")," "),p(3),te(" ",e.dataSource.data[0].officeName," "),p(2),te(" ",E(10,16,"labels.inputs.Transaction Date")," "),p(3),te(" ",E(13,18,e.dataSource.data[0].transactionDate)," "),p(3),te(" ",E(16,20,"labels.inputs.Created By")," "),p(3),te(" ",e.dataSource.data[0].createdByUserName," "),p(2),te(" ",E(21,22,"labels.inputs.Submitted on")," "),p(3),te(" ",E(24,24,e.dataSource.data[0].submittedOnDate)," "),p(3),te(" ",E(27,26,"labels.inputs.Manual Journal Entry")," "),p(3),te(" ",E(30,28,e.dataSource.data[0].manualEntry)," "),p(2),T(e.dataSource.data[0].externalAssetOwner?31:-1),p(),T(e.dataSource.data[0].externalAssetOwner?32:-1)}}function Sde(t,i){if(t&1&&(h(0,"div",0),I(1,Dde,33,30,"mat-card",19),b()),t&2){let e=w(2);p(),T(e.dataSource?1:-1)}}function kde(t,i){t&1&&(h(0,"th",23),C(1),k(2,"translate"),b()),t&2&&(p(),te(" ",E(2,1,"labels.inputs.Entry ID")," "))}function Ede(t,i){if(t&1&&(h(0,"td",24),C(1),b()),t&2){let e=i.$implicit;p(),O(e.id)}}function Ide(t,i){t&1&&(h(0,"th",23),C(1),k(2,"translate"),b()),t&2&&(p(),te(" ",E(2,1,"labels.inputs.Type")," "))}function Tde(t,i){if(t&1&&(h(0,"td",24),C(1),b()),t&2){let e=i.$implicit;p(),O(e.glAccountType.value)}}function Ode(t,i){t&1&&(h(0,"th",23),C(1),k(2,"translate"),b()),t&2&&(p(),te(" ",E(2,1,"labels.inputs.Account Code")," "))}function Lde(t,i){if(t&1&&(h(0,"td",24),C(1),b()),t&2){let e=i.$implicit;p(),O(e.glAccountCode)}}function Pde(t,i){t&1&&(h(0,"th",23),C(1),k(2,"translate"),b()),t&2&&(p(),te(" ",E(2,1,"labels.inputs.Account Name")," "))}function Ade(t,i){if(t&1&&(h(0,"td",24),C(1),b()),t&2){let e=i.$implicit;p(),O(e.glAccountName)}}function zde(t,i){t&1&&(h(0,"th",23),C(1),k(2,"translate"),b()),t&2&&(p(),te(" ",E(2,1,"labels.inputs.Debit")," "))}function Rde(t,i){if(t&1&&(h(0,"span"),C(1),k(2,"formatNumber"),b()),t&2){let e=w().$implicit;p(),Et(" ",e.currency.displaySymbol||e.currency.code," ",E(2,2,e.amount)," ")}}function Nde(t,i){if(t&1&&(h(0,"td",24),I(1,Rde,3,4,"span"),b()),t&2){let e=i.$implicit;p(),T(e.entryType.value==="DEBIT"?1:-1)}}function Fde(t,i){t&1&&(h(0,"th",23),C(1),k(2,"translate"),b()),t&2&&(p(),te(" ",E(2,1,"labels.inputs.Credit")," "))}function Vde(t,i){if(t&1&&(h(0,"span"),C(1),k(2,"formatNumber"),b()),t&2){let e=w().$implicit;p(),Et(" ",e.currency.displaySymbol||e.currency.code," ",E(2,2,e.amount)," ")}}function Bde(t,i){if(t&1&&(h(0,"td",24),I(1,Vde,3,4,"span"),b()),t&2){let e=i.$implicit;p(),T(e.entryType.value==="CREDIT"?1:-1)}}function jde(t,i){t&1&&F(0,"tr",25)}function Hde(t,i){if(t&1){let e=le();h(0,"tr",26),N("click",function(){let o=U(e).$implicit,r=w(2);return $(r.viewJournalEntry(o))}),b()}}function Ude(t,i){if(t&1){let e=le();h(0,"div"),I(1,xde,2,1,"div",1),I(2,Sde,2,1,"div",0),h(3,"div",2)(4,"table",3),Wi(5,4),Xe(6,kde,3,3,"th",5)(7,Ede,2,1,"td",6),Yi(),Wi(8,7),Xe(9,Ide,3,3,"th",5)(10,Tde,2,1,"td",6),Yi(),Wi(11,8),Xe(12,Ode,3,3,"th",5)(13,Lde,2,1,"td",6),Yi(),Wi(14,9),Xe(15,Pde,3,3,"th",5)(16,Ade,2,1,"td",6),Yi(),Wi(17,10),Xe(18,zde,3,3,"th",5)(19,Nde,2,1,"td",6),Yi(),Wi(20,11),Xe(21,Fde,3,3,"th",5)(22,Bde,2,1,"td",6),Yi(),Xe(23,jde,1,0,"tr",12)(24,Hde,1,0,"tr",13),b(),h(25,"div",14)(26,"button",15),N("click",function(){U(e);let o=w();return $(o.goBack())}),C(27),k(28,"translate"),b()()()()}if(t&2){let e=w();p(),T(e.dataSource!=null&&e.dataSource.data[0].manualEntry?1:-1),p(),T(e.isViewTransaction()?2:-1),p(2),S("dataSource",e.dataSource),p(19),S("matHeaderRowDef",e.displayedColumns),p(),S("matRowDefColumns",e.displayedColumns),p(3),te(" ",E(28,6,"labels.buttons.Back")," ")}}function $de(t,i){if(t&1){let e=le();h(0,"div",0)(1,"div",27)(2,"div",28),F(3,"i",29),C(4),k(5,"translate"),b()(),h(6,"div",14)(7,"button",15),N("click",function(){U(e);let o=w();return $(o.goBack())}),C(8),k(9,"translate"),b()()()}t&2&&(p(4),te(" ",E(5,2,"labels.text.No data found")," "),p(4),te(" ",E(9,4,"labels.buttons.Back")," "))}var XN=(()=>{class t{constructor(){this.accountingService=d(KN),this.route=d(_o),this.router=d(To),this.dialog=d(Ji),this.location=d(dr),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 Bu(this.journalEntriesData):(this.dataSource=new Bu(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(s6,{data:{journalEntry:e}})}revertTransaction(e){this.dialog.open(QN,{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=L({type:t,selectors:[["mifosx-view-journal-entry-transaction"]],viewQuery:function(n,o){if(n&1&&(me(lv,7),me(wh,7)),n&2){let r;G(r=W())&&(o.paginator=r.first),G(r=W())&&(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&&(I(0,Ude,29,8,"div"),I(1,$de,10,6,"div",0)),n&2&&(T(o.isJournalEntryLoaded?0:-1),p(),T(o.isJournalEntryLoaded?-1:1))},dependencies:[ge,Gn,Ce,UI,$I,yt,Hs,Qt,Ph,wh,Rh,zh,Nh,KR,Ah,Fh,Vh,jh,Bh,Hh,$o,Le,ba,js,cp],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}"]})}}return t})();function Gde(t,i){if(t&1){let e=le();h(0,"span",3),N("click",function(){U(e);let o=w();return $(o.copyValue())}),h(1,"b"),F(2,"fa-icon",4),k(3,"translate"),b()()}t&2&&(p(2),S("title",Vt(E(3,2,"labels.text.Copy Account Number"))))}function Wde(t,i){if(t&1&&(h(0,"span",1)(1,"a",5),C(2),b()()),t&2){let e=w();p(),S("href",Vt(e.getAccountLink()),k1),p(),O(e.accountNo)}}function Yde(t,i){if(t&1&&(h(0,"span",1),C(1),b()),t&2){let e=w();p(),O(e.accountNo)}}function qde(t,i){if(t&1){let e=le();h(0,"span",6),N("click",function(){U(e);let o=w();return $(o.copyValue())}),h(1,"b"),F(2,"fa-icon",4),k(3,"translate"),b()()}t&2&&(p(2),S("title",Vt(E(3,2,"labels.text.Copy Account Number"))))}var ZN=(()=>{class t{constructor(){this.clipboard=d(q2),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=L({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()}),I(1,Gde,4,4,"span",1),I(2,Wde,3,3,"span",1),I(3,Yde,2,1,"span",1),I(4,qde,4,4,"span",2),b()),n&2&&(p(),T(o.displayL&&o.iconVisible?1:-1),p(),T(o.accountType?2:-1),p(),T(o.accountType?-1:3),p(),T(o.displayR&&o.iconVisible?4:-1))},dependencies:[ge,Ce,Qt,Le],encapsulation:2})}}return t})();function Qde(t,i){if(t&1){let e=le();h(0,"span",3),N("click",function(){U(e);let o=w();return $(o.copyValue())}),h(1,"b"),F(2,"fa-icon",4),k(3,"translate"),b()()}t&2&&(p(2),S("title",Vt(E(3,2,"labels.text.Copy Account Number"))))}function Kde(t,i){if(t&1){let e=le();h(0,"span",5),N("click",function(){U(e);let o=w();return $(o.copyValue())}),h(1,"b"),F(2,"fa-icon",4),k(3,"translate"),b()()}t&2&&(p(2),S("title",Vt(E(3,2,"labels.text.Copy Account Number"))))}var JN=(()=>{class t{constructor(){this.clipboard=d(q2),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=L({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()}),I(1,Qde,4,4,"span",1),h(2,"span",1)(3,"b"),C(4),b()(),I(5,Kde,4,4,"span",2),b()),n&2&&(p(),T(o.displayL&&o.iconVisible?1:-1),p(3),O(o.entityName),p(),T(o.displayR&&o.iconVisible?5:-1))},dependencies:[ge,Ce,Qt,Le],encapsulation:2})}}return t})();function Xde(t,i){if(t&1&&(ot(0,"tr")(1,"td",4),C(2),k(3,"translate"),st(),ot(4,"td"),C(5),st()()),t&2){let e=w(2);p(2),O(E(3,2,"labels.inputs.Account No")),p(3),O(e.paymentDetailData.accountNumber)}}function Zde(t,i){if(t&1&&(ot(0,"tr")(1,"td",4),C(2),k(3,"translate"),st(),ot(4,"td"),C(5),st()()),t&2){let e=w(2);p(2),O(E(3,2,"labels.inputs.Cheque Number")),p(3),O(e.paymentDetailData.checkNumber)}}function Jde(t,i){if(t&1&&(ot(0,"tr")(1,"td",4),C(2),k(3,"translate"),st(),ot(4,"td",4),C(5),st()()),t&2){let e=w(2);p(2),O(E(3,2,"labels.inputs.Routing Code")),p(3),O(e.paymentDetailData.routingCode)}}function e0e(t,i){if(t&1&&(ot(0,"tr")(1,"td",4),C(2),k(3,"translate"),st(),ot(4,"td"),C(5),st()()),t&2){let e=w(2);p(2),O(E(3,2,"labels.inputs.Receipt No")),p(3),O(e.paymentDetailData.receiptNumber)}}function t0e(t,i){if(t&1&&(ot(0,"tr")(1,"td",4),C(2),k(3,"translate"),st(),ot(4,"td"),C(5),st()()),t&2){let e=w(2);p(2),O(E(3,2,"labels.inputs.Bank No")),p(3),O(e.paymentDetailData.bankNumber)}}function n0e(t,i){if(t&1&&(ot(0,"table")(1,"tbody")(2,"tr")(3,"td",3),C(4),k(5,"translate"),st()(),I(6,Xde,6,4,"tr"),I(7,Zde,6,4,"tr"),I(8,Jde,6,4,"tr"),I(9,e0e,6,4,"tr"),I(10,t0e,6,4,"tr"),st()()),t&2){let e=w();p(4),O(E(5,6,"labels.inputs.Payment Details")),p(2),T(e.isNotNullOrEmpty(e.paymentDetailData.accountNumber)?6:-1),p(),T(e.isNotNullOrEmpty(e.paymentDetailData.checkNumber)?7:-1),p(),T(e.isNotNullOrEmpty(e.paymentDetailData.routingCode)?8:-1),p(),T(e.isNotNullOrEmpty(e.paymentDetailData.receiptNumber)?9:-1),p(),T(e.isNotNullOrEmpty(e.paymentDetailData.bankNumber)?10:-1)}}var eF=(()=>{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=L({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&&(ot(0,"div",0)(1,"div",1),C(2),k(3,"translate"),st(),ot(4,"div",2),C(5),st()(),I(6,n0e,11,8,"table")),n&2&&(p(2),te(" ",E(3,3,"labels.inputs.Payment Type")," "),p(3),te(" ",o.paymentDetailData.paymentType.name," "),p(),T(o.hasSomeValue()?6:-1))},dependencies:[ge,Ce,Le],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 tF=(()=>{class t{constructor(){this.disablePrevious=!1,this.disableNext=!1}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=L({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),C(3),k(4,"translate"),b(),h(5,"button",3),C(6),k(7,"translate"),F(8,"fa-icon",4),b()()),n&2&&(p(),S("disabled",o.disablePrevious),p(2),te(" ",E(4,4,"labels.buttons.Previous")," "),p(2),S("disabled",o.disableNext),p(),te(" ",E(7,6,"labels.buttons.Next")," "))},dependencies:[ge,Ce,yt,Qt,tN,eN,Le],encapsulation:2})}}return t})();function i0e(t,i){if(t&1&&(h(0,"mat-option",4),C(1),b()),t&2){let e=i.$implicit;S("value",e.id),p(),te(" ","("+e.glCode+") "+e.name," ")}}function o0e(t,i){t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),k(3,"translate"),h(4,"strong"),C(5),k(6,"translate"),b()()),t&2&&(p(),Et(" ",E(2,3,"labels.inputs.Account")," ",E(3,5,"labels.commons.is")," "),p(4),O(E(6,7,"labels.commons.required")))}function r0e(t,i){if(t&1&&(h(0,"mat-form-field",1)(1,"mat-label"),C(2),k(3,"translate"),b(),h(4,"mat-select",2)(5,"mat-option"),F(6,"ngx-mat-select-search",3),b(),et(7,i0e,2,2,"mat-option",4,gt),k(9,"async"),b(),I(10,o0e,7,9,"mat-error"),b()),t&2){let e=w();p(2),O(E(3,8,"labels.inputs."+e.inputLabel)),p(2),S("formControl",e.inputFormControl),p(2),S("placeholderLabel",Vt(e.placeHolderLabel))("noEntriesFoundLabel",Vt(e.noEntriesFoundLabel))("formControl",e.filterFormCtrl),p(),tt(E(9,10,e.glAccountData)),p(3),T(e.inputFormControl.hasError("required")?10:-1)}}function a0e(t,i){if(t&1&&(h(0,"mat-option",4),C(1),b()),t&2){let e=i.$implicit;S("value",e.id),p(),te(" ","("+e.glCode+") "+e.name," ")}}function s0e(t,i){if(t&1&&(h(0,"mat-form-field",1)(1,"mat-label"),C(2),k(3,"translate"),b(),h(4,"mat-select",5)(5,"mat-option"),F(6,"ngx-mat-select-search",6),b(),et(7,a0e,2,2,"mat-option",4,gt),k(9,"async"),b()()),t&2){let e=w();p(2),O(E(3,7,"labels.inputs."+e.inputLabel)),p(2),S("formControl",e.inputFormControl),p(2),S("placeholderLabel",Vt(e.placeHolderLabel))("noEntriesFoundLabel",Vt(e.noEntriesFoundLabel))("formControl",e.filterFormCtrl),p(),tt(E(9,9,e.glAccountData))}}var nF=(()=>{class t{constructor(){this.translateService=d(uo),this.glAccountList=[],this.required=!1,this.inputLabel="",this.glAccountData=new wr(1),this.filterFormCtrl=new Qi(""),this._onDestroy=new B,this.placeHolderLabel="",this.noEntriesFoundLabel=""}ngOnInit(){this.filterFormCtrl.valueChanges.pipe(xe(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=L({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),I(1,r0e,11,12,"mat-form-field",1),I(2,s0e,10,11,"mat-form-field",1),b()),n&2&&(p(),T(o.required?1:-1),p(),T(o.required?-1:2))},dependencies:[ge,Ce,fn,Hr,Li,Ht,Cn,bo,Qn,un,Wh,Av,s0,Le],encapsulation:2})}}return t})();function c0e(t,i){if(t&1&&(h(0,"span",0)(1,"div",2),C(2),k(3,"translate"),b(),h(4,"div",3),C(5),b()()),t&2){let e=w();p(),S("ngClass",e.getWithClass(e.withTitle)),p(),te(" ",E(3,4,"labels.inputs."+e.accountTitle)," "),p(2),S("ngClass",e.getWithClass(e.withAccount)),p(),te(" ",e.glAccountValue()," ")}}function l0e(t,i){if(t&1&&(h(0,"div",1),C(1),b()),t&2){let e=w();p(),te(" ",e.glAccountValue()," ")}}var c6=(()=>{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=L({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&&(I(0,c0e,6,6,"span",0),I(1,l0e,2,1,"div",1)),n&2&&(T(o.accountTitle?0:-1),p(),T(o.accountTitle?-1:1))},dependencies:[ge,Gn,Ce,Le],styles:["div[_ngcontent-%COMP%]{margin:.3rem 0;word-wrap:break-word}div.header[_ngcontent-%COMP%]{font-weight:500}"]})}}return t})();var iF=(()=>{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 d0e(t,i){if(t&1&&(h(0,"div",1)(1,"span",3),C(2),k(3,"translate"),b(),h(4,"span",4),C(5),k(6,"translate"),b()()),t&2){let e=w();p(2),te("",E(3,2,"labels.inputs.Type"),":"),p(3),O(E(6,4,"labels.accounting."+e.getAccountingRuleName(e.accountingRule.value)))}}function u0e(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=w(2);S("accountTitle","Overdraft portfolio")("glAccount",e.accountingMappings.overdraftPortfolioControl)("withTitle","40%")}}function m0e(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=w(2);S("accountTitle","Fees Receivable")("glAccount",e.accountingMappings.feeReceivableAccount)("withTitle","40%")}}function p0e(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=w(2);S("accountTitle","Penalties Receivable")("glAccount",e.accountingMappings.penaltyReceivableAccount)("withTitle","40%")}}function f0e(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=w(2);S("accountTitle","Interest Receivable")("glAccount",e.accountingMappings.interestReceivableAccount)("withTitle","40%")}}function h0e(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=w(2);S("accountTitle","Interest Payable")("glAccount",e.accountingMappings.interestPayableAccount)("withTitle","40%")}}function g0e(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=w(2);S("accountTitle","Escheat liability")("glAccount",e.accountingMappings.escheatLiabilityAccount)("withTitle","40%")}}function _0e(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=w(2);S("accountTitle","Income from Interest")("glAccount",e.accountingMappings.incomeFromInterest)("withTitle","40%")}}function b0e(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=w(2);S("accountTitle","Write-off")("glAccount",e.accountingMappings.writeOffAccount)("withTitle","40%")}}function v0e(t,i){if(t&1&&(h(0,"div",2)(1,"h4",5),C(2),k(3,"translate"),b(),h(4,"div",6),F(5,"mifosx-gl-account-display",7),b(),h(6,"div",6),I(7,u0e,1,3,"mifosx-gl-account-display",7),b(),h(8,"div",6),I(9,m0e,1,3,"mifosx-gl-account-display",7),b(),h(10,"div",6),I(11,p0e,1,3,"mifosx-gl-account-display",7),I(12,f0e,1,3,"mifosx-gl-account-display",7),h(13,"h4",5),C(14),k(15,"translate"),b(),h(16,"div",6),F(17,"mifosx-gl-account-display",7),b(),h(18,"div",6),F(19,"mifosx-gl-account-display",7),b(),h(20,"div",6),I(21,h0e,1,3,"mifosx-gl-account-display",7),b(),h(22,"div",6),I(23,g0e,1,3,"mifosx-gl-account-display",7),b(),h(24,"h4",5),C(25),k(26,"translate"),b(),h(27,"div",6),F(28,"mifosx-gl-account-display",7),b(),h(29,"div",6),F(30,"mifosx-gl-account-display",7),b(),h(31,"div",6),I(32,_0e,1,3,"mifosx-gl-account-display",7),b(),h(33,"h4",5),C(34),k(35,"translate"),b(),h(36,"div",6),F(37,"mifosx-gl-account-display",7),b(),h(38,"div",6),I(39,b0e,1,3,"mifosx-gl-account-display",7),b()()()),t&2){let e=w();p(2),O(E(3,30,"labels.heading.Assets")),p(3),S("accountTitle","Saving reference")("glAccount",e.accountingMappings.savingsReferenceAccount)("withTitle","40%"),p(2),T(e.accountingMappings.overdraftPortfolioControl?7:-1),p(2),T(e.isAccrualAccounting()?9:-1),p(2),T(e.isAccrualAccounting()?11:-1),p(),T(e.isAccrualAccounting()?12:-1),p(2),O(E(15,32,"labels.heading.Liabilities")),p(3),S("accountTitle","Saving control")("glAccount",e.accountingMappings.savingsControlAccount)("withTitle","40%"),p(2),S("accountTitle","Savings transfers in suspense")("glAccount",e.accountingMappings.transfersInSuspenseAccount)("withTitle","40%"),p(2),T(e.isAccrualAccounting()?21:-1),p(2),T(e.accountingMappings.escheatLiabilityAccount?23:-1),p(2),O(E(26,34,"labels.heading.Income")),p(3),S("accountTitle","Income from fees")("glAccount",e.accountingMappings.incomeFromFeeAccount)("withTitle","40%"),p(2),S("accountTitle","Income from penalties")("glAccount",e.accountingMappings.incomeFromPenaltyAccount)("withTitle","40%"),p(2),T(e.accountingMappings.incomeFromInterest?32:-1),p(2),O(E(35,36,"labels.heading.Expenses")),p(3),S("accountTitle","Interest on savings")("glAccount",e.accountingMappings.interestOnSavingsAccount)("withTitle","40%"),p(2),T(e.accountingMappings.writeOffAccount?39:-1)}}var oF=(()=>{class t{constructor(){this.accounting=d(iF),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=L({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),I(1,d0e,7,6,"div",1),h(2,"div",2),I(3,v0e,40,38,"div",2),b()()),n&2&&(p(),T(o.accountingRule?1:-1),p(2),T(o.isCashOrAccrualAccounting()?3:-1))},dependencies:[ge,Ce,c6,Le],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 rF=(()=>{class t{constructor(){this.ref=d(fi),this.darkModeOn=!1,this.themes=["dark-theme","light-theme"],this.theme=new dt("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 aF=(()=>{class t{constructor(){this.themingService=d(rF),this.settingsService=d(Jt)}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=L({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"),C(2),b()()),n&2&&(p(2),O(o.darkModeOn?"wb_sunny":"nights_stay"))},dependencies:[ge,Ce,ai,Po],encapsulation:2})}}return t})();function y0e(t,i){if(t&1){let e=le();h(0,"span",3),N("click",function(){U(e);let o=w(2);return $(o.showValue())}),F(1,"fa-icon",4),b()}if(t&2){let e=w(2);p(),S("title",e.textValue)}}function C0e(t,i){if(t&1){let e=le();h(0,"span",5),N("click",function(){U(e);let o=w(2);return $(o.showValue())}),C(1),k(2,"truncateText"),b()}if(t&2){let e=w(2);p(),te("",lr(2,1,e.textValue,e.printChars),"...")}}function x0e(t,i){if(t&1){let e=le();h(0,"span",5),N("click",function(){U(e);let o=w(2);return $(o.showValue())}),C(1),b()}if(t&2){let e=w(2);p(),O(e.textValue)}}function M0e(t,i){if(t&1){let e=le();h(0,"span",0),N("mouseenter",function(){U(e);let o=w();return $(o.mouseEnter())})("mouseleave",function(){U(e);let o=w();return $(o.mouseLeave())}),I(1,y0e,2,1,"span",1),I(2,C0e,3,4,"span",2),I(3,x0e,2,1,"span",2),b()}if(t&2){let e=w();p(),T(e.isLongValue()?1:-1),p(),T(e.isLongValue()?2:-1),p(),T(e.isLongValue()?-1:3)}}var sF=(()=>{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=L({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&&I(0,M0e,4,3,"span"),n&2&&T(o.emptyValue?-1:0)},dependencies:[ge,Ce,Qt,sp],encapsulation:2})}}return t})();function w0e(t,i){if(t&1&&(h(0,"mat-option",2),C(1),k(2,"translateKey"),b()),t&2){let e=i.$implicit;S("value",e.id),p(),te(" ",lr(2,2,e.value,"catalogs")," ")}}function D0e(t,i){if(t&1){let e=le();h(0,"button",4),N("click",function(o){U(e);let r=w();return $(r.clearProperty(o))}),h(1,"mat-icon"),C(2),k(3,"translate"),b()()}t&2&&(p(2),O(E(3,1,"labels.buttons.Close")))}var cF=(()=>{class t{constructor(){this.translateService=d(uo),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=L({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"),C(2),b(),h(3,"mat-select",1),et(4,w0e,3,5,"mat-option",2,gt),b(),I(6,D0e,4,3,"button",3),b()),n&2&&(p(2),O(o.getLabelText()),p(),S("placeholder",Vt(o.getPlaceHolderText())),p(),tt(o.selectOptions),p(2),T(o.controlSelect?6:-1))},dependencies:[ge,Ce,fn,Go,Ht,Cn,cs,Qn,un,ai,Po,Le,nl],encapsulation:2})}}return t})();function S0e(t,i){if(t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),k(3,"translate"),h(4,"strong"),C(5),k(6,"translate"),b()()),t&2){let e=w(2);p(),Et(" ",E(2,3,"labels.inputs."+e.inputLabel)," ",E(3,5,"labels.commons.is")," "),p(4),O(E(6,7,"labels.commons.required"))}}function k0e(t,i){if(t&1&&(h(0,"mat-hint",4),C(1),k(2,"currency"),b()),t&2){let e=w(2);p(),O(ym(2,1,e.inputFormControl.value,e.currency.code,e.currency.displaySymbol,"1.2-2"))}}function E0e(t,i){if(t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),k(3,"translate"),b()),t&2){let e=w(2);p(),Ja(" ",E(2,3,"labels.inputs.Amount")," ",E(3,5,"labels.commons.Must be at least")," ",e.minVal," ")}}function I0e(t,i){if(t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),k(3,"translate"),b()),t&2){let e=w(2);p(),Ja(" ",E(2,3,"labels.inputs.Amount")," ",E(3,5,"labels.commons.Must be less or equal to")," ",e.maxVal," ")}}function T0e(t,i){if(t&1){let e=le();h(0,"mat-form-field",0)(1,"mat-label"),C(2),k(3,"translate"),b(),h(4,"div",2)(5,"span"),C(6),b(),h(7,"input",3),N("keypress",function(o){U(e);let r=w();return $(r.numberOnly(o))})("blur",function(){U(e);let o=w();return $(o.displayHint=!1)})("focus",function(){U(e);let o=w();return $(o.displayHint=!0)}),b()(),I(8,S0e,7,9,"mat-error"),I(9,k0e,3,6,"mat-hint",4),I(10,E0e,4,7,"mat-error"),I(11,I0e,4,7,"mat-error"),b()}if(t&2){let e=w();p(2),O(E(3,10,"labels.inputs."+e.inputLabel)),p(4),O(e.currency.code),p(),S("mifosxFormatAmount",bm("",e.currency.code,":",e.currency.displaySymbol))("formControl",e.inputFormControl),p(),T(e.inputFormControl.hasError("required")?8:-1),p(),T(e.displayHint?9:-1),p(),T(e.minVal&&e.inputFormControl.hasError("min")?10:-1),p(),T(e.maxVal&&e.inputFormControl.hasError("max")?11:-1)}}function O0e(t,i){if(t&1&&(h(0,"mat-hint",4),C(1),k(2,"currency"),b()),t&2){let e=w(2);p(),O(ym(2,1,e.inputFormControl.value,e.currency.code,e.currency.displaySymbol,"1.2-2"))}}function L0e(t,i){if(t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),k(3,"translate"),b()),t&2){let e=w(2);p(),Ja(" ",E(2,3,"labels.inputs.Amount")," ",E(3,5,"labels.commons.Must be at least")," ",e.minVal," ")}}function P0e(t,i){if(t&1&&(h(0,"mat-error"),C(1),k(2,"translate"),k(3,"translate"),b()),t&2){let e=w(2);p(),Ja(" ",E(2,3,"labels.inputs.Amount")," ",E(3,5,"labels.commons.Must be less or equal to")," ",e.maxVal," ")}}function A0e(t,i){if(t&1){let e=le();h(0,"mat-form-field",1)(1,"mat-label"),C(2),k(3,"translate"),b(),h(4,"span",5),C(5),b(),F(6,"span",6),h(7,"input",7),N("keypress",function(o){U(e);let r=w();return $(r.numberOnly(o))})("blur",function(){U(e);let o=w();return $(o.displayHint=!1)})("focus",function(){U(e);let o=w();return $(o.displayHint=!0)}),b(),I(8,O0e,3,6,"mat-hint",4),I(9,L0e,4,7,"mat-error"),I(10,P0e,4,7,"mat-error"),b()}if(t&2){let e=w();p(2),O(E(3,9,"labels.inputs."+e.inputLabel)),p(3),O(e.currency.code),p(2),S("mifosxFormatAmount",bm("",e.currency.code,":",e.currency.displaySymbol))("formControl",e.inputFormControl),p(),T(e.displayHint?8:-1),p(),T(e.minVal&&e.inputFormControl.hasError("min")?9:-1),p(),T(e.maxVal&&e.inputFormControl.hasError("max")?10:-1)}}var lF=(()=>{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=L({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&&(I(0,T0e,12,12,"mat-form-field",0),I(1,A0e,11,11,"mat-form-field",1)),n&2&&(T(o.isRequired?0:-1),p(),T(o.isRequired?-1:1))},dependencies:[ge,Ce,Di,fn,Hr,Li,Ht,Cn,bo,cs,ou,ri,aE,E7,Le],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 dF=(()=>{class t{constructor(){this.enableMeridian=!0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=L({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=Ft(2);S("for",r)}},dependencies:[ge,Ce,gu,Ff],encapsulation:2})}}return t})();var git=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t})}static{this.\u0275inj=Z({imports:[ge,Gb,zv,Ce,Z7,gk,sE,Bf,ds,Qr,bO,eh,aP,sP,bP,SP,kP,EP,TP,VP,OP,NP,FP,BP,jP,zN,NN,WN,YN,a6,r6,qN,s6,XN,ZN,JN,eF,tF,nF,c6,oF,aF,sF,cF,lF,lh,dF,ge,Gb,zv,rE,Ce,Z7]})}}return t})();export{Ee as a,Fe as b,B as c,dt as d,wr as e,kn as f,k3e as g,Kt as h,re as i,Do as j,ue as k,Xn as l,rn as m,Va as n,ud as o,Ba as p,mt as q,Te as r,Zn as s,Ro as t,Ve as u,n1 as v,kr as w,So as x,Ss as y,Oc as z,Qe as A,rt as B,xe as C,Dt as D,fe as E,It as F,R as G,Z as H,P as I,be as J,d as K,U as L,$ as M,Gt as N,sr as O,ye as P,De as Q,Gi as R,cr as S,Re as T,Oe as U,X as V,Kc as W,jd as X,jn as Y,Xc as Z,k1 as _,xM as $,S$ as aa,k$ as ba,p as ca,j as da,se as ea,it as fa,Ln as ga,Je as ha,Me as ia,L as ja,J as ka,z as la,ce as ma,Xe as na,O1 as oa,ne as pa,G5 as qa,I as ra,T as sa,gt as ta,et as ua,tt as va,S as wa,h as xa,b as ya,F as za,ot as Aa,st as Ba,Pn as Ca,Wi as Da,Yi as Ea,jt as Fa,le as Ga,At as Ha,N as Ia,w as Ja,ke as Ka,ae as La,Ie as Ma,me as Na,G as Oa,W as Pa,Ft as Qa,zt as Ra,oe as Sa,Lt as Ta,C as Ua,O as Va,te as Wa,Et as Xa,Ja as Ya,qw as Za,P1 as _a,Zd as $a,A1 as ab,Vt as bb,Jc as cb,de as db,Bo as eb,jo as fb,z1 as gb,k as hb,E as ib,lr as jb,RY as kb,ym as lb,Ns as mb,we as nb,Fr as ob,dr as pb,Gn as qb,nS as rb,D7 as sb,iS as tb,Fq as ub,S7 as vb,Fs as wb,s0 as xb,jq as yb,k7 as zb,F1 as Ab,Gq as Bb,c0 as Cb,E7 as Db,ge as Eb,sye as Fb,cS as Gb,F7 as Hb,lQ as Ib,mQ as Jb,j1 as Kb,f0 as Lb,Mi as Mb,ee as Nb,h0 as Ob,B1 as Pb,En as Qb,Jm as Rb,RQ as Sb,NQ as Tb,OS as Ub,ts as Vb,_c as Wb,Jre as Xb,jb as Yb,dh as Zb,dBe as _b,Tu as $b,eae as ac,uh as bc,Vb as cc,Bb as dc,tae as ec,qo as fc,_o as gc,c9 as hc,OI as ic,To as jc,M2 as kc,YZ as lc,ZZ as mc,cl as nc,Hp as oc,ai as pc,yt as qc,vPe as rc,Lo as sc,qn as tc,rc as uc,Ei as vc,vo as wc,MT as xc,Ai as yc,Wce as zc,qt as Ac,Tn as Bc,Ji as Cc,Rn as Dc,xn as Ec,Nn as Fc,Fn as Gc,Q9 as Hc,U1 as Ic,b0 as Jc,uo as Kc,Le as Lc,Z7 as Mc,Ge as Nc,lP as Oc,Bs as Pc,gp as Qc,bMe as Rc,Eo as Sc,Jt as Tc,xk as Uc,bp as Vc,hi as Wc,Di as Xc,on as Yc,fn as Zc,mr as _c,Qk as $c,J1 as ad,Qi as bd,SK as cd,Gs as dd,EK as ed,Li as fd,gi as gd,Jk as hd,eE as id,Go as jd,zK as kd,NK as ld,Hr as md,BK as nd,HK as od,UK as pd,Ws as qd,rE as rd,Ce as sd,UI as td,kEe as ud,EEe as vd,$I as wd,IEe as xd,TEe as yd,OEe as zd,LEe as Ad,PEe as Bd,Cn as Cd,bo as Dd,ou as Ed,ru as Fd,cs as Gd,Ht as Hd,Mf as Id,ri as Jd,un as Kd,xo as Ld,Qn as Md,dee as Nd,Mo as Od,Ff as Pd,Vf as Qd,gu as Rd,fl as Sd,$o as Td,nl as Ud,Hs as Vd,mh as Wd,rF as Xd,Qt as Yd,oP as Zd,pr as _d,ds as $d,Qr as ae,bO as be,eh as ce,j2 as de,hc as ee,aP as fe,sP as ge,El as he,gc as ie,ih as je,Fb as ke,gP as le,bP as me,rh as ne,Po as oe,SP as pe,kP as qe,EP as re,TP as se,OP as te,LP as ue,NP as ve,FP as we,VP as xe,BP as ye,jP as ze,oR as Ae,Lje as Be,Pje as Ce,uR as De,IHe as Ee,_se as Fe,Mse as Ge,yR as He,Ase as Ie,zse as Je,WUe as Ke,YUe as Le,qUe as Me,b$e as Ne,v$e as Oe,y$e as Pe,C$e as Qe,lv as Re,PR as Se,zR as Te,sGe as Ue,_ce as Ve,BR as We,HR as Xe,Tce as Ye,KGe as Ze,zce as _e,wh as $e,KR as af,XR as bf,hv as cf,Mle as df,Dle as ef,Sle as ff,eN as gf,tN as hf,Ph as if,Ah as jf,zh as kf,lqe as lf,Rh as mf,Nh as nf,dqe as of,Fh as pf,Vh as qf,uqe as rf,Bh as sf,jh as tf,mqe as uf,Hh as vf,pqe as wf,lN as xf,Bu as yf,Jle as zf,t1e as Af,n1e as Bf,Uqe as Cf,a1e as Df,s1e as Ef,$qe as Ff,nQe as Gf,SN as Hf,kN as If,RQe as Jf,NQe as Kf,FQe as Lf,VQe as Mf,TN as Nf,BQe as Of,jQe as Pf,ON as Qf,LN as Rf,PN as Sf,Av as Tf,Wh as Uf,zN as Vf,NS as Wf,FS as Xf,VS as Yf,ba as Zf,lk as _f,js as $f,pk as ag,cp as bg,gk as cg,Yh as dg,RN as eg,qh as fg,Qh as gg,NN as hg,BN as ig,jN as jg,HN as kg,UN as lg,$N as mg,GN as ng,WN as og,Cwe as pg,sE as qg,e6 as rg,n6 as sg,i6 as tg,o6 as ug,YN as vg,qN as wg,QN as xg,KN as yg,XN as zg,ZN as Ag,JN as Bg,eF as Cg,tF as Dg,nF as Eg,c6 as Fg,iF as Gg,oF as Hg,aF as Ig,sF as Jg,lF as Kg,git as Lg}; diff --git a/browser/chunk-3PHNJT7K.js b/browser/chunk-NJTLAUS7.js similarity index 97% rename from browser/chunk-3PHNJT7K.js rename to browser/chunk-NJTLAUS7.js index c4ef42c30..07ec97e6a 100644 --- a/browser/chunk-3PHNJT7K.js +++ b/browser/chunk-NJTLAUS7.js @@ -1 +1 @@ -import{G as i,K as p,Nb as n,Qb as v,eg as c,k as u}from"./chunk-24R2X6HR.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,Nb as n,Qb as v,eg as c,k as u}from"./chunk-MTXV3AZ2.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-G63A5RIG.js b/browser/chunk-RPHEO6YW.js similarity index 91% rename from browser/chunk-G63A5RIG.js rename to browser/chunk-RPHEO6YW.js index ef2b2223c..747bab331 100644 --- a/browser/chunk-G63A5RIG.js +++ b/browser/chunk-RPHEO6YW.js @@ -1 +1 @@ -import{G as r,K as i,gg as n}from"./chunk-24R2X6HR.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,gg as n}from"./chunk-MTXV3AZ2.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-JYAHZ2XX.js b/browser/chunk-TR4JWVAF.js similarity index 81% rename from browser/chunk-JYAHZ2XX.js rename to browser/chunk-TR4JWVAF.js index a50954baa..e3bea17f2 100644 --- a/browser/chunk-JYAHZ2XX.js +++ b/browser/chunk-TR4JWVAF.js @@ -1 +1 @@ -import{G as i,K as r,gg as n}from"./chunk-24R2X6HR.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,gg as n}from"./chunk-MTXV3AZ2.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-LQ5TCC6V.js b/browser/chunk-YNN44IR6.js similarity index 99% rename from browser/chunk-LQ5TCC6V.js rename to browser/chunk-YNN44IR6.js index 1e22a1364..b1e075910 100644 --- a/browser/chunk-LQ5TCC6V.js +++ b/browser/chunk-YNN44IR6.js @@ -1 +1 @@ -import{C as y,G as o,J as v,K as u,Kc as C,Nb as a,Qb as h,R as b,Tc as l,b as f}from"./chunk-24R2X6HR.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,Kc as C,Nb as a,Qb as h,R as b,Tc as l,b as f}from"./chunk-MTXV3AZ2.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/collaterals.module-XJE6QYGQ.js b/browser/collaterals.module-7IQT6HRT.js similarity index 99% rename from browser/collaterals.module-XJE6QYGQ.js rename to browser/collaterals.module-7IQT6HRT.js index e2545b6d2..54dd66179 100644 --- a/browser/collaterals.module-XJE6QYGQ.js +++ b/browser/collaterals.module-7IQT6HRT.js @@ -1 +1 @@ -import{$f as Et,Cc as Y,Cd as st,Da as _,Dd as ct,Ea as x,Eb as v,G as y,Ga as J,H as S,Hd as dt,Ia as E,Ja as K,Jd as ut,K as d,L as G,Lc as F,Lg as Tt,M as U,Nb as W,Qb as X,Tc as Z,Td as Ct,Ua as o,Va as c,Vd as ft,Wa as h,Xa as b,Xc as tt,Yc as et,Yd as ht,Zc as it,_c as at,ae as bt,ca as i,cg as Rt,dd as nt,eb as R,gc as P,gd as lt,hb as r,ib as m,if as vt,ja as I,jc as T,jd as ot,jf as gt,ka as w,kc as B,kf as _t,mc as j,md as rt,mf as xt,na as f,nf as Dt,pf as Mt,qc as O,qd as mt,qf as yt,qg as Pt,ra as Q,sa as z,sd as V,sf as St,td as L,tf as It,vf as wt,wa as C,wd as N,xa as l,ya as n,yd as pt,za as u}from"./chunk-24R2X6HR.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{$f as Et,Cc as Y,Cd as st,Da as _,Dd as ct,Ea as x,Eb as v,G as y,Ga as J,H as S,Hd as dt,Ia as E,Ja as K,Jd as ut,K as d,L as G,Lc as F,Lg as Tt,M as U,Nb as W,Qb as X,Tc as Z,Td as Ct,Ua as o,Va as c,Vd as ft,Wa as h,Xa as b,Xc as tt,Yc as et,Yd as ht,Zc as it,_c as at,ae as bt,ca as i,cg as Rt,dd as nt,eb as R,gc as P,gd as lt,hb as r,ib as m,if as vt,ja as I,jc as T,jd as ot,jf as gt,ka as w,kc as B,kf as _t,mc as j,md as rt,mf as xt,na as f,nf as Dt,pf as Mt,qc as O,qd as mt,qf as yt,qg as Pt,ra as Q,sa as z,sd as V,sf as St,td as L,tf as It,vf as wt,wa as C,wd as N,xa as l,ya as n,yd as pt,za as u}from"./chunk-MTXV3AZ2.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-5IEOXBZZ.js b/browser/fixed-deposits.module-PQ33HOCK.js similarity index 99% rename from browser/fixed-deposits.module-5IEOXBZZ.js rename to browser/fixed-deposits.module-PQ33HOCK.js index 64deea913..0c43fa280 100644 --- a/browser/fixed-deposits.module-5IEOXBZZ.js +++ b/browser/fixed-deposits.module-PQ33HOCK.js @@ -1,2 +1,2 @@ -import{a as sn}from"./chunk-PVX767FT.js";import{a as yi,b as Ii}from"./chunk-G63A5RIG.js";import{a as cn}from"./chunk-FHWYEHGD.js";import{$b as oe,$d as he,$e as Wi,$f as ue,Ac as Xt,Ag as an,Bc as Be,Bd as Gi,Cc as Ut,Cd as nt,Cg as rn,Da as b,Db as se,Dc as Zt,Dd as Ct,Df as Ki,Ea as P,Eb as y,Ec as te,Ef as Qi,Fc as ee,Ff as Yi,G as Gt,Ga as F,Gc as ie,Gd as Pt,H as He,Hd as ot,Ia as M,Id as Ft,Ja as _,Jd as dt,K as x,Kd as At,Kg as ei,L as S,Lc as w,Lg as pn,M as A,Md as Ot,Na as ht,Nb as le,Oa as vt,Od as me,Pa as Dt,Pd as Mt,Qa as k,Qb as Ni,Qd as Tt,Rd as St,Re as Ui,Sc as et,Sd as Ue,T as Jt,Tc as U,Td as yt,Ua as a,Ud as It,Va as m,Vd as de,Vf as Ji,Wa as u,Xa as T,Xc as rt,Ya as ce,Yb as Ie,Yc as V,Yd as ut,Zb as Fe,Zc as it,_ as Ri,_c as pt,_e as ji,_f as Xi,ac as ae,ae as ke,ag as Zi,bb as _t,bc as we,bd as Z,bg as tn,ca as i,cf as Ye,cg as en,da as $e,dd as ct,df as Je,eb as R,ed as jt,ee as Re,ef as Xe,fb as Ge,fd as zi,ff as Ze,gc as N,gd as st,gf as ne,gg as $t,hb as r,hc as Vi,he as je,hf as Wt,ib as c,ie as We,if as wt,ja as O,jb as E,jc as W,jd as lt,je as Ke,jf as Et,ka as Le,kc as tt,kf as Bt,lb as at,lc as qi,mc as Oi,md as gt,mf as kt,na as C,nf as Rt,oe as Qe,pa as Te,pc as Ee,pf as Nt,qb as Se,qc as B,qd as mt,qf as Vt,qg as nn,ra as h,rg as ti,sa as v,sb as Ae,sd as I,sf as qt,sg as Ne,ta as $,tb as Oe,td as Y,tf as zt,ua as L,ud as Hi,va as G,vd as $i,vf as Ht,vg as on,wa as d,wd as xt,xa as n,ya as o,yd as bt,yf as ve,za as g,zb as ye,zd as Li}from"./chunk-24R2X6HR.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-XUJ6S2O7.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-AIIL3QLG.js";import{a as yi,b as Ii}from"./chunk-RPHEO6YW.js";import{a as cn}from"./chunk-DZIULWL5.js";import{$b as oe,$d as he,$e as Wi,$f as ue,Ac as Xt,Ag as an,Bc as Be,Bd as Gi,Cc as Ut,Cd as nt,Cg as rn,Da as b,Db as se,Dc as Zt,Dd as Ct,Df as Ki,Ea as P,Eb as y,Ec as te,Ef as Qi,Fc as ee,Ff as Yi,G as Gt,Ga as F,Gc as ie,Gd as Pt,H as He,Hd as ot,Ia as M,Id as Ft,Ja as _,Jd as dt,K as x,Kd as At,Kg as ei,L as S,Lc as w,Lg as pn,M as A,Md as Ot,Na as ht,Nb as le,Oa as vt,Od as me,Pa as Dt,Pd as Mt,Qa as k,Qb as Ni,Qd as Tt,Rd as St,Re as Ui,Sc as et,Sd as Ue,T as Jt,Tc as U,Td as yt,Ua as a,Ud as It,Va as m,Vd as de,Vf as Ji,Wa as u,Xa as T,Xc as rt,Ya as ce,Yb as Ie,Yc as V,Yd as ut,Zb as Fe,Zc as it,_ as Ri,_c as pt,_e as ji,_f as Xi,ac as ae,ae as ke,ag as Zi,bb as _t,bc as we,bd as Z,bg as tn,ca as i,cf as Ye,cg as en,da as $e,dd as ct,df as Je,eb as R,ed as jt,ee as Re,ef as Xe,fb as Ge,fd as zi,ff as Ze,gc as N,gd as st,gf as ne,gg as $t,hb as r,hc as Vi,he as je,hf as Wt,ib as c,ie as We,if as wt,ja as O,jb as E,jc as W,jd as lt,je as Ke,jf as Et,ka as Le,kc as tt,kf as Bt,lb as at,lc as qi,mc as Oi,md as gt,mf as kt,na as C,nf as Rt,oe as Qe,pa as Te,pc as Ee,pf as Nt,qb as Se,qc as B,qd as mt,qf as Vt,qg as nn,ra as h,rg as ti,sa as v,sb as Ae,sd as I,sf as qt,sg as Ne,ta as $,tb as Oe,td as Y,tf as zt,ua as L,ud as Hi,va as G,vd as $i,vf as Ht,vg as on,wa as d,wd as xt,xa as n,ya as o,yd as bt,yf as ve,za as g,zb as ye,zd as Li}from"./chunk-MTXV3AZ2.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-BYH7T3AF.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 ac54ac128..29310c97e 100644 --- a/browser/index.html +++ b/browser/index.html @@ -57,5 +57,5 @@
- + diff --git a/browser/loans.module-3CU5NU4S.js b/browser/loans.module-GHSYSBBB.js similarity index 99% rename from browser/loans.module-3CU5NU4S.js rename to browser/loans.module-GHSYSBBB.js index 41549eed7..7f29d2955 100644 --- a/browser/loans.module-3CU5NU4S.js +++ b/browser/loans.module-GHSYSBBB.js @@ -1,4 +1,4 @@ -import{a as _1}from"./chunk-JYAHZ2XX.js";import{a as Yf,b as h1,c as Gr,d as Wr,e as Op,f as Ep}from"./chunk-LQ5TCC6V.js";import{a as Ip,b as ld,c as C1,d as b1}from"./chunk-3PHNJT7K.js";import{a as g1}from"./chunk-FHWYEHGD.js";import{$ as hp,$a as ec,$d as _i,$e as wo,$f as hn,Aa as ee,Ac as Vo,Ag as d1,Ba as te,Bc as Uo,C as Pf,Cb as kf,Cc as Gn,Cd as ge,Cg as u1,Da as X,Db as Sa,Dc as Kl,Dd as Ve,Df as Qf,Ea as Q,Eb as wt,Ec as Ur,Ee as Jf,Ef as t1,Fc as Ho,Fe as Xf,Ff as e1,G as sn,Ga as xt,Gc as Go,Gd as Je,H as fp,Hd as _e,Ia as it,Id as Wn,Ja as P,Jd as Pe,Jg as Mp,K as A,Kc as pa,Kd as On,Kg as Ri,L as mt,Lc as Pt,Lg as f1,M as dt,Mc as Bf,Md as In,Na as mi,Nc as qf,Oa as di,Od as Oi,Pa as ui,Pc as Jl,Pd as Qe,Qa as Lt,Qd as tn,R as Af,Rd as en,Re as Do,Sc as de,Sd as Da,T as Vr,Tc as oe,Td as En,Tf as n1,Ua as c,Ud as qa,Uf as i1,Va as b,Vb as Zl,Vc as jf,Vd as Ae,Vf as Va,Wa as v,Wf as a1,Xa as $t,Xc as we,Y as Mf,Ya as Xs,Yc as Gt,Yd as un,Za as Qs,Zc as he,Zf as o1,_ as od,_a as tc,_c as Ee,_d as Zf,_e as ja,_f as Pp,ab as nc,ae as ra,af as yp,ag as Ap,b as Df,bb as ce,bd as pe,be as Kf,bg as Hr,c as wf,ca as o,cb as If,cd as zf,cf as Xl,cg as r1,da as Yl,dd as Re,de as _p,df as Ql,dg as ns,e as Tf,eb as Ut,ed as Mi,ee as $o,ef as ts,fb as La,fd as Wo,ff as es,fg as Mt,gc as Et,gd as Le,gf as mo,ha as Of,hb as p,hc as Ff,he as Cp,hf as za,hg as l1,ib as m,ie as bp,if as bn,ja as Dt,jb as Ge,jc as le,jd as Ne,je as vp,jf as vn,ka as gp,kb as Ef,kc as ae,kd as Vf,kf as xn,lb as Ye,lc as Rf,ld as Uf,lf as Sp,mc as rd,md as je,mf as yn,na as k,nf as Sn,oe as xp,of as Dp,og as s1,pa as oa,pc as Ba,pf as Dn,qb as ca,qc as Wt,qd as Te,qf as wn,qg as c1,ra as M,rd as Hf,rf as wp,rg as la,sa as O,sb as Lf,sd as Tt,se as ma,sf as Tn,sg as Ti,ta as Ce,td as xe,tf as Pn,tg as ic,ua as ue,ud as Gf,uf as Tp,va as fe,vd as Wf,vf as An,vg as p1,wa as x,wd as Oe,wg as m1,xa as s,xb as Nf,ya as l,yd as ze,yf as Li,za as T,zd as $f}from"./chunk-24R2X6HR.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,this.createLoansAccountDetailsForm()}ngOnInit(){this.placeHolderLabel=this.translateService.instant("labels.text.Search"),this.noEntriesFoundLabel=this.translateService.instant("labels.text.No data found"),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-XUJ6S2O7.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-BYH7T3AF.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 477a72f20..7b2b7ab15 100644 --- a/browser/main.js +++ b/browser/main.js @@ -1,4 +1,4 @@ -import{a as KF,b as Nk,c as Ia,d as e_,e as li,f as Lk}from"./chunk-LQ5TCC6V.js";import{a as rr,b as NT,c as LT,d as uf}from"./chunk-3PHNJT7K.js";import{$ as _g,$a as Rc,$b as Lo,$c as Fs,$d as an,$e as It,$f as On,A as hl,Aa as xF,Ab as wg,Ac as eo,Ad as YF,Ae as ks,Af as vk,Ag as lc,B as cf,Ba as bF,Bb as Pg,Bc as Po,Bd as S0,Be as Ip,Bf as Qr,Bg as Bk,C as Ll,Ca as xg,Cb as Pp,Cc as Ht,Cd as Be,Ce as Op,Cf as Nr,D as Eo,Da as X,Db as Tg,Dc as $n,Dd as ut,De as pk,Df as ir,Dg as Xg,E as Fo,Ea as Z,Eb as ue,Ec as Un,Ed as qa,Ee as Xa,Ef as nr,Eg as ea,F as cF,Fa as _l,Fb as Vl,Fc as ho,Fd as w0,Fe as Za,Ff as or,Fg as ls,G as Re,Ga as Y,Gb as DF,Gc as Nn,Gd as ai,Ge as Ap,Gf as xk,Gg as To,H as Hi,Ha as yF,Hb as EF,Hc as Rg,Hd as Fe,He as Fp,Hf as bk,Hg as ss,I as C0,Ia as R,Ib as IF,Ic as zF,Id as Ln,Ie as Pr,If as Gg,Ig as Zg,J as gl,Ja as w,Jb as Mg,Jc as HF,Jd as ze,Je as Tr,Jf as D0,Jg as Rk,K as T,Ka as SF,Kb as Dg,Kc as yi,Kd as ft,Ke as ac,Kf as E0,L as z,La as wF,Lb as OF,Lc as he,Ld as hr,Le as Mr,Lf as jg,Lg as oo,M as H,Ma as x0,Mc as Mp,Md as gt,Me as Dr,Mf as yk,N as ia,Na as Ee,Nb as rn,Nc as xn,Nd as ca,Ne as xl,Nf as $g,O as pF,Oa as Te,Ob as kT,Oc as GF,Od as si,Oe as Vo,Of as I0,P as xp,Pa as Me,Pb as AF,Pc as Sr,Pd as pi,Pe as kp,Pf as O0,Q as mF,Qa as xe,Qb as ko,Qc as jF,Qd as mi,Qe as pa,Qf as Sk,R as dF,Ra as yp,Rb as Tp,Rc as $F,Rd as di,Re as kt,Rf as wk,S as uF,Sa as Cl,Sb as FF,Sc as Zt,Sd as fi,Se as mk,Sf as Ug,T as Uo,Ta as PF,Tb as kF,Tc as At,Td as Pi,Te as M0,Tf as Pk,U as gg,Ua as c,Ub as BF,Uc as df,Ud as Fi,Ue as as,Uf as Tk,V as pf,Va as h,Vb as ec,Vc as Qo,Vd as Ke,Ve as er,Vf as Ea,W as fF,Wa as v,Wb as wo,Wc as UF,Wd as JF,We as tr,Wf as rs,X as FT,Xa as se,Xb as As,Xc as st,Xd as XF,Xe as dk,Xf as rc,Y as hF,Ya as Wo,Yb as yr,Yc as re,Yd as ke,Ye as uk,Yf as Wg,Z as gF,Za as bg,Zb as ur,Zc as Ue,Zd as Lg,Ze as fk,Zf as Yr,_ as bp,_a as Bc,_b as RF,_c as Xe,_e as Bp,_f as Wn,a as rf,aa as _F,ab as Nc,ac as Ua,ae as vi,af as ri,ag as go,b as lf,ba as v0,bb as Le,bc as fr,bd as it,be as P0,bf as hk,bg as po,c as Rr,ca as a,cb as Sp,cc as _d,cd as Dp,ce as Ep,cf as ma,cg as ha,d as Ra,da as bi,db as yg,dc as Eg,dd as tt,de as ii,df as da,dg as Oi,e as Z7,ea as fd,eb as oe,ec as mf,ed as tn,ee as Ri,ef as ua,eg as An,f as eF,fa as CF,fb as Nt,fc as Ig,fd as gn,fe as Vg,ff as fa,fg as Mk,g as tF,ga as vF,gb as Ja,gc as Ie,gd as Ze,ge as qg,gf as Ji,h as sf,ha as Cg,hb as p,hc as ra,hd as la,he as ic,hf as qi,hg as A0,i as Os,ia as na,ib as m,ic as Og,id as La,ie as nc,if as _t,ig as Dk,j as iF,ja as me,jb as Ot,jc as qe,jd as et,je as oc,jf as Ct,jg as Ek,k as Dn,ka as Gi,kb as br,kc as Ae,kd as WF,ke as ZF,kf as vt,kg as Ik,l as nF,la as hd,lb as $t,lc as Na,ld as Da,le as ek,lg as Ok,m as oF,ma as vg,mb as ti,mc as hn,md as dt,me as tk,mf as xt,mg as Qg,n as g0,na as F,nb as is,nc as Ag,nd as Ng,ne as T0,nf as bt,ng as Ak,o as ud,oa as xr,ob as TF,oc as Fg,od as Va,oe as Jo,og as Fk,p as aF,pa as wn,pb as b0,pc as wi,pd as QF,pe as zg,pf as yt,pg as Yg,q as fl,qa as gd,qb as co,qc as ve,qd as nt,qe as ik,qf as St,qg as Er,r as kc,ra as E,rb as ns,rc as kg,rd as tc,re as nk,rg as ar,s as vp,sa as I,sb as Ur,sc as BT,sd as fe,se as wr,sf as wt,sg as Cn,t as Oo,ta as Pe,tb as Xs,tc as NF,td as $e,te as Hg,tf as Pt,tg as $i,u as _0,ua as Se,ub as Zs,uc as LF,ud as Yo,ue as ok,ug as Jg,v as Ao,va as we,vb as os,vc as RT,vd as Wr,ve as ak,vf as Tt,vg as Ir,w as al,wa as g,wb as MF,wc as Bg,wd as Je,we as rk,wf as gk,x as rF,xa as l,xb as Ka,xc as VF,xd as vl,xe as lk,xf as _k,xg as kk,y as lF,ya as r,yb as Sg,yc as qF,yd as Et,ye as sk,yf as Wt,yg as Ui,z as sF,za as b,zb as wp,zc as y0,zd as sa,ze as ck,zf as Ck,zg as Kg}from"./chunk-24R2X6HR.js";import{a as at,b as qt,c as Es,d as K7,e as pt,f as OT,g as Is,h as Yn,i as AT,j as X7,k as hg}from"./chunk-PHUH23IY.js";var Sd=pt((N0,yf)=>{(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,V=16,U=32,J=64,le=128,ee=256,ae=512,ce=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",le],["bind",S],["bindKey",M],["curry",k],["curryRight",V],["flip",ae],["partial",U],["partialRight",J],["rearg",ee]],Ne="[object Arguments]",te="[object Array]",Oe="[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]",un="[object Int8Array]",Xi="[object Int16Array]",fn="[object Int32Array]",zi="[object Uint8Array]",Li="[object Uint8ClampedArray]",Qn="[object Uint16Array]",sn="[object Uint32Array]",bn=/\b__p \+= '';/g,Ol=/\b(__p \+=) '' \+/g,vn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Pn=/&(?:amp|lt|gt|quot|#39);/g,Oa=/[&<>"']/g,qn=RegExp(Pn.source),zn=RegExp(Oa.source),Zr=/<%-([\s\S]+?)%>/g,In=/<%([\s\S]+?)%>/g,Tn=/<%=([\s\S]+?)%>/g,sr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vn=/^\w*$/,Mn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,el=/[\\^$.*+?()[\]{}|]/g,Hn=RegExp(el.source),Rt=/^\s+/,ui=/\s/,_i=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ki=/\{\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,cr=/($^)/,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",Gn="\\u2000-\\u206f",Fn=" \\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",jn="A-Z\\xc0-\\xd6\\xd8-\\xde",va="\\ufe0e\\ufe0f",Ta=dn+mo+Gn+Fn,Mo="['\u2019]",jo="["+Ya+"]",pr="["+Ta+"]",kr="["+xi+"]",tl="\\d+",Ul="["+Vi+"]",Us="["+pn+"]",ed="[^"+Ya+Ta+tl+Vi+pn+jn+"]",Ws="\\ud83c[\\udffb-\\udfff]",Io="(?:"+kr+"|"+Ws+")",No="[^"+Ya+"]",td="(?:\\ud83c[\\udde6-\\uddff]){2}",ys="[\\ud800-\\udbff][\\udc00-\\udfff]",Ss="["+jn+"]",Gr="\\u200d",Wl="(?:"+Us+"|"+ed+")",Qs="(?:"+Ss+"|"+ed+")",sp="(?:"+Mo+"(?:d|ll|m|re|s|t|ve))?",id="(?:"+Mo+"(?:D|LL|M|RE|S|T|VE))?",wc=Io+"?",ws="["+va+"]?",Dh="(?:"+Gr+"(?:"+[No,td,ys].join("|")+")"+ws+wc+")*",e0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Gu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",nd=ws+wc+Dh,t0="(?:"+[Ul,td,ys].join("|")+")"+nd,Eh="(?:"+[No+kr+"?",kr,td,ys,jo].join("|")+")",i0=RegExp(Mo,"g"),n0=RegExp(kr,"g"),PP=RegExp(Ws+"(?="+Ws+")|"+Eh+nd,"g"),vZ=RegExp([Ss+"?"+Us+"+"+sp+"(?="+[pr,Ss,"$"].join("|")+")",Qs+"+"+id+"(?="+[pr,Ss+Wl,"$"].join("|")+")",Ss+"?"+Wl+"+"+sp,Ss+"+"+id,Gu,e0,tl,t0].join("|"),"g"),xZ=RegExp("["+Gr+Ya+xi+va+"]"),bZ=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,yZ=["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"],SZ=-1,xa={};xa[Ki]=xa[Xn]=xa[un]=xa[Xi]=xa[fn]=xa[zi]=xa[Li]=xa[Qn]=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[un]=aa[Xi]=aa[fn]=aa[rt]=aa[Qt]=aa[Qe]=aa[Ut]=aa[Jt]=aa[ei]=aa[ni]=aa[zi]=aa[Li]=aa[Qn]=aa[sn]=!0,aa[Ve]=aa[mt]=aa[Ai]=!1;var wZ={\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"},PZ={"&":"&","<":"<",">":">",'"':""","'":"'"},TZ={"&":"&","<":"<",">":">",""":'"',"'":"'"},MZ={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},DZ=parseFloat,EZ=parseInt,jO=typeof global=="object"&&global&&global.Object===Object&&global,IZ=typeof self=="object"&&self&&self.Object===Object&&self,Cr=jO||IZ||Function("return this")(),TP=typeof N0=="object"&&N0&&!N0.nodeType&&N0,od=TP&&typeof yf=="object"&&yf&&!yf.nodeType&&yf,$O=od&&od.exports===TP,MP=$O&&jO.process,Ql=(function(){try{var Yt=od&&od.require&&od.require("util").types;return Yt||MP&&MP.binding&&MP.binding("util")}catch{}})(),UO=Ql&&Ql.isArrayBuffer,WO=Ql&&Ql.isDate,QO=Ql&&Ql.isMap,YO=Ql&&Ql.isRegExp,JO=Ql&&Ql.isSet,KO=Ql&&Ql.isTypedArray;function Al(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 OZ(Yt,Si,hi,mn){for(var Zn=-1,zo=Yt==null?0:Yt.length;++Zn-1}function DP(Yt,Si,hi){for(var mn=-1,Zn=Yt==null?0:Yt.length;++mn-1;);return hi}function aA(Yt,Si){for(var hi=Yt.length;hi--&&o0(Si,Yt[hi],0)>-1;);return hi}function qZ(Yt,Si){for(var hi=Yt.length,mn=0;hi--;)Yt[hi]===Si&&++mn;return mn}var zZ=AP(wZ),HZ=AP(PZ);function GZ(Yt){return"\\"+MZ[Yt]}function jZ(Yt,Si){return Yt==null?e:Yt[Si]}function a0(Yt){return xZ.test(Yt)}function $Z(Yt){return bZ.test(Yt)}function UZ(Yt){for(var Si,hi=[];!(Si=Yt.next()).done;)hi.push(Si.value);return hi}function RP(Yt){var Si=-1,hi=Array(Yt.size);return Yt.forEach(function(mn,Zn){hi[++Si]=[Zn,mn]}),hi}function rA(Yt,Si){return function(hi){return Yt(Si(hi))}}function mp(Yt,Si){for(var hi=-1,mn=Yt.length,Zn=0,zo=[];++hi-1}function Fee(A,q){var ie=this.__data__,De=Wh(ie,A);return De<0?(++this.size,ie.push([A,q])):ie[De][1]=q,this}Pc.prototype.clear=Eee,Pc.prototype.delete=Iee,Pc.prototype.get=Oee,Pc.prototype.has=Aee,Pc.prototype.set=Fee;function Tc(A){var q=-1,ie=A==null?0:A.length;for(this.clear();++q=q?A:q)),A}function Xl(A,q,ie,De,He,ct){var Ft,jt=q&_,Xt=q&C,Di=q&x;if(ie&&(Ft=He?ie(A,De,He,ct):ie(A)),Ft!==e)return Ft;if(!Aa(A))return A;var Ii=no(A);if(Ii){if(Ft=Nte(A),!jt)return pl(A,Ft)}else{var Bi=$r(A),Zi=Bi==mt||Bi==Ye;if(Cp(A))return HA(A,jt);if(Bi==Qe||Bi==Ne||Zi&&!He){if(Ft=Xt||Zi?{}:l7(A),!jt)return Xt?Tte(A,Yee(Ft,A)):Pte(A,CA(Ft,A))}else{if(!aa[Bi])return He?A:{};Ft=Lte(A,Bi,jt)}}ct||(ct=new Ts);var _n=ct.get(A);if(_n)return _n;ct.set(A,Ft),R7(A)?A.forEach(function(Rn){Ft.add(Xl(Rn,q,ie,Rn,A,ct))}):k7(A)&&A.forEach(function(Rn,xo){Ft.set(xo,Xl(Rn,q,ie,xo,A,ct))});var Bn=Di?Xt?sT:lT:Xt?dl:vr,so=Ii?e:Bn(A);return Yl(so||A,function(Rn,xo){so&&(xo=Rn,Rn=A[xo]),Ju(Ft,xo,Xl(Rn,q,ie,xo,A,ct))}),Ft}function Jee(A){var q=vr(A);return function(ie){return vA(ie,A,q)}}function vA(A,q,ie){var De=ie.length;if(A==null)return!De;for(A=ta(A);De--;){var He=ie[De],ct=q[He],Ft=A[He];if(Ft===e&&!(He in A)||!ct(Ft))return!1}return!0}function xA(A,q,ie){if(typeof A!="function")throw new Jl(i);return of(function(){A.apply(e,ie)},q)}function Ku(A,q,ie,De){var He=-1,ct=Ih,Ft=!0,jt=A.length,Xt=[],Di=q.length;if(!jt)return Xt;ie&&(q=Ma(q,Fl(ie))),De?(ct=DP,Ft=!1):q.length>=t&&(ct=ju,Ft=!1,q=new ld(q));e:for(;++HeHe?0:He+ie),De=De===e||De>He?He:ao(De),De<0&&(De+=He),De=ie>De?0:L7(De);ie0&&ie(jt)?q>1?Br(jt,q-1,ie,De,He):pp(He,jt):De||(He[He.length]=jt)}return He}var GP=QA(),SA=QA(!0);function Ys(A,q){return A&&GP(A,q,vr)}function jP(A,q){return A&&SA(A,q,vr)}function Yh(A,q){return cp(q,function(ie){return Oc(A[ie])})}function cd(A,q){q=gp(q,A);for(var ie=0,De=q.length;A!=null&&ieq}function Zee(A,q){return A!=null&&Zo.call(A,q)}function ete(A,q){return A!=null&&q in ta(A)}function tte(A,q,ie){return A>=jr(q,ie)&&A=120&&Ii.length>=120)?new ld(Ft&&Ii):e}Ii=A[0];var Bi=-1,Zi=jt[0];e:for(;++Bi-1;)jt!==A&&qh.call(jt,Xt,1),qh.call(A,Xt,1);return A}function kA(A,q){for(var ie=A?q.length:0,De=ie-1;ie--;){var He=q[ie];if(ie==De||He!==ct){var ct=He;Ic(He)?qh.call(A,He,1):eT(A,He)}}return A}function KP(A,q){return A+Gh(fA()*(q-A+1))}function fte(A,q,ie,De){for(var He=-1,ct=dr(Hh((q-A)/(ie||1)),0),Ft=hi(ct);ct--;)Ft[De?ct:++He]=A,A+=ie;return Ft}function XP(A,q){var ie="";if(!A||q<1||q>L)return ie;do q%2&&(ie+=A),q=Gh(q/2),q&&(A+=A);while(q);return ie}function uo(A,q){return hT(p7(A,q,ul),A+"")}function hte(A){return _A(h0(A))}function gte(A,q){var ie=h0(A);return rg(ie,sd(q,0,ie.length))}function ef(A,q,ie,De){if(!Aa(A))return A;q=gp(q,A);for(var He=-1,ct=q.length,Ft=ct-1,jt=A;jt!=null&&++HeHe?0:He+q),ie=ie>He?He:ie,ie<0&&(ie+=He),He=q>ie?0:ie-q>>>0,q>>>=0;for(var ct=hi(He);++De>>1,Ft=A[ct];Ft!==null&&!Bl(Ft)&&(ie?Ft<=q:Ft=t){var Di=q?null:Ite(A);if(Di)return Ah(Di);Ft=!1,He=ju,Xt=new ld}else Xt=q?[]:jt;e:for(;++De=De?A:Zl(A,q,ie)}var zA=lee||function(A){return Cr.clearTimeout(A)};function HA(A,q){if(q)return A.slice();var ie=A.length,De=cA?cA(ie):new A.constructor(ie);return A.copy(De),De}function oT(A){var q=new A.constructor(A.byteLength);return new Lh(q).set(new Lh(A)),q}function bte(A,q){var ie=q?oT(A.buffer):A.buffer;return new A.constructor(ie,A.byteOffset,A.byteLength)}function yte(A){var q=new A.constructor(A.source,nn.exec(A));return q.lastIndex=A.lastIndex,q}function Ste(A){return Yu?ta(Yu.call(A)):{}}function GA(A,q){var ie=q?oT(A.buffer):A.buffer;return new A.constructor(ie,A.byteOffset,A.length)}function jA(A,q){if(A!==q){var ie=A!==e,De=A===null,He=A===A,ct=Bl(A),Ft=q!==e,jt=q===null,Xt=q===q,Di=Bl(q);if(!jt&&!Di&&!ct&&A>q||ct&&Ft&&Xt&&!jt&&!Di||De&&Ft&&Xt||!ie&&Xt||!He)return 1;if(!De&&!ct&&!Di&&A=jt)return Xt;var Di=ie[De];return Xt*(Di=="desc"?-1:1)}}return A.index-q.index}function $A(A,q,ie,De){for(var He=-1,ct=A.length,Ft=ie.length,jt=-1,Xt=q.length,Di=dr(ct-Ft,0),Ii=hi(Xt+Di),Bi=!De;++jt1?ie[He-1]:e,Ft=He>2?ie[2]:e;for(ct=A.length>3&&typeof ct=="function"?(He--,ct):e,Ft&&nl(ie[0],ie[1],Ft)&&(ct=He<3?e:ct,He=1),q=ta(q);++De-1?He[ct?q[Ft]:Ft]:e}}function KA(A){return Ec(function(q){var ie=q.length,De=ie,He=Kl.prototype.thru;for(A&&q.reverse();De--;){var ct=q[De];if(typeof ct!="function")throw new Jl(i);if(He&&!Ft&&og(ct)=="wrapper")var Ft=new Kl([],!0)}for(De=Ft?De:ie;++De1&&Do.reverse(),Ii&&Xtjt))return!1;var Di=ct.get(A),Ii=ct.get(q);if(Di&&Ii)return Di==q&&Ii==A;var Bi=-1,Zi=!0,_n=ie&P?new ld:e;for(ct.set(A,q),ct.set(q,A);++Bi1?"& ":"")+q[De],q=q.join(ie>2?", ":" "),A.replace(_i,`{ +import{a as KF,b as Nk,c as Ia,d as e_,e as li,f as Lk}from"./chunk-YNN44IR6.js";import{a as rr,b as NT,c as LT,d as uf}from"./chunk-NJTLAUS7.js";import{$ as _g,$a as Rc,$b as Lo,$c as Fs,$d as an,$e as It,$f as On,A as hl,Aa as xF,Ab as wg,Ac as eo,Ad as YF,Ae as ks,Af as vk,Ag as lc,B as cf,Ba as bF,Bb as Pg,Bc as Po,Bd as S0,Be as Ip,Bf as Qr,Bg as Bk,C as Ll,Ca as xg,Cb as Pp,Cc as Ht,Cd as Be,Ce as Op,Cf as Nr,D as Eo,Da as X,Db as Tg,Dc as $n,Dd as ut,De as pk,Df as ir,Dg as Xg,E as Fo,Ea as Z,Eb as ue,Ec as Un,Ed as qa,Ee as Xa,Ef as nr,Eg as ea,F as cF,Fa as _l,Fb as Vl,Fc as ho,Fd as w0,Fe as Za,Ff as or,Fg as ls,G as Re,Ga as Y,Gb as DF,Gc as Nn,Gd as ai,Ge as Ap,Gf as xk,Gg as To,H as Hi,Ha as yF,Hb as EF,Hc as Rg,Hd as Fe,He as Fp,Hf as bk,Hg as ss,I as C0,Ia as R,Ib as IF,Ic as zF,Id as Ln,Ie as Pr,If as Gg,Ig as Zg,J as gl,Ja as w,Jb as Mg,Jc as HF,Jd as ze,Je as Tr,Jf as D0,Jg as Rk,K as T,Ka as SF,Kb as Dg,Kc as yi,Kd as ft,Ke as ac,Kf as E0,L as z,La as wF,Lb as OF,Lc as he,Ld as hr,Le as Mr,Lf as jg,Lg as oo,M as H,Ma as x0,Mc as Mp,Md as gt,Me as Dr,Mf as yk,N as ia,Na as Ee,Nb as rn,Nc as xn,Nd as ca,Ne as xl,Nf as $g,O as pF,Oa as Te,Ob as kT,Oc as GF,Od as si,Oe as Vo,Of as I0,P as xp,Pa as Me,Pb as AF,Pc as Sr,Pd as pi,Pe as kp,Pf as O0,Q as mF,Qa as xe,Qb as ko,Qc as jF,Qd as mi,Qe as pa,Qf as Sk,R as dF,Ra as yp,Rb as Tp,Rc as $F,Rd as di,Re as kt,Rf as wk,S as uF,Sa as Cl,Sb as FF,Sc as Zt,Sd as fi,Se as mk,Sf as Ug,T as Uo,Ta as PF,Tb as kF,Tc as At,Td as Pi,Te as M0,Tf as Pk,U as gg,Ua as c,Ub as BF,Uc as df,Ud as Fi,Ue as as,Uf as Tk,V as pf,Va as h,Vb as ec,Vc as Qo,Vd as Ke,Ve as er,Vf as Ea,W as fF,Wa as v,Wb as wo,Wc as UF,Wd as JF,We as tr,Wf as rs,X as FT,Xa as se,Xb as As,Xc as st,Xd as XF,Xe as dk,Xf as rc,Y as hF,Ya as Wo,Yb as yr,Yc as re,Yd as ke,Ye as uk,Yf as Wg,Z as gF,Za as bg,Zb as ur,Zc as Ue,Zd as Lg,Ze as fk,Zf as Yr,_ as bp,_a as Bc,_b as RF,_c as Xe,_e as Bp,_f as Wn,a as rf,aa as _F,ab as Nc,ac as Ua,ae as vi,af as ri,ag as go,b as lf,ba as v0,bb as Le,bc as fr,bd as it,be as P0,bf as hk,bg as po,c as Rr,ca as a,cb as Sp,cc as _d,cd as Dp,ce as Ep,cf as ma,cg as ha,d as Ra,da as bi,db as yg,dc as Eg,dd as tt,de as ii,df as da,dg as Oi,e as Z7,ea as fd,eb as oe,ec as mf,ed as tn,ee as Ri,ef as ua,eg as An,f as eF,fa as CF,fb as Nt,fc as Ig,fd as gn,fe as Vg,ff as fa,fg as Mk,g as tF,ga as vF,gb as Ja,gc as Ie,gd as Ze,ge as qg,gf as Ji,h as sf,ha as Cg,hb as p,hc as ra,hd as la,he as ic,hf as qi,hg as A0,i as Os,ia as na,ib as m,ic as Og,id as La,ie as nc,if as _t,ig as Dk,j as iF,ja as me,jb as Ot,jc as qe,jd as et,je as oc,jf as Ct,jg as Ek,k as Dn,ka as Gi,kb as br,kc as Ae,kd as WF,ke as ZF,kf as vt,kg as Ik,l as nF,la as hd,lb as $t,lc as Na,ld as Da,le as ek,lg as Ok,m as oF,ma as vg,mb as ti,mc as hn,md as dt,me as tk,mf as xt,mg as Qg,n as g0,na as F,nb as is,nc as Ag,nd as Ng,ne as T0,nf as bt,ng as Ak,o as ud,oa as xr,ob as TF,oc as Fg,od as Va,oe as Jo,og as Fk,p as aF,pa as wn,pb as b0,pc as wi,pd as QF,pe as zg,pf as yt,pg as Yg,q as fl,qa as gd,qb as co,qc as ve,qd as nt,qe as ik,qf as St,qg as Er,r as kc,ra as E,rb as ns,rc as kg,rd as tc,re as nk,rg as ar,s as vp,sa as I,sb as Ur,sc as BT,sd as fe,se as wr,sf as wt,sg as Cn,t as Oo,ta as Pe,tb as Xs,tc as NF,td as $e,te as Hg,tf as Pt,tg as $i,u as _0,ua as Se,ub as Zs,uc as LF,ud as Yo,ue as ok,ug as Jg,v as Ao,va as we,vb as os,vc as RT,vd as Wr,ve as ak,vf as Tt,vg as Ir,w as al,wa as g,wb as MF,wc as Bg,wd as Je,we as rk,wf as gk,x as rF,xa as l,xb as Ka,xc as VF,xd as vl,xe as lk,xf as _k,xg as kk,y as lF,ya as r,yb as Sg,yc as qF,yd as Et,ye as sk,yf as Wt,yg as Ui,z as sF,za as b,zb as wp,zc as y0,zd as sa,ze as ck,zf as Ck,zg as Kg}from"./chunk-MTXV3AZ2.js";import{a as at,b as qt,c as Es,d as K7,e as pt,f as OT,g as Is,h as Yn,i as AT,j as X7,k as hg}from"./chunk-PHUH23IY.js";var Sd=pt((N0,yf)=>{(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,V=16,U=32,J=64,le=128,ee=256,ae=512,ce=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",le],["bind",S],["bindKey",M],["curry",k],["curryRight",V],["flip",ae],["partial",U],["partialRight",J],["rearg",ee]],Ne="[object Arguments]",te="[object Array]",Oe="[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]",un="[object Int8Array]",Xi="[object Int16Array]",fn="[object Int32Array]",zi="[object Uint8Array]",Li="[object Uint8ClampedArray]",Qn="[object Uint16Array]",sn="[object Uint32Array]",bn=/\b__p \+= '';/g,Ol=/\b(__p \+=) '' \+/g,vn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Pn=/&(?:amp|lt|gt|quot|#39);/g,Oa=/[&<>"']/g,qn=RegExp(Pn.source),zn=RegExp(Oa.source),Zr=/<%-([\s\S]+?)%>/g,In=/<%([\s\S]+?)%>/g,Tn=/<%=([\s\S]+?)%>/g,sr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vn=/^\w*$/,Mn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,el=/[\\^$.*+?()[\]{}|]/g,Hn=RegExp(el.source),Rt=/^\s+/,ui=/\s/,_i=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ki=/\{\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,cr=/($^)/,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",Gn="\\u2000-\\u206f",Fn=" \\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",jn="A-Z\\xc0-\\xd6\\xd8-\\xde",va="\\ufe0e\\ufe0f",Ta=dn+mo+Gn+Fn,Mo="['\u2019]",jo="["+Ya+"]",pr="["+Ta+"]",kr="["+xi+"]",tl="\\d+",Ul="["+Vi+"]",Us="["+pn+"]",ed="[^"+Ya+Ta+tl+Vi+pn+jn+"]",Ws="\\ud83c[\\udffb-\\udfff]",Io="(?:"+kr+"|"+Ws+")",No="[^"+Ya+"]",td="(?:\\ud83c[\\udde6-\\uddff]){2}",ys="[\\ud800-\\udbff][\\udc00-\\udfff]",Ss="["+jn+"]",Gr="\\u200d",Wl="(?:"+Us+"|"+ed+")",Qs="(?:"+Ss+"|"+ed+")",sp="(?:"+Mo+"(?:d|ll|m|re|s|t|ve))?",id="(?:"+Mo+"(?:D|LL|M|RE|S|T|VE))?",wc=Io+"?",ws="["+va+"]?",Dh="(?:"+Gr+"(?:"+[No,td,ys].join("|")+")"+ws+wc+")*",e0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Gu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",nd=ws+wc+Dh,t0="(?:"+[Ul,td,ys].join("|")+")"+nd,Eh="(?:"+[No+kr+"?",kr,td,ys,jo].join("|")+")",i0=RegExp(Mo,"g"),n0=RegExp(kr,"g"),PP=RegExp(Ws+"(?="+Ws+")|"+Eh+nd,"g"),vZ=RegExp([Ss+"?"+Us+"+"+sp+"(?="+[pr,Ss,"$"].join("|")+")",Qs+"+"+id+"(?="+[pr,Ss+Wl,"$"].join("|")+")",Ss+"?"+Wl+"+"+sp,Ss+"+"+id,Gu,e0,tl,t0].join("|"),"g"),xZ=RegExp("["+Gr+Ya+xi+va+"]"),bZ=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,yZ=["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"],SZ=-1,xa={};xa[Ki]=xa[Xn]=xa[un]=xa[Xi]=xa[fn]=xa[zi]=xa[Li]=xa[Qn]=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[un]=aa[Xi]=aa[fn]=aa[rt]=aa[Qt]=aa[Qe]=aa[Ut]=aa[Jt]=aa[ei]=aa[ni]=aa[zi]=aa[Li]=aa[Qn]=aa[sn]=!0,aa[Ve]=aa[mt]=aa[Ai]=!1;var wZ={\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"},PZ={"&":"&","<":"<",">":">",'"':""","'":"'"},TZ={"&":"&","<":"<",">":">",""":'"',"'":"'"},MZ={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},DZ=parseFloat,EZ=parseInt,jO=typeof global=="object"&&global&&global.Object===Object&&global,IZ=typeof self=="object"&&self&&self.Object===Object&&self,Cr=jO||IZ||Function("return this")(),TP=typeof N0=="object"&&N0&&!N0.nodeType&&N0,od=TP&&typeof yf=="object"&&yf&&!yf.nodeType&&yf,$O=od&&od.exports===TP,MP=$O&&jO.process,Ql=(function(){try{var Yt=od&&od.require&&od.require("util").types;return Yt||MP&&MP.binding&&MP.binding("util")}catch{}})(),UO=Ql&&Ql.isArrayBuffer,WO=Ql&&Ql.isDate,QO=Ql&&Ql.isMap,YO=Ql&&Ql.isRegExp,JO=Ql&&Ql.isSet,KO=Ql&&Ql.isTypedArray;function Al(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 OZ(Yt,Si,hi,mn){for(var Zn=-1,zo=Yt==null?0:Yt.length;++Zn-1}function DP(Yt,Si,hi){for(var mn=-1,Zn=Yt==null?0:Yt.length;++mn-1;);return hi}function aA(Yt,Si){for(var hi=Yt.length;hi--&&o0(Si,Yt[hi],0)>-1;);return hi}function qZ(Yt,Si){for(var hi=Yt.length,mn=0;hi--;)Yt[hi]===Si&&++mn;return mn}var zZ=AP(wZ),HZ=AP(PZ);function GZ(Yt){return"\\"+MZ[Yt]}function jZ(Yt,Si){return Yt==null?e:Yt[Si]}function a0(Yt){return xZ.test(Yt)}function $Z(Yt){return bZ.test(Yt)}function UZ(Yt){for(var Si,hi=[];!(Si=Yt.next()).done;)hi.push(Si.value);return hi}function RP(Yt){var Si=-1,hi=Array(Yt.size);return Yt.forEach(function(mn,Zn){hi[++Si]=[Zn,mn]}),hi}function rA(Yt,Si){return function(hi){return Yt(Si(hi))}}function mp(Yt,Si){for(var hi=-1,mn=Yt.length,Zn=0,zo=[];++hi-1}function Fee(A,q){var ie=this.__data__,De=Wh(ie,A);return De<0?(++this.size,ie.push([A,q])):ie[De][1]=q,this}Pc.prototype.clear=Eee,Pc.prototype.delete=Iee,Pc.prototype.get=Oee,Pc.prototype.has=Aee,Pc.prototype.set=Fee;function Tc(A){var q=-1,ie=A==null?0:A.length;for(this.clear();++q=q?A:q)),A}function Xl(A,q,ie,De,He,ct){var Ft,jt=q&_,Xt=q&C,Di=q&x;if(ie&&(Ft=He?ie(A,De,He,ct):ie(A)),Ft!==e)return Ft;if(!Aa(A))return A;var Ii=no(A);if(Ii){if(Ft=Nte(A),!jt)return pl(A,Ft)}else{var Bi=$r(A),Zi=Bi==mt||Bi==Ye;if(Cp(A))return HA(A,jt);if(Bi==Qe||Bi==Ne||Zi&&!He){if(Ft=Xt||Zi?{}:l7(A),!jt)return Xt?Tte(A,Yee(Ft,A)):Pte(A,CA(Ft,A))}else{if(!aa[Bi])return He?A:{};Ft=Lte(A,Bi,jt)}}ct||(ct=new Ts);var _n=ct.get(A);if(_n)return _n;ct.set(A,Ft),R7(A)?A.forEach(function(Rn){Ft.add(Xl(Rn,q,ie,Rn,A,ct))}):k7(A)&&A.forEach(function(Rn,xo){Ft.set(xo,Xl(Rn,q,ie,xo,A,ct))});var Bn=Di?Xt?sT:lT:Xt?dl:vr,so=Ii?e:Bn(A);return Yl(so||A,function(Rn,xo){so&&(xo=Rn,Rn=A[xo]),Ju(Ft,xo,Xl(Rn,q,ie,xo,A,ct))}),Ft}function Jee(A){var q=vr(A);return function(ie){return vA(ie,A,q)}}function vA(A,q,ie){var De=ie.length;if(A==null)return!De;for(A=ta(A);De--;){var He=ie[De],ct=q[He],Ft=A[He];if(Ft===e&&!(He in A)||!ct(Ft))return!1}return!0}function xA(A,q,ie){if(typeof A!="function")throw new Jl(i);return of(function(){A.apply(e,ie)},q)}function Ku(A,q,ie,De){var He=-1,ct=Ih,Ft=!0,jt=A.length,Xt=[],Di=q.length;if(!jt)return Xt;ie&&(q=Ma(q,Fl(ie))),De?(ct=DP,Ft=!1):q.length>=t&&(ct=ju,Ft=!1,q=new ld(q));e:for(;++HeHe?0:He+ie),De=De===e||De>He?He:ao(De),De<0&&(De+=He),De=ie>De?0:L7(De);ie0&&ie(jt)?q>1?Br(jt,q-1,ie,De,He):pp(He,jt):De||(He[He.length]=jt)}return He}var GP=QA(),SA=QA(!0);function Ys(A,q){return A&&GP(A,q,vr)}function jP(A,q){return A&&SA(A,q,vr)}function Yh(A,q){return cp(q,function(ie){return Oc(A[ie])})}function cd(A,q){q=gp(q,A);for(var ie=0,De=q.length;A!=null&&ieq}function Zee(A,q){return A!=null&&Zo.call(A,q)}function ete(A,q){return A!=null&&q in ta(A)}function tte(A,q,ie){return A>=jr(q,ie)&&A=120&&Ii.length>=120)?new ld(Ft&&Ii):e}Ii=A[0];var Bi=-1,Zi=jt[0];e:for(;++Bi-1;)jt!==A&&qh.call(jt,Xt,1),qh.call(A,Xt,1);return A}function kA(A,q){for(var ie=A?q.length:0,De=ie-1;ie--;){var He=q[ie];if(ie==De||He!==ct){var ct=He;Ic(He)?qh.call(A,He,1):eT(A,He)}}return A}function KP(A,q){return A+Gh(fA()*(q-A+1))}function fte(A,q,ie,De){for(var He=-1,ct=dr(Hh((q-A)/(ie||1)),0),Ft=hi(ct);ct--;)Ft[De?ct:++He]=A,A+=ie;return Ft}function XP(A,q){var ie="";if(!A||q<1||q>L)return ie;do q%2&&(ie+=A),q=Gh(q/2),q&&(A+=A);while(q);return ie}function uo(A,q){return hT(p7(A,q,ul),A+"")}function hte(A){return _A(h0(A))}function gte(A,q){var ie=h0(A);return rg(ie,sd(q,0,ie.length))}function ef(A,q,ie,De){if(!Aa(A))return A;q=gp(q,A);for(var He=-1,ct=q.length,Ft=ct-1,jt=A;jt!=null&&++HeHe?0:He+q),ie=ie>He?He:ie,ie<0&&(ie+=He),He=q>ie?0:ie-q>>>0,q>>>=0;for(var ct=hi(He);++De>>1,Ft=A[ct];Ft!==null&&!Bl(Ft)&&(ie?Ft<=q:Ft=t){var Di=q?null:Ite(A);if(Di)return Ah(Di);Ft=!1,He=ju,Xt=new ld}else Xt=q?[]:jt;e:for(;++De=De?A:Zl(A,q,ie)}var zA=lee||function(A){return Cr.clearTimeout(A)};function HA(A,q){if(q)return A.slice();var ie=A.length,De=cA?cA(ie):new A.constructor(ie);return A.copy(De),De}function oT(A){var q=new A.constructor(A.byteLength);return new Lh(q).set(new Lh(A)),q}function bte(A,q){var ie=q?oT(A.buffer):A.buffer;return new A.constructor(ie,A.byteOffset,A.byteLength)}function yte(A){var q=new A.constructor(A.source,nn.exec(A));return q.lastIndex=A.lastIndex,q}function Ste(A){return Yu?ta(Yu.call(A)):{}}function GA(A,q){var ie=q?oT(A.buffer):A.buffer;return new A.constructor(ie,A.byteOffset,A.length)}function jA(A,q){if(A!==q){var ie=A!==e,De=A===null,He=A===A,ct=Bl(A),Ft=q!==e,jt=q===null,Xt=q===q,Di=Bl(q);if(!jt&&!Di&&!ct&&A>q||ct&&Ft&&Xt&&!jt&&!Di||De&&Ft&&Xt||!ie&&Xt||!He)return 1;if(!De&&!ct&&!Di&&A=jt)return Xt;var Di=ie[De];return Xt*(Di=="desc"?-1:1)}}return A.index-q.index}function $A(A,q,ie,De){for(var He=-1,ct=A.length,Ft=ie.length,jt=-1,Xt=q.length,Di=dr(ct-Ft,0),Ii=hi(Xt+Di),Bi=!De;++jt1?ie[He-1]:e,Ft=He>2?ie[2]:e;for(ct=A.length>3&&typeof ct=="function"?(He--,ct):e,Ft&&nl(ie[0],ie[1],Ft)&&(ct=He<3?e:ct,He=1),q=ta(q);++De-1?He[ct?q[Ft]:Ft]:e}}function KA(A){return Ec(function(q){var ie=q.length,De=ie,He=Kl.prototype.thru;for(A&&q.reverse();De--;){var ct=q[De];if(typeof ct!="function")throw new Jl(i);if(He&&!Ft&&og(ct)=="wrapper")var Ft=new Kl([],!0)}for(De=Ft?De:ie;++De1&&Do.reverse(),Ii&&Xtjt))return!1;var Di=ct.get(A),Ii=ct.get(q);if(Di&&Ii)return Di==q&&Ii==A;var Bi=-1,Zi=!0,_n=ie&P?new ld:e;for(ct.set(A,q),ct.set(q,A);++Bi1?"& ":"")+q[De],q=q.join(ie>2?", ":" "),A.replace(_i,`{ /* [wrapped with `+q+`] */ `)}function qte(A){return no(A)||dd(A)||!!(dA&&A&&A[dA])}function Ic(A,q){var ie=typeof A;return q=q??L,!!q&&(ie=="number"||ie!="symbol"&&Pa.test(A))&&A>-1&&A%1==0&&A0){if(++q>=de)return arguments[0]}else q=0;return A.apply(e,arguments)}}function rg(A,q){var ie=-1,De=A.length,He=De-1;for(q=q===e?De:q;++ie1?A[q-1]:e;return ie=typeof ie=="function"?(A.pop(),ie):e,y7(A,ie)});function S7(A){var q=ot(A);return q.__chain__=!0,q}function Kie(A,q){return q(A),A}function lg(A,q){return q(A)}var Xie=Ec(function(A){var q=A.length,ie=q?A[0]:0,De=this.__wrapped__,He=function(ct){return HP(ct,A)};return q>1||this.__actions__.length||!(De instanceof So)||!Ic(ie)?this.thru(He):(De=De.slice(ie,+ie+(q?1:0)),De.__actions__.push({func:lg,args:[He],thisArg:e}),new Kl(De,this.__chain__).thru(function(ct){return q&&!ct.length&&ct.push(e),ct}))});function Zie(){return S7(this)}function ene(){return new Kl(this.value(),this.__chain__)}function tne(){this.__values__===e&&(this.__values__=N7(this.value()));var A=this.__index__>=this.__values__.length,q=A?e:this.__values__[this.__index__++];return{done:A,value:q}}function ine(){return this}function nne(A){for(var q,ie=this;ie instanceof Uh;){var De=g7(ie);De.__index__=0,De.__values__=e,q?He.__wrapped__=De:q=De;var He=De;ie=ie.__wrapped__}return He.__wrapped__=A,q}function one(){var A=this.__wrapped__;if(A instanceof So){var q=A;return this.__actions__.length&&(q=new So(this)),q=q.reverse(),q.__actions__.push({func:lg,args:[gT],thisArg:e}),new Kl(q,this.__chain__)}return this.thru(gT)}function ane(){return VA(this.__wrapped__,this.__actions__)}var rne=Zh(function(A,q,ie){Zo.call(A,ie)?++A[ie]:Mc(A,ie,1)});function lne(A,q,ie){var De=no(A)?XO:Kee;return ie&&nl(A,q,ie)&&(q=e),De(A,kn(q,3))}function sne(A,q){var ie=no(A)?cp:yA;return ie(A,kn(q,3))}var cne=JA(_7),pne=JA(C7);function mne(A,q){return Br(sg(A,q),1)}function dne(A,q){return Br(sg(A,q),B)}function une(A,q,ie){return ie=ie===e?1:ao(ie),Br(sg(A,q),ie)}function w7(A,q){var ie=no(A)?Yl:fp;return ie(A,kn(q,3))}function P7(A,q){var ie=no(A)?AZ:bA;return ie(A,kn(q,3))}var fne=Zh(function(A,q,ie){Zo.call(A,ie)?A[ie].push(q):Mc(A,ie,[q])});function hne(A,q,ie,De){A=ml(A)?A:h0(A),ie=ie&&!De?ao(ie):0;var He=A.length;return ie<0&&(ie=dr(He+ie,0)),ug(A)?ie<=He&&A.indexOf(q,ie)>-1:!!He&&o0(A,q,ie)>-1}var gne=uo(function(A,q,ie){var De=-1,He=typeof q=="function",ct=ml(A)?hi(A.length):[];return fp(A,function(Ft){ct[++De]=He?Al(q,Ft,ie):Xu(Ft,q,ie)}),ct}),_ne=Zh(function(A,q,ie){Mc(A,ie,q)});function sg(A,q){var ie=no(A)?Ma:DA;return ie(A,kn(q,3))}function Cne(A,q,ie,De){return A==null?[]:(no(q)||(q=q==null?[]:[q]),ie=De?e:ie,no(ie)||(ie=ie==null?[]:[ie]),AA(A,q,ie))}var vne=Zh(function(A,q,ie){A[ie?0:1].push(q)},function(){return[[],[]]});function xne(A,q,ie){var De=no(A)?EP:iA,He=arguments.length<3;return De(A,kn(q,4),ie,He,fp)}function bne(A,q,ie){var De=no(A)?FZ:iA,He=arguments.length<3;return De(A,kn(q,4),ie,He,bA)}function yne(A,q){var ie=no(A)?cp:yA;return ie(A,mg(kn(q,3)))}function Sne(A){var q=no(A)?_A:hte;return q(A)}function wne(A,q,ie){(ie?nl(A,q,ie):q===e)?q=1:q=ao(q);var De=no(A)?Uee:gte;return De(A,q)}function Pne(A){var q=no(A)?Wee:Cte;return q(A)}function Tne(A){if(A==null)return 0;if(ml(A))return ug(A)?r0(A):A.length;var q=$r(A);return q==rt||q==Jt?A.size:QP(A).length}function Mne(A,q,ie){var De=no(A)?IP:vte;return ie&&nl(A,q,ie)&&(q=e),De(A,kn(q,3))}var Dne=uo(function(A,q){if(A==null)return[];var ie=q.length;return ie>1&&nl(A,q[0],q[1])?q=[]:ie>2&&nl(q[0],q[1],q[2])&&(q=[q[0]]),AA(A,Br(q,1),[])}),cg=see||function(){return Cr.Date.now()};function Ene(A,q){if(typeof q!="function")throw new Jl(i);return A=ao(A),function(){if(--A<1)return q.apply(this,arguments)}}function T7(A,q,ie){return q=ie?e:q,q=A&&q==null?A.length:q,Dc(A,le,e,e,e,e,q)}function M7(A,q){var ie;if(typeof q!="function")throw new Jl(i);return A=ao(A),function(){return--A>0&&(ie=q.apply(this,arguments)),A<=1&&(q=e),ie}}var CT=uo(function(A,q,ie){var De=S;if(ie.length){var He=mp(ie,u0(CT));De|=U}return Dc(A,De,q,ie,He)}),D7=uo(function(A,q,ie){var De=S|M;if(ie.length){var He=mp(ie,u0(D7));De|=U}return Dc(q,De,A,ie,He)});function E7(A,q,ie){q=ie?e:q;var De=Dc(A,k,e,e,e,e,e,q);return De.placeholder=E7.placeholder,De}function I7(A,q,ie){q=ie?e:q;var De=Dc(A,V,e,e,e,e,e,q);return De.placeholder=I7.placeholder,De}function O7(A,q,ie){var De,He,ct,Ft,jt,Xt,Di=0,Ii=!1,Bi=!1,Zi=!0;if(typeof A!="function")throw new Jl(i);q=ts(q)||0,Aa(ie)&&(Ii=!!ie.leading,Bi="maxWait"in ie,ct=Bi?dr(ts(ie.maxWait)||0,q):ct,Zi="trailing"in ie?!!ie.trailing:Zi);function _n($a){var Ds=De,Fc=He;return De=He=e,Di=$a,Ft=A.apply(Fc,Ds),Ft}function Bn($a){return Di=$a,jt=of(xo,q),Ii?_n($a):Ft}function so($a){var Ds=$a-Xt,Fc=$a-Di,J7=q-Ds;return Bi?jr(J7,ct-Fc):J7}function Rn($a){var Ds=$a-Xt,Fc=$a-Di;return Xt===e||Ds>=q||Ds<0||Bi&&Fc>=ct}function xo(){var $a=cg();if(Rn($a))return Do($a);jt=of(xo,so($a))}function Do($a){return jt=e,Zi&&De?_n($a):(De=He=e,Ft)}function Rl(){jt!==e&&zA(jt),Di=0,De=Xt=He=jt=e}function ol(){return jt===e?Ft:Do(cg())}function Nl(){var $a=cg(),Ds=Rn($a);if(De=arguments,He=this,Xt=$a,Ds){if(jt===e)return Bn(Xt);if(Bi)return zA(jt),jt=of(xo,q),_n(Xt)}return jt===e&&(jt=of(xo,q)),Ft}return Nl.cancel=Rl,Nl.flush=ol,Nl}var Ine=uo(function(A,q){return xA(A,1,q)}),One=uo(function(A,q,ie){return xA(A,ts(q)||0,ie)});function Ane(A){return Dc(A,ae)}function pg(A,q){if(typeof A!="function"||q!=null&&typeof q!="function")throw new Jl(i);var ie=function(){var De=arguments,He=q?q.apply(this,De):De[0],ct=ie.cache;if(ct.has(He))return ct.get(He);var Ft=A.apply(this,De);return ie.cache=ct.set(He,Ft)||ct,Ft};return ie.cache=new(pg.Cache||Tc),ie}pg.Cache=Tc;function mg(A){if(typeof A!="function")throw new Jl(i);return function(){var q=arguments;switch(q.length){case 0:return!A.call(this);case 1:return!A.call(this,q[0]);case 2:return!A.call(this,q[0],q[1]);case 3:return!A.call(this,q[0],q[1],q[2])}return!A.apply(this,q)}}function Fne(A){return M7(2,A)}var kne=xte(function(A,q){q=q.length==1&&no(q[0])?Ma(q[0],Fl(kn())):Ma(Br(q,1),Fl(kn()));var ie=q.length;return uo(function(De){for(var He=-1,ct=jr(De.length,ie);++He=q}),dd=PA((function(){return arguments})())?PA:function(A){return Ba(A)&&Zo.call(A,"callee")&&!mA.call(A,"callee")},no=hi.isArray,Yne=UO?Fl(UO):nte;function ml(A){return A!=null&&dg(A.length)&&!Oc(A)}function ja(A){return Ba(A)&&ml(A)}function Jne(A){return A===!0||A===!1||Ba(A)&&il(A)==K}var Cp=pee||IT,Kne=WO?Fl(WO):ote;function Xne(A){return Ba(A)&&A.nodeType===1&&!af(A)}function Zne(A){if(A==null)return!0;if(ml(A)&&(no(A)||typeof A=="string"||typeof A.splice=="function"||Cp(A)||f0(A)||dd(A)))return!A.length;var q=$r(A);if(q==rt||q==Jt)return!A.size;if(nf(A))return!QP(A).length;for(var ie in A)if(Zo.call(A,ie))return!1;return!0}function eoe(A,q){return Zu(A,q)}function toe(A,q,ie){ie=typeof ie=="function"?ie:e;var De=ie?ie(A,q):e;return De===e?Zu(A,q,e,ie):!!De}function xT(A){if(!Ba(A))return!1;var q=il(A);return q==Ve||q==Ce||typeof A.message=="string"&&typeof A.name=="string"&&!af(A)}function ioe(A){return typeof A=="number"&&uA(A)}function Oc(A){if(!Aa(A))return!1;var q=il(A);return q==mt||q==Ye||q==Oe||q==Bt}function F7(A){return typeof A=="number"&&A==ao(A)}function dg(A){return typeof A=="number"&&A>-1&&A%1==0&&A<=L}function Aa(A){var q=typeof A;return A!=null&&(q=="object"||q=="function")}function Ba(A){return A!=null&&typeof A=="object"}var k7=QO?Fl(QO):rte;function noe(A,q){return A===q||WP(A,q,pT(q))}function ooe(A,q,ie){return ie=typeof ie=="function"?ie:e,WP(A,q,pT(q),ie)}function aoe(A){return B7(A)&&A!=+A}function roe(A){if(Gte(A))throw new Zn(n);return TA(A)}function loe(A){return A===null}function soe(A){return A==null}function B7(A){return typeof A=="number"||Ba(A)&&il(A)==Qt}function af(A){if(!Ba(A)||il(A)!=Qe)return!1;var q=Vh(A);if(q===null)return!0;var ie=Zo.call(q,"constructor")&&q.constructor;return typeof ie=="function"&&ie instanceof ie&&Bh.call(ie)==oee}var bT=YO?Fl(YO):lte;function coe(A){return F7(A)&&A>=-L&&A<=L}var R7=JO?Fl(JO):ste;function ug(A){return typeof A=="string"||!no(A)&&Ba(A)&&il(A)==ei}function Bl(A){return typeof A=="symbol"||Ba(A)&&il(A)==ni}var f0=KO?Fl(KO):cte;function poe(A){return A===e}function moe(A){return Ba(A)&&$r(A)==Ai}function doe(A){return Ba(A)&&il(A)==Ni}var uoe=ng(YP),foe=ng(function(A,q){return A<=q});function N7(A){if(!A)return[];if(ml(A))return ug(A)?Ps(A):pl(A);if($u&&A[$u])return UZ(A[$u]());var q=$r(A),ie=q==rt?RP:q==Jt?Ah:h0;return ie(A)}function Ac(A){if(!A)return A===0?A:0;if(A=ts(A),A===B||A===-B){var q=A<0?-1:1;return q*N}return A===A?A:0}function ao(A){var q=Ac(A),ie=q%1;return q===q?ie?q-ie:q:0}function L7(A){return A?sd(ao(A),0,$):0}function ts(A){if(typeof A=="number")return A;if(Bl(A))return G;if(Aa(A)){var q=typeof A.valueOf=="function"?A.valueOf():A;A=Aa(q)?q+"":q}if(typeof A!="string")return A===0?A:+A;A=nA(A);var ie=ro.test(A);return ie||Go.test(A)?EZ(A.slice(2),ie?2:8):Ro.test(A)?G:+A}function V7(A){return Js(A,dl(A))}function hoe(A){return A?sd(ao(A),-L,L):A===0?A:0}function $o(A){return A==null?"":kl(A)}var goe=m0(function(A,q){if(nf(q)||ml(q)){Js(q,vr(q),A);return}for(var ie in q)Zo.call(q,ie)&&Ju(A,ie,q[ie])}),q7=m0(function(A,q){Js(q,dl(q),A)}),fg=m0(function(A,q,ie,De){Js(q,dl(q),A,De)}),_oe=m0(function(A,q,ie,De){Js(q,vr(q),A,De)}),Coe=Ec(HP);function voe(A,q){var ie=p0(A);return q==null?ie:CA(ie,q)}var xoe=uo(function(A,q){A=ta(A);var ie=-1,De=q.length,He=De>2?q[2]:e;for(He&&nl(q[0],q[1],He)&&(De=1);++ie1),ct}),Js(A,sT(A),ie),De&&(ie=Xl(ie,_|C|x,Ote));for(var He=q.length;He--;)eT(ie,q[He]);return ie});function Loe(A,q){return H7(A,mg(kn(q)))}var Voe=Ec(function(A,q){return A==null?{}:dte(A,q)});function H7(A,q){if(A==null)return{};var ie=Ma(sT(A),function(De){return[De]});return q=kn(q),FA(A,ie,function(De,He){return q(De,He[0])})}function qoe(A,q,ie){q=gp(q,A);var De=-1,He=q.length;for(He||(He=1,A=e);++Deq){var De=A;A=q,q=De}if(ie||A%1||q%1){var He=fA();return jr(A+He*(q-A+DZ("1e-"+((He+"").length-1))),q)}return KP(A,q)}var Koe=d0(function(A,q,ie){return q=q.toLowerCase(),A+(ie?$7(q):q)});function $7(A){return wT($o(A).toLowerCase())}function U7(A){return A=$o(A),A&&A.replace(Qa,zZ).replace(n0,"")}function Xoe(A,q,ie){A=$o(A),q=kl(q);var De=A.length;ie=ie===e?De:sd(ao(ie),0,De);var He=ie;return ie-=q.length,ie>=0&&A.slice(ie,He)==q}function Zoe(A){return A=$o(A),A&&zn.test(A)?A.replace(Oa,HZ):A}function eae(A){return A=$o(A),A&&Hn.test(A)?A.replace(el,"\\$&"):A}var tae=d0(function(A,q,ie){return A+(ie?"-":"")+q.toLowerCase()}),iae=d0(function(A,q,ie){return A+(ie?" ":"")+q.toLowerCase()}),nae=YA("toLowerCase");function oae(A,q,ie){A=$o(A),q=ao(q);var De=q?r0(A):0;if(!q||De>=q)return A;var He=(q-De)/2;return ig(Gh(He),ie)+A+ig(Hh(He),ie)}function aae(A,q,ie){A=$o(A),q=ao(q);var De=q?r0(A):0;return q&&De>>0,ie?(A=$o(A),A&&(typeof q=="string"||q!=null&&!bT(q))&&(q=kl(q),!q&&a0(A))?_p(Ps(A),0,ie):A.split(q,ie)):[]}var dae=d0(function(A,q,ie){return A+(ie?" ":"")+wT(q)});function uae(A,q,ie){return A=$o(A),ie=ie==null?0:sd(ao(ie),0,A.length),q=kl(q),A.slice(ie,ie+q.length)==q}function fae(A,q,ie){var De=ot.templateSettings;ie&&nl(A,q,ie)&&(q=e),A=$o(A),q=fg({},q,De,i7);var He=fg({},q.imports,De.imports,i7),ct=vr(He),Ft=BP(He,ct),jt,Xt,Di=0,Ii=q.interpolate||cr,Bi="__p += '",Zi=NP((q.escape||cr).source+"|"+Ii.source+"|"+(Ii===Tn?yn:cr).source+"|"+(q.evaluate||cr).source+"|$","g"),_n="//# sourceURL="+(Zo.call(q,"sourceURL")?(q.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++SZ+"]")+` `;A.replace(Zi,function(Rn,xo,Do,Rl,ol,Nl){return Do||(Do=Rl),Bi+=A.slice(Di,Nl).replace(Ga,GZ),xo&&(jt=!0,Bi+=`' + @@ -47,7 +47,7 @@ use chrome, FireFox or Internet Explorer 11`)}var d=e("safe-buffer"),u=e("random `,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.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>=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 Vk(e){return new Fo(3e3,!1)}function sre(){return new Fo(3100,!1)}function cre(){return new Fo(3101,!1)}function pre(e){return new Fo(3001,!1)}function mre(e){return new Fo(3003,!1)}function dre(e){return new Fo(3004,!1)}function zk(e,o){return new Fo(3005,!1)}function Hk(){return new Fo(3006,!1)}function Gk(){return new Fo(3007,!1)}function jk(e,o){return new Fo(3008,!1)}function $k(e){return new Fo(3002,!1)}function Uk(e,o,t,n,i){return new Fo(3010,!1)}function Wk(){return new Fo(3011,!1)}function Qk(){return new Fo(3012,!1)}function Yk(){return new Fo(3200,!1)}function Jk(){return new Fo(3202,!1)}function Kk(){return new Fo(3013,!1)}function Xk(e){return new Fo(3014,!1)}function Zk(e){return new Fo(3015,!1)}function e8(e){return new Fo(3016,!1)}function t8(e,o){return new Fo(3404,!1)}function ure(e){return new Fo(3502,!1)}function i8(e){return new Fo(3503,!1)}function n8(){return new Fo(3300,!1)}function o8(e){return new Fo(3504,!1)}function a8(e){return new Fo(3301,!1)}function r8(e,o){return new Fo(3302,!1)}function l8(e){return new Fo(3303,!1)}function s8(e,o){return new Fo(3400,!1)}function c8(e){return new Fo(3401,!1)}function p8(e){return new Fo(3402,!1)}function m8(e,o){return new Fo(3505,!1)}function Lc(e){switch(e.length){case 0:return new _d;case 1:return e[0];default:return new Eg(e)}}function HT(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 mf:M=t.get(P);break;case As: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 ure(i);return s}function t_(e,o,t,n){switch(o){case"start":e.onStart(()=>n(t&&VT(t,"start",e)));break;case"done":e.onDone(()=>n(t&&VT(t,"done",e)));break;case"destroy":e.onDestroy(()=>n(t&&VT(t,"destroy",e)));break}}function VT(e,o,t){let n=t.totalTime,i=!!t.disabled,s=i_(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 i_(e,o,t,n,i="",s=0,d){return{element:e,triggerName:o,fromState:t,toState:n,phaseName:i,totalTime:s,disabled:!!d}}function bl(e,o,t){let n=e.get(o);return n||e.set(o,n=t),n}function GT(e){let o=e.indexOf(":"),t=e.substring(1,o),n=e.slice(o+1);return[t,n]}var fre=typeof document>"u"?null:document.documentElement;function n_(e){let o=e.parentNode||e.host||null;return o===fre?null:o}function hre(e){return e.substring(1,6)=="ebkit"}var Cd=null,qk=!1;function d8(e){Cd||(Cd=gre()||{},qk=Cd.style?"WebkitAppearance"in Cd.style:!1);let o=!0;return Cd.style&&!hre(e)&&(o=e in Cd.style,!o&&qk&&(o="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in Cd.style)),o}function gre(){return typeof document<"u"?document.body:null}function jT(e,o){for(;o;){if(o===e)return!0;o=n_(o)}return!1}function $T(e,o,t){if(t)return Array.from(e.querySelectorAll(o));let n=e.querySelector(o);return n?[n]:[]}var _re=1e3,UT="{{",Cre="}}",WT="ng-enter",o_="ng-leave",ff="ng-trigger",hf=".ng-trigger",QT="ng-animating",a_=".ng-animating";function sc(e){if(typeof e=="number")return e;let o=e.match(/^(-?[\.\d]+)(m?s)/);return!o||o.length<2?0:qT(parseFloat(o[1]),o[2])}function qT(e,o){switch(o){case"s":return e*_re;default:return e}}function gf(e,o,t){return e.hasOwnProperty("duration")?e:xre(e,o,t)}var vre=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function xre(e,o,t){let n,i=0,s="";if(typeof e=="string"){let d=e.match(vre);if(d===null)return o.push(Vk(e)),{duration:0,delay:0,easing:""};n=qT(parseFloat(d[1]),d[2]);let u=d[3];u!=null&&(i=qT(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(sre()),d=!0),i<0&&(o.push(cre()),d=!0),d&&o.splice(u,0,Vk(e))}return{duration:n,delay:i,easing:s}}function u8(e){return e.length?e[0]instanceof Map?e:e.map(o=>new Map(Object.entries(o))):[]}function Bs(e,o,t){o.forEach((n,i)=>{let s=r_(i);t&&!t.has(i)&&t.set(i,e.style[s]),e.style[s]=n})}function Rp(e,o){o.forEach((t,n)=>{let i=r_(n);e.style[i]=""})}function F0(e){return Array.isArray(e)?e.length==1?e[0]:RF(e):e}function f8(e,o,t){let n=o.params||{},i=YT(e);i.length&&i.forEach(s=>{n.hasOwnProperty(s)||t.push(pre(s))})}var zT=new RegExp(`${UT}\\s*(.+?)\\s*${Cre}`,"g");function YT(e){let o=[];if(typeof e=="string"){let t;for(;t=zT.exec(e);)o.push(t[1]);zT.lastIndex=0}return o}function k0(e,o,t){let n=`${e}`,i=n.replace(zT,(s,d)=>{let u=o[d];return u==null&&(t.push(mre(d)),u=""),u.toString()});return i==n?e:i}var bre=/-+([a-z0-9])/g;function r_(e){return e.replace(bre,(...o)=>o[1].toUpperCase())}function h8(e,o){return e===0||o===0}function g8(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,l_(e,u)))}}return o}function yl(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 dre(o.type)}}function l_(e,o){return window.getComputedStyle(e)[o]}var d4=(()=>{class e{validateStyleProperty(t){return d8(t)}containsElement(t,n){return jT(t,n)}getParentElement(t){return n_(t)}query(t,n,i){return $T(t,n,i)}computeStyle(t,n,i){return i||""}animate(t,n,i,s,d,u=[],f){return new _d(i,s)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Re({token:e,factory:e.\u0275fac})}return e})(),xd=class{static NOOP=new d4},bd=class{};var yre=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"]),d_=class extends bd{normalizePropertyName(o,t){return r_(o)}normalizeStyleValue(o,t,n,i){let s="",d=n.toString().trim();if(yre.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(zk(o,n))}return d+s}};var u_="*";function Sre(e,o){let t=[];return typeof e=="string"?e.split(/\s*,\s*/).forEach(n=>wre(n,t,o)):t.push(e),t}function wre(e,o,t){if(e[0]==":"){let f=Pre(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(Zk(e)),o;let i=n[1],s=n[2],d=n[3];o.push(_8(i,d));let u=i==u_&&d==u_;s[0]=="<"&&!u&&o.push(_8(d,i))}function Pre(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 s_=new Set(["true","1"]),c_=new Set(["false","0"]);function _8(e,o){let t=s_.has(e)||c_.has(e),n=s_.has(o)||c_.has(o);return(i,s)=>{let d=e==u_||e==i,u=o==u_||o==s;return!d&&t&&typeof i=="boolean"&&(d=i?s_.has(e):c_.has(e)),!u&&n&&typeof s=="boolean"&&(u=s?s_.has(o):c_.has(o)),d&&u}}var M8=":self",Tre=new RegExp(`s*${M8}s*,?`,"g");function D8(e,o,t,n){return new t4(e).build(o,t,n)}var C8="",t4=class{_driver;constructor(o){this._driver=o}build(o,t,n){let i=new i4(t);return this._resetContextStyleTimingState(i),yl(this,F0(o),i)}_resetContextStyleTimingState(o){o.currentQuerySelector=C8,o.collectedStyles=new Map,o.collectedStyles.set(C8,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(Hk()),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(Gk())}),{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=>{YT(f).forEach(_=>{d.hasOwnProperty(_)||s.add(_)})})}),s.size&&t.errors.push(jk(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=yl(this,F0(o.animation),t),i=Sre(o.expr,t.errors);return{type:wo.Transition,matchers:i,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:vd(o.options)}}visitSequence(o,t){return{type:wo.Sequence,steps:o.steps.map(n=>yl(this,n,t)),options:vd(o.options)}}visitGroup(o,t){let n=t.currentTime,i=0,s=o.steps.map(d=>{t.currentTime=n;let u=yl(this,d,t);return i=Math.max(i,t.currentTime),u});return t.currentTime=i,{type:wo.Group,steps:s,options:vd(o.options)}}visitAnimate(o,t){let n=Ire(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===As?n.push(u):t.errors.push($k(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(UT)>=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(Uk(f,C.startTime,C.endTime,s,i)),x=!1),s=C.startTime),x&&_.set(f,{startTime:s,endTime:i}),t.options&&f8(u,t.options,t.errors)})})}visitKeyframes(o,t){let n={type:wo.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Wk()),n;let i=1,s=0,d=[],u=!1,f=!1,_=0,C=o.steps.map(k=>{let V=this._makeStyleAst(k,t),U=V.offset!=null?V.offset:Ere(V.styles),J=0;return U!=null&&(s++,J=V.offset=U),f=f||J<0||J>1,u=u||J<_,_=J,d.push(J),V});f&&t.errors.push(Qk()),u&&t.errors.push(Yk());let x=o.steps.length,y=0;s>0&&s{let U=y>0?V==P?1:y*V:d[V],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:yl(this,F0(o.animation),t),options:vd(o.options)}}visitAnimateChild(o,t){return t.depCount++,{type:wo.AnimateChild,options:vd(o.options)}}visitAnimateRef(o,t){return{type:wo.AnimateRef,animation:this.visitReference(o.animation,t),options:vd(o.options)}}visitQuery(o,t){let n=t.currentQuerySelector,i=o.options||{};t.queryCount++,t.currentQuery=o;let[s,d]=Mre(o.selector);t.currentQuerySelector=n.length?n+" "+s:s,bl(t.collectedStyles,t.currentQuerySelector,new Map);let u=yl(this,F0(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:vd(o.options)}}visitStagger(o,t){t.currentQuery||t.errors.push(Kk());let n=o.timings==="full"?{duration:0,delay:0,easing:"full"}:gf(o.timings,t.errors,!0);return{type:wo.Stagger,animation:yl(this,F0(o.animation),t),timings:n,options:null}}};function Mre(e){let o=!!e.split(/\s*,\s*/).find(t=>t==M8);return o&&(e=e.replace(Tre,"")),e=e.replace(/@\*/g,hf).replace(/@\w+/g,t=>hf+"-"+t.slice(1)).replace(/:animating/g,a_),[e,o]}function Dre(e){return e?at({},e):null}var i4=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 Ere(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 Ire(e,o){if(e.hasOwnProperty("duration"))return e;if(typeof e=="number"){let s=gf(e,o).duration;return JT(s,0,"")}let t=e;if(t.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=JT(0,0,"");return s.dynamic=!0,s.strValue=t,s}let i=gf(t,o);return JT(i.duration,i.delay,i.easing)}function vd(e){return e?(e=at({},e),e.params&&(e.params=Dre(e.params))):e={},e}function JT(e,o,t){return{duration:e,delay:o,easing:t}}function u4(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 Cf=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()}},Ore=1,Are=":enter",Fre=new RegExp(Are,"g"),kre=":leave",Bre=new RegExp(kre,"g");function E8(e,o,t,n,i,s=new Map,d=new Map,u,f,_=[]){return new n4().buildKeyframes(e,o,t,n,i,s,d,u,f,_)}var n4=class{buildKeyframes(o,t,n,i,s,d,u,f,_,C=[]){_=_||new Cf;let x=new o4(o,t,_,i,s,C,[]);x.options=f;let y=f.delay?sc(f.delay):0;x.currentTimeline.delayNextStep(y),x.currentTimeline.setStyles([d],null,x.errors,f),yl(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()):[u4(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:sc(k0(s,i?.params??{},t.errors));n.delayNextStep(d)}}}_visitSubInstructions(o,t,n){let s=t.currentTimeline.currentTime,d=n.duration!=null?sc(n.duration):null,u=n.delay!=null?sc(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),yl(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=f_);let d=sc(s.delay);i.delayNextStep(d)}o.steps.length&&(o.steps.forEach(d=>yl(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?sc(o.options.delay):0;o.steps.forEach(d=>{let u=t.createSubContext(o.options);s&&u.delayNextStep(s),yl(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?k0(n,t.params,t.errors):n;return gf(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?sc(i.delay):0;s&&(t.previousNode.type===wo.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=f_);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),yl(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;yl(this,o.animation,t),t.previousNode=o,n.currentStaggerTime=i.currentTime-x+(i.startTime-n.currentTimeline.startTime)}},f_={},o4=class e{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=f_;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 h_(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=sc(n.duration)),n.delay!=null&&(i.delay=sc(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]=k0(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=f_,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 a4(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(Fre,"."+this._enterClassName),o=o.replace(Bre,"."+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(Xk(t)),u}},h_=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+=Ore,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||As),this._currentKeyframe.set(t,As);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(o,t,n,i){t&&this._previousKeyframe.set("easing",t);let s=i&&i.params||{},d=Rre(o,this._globalTimelineStyles);for(let[u,f]of d){let _=k0(f,s,n);this._pendingStyles.set(u,_),this._localTimelineStyles.has(u)||this._backFill.set(u,this._globalTimelineStyles.get(u)??As),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===mf?o.add(x):C===As&&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 u4(this.element,i,s,d,this.duration,this.startTime,this.easing,!1)}},a4=class extends h_{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",v8(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",v8(S/d)),s.push(y)}n=d,t=0,i="",o=s}return u4(this.element,o,this.preStyleProps,this.postStyleProps,n,t,i,!0)}};function v8(e,o=3){let t=Math.pow(10,o-1);return Math.round(e*t)/t}function Rre(e,o){let t=new Map,n;return e.forEach(i=>{if(i==="*"){n??=o.keys();for(let s of n)t.set(s,As)}else for(let[s,d]of i)t.set(s,d)}),t}function x8(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 KT={},g_=class{_triggerName;ast;_stateStyles;constructor(o,t,n){this._triggerName=o,this.ast=t,this._stateStyles=n}match(o,t,n,i){return Nre(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||KT,P=u&&u.params||KT,S=this.buildStyles(n,P,x),M=f&&f.params||KT,D=this.buildStyles(i,M,x),k=new Set,V=new Map,U=new Map,J=i==="void",le={params:I8(M,y),delay:this.ast.options?.delay},ee=C?[]:E8(o,t,this.ast.animation,s,d,S,D,le,_,x),ae=0;return ee.forEach(ce=>{ae=Math.max(ce.duration+ce.delay,ae)}),x.length?x8(t,this._triggerName,n,i,J,S,D,[],[],V,U,ae,x):(ee.forEach(ce=>{let _e=ce.element,de=bl(V,_e,new Set);ce.preStyleProps.forEach(W=>de.add(W));let j=bl(U,_e,new Set);ce.postStyleProps.forEach(W=>j.add(W)),_e!==t&&k.add(_e)}),x8(t,this._triggerName,n,i,J,S,D,ee,[...k.values()],V,U,ae))}};function Nre(e,o,t,n,i){return e.some(s=>s(o,t,n,i))}function I8(e,o){let t=at({},o);return Object.entries(e).forEach(([n,i])=>{i!=null&&(t[n]=i)}),t}var r4=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=I8(o,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((d,u)=>{d&&(d=k0(d,i,t));let f=this.normalizer.normalizePropertyName(u,t);d=this.normalizer.normalizeStyleValue(u,f,d,t),n.set(u,d)})}),n}};function Lre(e,o,t){return new l4(e,o,t)}var l4=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 r4(i.style,s,n))}),b8(this.states,"true","1"),b8(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new g_(o,i,this.states))}),this.fallbackTransition=Vre(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 Vre(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 g_(e,s,o)}function b8(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 qre=new Cf,s4=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=D8(this._driver,t,n,i);if(n.length)throw i8(n);this._animations.set(o,s)}_buildPlayer(o,t,n){let i=o.element,s=HT(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=E8(this._driver,t,s,WT,o_,new Map,new Map,n,qre,i),d.forEach(C=>{let x=bl(u,C.element,new Map);C.postStyleProps.forEach(y=>x.set(y,null))})):(i.push(n8()),d=[]),i.length)throw o8(i);u.forEach((C,x)=>{C.forEach((y,P)=>{C.set(P,this._driver.computeStyle(x,P,As))})});let f=d.map(C=>{let x=u.get(C.element);return this._buildPlayer(C,new Map,x)}),_=Lc(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 a8(o);return t}listen(o,t,n,i){let s=i_(t,"","","");return t_(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}}},y8="ng-animate-queued",zre=".ng-animate-queued",XT="ng-animate-disabled",Hre=".ng-animate-disabled",Gre="ng-star-inserted",jre=".ng-star-inserted",$re=[],O8={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ure={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Rs="__ng_removed",vf=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=Qre(i),n){let s=o,{value:d}=s,u=K7(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])})}}},_f="void",ZT=new vf(_f),c4=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,cs(t,this._hostClassName)}listen(o,t,n,i){if(!this._triggers.has(t))throw r8(n,t);if(n==null||n.length==0)throw l8(t);if(!Yre(n))throw s8(n,t);let s=bl(this._elementListeners,o,[]),d={name:t,phase:n,callback:i};s.push(d);let u=bl(this._engine.statesByElement,o,new Map);return u.has(t)||(cs(o,ff),cs(o,ff+"-"+t),u.set(t,ZT)),()=>{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 c8(o);return t}trigger(o,t,n,i=!0){let s=this._getTrigger(t),d=new xf(this.id,t,o),u=this._engine.statesByElement.get(o);u||(cs(o,ff),cs(o,ff+"-"+t),this._engine.statesByElement.set(o,u=new Map));let f=u.get(t),_=new vf(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&f&&_.absorbOptions(f.options),u.set(t,_),f||(f=ZT),!(_.value===_f)&&f.value===_.value){if(!Xre(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(()=>{Rp(o,D),Bs(o,k)})}return}let y=bl(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||(cs(o,y8),d.onStart(()=>{B0(o,y8)})),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,hf,!0);n.forEach(i=>{if(i[Rs])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,_,_f,i);C&&u.push(C)}}),u.length)return this._engine.markElementAsRemoved(this.id,o,!0,t,d),n&&Lc(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)||ZT,C=new vf(_f),x=new xf(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[Rs];(!s||s===O8)&&(n.afterFlush(()=>this.clearElementCache(o)),n.destroyInnerAnimations(o),n._onRemovalComplete(o,t))}}insertNode(o,t){cs(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=i_(s,n.triggerName,n.fromState.value,n.toState.value);f._data=o,t_(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)}},p4=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 c4(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(p_(t)){let s=this._fetchNamespace(o);if(s)return s.trigger(t,n,i),!0}return!1}insertNode(o,t,n,i){if(!p_(t))return;let s=t[Rs];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),cs(o,XT)):this.disabledNodes.has(o)&&(this.disabledNodes.delete(o),B0(o,XT))}removeNode(o,t,n){if(p_(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[Rs]={namespaceId:o,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(o,t,n,i,s){return p_(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,hf,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(o,a_,!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 Lc(this.players).onDone(()=>o());o()})}processLeaveNode(o){let t=o[Rs];if(t&&t.setForRemoval){if(o[Rs]=O8,t.namespaceId){this.destroyInnerAnimations(o);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(o)}this._onRemovalComplete(o,t.setForRemoval)}o.classList?.contains(XT)&&this.markElementAsDisabled(o,!1),this.driver.query(o,Hre,!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?Lc(t).onDone(()=>{n.forEach(i=>i())}):n.forEach(i=>i())}}reportError(o){throw p8(o)}_flushAnimations(o,t){let n=new Cf,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,zre,!0);for(let G=0;G{let G=WT+M++;S.set(N,G),L.forEach($=>cs($,G))});let D=[],k=new Set,V=new Set;for(let L=0;Lk.add($)):V.add(N))}let U=new Map,J=P8(y,Array.from(k));J.forEach((L,N)=>{let G=o_+M++;U.set(N,G),L.forEach($=>cs($,G))}),o.push(()=>{P.forEach((L,N)=>{let G=S.get(N);L.forEach($=>B0($,G))}),J.forEach((L,N)=>{let G=U.get(N);L.forEach($=>B0($,G))}),D.forEach(L=>{this.processLeaveNode(L)})});let le=[],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(le.push($),this.collectedEnterElements.length){let Q=ne[Rs];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(()=>Rp(ne,te.fromStyles)),$.onDestroy(()=>Bs(ne,te.toStyles)),i.push($);return}if(G.isFallbackTransition){$.onStart(()=>Rp(ne,te.fromStyles)),$.onDestroy(()=>Bs(ne,te.toStyles)),i.push($);return}let Oe=[];te.timelines.forEach(Q=>{Q.stretchStartingKeyframe=!0,this.disabledNodes.has(Q.element)||Oe.push(Q)}),te.timelines=Oe,n.append(ne,te.timelines);let K={instruction:te,player:$,element:ne};d.push(K),te.queriedElements.forEach(Q=>bl(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(m8(N.triggerName,N.errors))}),le.forEach(N=>N.destroy()),this.reportError(L)}let ae=new Map,ce=new Map;d.forEach(L=>{let N=L.element;n.has(N)&&(ce.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($=>{bl(ae,N,[]).push($),$.destroy()})});let _e=D.filter(L=>T8(L,f,_)),de=new Map;w8(de,this.driver,V,_,As).forEach(L=>{T8(L,f,_)&&_e.push(L)});let W=new Map;P.forEach((L,N)=>{w8(W,this.driver,new Set(L),f,mf)}),_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(()=>Bs(N,$.toStyles)),G.disabled=!0,G.overrideTotalTime($.totalTime),i.push(G);return}let ne=B;if(ce.size>1){let ye=N,Ne=[];for(;ye=ye.parentNode;){let te=ce.get(ye);if(te){ne=te;break}Ne.push(ye)}Ne.forEach(te=>ce.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=Lc(ye)),i.push(G)}}else Rp(N,$.fromStyles),G.onDestroy(()=>Bs(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=Lc(N);L.setRealPlayer(G)}}),i.forEach(L=>{L.parentPlayer?L.syncPlayerEvents(L.parentPlayer):L.destroy()});for(let L=0;L!be.destroyed);ne.length?Jre(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==_f;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=bl(n,_,[]);this._getPreviousPlayers(_,C,d,u,t.toState).forEach(P=>{let S=P.getRealPlayer();S.beforeDestroy&&S.beforeDestroy(),P.destroy(),x.push(P)})}Rp(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[Rs];if(D&&D.removedBeforeQueried)return new _d(S.duration,S.delay);let k=M!==f,V=Kre((n.get(M)||$re).map(ae=>ae.getRealPlayer())).filter(ae=>{let ce=ae;return ce.element?ce.element===M:!1}),U=s.get(M),J=d.get(M),le=HT(this._normalizer,S.keyframes,U,J),ee=this._buildPlayer(S,le,V);if(S.subTimeline&&i&&x.add(M),k){let ae=new xf(o,u,M);ae.setRealPlayer(ee),_.push(ae)}return ee});_.forEach(S=>{bl(this.playersByQueriedElement,S.element,[]).push(S),S.onDone(()=>Wre(this.playersByQueriedElement,S.element,S))}),C.forEach(S=>cs(S,QT));let P=Lc(y);return P.onDestroy(()=>{C.forEach(S=>B0(S,QT)),Bs(f,t.toStyles)}),x.forEach(S=>{bl(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 _d(o.duration,o.delay)}},xf=class{namespaceId;triggerName;element;_player=new _d;_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=>t_(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){bl(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 Wre(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 Qre(e){return e??null}function p_(e){return e&&e.nodeType===1}function Yre(e){return e=="start"||e=="done"}function S8(e,o){let t=e.style.display;return e.style.display=o??"none",t}function w8(e,o,t,n,i){let s=[];t.forEach(f=>s.push(S8(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)&&(_[Rs]=Ure,d.push(_))}),e.set(_,C)});let u=0;return t.forEach(f=>S8(f,s[u++])),d}function P8(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 cs(e,o){e.classList?.add(o)}function B0(e,o){e.classList?.remove(o)}function Jre(e,o,t){Lc(t).onDone(()=>e.processLeaveNode(o))}function Kre(e){let o=[];return A8(e,o),o}function A8(e,o){for(let t=0;ti.add(s)):o.set(e,n),t.delete(e),!0}var R0=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(o,t)=>{};constructor(o,t,n){this._driver=t,this._normalizer=n,this._transitionEngine=new p4(o.body,t,n),this._timelineEngine=new s4(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=D8(this._driver,s,f,_);if(f.length)throw t8(i,f);u=Lre(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]=GT(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]=GT(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 Zre(e,o){let t=null,n=null;return Array.isArray(o)&&o.length?(t=e4(o[0]),o.length>1&&(n=e4(o[o.length-1]))):o instanceof Map&&(t=e4(o)),t||n?new ele(e,t,n):null}var ele=(()=>{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&&Bs(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Bs(this._element,this._initialStyles),this._endStyles&&(Bs(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Rp(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Rp(this._element,this._endStyles),this._endStyles=null),Bs(this._element,this._initialStyles),this._state=3)}}return e})();function e4(e){let o=null;return e.forEach((t,n)=>{tle(n)&&(o=o||new Map,o.set(n,t))}),o}function tle(e){return e==="display"||e==="position"}var __=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:l_(this.element,i))}),this.currentSnapshot=o}triggerCallback(o){let t=o==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},C_=class{validateStyleProperty(o){return!0}validateAnimatableStyleProperty(o){return!0}containsElement(o,t){return jT(o,t)}getParentElement(o){return n_(o)}query(o,t,n){return $T(o,t,n)}computeStyle(o,t,n){return l_(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 __);h8(n,i)&&C.forEach(P=>{P.currentSnapshot.forEach((S,M)=>_.set(M,S))});let x=u8(t).map(P=>new Map(P));x=g8(o,x,_);let y=Zre(o,x);return new __(o,x,f,y)}};var m_="@",F8="@.disabled",v_=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)==m_&&t==F8?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)}},m4=class extends v_{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)==m_?t.charAt(1)=="."&&t==F8?(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)==m_){let s=ile(o),d=t.slice(1),u="";return d.charAt(0)!=m_&&([d,u]=nle(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 ile(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}function nle(e){let o=e.indexOf("."),t=e.substring(0,o),n=e.slice(o+1);return[t,n]}var x_=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 v_("",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 m4(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 ale=(()=>{class e extends R0{constructor(t,n,i){super(t,n,i)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||e)(gl(mF),gl(xd),gl(bd))};static \u0275prov=Re({token:e,factory:e.\u0275fac})}return e})();function rle(){return new d_}function lle(e,o,t){return new x_(e,o,t)}var B8=[{provide:bd,useFactory:rle},{provide:R0,useClass:ale},{provide:vF,useFactory:lle,deps:[EF,R0,fd]}],sle=[{provide:xd,useClass:d4},{provide:FT,useValue:"NoopAnimations"},...B8],k8=[{provide:xd,useFactory:()=>new C_},{provide:FT,useFactory:()=>"BrowserAnimations"},...B8],b_=(()=>{class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?sle:k8}}static \u0275fac=function(n){return new(n||e)};static \u0275mod=Gi({type:e});static \u0275inj=Hi({providers:k8,imports:[Mg]})}return e})();var yd=(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})(yd||{}),Ns=class e{static{this.level=yd.Debug}static{this.outputs=[]}static enableProductionMode(){e.level=yd.Warning}constructor(o){this.source=o}debug(...o){this.log(console.log,yd.Debug,o)}info(...o){this.log(console.info,yd.Info,o)}warn(...o){this.log(console.warn,yd.Warning,o)}error(...o){this.log(console.error,yd.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 R8=(()=>{class e{constructor(){this.timeoutDelay=xn.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=aF(this.timeoutDelay).subscribe(()=>{this.timeout$.next(),this.stop()})})}start(){if(!this.active){this.active=!0,this.reset();let n=fl(...["mousemove","keydown","wheel","mousedown","scroll"].map(i=>ud(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 y_=(()=>{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,ve,Un,ho,Nn,$n,he],encapsulation:2})}}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 N8=["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 L8=["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 V8=["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 q8=["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 z8=["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 H8=["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 G8=["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 j8=["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 $8=["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 U8=["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 W8=["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 Q8=["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 Ns("MifosX");Vl(N8);Vl(L8);Vl(V8);Vl(q8);Vl(z8);Vl(H8);Vl(G8);Vl(j8);Vl($8);Vl(U8);Vl(W8);Vl(Q8);var Y8=(()=>{class e{constructor(t,n,i,s,d,u,f,_,C,x,y,P,S){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.destroy$=new Rr}ngOnInit(){this.themingService.theme.subscribe(i=>{this.cssClass=i}),this.themingService.setInitialDarkMode(),this.themingService.setDarkMode(!!this.settingsService.themeDarkEnabled),xn.production&&Ns.enableProductionMode(),Sle.debug("init"),this.translateService.addLangs(xn.supportedLanguages.split(",")),this.settingsService.language?this.translateService.use(this.settingsService.languageCode):this.translateService.use(xn.defaultLanguage),this.i18nService=new KF(this.translateService);let t=this.router.events.pipe(kc(i=>i instanceof Ig));fl(this.translateService.onLangChange,t).pipe(Dn(()=>{let i=this.activatedRoute;for(;i.firstChild;)i=i.firstChild;return i}),kc(i=>i.outlet==="primary"),oF(i=>i.data),Ll(this.destroy$)).subscribe(i=>{let s=i.title?`labels.text.${i.title}`:"APP_NAME";this.i18nService.translate(s).pipe(_0(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(Ll(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 JF,localStorage.getItem("mifosXLanguage")||this.settingsService.setDefaultLanguage(),localStorage.getItem("mifosXDateFormat")||this.settingsService.setDateFormat("dd MMMM yyyy"),this.settingsService.setBusinessDate(this.dateUtils.formatDate(new Date,At.businessDateFormat)),this.settingsService.servers||this.settingsService.setServers(xn.baseApiUrls.split(",")),localStorage.getItem("mifosXTenantIdentifier")||this.settingsService.setTenantIdentifier(xn.fineractPlatformTenantId||"default"),this.settingsService.setTenantIdentifiers(xn.fineractPlatformTenantIds.split(",")),xn.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(y_),setTimeout(()=>{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)(na(qe),na(Ie),na(BF),na(yi),na(GF),na(y0),na(Sr),na(At),na(Qo),na(XF),na(Zt),na(R8),na(Ht))}}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)},_F),n&2&&PF(i.cssClass)},standalone:!1,decls:1,vars:0,template:function(n,i){n&1&&b(0,"router-outlet")},dependencies:[ra],encapsulation:2,data:{animation:[yr("opacityScale",[fr(":enter",[Lo({opacity:0,transform:"scale(.95)"}),ur("100ms ease-out",Lo({opacity:1,transform:"scale(1)"}))]),fr(":leave",[Lo({opacity:1,transform:"scale(1)"}),ur("75ms ease-in",Lo({opacity:0,transform:"scale(.95)"}))])])]}})}}return e})();var S_=(()=>{class e{constructor(){this.location=T(b0)}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,ve,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 Ns("ErrorHandlerInterceptor"),bf=(()=>{class e{constructor(){this.alertService=T(Sr),this.translate=T(yi)}intercept(t,n){return n.handle(t).pipe(vp(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(!xn.production&&!d&&wle.error(`Request Error: ${s}`),i===401||xn.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 eF;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 J8=Is(Sd());var f4=new Ns("HttpCacheService"),w_=(()=>{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},f4.debug(`Cache set for key: "${t}"`),this.saveCacheData()}getCacheData(t){let n=this.cachedData[t];return n?(f4.debug(`Cache hit for key: "${t}"`),n.data):null}getHttpCacheEntry(t){return this.cachedData[t]||null}clearCache(t){delete this.cachedData[t],f4.debug(`Cache cleared for key: "${t}"`),this.saveCacheData()}cleanCache(t){t?(0,J8.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 P_=(()=>{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 lf(i=>{let s=this.forceUpdate?null:this.httpCacheService.getCacheData(t.urlWithParams);s!==null?(i.next(new kT(s)),i.complete()):n.handle(t).subscribe(d=>{xn.httpCacheEnabled&&d instanceof kT&&this.httpCacheService.setCacheData(t.urlWithParams,d),i.next(d)},d=>i.error(d),()=>i.complete())})}static{this.\u0275fac=function(n){return new(n||e)(gl(w_))}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Sf=(()=>{class e{constructor(){this.settingsService=T(At)}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 h4=class{constructor(o,t){this.next=o,this.interceptor=t}handle(o){return this.interceptor.intercept(o,this.next)}},g4=new C0("HTTP_DYNAMIC_INTERCEPTORS"),K8=(()=>{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(Sf),this.injector.get(bf)])}cache(t){let n=this.injector.get(P_).configure({update:t});return this.addInterceptor(n)}skipErrorHandler(){return this.removeInterceptor(bf)}disableApiPrefix(){return this.removeInterceptor(Sf)}request(t,n,i){let s=this.interceptors.reduceRight((d,u)=>new h4(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)(gl(Dg),gl(xp),gl(g4,8))}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var cc=(()=>{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 Ns("AuthenticationGuard"),T_=(()=>{class e{constructor(){this.router=T(qe),this.authenticationService=T(Qo)}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 X8=(()=>{class e{constructor(){this.progressBarService=T(cc)}intercept(t,n){return this.progressBarService.increase(),n.handle(t).pipe(al(()=>{this.progressBarService.decrease()}))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Z8=(()=>{class e extends Og{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=gg(e)))(i||e)}})()}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Vc=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(kc(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 eB=(()=>{class e{constructor(){this.popoverRef=T(Vc),this.cd=T(is),this.subscription=new rf;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=hd({type:e,selectors:[["","mifosxPopoverArrow",""]],hostVars:12,hostBindings:function(n,i){n&2&&yp("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 M_=(()=>{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=gg(e)))(i||e)}})()}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-popover"]],viewQuery:function(n,i){if(n&1&&Ee(RT,7),n&2){let s;Te(s=Me())&&(i.portalOutlet=s.first)}},features:[vg],decls:2,vars:0,consts:[["cdkPortalOutlet",""],["mifosxPopoverArrow","",1,"arrow"]],template:function(n,i){n&1&&(_l(0,0),b(1,"div",1))},dependencies:[ue,fe,RT,eB],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 C0("popover.data"),Ele={backdropClass:"",disableClose:!1,panelClass:"",arrowOffset:30,arrowSize:20},Wi=(()=>{class e{constructor(){this.overlay=T(VF),this.injector=T(xp)}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 Vc(S,P,u),D=S.attach(new BT(M_,null,xp.create({parent:this.injector,providers:[{provide:Vc,useValue:M}]}))).instance;return t instanceof CF?D.attachTemplatePortal(new NF(t,null,{$implicit:d.data,popover:M})):D.attachComponentPortal(new BT(t,null,xp.create({parent:this.injector,providers:[{provide:Dle,useValue:d.data},{provide:Vc,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 tB=[{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"],qc=()=>({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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",58),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",58),R("click",function(){let i=z(t).popover,s=w(),d=xe(14),u=xe(123);return i.close(),H(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",58),R("click",function(){let i=z(t).popover,s=w(),d=xe(5),u=xe(121);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",58),R("click",function(){let i=z(t).popover,s=w(),d=xe(23),u=xe(125);return i.close(),H(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",58),R("click",function(){let i=z(t).popover,s=w(),d=xe(14),u=xe(123);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",58),R("click",function(){let i=z(t).popover,s=w(),d=xe(43),u=xe(127);return i.close(),H(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",58),R("click",function(){let i=z(t).popover,s=w(),d=xe(23),u=xe(125);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",58),R("click",function(){let i=z(t).popover,s=w(),d=xe(51),u=xe(129);return i.close(),H(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",58),R("click",function(){let i=z(t).popover,s=w(),d=xe(43),u=xe(127);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",58),R("click",function(){let i=z(t).popover,s=w(),d=xe(87),u=xe(131);return i.close(),H(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",58),R("click",function(){let i=z(t).popover,s=w(),d=xe(51),u=xe(129);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",58),R("click",function(){let i=z(t).popover,s=w(),d=xe(95),u=xe(133);return i.close(),H(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",58),R("click",function(){let i=z(t).popover,s=w(),d=xe(87),u=xe(131);return i.close(),H(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r(),l(13,"button",58),R("click",function(){let i=z(t).popover,s=w(),d=xe(103),u=xe(135);return i.close(),H(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",58),R("click",function(){let i=z(t).popover,s=w(),d=xe(95),u=xe(133);return i.close(),H(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r(),l(13,"button",58),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 D_=(()=>{class e{constructor(){this.router=T(qe),this.dialog=T(Ht),this.authenticationService=T(Qo),this.settingsService=T(At),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.tooltipPosition="after",this.mappedActivities=[],this.frequentActivities=tB,this.userActivity=JSON.parse(localStorage.getItem("mifosXLocation"))}ngOnInit(){let t=this.authenticationService.getCredentials();this.username=t.username,this.setMappedAcitivites()}logout(){this.authenticationService.logout().pipe(_0(1),vp(()=>Os(void 0)),al(()=>this.router.navigate(["/login"],{replaceUrl:!0}))).subscribe()}help(){window.open("https://mifosforge.jira.com/wiki/spaces/docs/pages/52035622/User+Manual","_blank")}showKeyboardShortcuts(){this.dialog.open(lk).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 z(s),H(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 z(s),H(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 z(s),H(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),se(" ",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,qc)),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,qc)),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,qc)),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,qc)),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,qc)),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,qc)),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,qc)),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,qc)),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,qc)),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,Ae,ve,wi,si,ke,Ri,pa,Vo,Na,Jo,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}"]})}}return e})();var ise=()=>({show:1}),nse=()=>({show:2}),ose=()=>({show:3}),ase=()=>({show:4}),rse=()=>({show:5}),lse=()=>({show:6}),sse=()=>({show:0}),E_=(()=>{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,ve,Un,ho,$n,as,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"],iB=()=>["/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",59),p(1,"translate"),R("click",function(){z(t);let i=w();return H(i.toggleSidenav())}),b(2,"fa-icon",60),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Toggle Hide/Open")))}function Tse(e,o){e&1&&b(0,"fa-icon",62)}function Mse(e,o){e&1&&b(0,"fa-icon",63)}function Dse(e,o){if(e&1){let t=Y();l(0,"button",61),p(1,"translate"),R("click",function(){z(t);let i=w();return H(i.toggleSidenavCollapse())}),E(2,Tse,1,0,"fa-icon",62),E(3,Mse,1,0,"fa-icon",63),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&&(l(0,"a",64,22),b(3,"fa-icon",65),c(4),p(5,"translate"),r()),e&2){w();let t=xe(38);g("matMenuTriggerFor",t),a(4),v(" ",m(5,2,"labels.menus.Institution")," ")}}function Ise(e,o){e&1&&(l(0,"a",66,23),b(2,"fa-icon",67),c(3),p(4,"translate"),r()),e&2&&(g("routerLink",oe(4,iB)),a(3),v(" ",m(4,2,"labels.menus.Accounting")," "))}function Ose(e,o){if(e&1&&(l(0,"a",64,24),b(3,"fa-icon",68),c(4),p(5,"translate"),r()),e&2){w();let t=xe(59);g("matMenuTriggerFor",t),a(4),v(" ",m(5,2,"labels.menus.Reports")," ")}}function Ase(e,o){if(e&1&&(l(0,"a",64,25),b(3,"fa-icon",69),c(4),p(5,"translate"),r()),e&2){w();let t=xe(79);g("matMenuTriggerFor",t),a(4),v(" ",m(5,2,"labels.menus.Admin")," ")}}function Fse(e,o){if(e&1){let t=Y();l(0,"a",70,26),R("click",function(){z(t);let i=w();return H(i.openDialog())}),b(2,"fa-icon",71),c(3),p(4,"translate"),r()}e&2&&(a(3),v(" ",m(4,1,"labels.menus.Configuration Wizard")," "))}function kse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",72),c(4),p(5,"translate"),r(),l(6,"div",73)(7,"button",74),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",75),R("click",function(){let i=z(t).popover,s=w(),d=xe(124);return i.close(),H(s.showPopover(d,s.accounting))}),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 Bse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",72),c(4),p(5,"translate"),r(),l(6,"div",73)(7,"button",74),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",75),R("click",function(){let i=z(t).popover,s=w(),d=xe(122);return i.close(),H(s.showPopover(d,s.institution))}),c(11),p(12,"translate"),r(),l(13,"button",75),R("click",function(){let i=z(t).popover,s=w(),d=xe(126);return i.close(),H(s.showPopover(d,s.reports))}),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 Rse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",72),c(4),p(5,"translate"),r(),l(6,"div",73)(7,"button",74),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",75),R("click",function(){let i=z(t).popover,s=w(),d=xe(124);return i.close(),H(s.showPopover(d,s.accounting))}),c(11),p(12,"translate"),r(),l(13,"button",75),R("click",function(){let i=z(t).popover,s=w(),d=xe(128);return i.close(),H(s.showPopover(d,s.admin))}),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 Nse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",72),c(4),p(5,"translate"),r(),l(6,"div",73)(7,"button",74),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",75),R("click",function(){let i=z(t).popover,s=w(),d=xe(126);return i.close(),H(s.showPopover(d,s.reports))}),c(11),p(12,"translate"),r(),l(13,"button",75),R("click",function(){let i=z(t).popover,s=w(),d=xe(130);return i.close(),H(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 Lse(e,o){if(e&1){let t=Y();l(0,"div",73)(1,"button",74),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(2),p(3,"translate"),r(),l(4,"button",75),R("click",function(){let i=z(t).popover,s=w(),d=xe(128);return i.close(),H(s.showPopover(d,s.admin))}),c(5),p(6,"translate"),r(),l(7,"button",75),R("click",function(){let i=z(t).popover,s=w(),d=xe(132);return i.close(),H(s.showPopover(d,s.configWizard))}),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 Vse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",72),c(4),p(5,"translate"),r(),l(6,"div",73)(7,"button",74),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",75),R("click",function(){let i=z(t).popover,s=w(),d=xe(130);return i.close(),H(s.showPopover(d,s.selfService))}),c(11),p(12,"translate"),r(),l(13,"button",75),R("click",function(){let i=z(t).popover,s=w(),d=xe(12),u=xe(134);return i.close(),H(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 qse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",72),c(4),p(5,"translate"),r(),l(6,"div",73)(7,"button",74),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",75),R("click",function(){let i=z(t).popover,s=w(),d=xe(132);return i.close(),H(s.showPopover(d,s.configWizard))}),c(11),p(12,"translate"),r(),l(13,"button",75),R("click",function(){let i=z(t).popover,s=w(),d=xe(15),u=xe(136);return i.close(),H(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 zse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",72),c(4),p(5,"translate"),r(),l(6,"div",73)(7,"button",74),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",75),R("click",function(){let i=z(t).popover,s=w(),d=xe(12),u=xe(134);return i.close(),H(s.showPopover(u,d))}),c(11),p(12,"translate"),r(),l(13,"button",75),R("click",function(){let i=z(t).popover,s=w(),d=xe(23),u=xe(138);return i.close(),H(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 Hse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",72),c(4),p(5,"translate"),r(),l(6,"div",73)(7,"button",74),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",75),R("click",function(){let i=z(t).popover,s=w(),d=xe(15),u=xe(136);return i.close(),H(s.showPopover(u,d))}),c(11),p(12,"translate"),r(),l(13,"button",75),R("click",function(){let i=z(t).popover,s=w(),d=xe(27),u=xe(140);return i.close(),H(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 Gse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",72),c(4),p(5,"translate"),r(),l(6,"div",73)(7,"button",74),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",75),R("click",function(){let i=z(t).popover,s=w(),d=xe(23),u=xe(138);return i.close(),H(s.showPopover(u,d))}),c(11),p(12,"translate"),r(),l(13,"button",75),R("click",function(){let i=z(t).popover,s=w(),d=xe(30),u=xe(142);return i.close(),H(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 jse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",72),c(4),p(5,"translate"),r(),l(6,"div",73)(7,"button",74),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",75),R("click",function(){let i=z(t).popover,s=w(),d=xe(27),u=xe(140);return i.close(),H(s.showPopover(u,d))}),c(11),p(12,"translate"),r(),l(13,"button",75),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 I_=(()=>{class e{constructor(){this.breakpointObserver=T(Ag),this.router=T(qe),this.authenticationService=T(Qo),this.popoverService=T(Wi),this.configurationWizardService=T(Qi),this.dialog=T(Ht),this.changeDetector=T(is),this.isHandset$=this.breakpointObserver.observe(Fg.Handset).pipe(Dn(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(){this.authenticationService.logout().pipe(_0(1),vp(()=>Os(void 0)),al(()=>this.router.navigate(["/login"],{replaceUrl:!0}))).subscribe()}help(){window.open("https://mifosforge.jira.com/wiki/spaces/docs/pages/52035622/User+Manual","_blank")}showPopover(t,n){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(E_,{}).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:143,vars:112,consts:[["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",""],["institution","","institutionMenuTrigger","matMenuTrigger"],["accounting",""],["reports","","reportsMenuTrigger","matMenuTrigger"],["admin","","adminMenuTrigger","matMenuTrigger"],["configWizard",""],["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"],["class","tab-link","tabindex","0",3,"matMenuTriggerFor",4,"mifosxHasPermission"],[1,"hide-lt-md"],["class","tab-link accounting-link","tabindex","0",3,"routerLink",4,"mifosxHasPermission"],["class","tab-link","tabindex","0",3,"click",4,"mifosxHasPermission"],[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",1,"show-lt-md",3,"matMenuTriggerFor","matTooltip"],["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"],["tabindex","0",1,"tab-link",3,"matMenuTriggerFor"],["icon","university","size","lg",1,"mr-05"],["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,"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),F(4,Ese,6,4,"a",31),l(5,"span",32),F(6,Ise,5,5,"a",33)(7,Ose,6,4,"a",31)(8,Ase,6,4,"a",31)(9,Fse,5,3,"a",34),r()(),b(10,"span",35),l(11,"div",36,0),b(13,"mifosx-search-tool",37),r(),l(14,"div",38,1),b(16,"mifosx-language-selector",39),r(),l(17,"button",40),p(18,"translate"),p(19,"translate"),l(20,"mat-icon"),c(21,"language"),r()(),l(22,"div",null,2),b(24,"mifosx-notifications-tray",41,3),r(),l(26,"div",null,4),b(28,"mifosx-theme-toggle",37),r(),l(29,"div",null,5)(31,"button",42),b(32,"img",43),p(33,"translate"),r()()(),l(34,"mat-menu",null,6),b(36,"mifosx-language-selector",44),r(),l(37,"mat-menu",45,7)(39,"button",46),c(40),p(41,"translate"),r(),l(42,"button",47),c(43),p(44,"translate"),r(),l(45,"button",48),c(46),p(47,"translate"),r(),l(48,"span",32)(49,"button",49),c(50),p(51,"translate"),r(),l(52,"button",50),c(53),p(54,"translate"),r(),l(55,"button",50),c(56),p(57,"translate"),r()()(),l(58,"mat-menu",45,8)(60,"button",49),c(61),p(62,"translate"),r(),l(63,"button",49),c(64),p(65,"translate"),r(),l(66,"button",49),c(67),p(68,"translate"),r(),l(69,"button",49),c(70),p(71,"translate"),r(),l(72,"button",49),c(73),p(74,"translate"),r(),l(75,"button",49),c(76),p(77,"translate"),r()(),l(78,"mat-menu",45,9)(80,"button",51),R("click",function(){return z(s),H(i.navigateMenu("/appusers"))}),c(81),p(82,"translate"),r(),l(83,"button",49),c(84),p(85,"translate"),r(),l(86,"button",49),c(87),p(88,"translate"),r(),l(89,"button",49),c(90),p(91,"translate"),r(),l(92,"button",52),c(93),p(94,"translate"),r()(),l(95,"mat-menu",45,10)(97,"button",51),R("click",function(){return z(s),H(i.help())}),l(98,"mat-icon",53),b(99,"fa-icon",54),r(),l(100,"span"),c(101),p(102,"translate"),r()(),l(103,"button",49)(104,"mat-icon"),b(105,"fa-icon",55),r(),l(106,"span"),c(107),p(108,"translate"),r()(),l(109,"button",49)(110,"mat-icon"),b(111,"fa-icon",56),r(),l(112,"span"),c(113),p(114,"translate"),r()(),l(115,"button",57),R("click",function(){return z(s),H(i.logout())}),l(116,"mat-icon"),b(117,"fa-icon",58),r(),l(118,"span"),c(119),p(120,"translate"),r()()(),F(121,kse,13,12,"ng-template",null,11,ti)(123,Bse,16,15,"ng-template",null,12,ti)(125,Rse,16,15,"ng-template",null,13,ti)(127,Nse,16,15,"ng-template",null,14,ti)(129,Lse,10,9,"ng-template",null,15,ti)(131,Vse,16,15,"ng-template",null,16,ti)(133,qse,16,15,"ng-template",null,17,ti)(135,zse,16,15,"ng-template",null,18,ti)(137,Hse,16,15,"ng-template",null,19,ti)(139,Gse,16,15,"ng-template",null,20,ti)(141,jse,16,15,"ng-template",null,21,ti)}if(n&2){let s=xe(35),d=xe(59),u=xe(79),f=xe(96);a(),I(i.sidenavCollapsed?-1:1),a(),I(i.sidenav.opened?2:-1),a(2),g("mifosxHasPermission","READ_INSTITUTION"),a(2),g("mifosxHasPermission","READ_ACCOUNTING"),a(),g("mifosxHasPermission","READ_REPORTS"),a(),g("mifosxHasPermission","READ_ADMIN"),a(),g("mifosxHasPermission","READ_CONFIG_WIZARD"),a(8),g("matTooltip",Le(m(18,52,"labels.menus.Language Selector")))("matMenuTriggerFor",s),wn("aria-label",m(19,54,"labels.menus.Language Selector")),a(14),g("matMenuTriggerFor",f),a(),g("alt",m(33,56,"labels.headings.User Profile")),a(5),g("overlapTrigger",!1),a(3),h(m(41,58,"labels.menus.Clients")),a(3),h(m(44,60,"labels.menus.Groups")),a(3),h(m(47,62,"labels.menus.Centers")),a(3),g("routerLink",oe(100,iB)),a(),v(" ",m(51,64,"labels.menus.Accounting")," "),a(2),g("matMenuTriggerFor",d),a(),v(" ",m(54,66,"labels.menus.Reports")," "),a(2),g("matMenuTriggerFor",u),a(),h(m(57,68,"labels.menus.Admin")),a(2),g("overlapTrigger",!1),a(2),g("routerLink",oe(101,fse)),a(),h(m(62,70,"labels.menus.All")),a(2),g("routerLink",oe(102,hse)),a(),v(" ",m(65,72,"labels.menus.Clients")," "),a(2),g("routerLink",oe(103,gse)),a(),h(m(68,74,"labels.menus.Loans")),a(2),g("routerLink",oe(104,_se)),a(),v(" ",m(71,76,"labels.menus.Savings")," "),a(2),g("routerLink",oe(105,Cse)),a(),h(m(74,78,"labels.menus.Funds")),a(2),g("routerLink",oe(106,vse)),a(),v(" ",m(77,80,"labels.menus.Accounting")," "),a(2),g("overlapTrigger",!1),a(3),h(m(82,82,"labels.menus.Users")),a(2),g("routerLink",oe(107,xse)),a(),v(" ",m(85,84,"labels.menus.Organization")," "),a(2),g("routerLink",oe(108,bse)),a(),h(m(88,86,"labels.menus.System")),a(2),g("routerLink",oe(109,yse)),a(),h(m(91,88,"labels.menus.Products")),a(3),h(m(94,90,"labels.menus.Templates")),a(2),g("overlapTrigger",!1),a(6),h(m(102,92,"labels.menus.Help")),a(2),g("routerLink",oe(110,Sse)),a(4),h(m(108,94,"labels.menus.Profile")),a(2),g("routerLink",oe(111,wse)),a(4),h(m(114,96,"labels.menus.Settings")),a(6),h(m(120,98,"labels.menus.Sign Out"))}},dependencies:[ue,fe,Ae,ve,Ke,xk,wi,si,ke,oc,rk,qg,Jo,ak,Zg,nc,ic,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}.show-lt-md[_ngcontent-%COMP%]{display:none}@media (width <= 768px){.show-lt-md[_ngcontent-%COMP%]{display:inline-flex}}.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 $se=["breadcrumb"],Use=["templateBreadcrumb"];function Wse(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 Qse(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 Yse(e,o){if(e&1&&(l(0,"span",7),E(1,Wse,2,2,"a",8),E(2,Qse,2,1,"span"),r()),e&2){let t=w().$implicit;a(),I(t.url?1:-1),a(),I(t.url?-1:2)}}function Jse(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 Kse(e,o){if(e&1&&(l(0,"li",6),E(1,Yse,3,2,"span",7),E(2,Jse,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 Xse(e,o){if(e&1&&(l(0,"span",5),Se(1,Kse,3,2,"li",6,Pe),r()),e&2){let t=w();a(),we(t.breadcrumbs)}}function Zse(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",12),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",12),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 nB="breadcrumb",_4="routeParamBreadcrumb",C4="routeResolveBreadcrumb",oB="addBreadcrumbLink",O_=(()=>{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(kc(n=>n instanceof Ig)).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(C4)&&f.snapshot.data[C4])d=f.snapshot.data,f.snapshot.data[C4].forEach(y=>{d=d[y]});else if(f.snapshot.data.hasOwnProperty(_4)&&f.snapshot.paramMap.get(f.snapshot.data[_4])){d=f.snapshot.paramMap.get(f.snapshot.data[_4]);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(nB)&&(d=f.snapshot.data[nB]);f.snapshot.data.hasOwnProperty(oB)?u=f.snapshot.data[oB]: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($se,5),Ee(Use,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,Xse,3,0,"span",5),r()(),F(6,Zse,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,Ae,ve,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 A_=(()=>{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 ece=(e,o)=>({"sidebar-full":e,"sidebar-compact":o});function tce(e,o){e&1&&(l(0,"div"),b(1,"div",7),r())}var F_=(()=>{class e{constructor(){this.breakpointObserver=T(Ag),this.progressBarService=T(cc),this.cdr=T(is),this.isHandset$=this.breakpointObserver.observe(Fg.Handset).pipe(Dn(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 z(s),H(i.toggleCollapse(u))}),r(),E(9,tce,2,0,"div"),b(10,"mifosx-breadcrumb")(11,"mifosx-content")(12,"mifosx-footer",6),r()()}if(n&2){let s=xe(2);a(),g("ngClass",Ja(14,ece,!i.sidenavCollapsed,i.sidenavCollapsed))("mode",m(3,8,i.isHandset$)?"over":"side")("opened",m(4,10,i.isHandset$)===!1),wn("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,fk,uk,D_,dk,I_,O_,A_,Vg,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 aB=(()=>{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:[Qo,T_,df,{provide:Tp,useClass:df,multi:!0},w_,{provide:Tp,useClass:Sf,multi:!0},{provide:Tp,useClass:bf,multi:!0},{provide:Tp,useClass:P_,multi:!0},{provide:ko,useClass:K8,deps:[Dg,xp,[new uF,g4]]},cc,{provide:Tp,useClass:X8,multi:!0},{provide:Og,useClass:Z8},FF(kF())],imports:[oo,Mp,hn,F_,D_,I_,O_,A_,oo]})}}return e})();var _o=class{static withShell(o){return{path:"",component:F_,children:o,canActivate:[T_]}}};var k_=[{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 B_=(()=>{class e{constructor(){this.dialogRef=T(eo),this.title=xn.warningDialog.title,this.content=xn.warningDialog.content,this.buttonText=xn.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,ve,Un,ho,Nn,$n,he],encapsulation:2})}}return e})();var ice=()=>({nextStep:!1}),nce=()=>({nextStep:!0}),ps=(()=>{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),se("",m(9,15,"labels.heading.Successfully completed")," ",i.previousStepName),a(3),se("",m(12,17,"labels.heading.Progress Bar")," : ",i.stepPercentage,"%"),a(2),g("value",i.stepPercentage),a(2),g("mat-dialog-close",oe(21,ice)),a(),v(" ",m(17,19,"labels.buttons.Close Config. Wizard")," "),a(2),g("mat-dialog-close",oe(22,nce)),a(),h(i.nextStepName))},dependencies:[ue,fe,ve,Un,ho,as,Nn,$n,he],encapsulation:2})}}return e})();var oce=["buttonDashboard"],ace=["templateButtonDashboard"],rce=["searchActivity"],lce=["templateSearchActivity"],sce=()=>["/dashboard"];function cce(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 pce(e,o){if(e&1){let t=Y();l(0,"button",19),R("click",function(){z(t);let i=w(),s=i.popover,d=i.prev,u=w();return s.close(),H(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 mce(e,o){if(e&1){let t=Y();l(0,"button",19),R("click",function(){z(t);let i=w(),s=i.popover,d=i.next,u=w();return s.close(),H(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 dce(e,o){if(e&1){let t=Y();l(0,"div",16)(1,"button",17),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(2),p(3,"translate"),r(),E(4,pce,3,3,"button",18),E(5,mce,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 uce(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",19),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",19),R("click",function(){let i=z(t).popover,s=w(),d=xe(16),u=xe(34);return i.close(),H(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 fce(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",19),R("click",function(){let i=z(t).popover,s=w(),d=xe(2),u=xe(32);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",19),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 R_=(()=>{class e{constructor(){this.authenticationService=T(Qo),this.activatedRoute=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.settingsService=T(At),this.searchText=new it,this.allActivities=k_}ngOnInit(){let t=this.authenticationService.getCredentials();this.username=t.username,this.tenant=this.tenantIdentifier(),this.setFilteredActivities(),this.authenticationService.hasDialogBeenShown()||(this.dialog.open(B_),this.authenticationService.showDialog())}setFilteredActivities(){this.filteredActivities=this.searchText.valueChanges.pipe(Dn(t=>typeof t=="string"?t:t.activity),Dn(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(ps,{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"])}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-home"]],viewQuery:function(n,i){if(n&1&&(Ee(oce,5),Ee(ace,5),Ee(rce,5),Ee(lce,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:35,vars:24,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","","alt","Mifos X",3,"src"],[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"),p(13,"translate"),p(14,"titlecase"),r()(),l(15,"mat-card-content",null,1)(17,"div",12)(18,"mat-form-field")(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",13),r()(),l(23,"mat-autocomplete",null,2),Se(25,cce,3,2,"mat-option",14,Pe),p(27,"async"),r()(),b(28,"img",15),r()(),F(29,dce,6,5,"ng-template",null,3,ti)(31,uce,16,15,"ng-template",null,4,ti)(33,fce,16,15,"ng-template",null,5,ti)),n&2){let s=xe(24);a(3),g("routerLink",oe(23,sce)),a(2),v(" ",m(6,11,"labels.buttons.Dashboard")," "),a(6),bg(" ",m(12,13,"labels.text.Welcome")," ",i.username," ",m(13,15,"labels.text.To")," ",m(14,17,i.tenant),"! "),a(9),h(m(21,19,"labels.placeholders.Search Activity")),a(2),g("matAutocomplete",s)("formControl",i.searchText),a(3),we(m(27,21,i.filteredActivities)),a(3),g("src",Sp("assets/images/",i.tenant,"_home.png"),bp)}},dependencies:[ue,fe,st,Ue,gn,Ae,$e,Je,Fe,Be,ze,ft,ve,ke,sa,Yo,Za,Xa,YF,Ka,wp,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 L0=(()=>{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 Tf(e){return e+.5|0}var Np=(e,o,t)=>Math.max(Math.min(e,t),o);function wf(e){return Np(Tf(e*2.55),0,255)}function Lp(e){return Np(Tf(e*255),0,255)}function zc(e){return Np(Tf(e/2.55)/100,0,1)}function rB(e){return Np(Tf(e*100),0,100)}var ms={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},x4=[..."0123456789ABCDEF"],hce=e=>x4[e&15],gce=e=>x4[(e&240)>>4]+x4[e&15],N_=e=>(e&240)>>4===(e&15),_ce=e=>N_(e.r)&&N_(e.g)&&N_(e.b)&&N_(e.a);function Cce(e){var o=e.length,t;return e[0]==="#"&&(o===4||o===5?t={r:255&ms[e[1]]*17,g:255&ms[e[2]]*17,b:255&ms[e[3]]*17,a:o===5?ms[e[4]]*17:255}:(o===7||o===9)&&(t={r:ms[e[1]]<<4|ms[e[2]],g:ms[e[3]]<<4|ms[e[4]],b:ms[e[5]]<<4|ms[e[6]],a:o===9?ms[e[7]]<<4|ms[e[8]]:255})),t}var vce=(e,o)=>e<255?o(e):"";function xce(e){var o=_ce(e)?hce:gce;return e?"#"+o(e.r)+o(e.g)+o(e.b)+vce(e.a,o):void 0}var bce=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function pB(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 yce(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 Sce(e,o,t){let n=pB(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 wce(e,o,t,n,i){return e===i?(o-t)/n+(o.5?C/(2-s-d):C/(s+d),f=wce(t,n,i,C,s),f=f*60+.5),[f|0,_||0,u]}function y4(e,o,t,n){return(Array.isArray(o)?e(o[0],o[1],o[2]):e(o,t,n)).map(Lp)}function S4(e,o,t){return y4(pB,e,o,t)}function Pce(e,o,t){return y4(Sce,e,o,t)}function Tce(e,o,t){return y4(yce,e,o,t)}function mB(e){return(e%360+360)%360}function Mce(e){let o=bce.exec(e),t=255,n;if(!o)return;o[5]!==n&&(t=o[6]?wf(+o[5]):Lp(+o[5]));let i=mB(+o[2]),s=+o[3]/100,d=+o[4]/100;return o[1]==="hwb"?n=Pce(i,s,d):o[1]==="hsv"?n=Tce(i,s,d):n=S4(i,s,d),{r:n[0],g:n[1],b:n[2],a:t}}function Dce(e,o){var t=b4(e);t[0]=mB(t[0]+o),t=S4(t),e.r=t[0],e.g=t[1],e.b=t[2]}function Ece(e){if(!e)return;let o=b4(e),t=o[0],n=rB(o[1]),i=rB(o[2]);return e.a<255?`hsla(${t}, ${n}%, ${i}%, ${zc(e.a)})`:`hsl(${t}, ${n}%, ${i}%)`}var lB={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"},sB={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 Ice(){let e={},o=Object.keys(sB),t=Object.keys(lB),n,i,s,d,u;for(n=0;n>16&255,s>>8&255,s&255]}return e}var L_;function Oce(e){L_||(L_=Ice(),L_.transparent=[0,0,0,0]);let o=L_[e.toLowerCase()];return o&&{r:o[0],g:o[1],b:o[2],a:o.length===4?o[3]:255}}var Ace=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Fce(e){let o=Ace.exec(e),t=255,n,i,s;if(o){if(o[7]!==n){let d=+o[7];t=o[8]?wf(d):Np(d*255,0,255)}return n=+o[1],i=+o[3],s=+o[5],n=255&(o[2]?wf(n):Np(n,0,255)),i=255&(o[4]?wf(i):Np(i,0,255)),s=255&(o[6]?wf(s):Np(s,0,255)),{r:n,g:i,b:s,a:t}}}function kce(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${zc(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}var v4=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,V0=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Bce(e,o,t){let n=V0(zc(e.r)),i=V0(zc(e.g)),s=V0(zc(e.b));return{r:Lp(v4(n+t*(V0(zc(o.r))-n))),g:Lp(v4(i+t*(V0(zc(o.g))-i))),b:Lp(v4(s+t*(V0(zc(o.b))-s))),a:e.a+t*(o.a-e.a)}}function V_(e,o,t){if(e){let n=b4(e);n[o]=Math.max(0,Math.min(n[o]+n[o]*t,o===0?360:1)),n=S4(n),e.r=n[0],e.g=n[1],e.b=n[2]}}function dB(e,o){return e&&Object.assign(o||{},e)}function cB(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=Lp(e[3]))):(o=dB(e,{r:0,g:0,b:0,a:1}),o.a=Lp(o.a)),o}function Rce(e){return e.charAt(0)==="r"?Fce(e):Mce(e)}var Pf=class e{constructor(o){if(o instanceof e)return o;let t=typeof o,n;t==="object"?n=cB(o):t==="string"&&(n=Cce(o)||Oce(o)||Rce(o)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var o=dB(this._rgb);return o&&(o.a=zc(o.a)),o}set rgb(o){this._rgb=cB(o)}rgbString(){return this._valid?kce(this._rgb):void 0}hexString(){return this._valid?xce(this._rgb):void 0}hslString(){return this._valid?Ece(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=Bce(this._rgb,o._rgb,t)),this}clone(){return new e(this.rgb)}alpha(o){return this._rgb.a=Lp(o),this}clearer(o){let t=this._rgb;return t.a*=1-o,this}greyscale(){let o=this._rgb,t=Tf(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 V_(this._rgb,2,o),this}darken(o){return V_(this._rgb,2,-o),this}saturate(o){return V_(this._rgb,1,o),this}desaturate(o){return V_(this._rgb,1,-o),this}rotate(o){return Dce(this._rgb,o),this}};function dc(){}var SB=(()=>{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 Sl(e,o){return Fa(e)?e:o}function Kn(e,o){return typeof e>"u"?o:e}var wB=(e,o)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/o,M4=(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 Ko(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 Vce(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 qce(e){let o=Vce(e);return t=>{for(let n of o){if(n==="")break;t=t&&t[n]}return t}}function jc(e,o){return(uB[o]||(uB[o]=qce(o)))(e)}function W_(e){return e.charAt(0).toUpperCase()+e.slice(1)}var j0=e=>typeof e<"u",Hc=e=>typeof e=="function",D4=(e,o)=>{if(e.size!==o.size)return!1;for(let t of e)if(!o.has(t))return!1;return!0};function TB(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}var Bo=Math.PI,_a=2*Bo,zce=_a+Bo,j_=Number.POSITIVE_INFINITY,Hce=Bo/180,za=Bo/2,wd=Bo/4,fB=Bo*2/3,Gc=Math.log10,Ls=Math.sign;function $0(e,o,t){return Math.abs(e-o)i-s).pop(),o}function Gce(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function Md(e){return!Gce(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function DB(e,o){let t=Math.round(e);return t-o<=e&&t+o>=e}function I4(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 Y_(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 pc=(e,o,t,n)=>Y_(e,t,n?i=>{let s=e[i][o];return se[i][o]Y_(e,t,n=>e[n][o]>=t);function OB(e,o,t){let n=0,i=e.length;for(;nn&&e[i-1]>t;)i--;return n>0||i{let n="_onData"+W_(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 F4(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)&&(AB.forEach(s=>{delete e[s]}),delete e._chartjs)}function k4(e){let o=new Set(e);return o.size===e.length?e:Array.from(o)}var B4=(function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame})();function R4(e,o){let t=[],n=!1;return function(...i){t=i,n||(n=!0,B4.call(window,()=>{n=!1,e.apply(o,t)}))}}function kB(e,o){let t;return function(...n){return o?(clearTimeout(t),t=setTimeout(e,o,n)):e.apply(this,n),o}}var J_=e=>e==="start"?"left":e==="end"?"right":"center",Vr=(e,o,t)=>e==="start"?o:e==="end"?t:(o+t)/2,BB=(e,o,t,n)=>e===(n?"left":"right")?t:e==="center"?(o+t)/2:o;function N4(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(pc(f,C,x).lo,t?n:pc(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=gr(i,0,n-1)}if(S){let M=Math.max(pc(f,d.axis,y,!0).hi+1,t?0:pc(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=gr(M,i,n)-i}else s=n-i}return{start:i,count:s}}function L4(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 q_=e=>e===0||e===1,hB=(e,o,t)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-o)*_a/t)),gB=(e,o,t)=>Math.pow(2,-10*e)*Math.sin((e-o)*_a/t)+1,q0={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=>q_(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=>q_(e)?e:hB(e,.075,.3),easeOutElastic:e=>q_(e)?e:gB(e,.075,.3),easeInOutElastic(e){return q_(e)?e:e<.5?.5*hB(e*2,.1125,.45):.5+.5*gB(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-q0.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?q0.easeInBounce(e*2)*.5:q0.easeOutBounce(e*2-1)*.5+.5};function V4(e){if(e&&typeof e=="object"){let o=e.toString();return o==="[object CanvasPattern]"||o==="[object CanvasGradient]"}return!1}function q4(e){return V4(e)?e:new Pf(e)}function w4(e){return V4(e)?e:new Pf(e).saturate(.5).darken(.1).hexString()}var $ce=["x","y","borderWidth","radius","tension"],Uce=["color","borderColor","backgroundColor"];function Wce(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:Uce},numbers:{type:"number",properties:$ce}}),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 Qce(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var _B=new Map;function Yce(e,o){o=o||{};let t=e+JSON.stringify(o),n=_B.get(t);return n||(n=new Intl.NumberFormat(e,o),_B.set(t,n)),n}function W0(e,o,t){return Yce(o,t).format(e)}var RB={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=Jce(e,t)}let d=Gc(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),W0(e,n,f)},logarithmic(e,o,t){if(e===0)return"0";let n=t[o].significand||e/Math.pow(10,Math.floor(Gc(e)));return[1,2,3,5,10,15].includes(n)||o>.8*t.length?RB.numeric.call(this,e,o,t):""}};function Jce(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 If={formatters:RB};function Kce(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:If.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 zp=Object.create(null),K_=Object.create(null);function Mf(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)=>w4(i.backgroundColor),this.hoverBorderColor=(n,i)=>w4(i.borderColor),this.hoverColor=(n,i)=>w4(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 P4(this,o,t)}get(o){return Mf(this,o)}describe(o,t){return P4(K_,o,t)}override(o,t){return P4(zp,o,t)}route(o,t,n,i){let s=Mf(this,o),d=Mf(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 T4({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Wce,Qce,Kce]);function Xce(e){return!e||Co(e.size)||Co(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Df(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 NB(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 mc(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,Zce(e,s),f=0;f+e||0;function Z_(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]=ape(s(d));return t}function G4(e){return Z_(e,{top:"y",right:"x",bottom:"y",left:"x"})}function jp(e){return Z_(e,["topLeft","topRight","bottomLeft","bottomRight"])}function qr(e){let o=G4(e);return o.width=o.left+o.right,o.height=o.top+o.bottom,o}function lr(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(npe)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);let i={family:Kn(e.family,o.family),lineHeight:ope(Kn(e.lineHeight,o.lineHeight),t),size:t,style:n,weight:Kn(e.weight,o.weight),string:""};return i.string=Xce(i),i}function Y0(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 $c(e,o){return Object.assign(Object.create(e),o)}function eC(e,o=[""],t,n,i=()=>e[0]){let s=t||e;typeof n>"u"&&(n=GB("_fallback",e));let d={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:s,_fallback:n,_getTarget:i,override:u=>eC([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 zB(u,f,()=>upe(f,o,e,u))},getOwnPropertyDescriptor(u,f){return Reflect.getOwnPropertyDescriptor(u._scopes[0],f)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(u,f){return vB(u).includes(f)},ownKeys(u){return vB(u)},set(u,f,_){let C=u._storage||(u._storage=i());return u[f]=C[f]=_,delete u._keys,!0}})}function Td(e,o,t,n){let i={_cacheable:!1,_proxy:e,_context:o,_subProxy:t,_stack:new Set,_descriptors:j4(e,n),setContext:s=>Td(e,s,t,n),override:s=>Td(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 zB(s,d,()=>lpe(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 j4(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:Hc(t)?t:()=>t,isIndexable:Hc(n)?n:()=>n}}var rpe=(e,o)=>e?e+W_(o):o,$4=(e,o)=>bo(o)&&e!=="adapters"&&(Object.getPrototypeOf(o)===null||o.constructor===Object);function zB(e,o,t){if(Object.prototype.hasOwnProperty.call(e,o)||o==="constructor")return e[o];let n=t();return e[o]=n,n}function lpe(e,o,t){let{_proxy:n,_context:i,_subProxy:s,_descriptors:d}=e,u=n[o];return Hc(u)&&d.isScriptable(o)&&(u=spe(o,u,e,t)),ga(u)&&u.length&&(u=cpe(o,u,e,d.isIndexable)),$4(o,u)&&(u=Td(u,i,s&&s[o],d)),u}function spe(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),$4(e,f)&&(f=U4(i._scopes,i,e,f)),f}function cpe(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=U4(_,i,e,C);o.push(Td(x,s,d&&d[e],u))}}return o}function HB(e,o,t){return Hc(e)?e(o,t):e}var ppe=(e,o)=>e===!0?o:typeof e=="string"?jc(o,e):void 0;function mpe(e,o,t,n,i){for(let s of o){let d=ppe(t,s);if(d){e.add(d);let u=HB(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 U4(e,o,t,n){let i=o._rootScopes,s=HB(o._fallback,t,n),d=[...e,...i],u=new Set;u.add(n);let f=CB(u,d,t,s||t,n);return f===null||typeof s<"u"&&s!==t&&(f=CB(u,d,s,f,n),f===null)?!1:eC(Array.from(u),[""],i,s,()=>dpe(o,t,n))}function CB(e,o,t,n,i){for(;t;)t=mpe(e,o,t,n,i);return t}function dpe(e,o,t){let n=e._getTarget();o in n||(n[o]={});let i=n[o];return ga(i)&&bo(t)?t:i||{}}function upe(e,o,t,n){let i;for(let s of o)if(i=GB(rpe(s,e),t),typeof i<"u")return $4(e,i)?U4(t,n,e,i):i}function GB(e,o){for(let t of o){if(!t)continue;let n=t[e];if(typeof n<"u")return n}}function vB(e){let o=e._keys;return o||(o=e._keys=fpe(e._scopes)),o}function fpe(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 W4(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 gpe(e,o,t,n){let i=e.skip?o:e,s=o,d=t.skip?o:t,u=$_(s,i),f=$_(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 _pe(e,o,t){let n=e.length,i,s,d,u,f,_=H0(e,0);for(let C=0;C!_.skip)),o.cubicInterpolationMode==="monotone")vpe(e,i);else{let _=n?e[e.length-1]:e[0];for(s=0,d=e.length;se.ownerDocument.defaultView.getComputedStyle(e,null);function bpe(e,o){return nC(e).getPropertyValue(o)}var ype=["top","right","bottom","left"];function Pd(e,o,t){let n={};t=t?"-"+t:"";for(let i=0;i<4;i++){let s=ype[i];n[s]=parseFloat(e[o+"-"+s+t])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}var Spe=(e,o,t)=>(e>0||o>0)&&(!t||!t.shadowRoot);function wpe(e,o){let t=e.touches,n=t&&t.length?t[0]:e,{offsetX:i,offsetY:s}=n,d=!1,u,f;if(Spe(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 $p(e,o){if("native"in e)return e;let{canvas:t,currentDevicePixelRatio:n}=o,i=nC(t),s=i.boxSizing==="border-box",d=Pd(i,"padding"),u=Pd(i,"border","width"),{x:f,y:_,box:C}=wpe(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 Ppe(e,o,t){let n,i;if(o===void 0||t===void 0){let s=e&&iC(e);if(!s)o=e.clientWidth,t=e.clientHeight;else{let d=s.getBoundingClientRect(),u=nC(s),f=Pd(u,"border","width"),_=Pd(u,"padding");o=d.width-_.width-f.width,t=d.height-_.height-f.height,n=U_(u.maxWidth,s,"clientWidth"),i=U_(u.maxHeight,s,"clientHeight")}}return{width:o,height:t,maxWidth:n||j_,maxHeight:i||j_}}var qp=e=>Math.round(e*10)/10;function UB(e,o,t,n){let i=nC(e),s=Pd(i,"margin"),d=U_(i.maxWidth,e,"clientWidth")||j_,u=U_(i.maxHeight,e,"clientHeight")||j_,f=Ppe(e,o,t),{width:_,height:C}=f;if(i.boxSizing==="content-box"){let y=Pd(i,"border","width"),P=Pd(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),_=qp(Math.min(_,d,f.maxWidth)),C=qp(Math.min(C,u,f.maxHeight)),_&&!C&&(C=qp(_/2)),(o!==void 0||t!==void 0)&&n&&f.height&&C>f.height&&(C=f.height,_=qp(Math.floor(C*n))),{width:_,height:C}}function Q4(e,o,t){let n=o||1,i=qp(e.height*n),s=qp(e.width*n);e.height=qp(e.height),e.width=qp(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 WB=(function(){let e=!1;try{let o={get passive(){return e=!0,!1}};tC()&&(window.addEventListener("test",null,o),window.removeEventListener("test",null,o))}catch{}return e})();function Y4(e,o){let t=bpe(e,o),n=t&&t.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function Vp(e,o,t,n){return{x:e.x+t*(o.x-e.x),y:e.y+t*(o.y-e.y)}}function QB(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 YB(e,o,t,n){let i={x:e.cp2x,y:e.cp2y},s={x:o.cp1x,y:o.cp1y},d=Vp(e,i,t),u=Vp(i,s,t),f=Vp(s,o,t),_=Vp(d,u,t),C=Vp(u,f,t);return Vp(_,C,t)}var Tpe=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}}},Mpe=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,o){return e+o},leftForLtr(e,o){return e}}};function Dd(e,o,t){return e?Tpe(o,t):Mpe()}function J4(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 K4(e,o){o!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",o[0],o[1]))}function JB(e){return e==="angle"?{between:U0,compare:jce,normalize:Lr}:{between:uc,compare:(o,t)=>o-t,normalize:o=>o}}function xB({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 Dpe(e,o,t){let{property:n,start:i,end:s}=t,{between:d,normalize:u}=JB(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,le=()=>u(s,k)===0||f(s,U,k),ee=()=>M||J(),ae=()=>!M||le();for(let ce=C,_e=C;ce<=x;++ce)V=o[ce%d],!V.skip&&(k=_(V[n]),k!==U&&(M=f(k,i,s),D===null&&ee()&&(D=u(k,i)===0?ce:_e),D!==null&&ae()&&(S.push(xB({start:D,end:ce,loop:y,count:d,style:P})),D=null),_e=ce,U=k));return D!==null&&S.push(xB({start:D,end:x,loop:y,count:d,style:P})),S}function Z4(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 Ipe(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 KB(e,o){let t=e.points,n=e.options.spanGaps,i=t.length;if(!i)return[];let s=!!e._loop,{start:d,end:u}=Epe(t,i,s,n);if(n===!0)return bB(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=B4.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)}},Uc=new dM,XB="transparent",kpe={boolean(e,o,t){return t>.5?o:e},color(e,o,t){let n=q4(e||XB),i=n.valid&&q4(o||XB);return i&&i.valid?i.mix(n,t).hexString():o},number(e,o,t){return e+(o-e)*t}},uM=class{constructor(o,t,n,i){let s=t[n];i=Y0([o.to,i,s,o.from]);let d=Y0([o.from,s,i]);this._active=!0,this._fn=o.fn||kpe[o.type||typeof d],this._easing=q0[o.easing]||q0.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=Y0([o.to,t,i,o.from]),this._from=Y0([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=Rpe(o,n);if(!i)return[];let s=this._createAnimations(i,n);return n.$shared&&Bpe(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 uM(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 Uc.add(this._chart,n),!0}};function Bpe(e,o){let t=[],n=Object.keys(o);for(let i=0;i0||!t&&s<0)return i.index}return null}function iR(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=qpe(s,d,n),x=o.length,y;for(let P=0;Pt[n].axis===o).shift()}function Gpe(e,o){return $c(e,{active:!1,dataset:void 0,datasetIndex:o,index:o,mode:"default",type:"dataset"})}function jpe(e,o,t){return $c(e,{active:!1,dataIndex:o,parsed:void 0,raw:void 0,element:t,index:o,mode:"default",type:"data"})}function Ff(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 nM=e=>e==="reset"||e==="none",nR=(e,o)=>o?e:Object.assign({},e),$pe=(e,o,t)=>e&&!o.hidden&&o._stacked&&{keys:XR(t,!0),values:null},Wp=(()=>{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=tM(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&&Ff(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,iM(t,"x")),u=n.yAxisID=Kn(i.yAxisID,iM(t,"y")),f=n.rAxisID=Kn(i.rAxisID,iM(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&&F4(this._data,this),t._stacked&&Ff(t)}_dataCheck(){let t=this.getDataset(),n=t.data||(t.data=[]),i=this._data;if(bo(n)){let s=this._cachedMeta;this._data=Vpe(n,s)}else if(i!==n){if(i){F4(i,this);let s=this._cachedMeta;Ff(s),s._parsed=[]}n&&Object.isExtensible(n)&&FB(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=tM(n.vScale,n),n.stack!==i.stack&&(s=!0,Ff(n),n.stack=i.stack),this._resyncElements(t),(s||d!==n._stacked)&&(iR(this,n._parsed),n._stacked=tM(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(nR(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 dC(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||nM(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){nM(s)?Object.assign(t,i):this._resolveAnimations(n,s).update(t,i)}updateSharedOptions(t,n,i){t&&!nM(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 Wpe(e){let o=e.iScale,t=Upe(o,e.type),n=o._length,i,s,d,u,f=()=>{d===32767||d===-32768||(j0(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 ZR(e,o,t,n){return ga(e)?Jpe(e,o,t,n):o[t.axis]=t.parse(e,n),o}function oR(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 Xpe(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 Wp{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 oR(t,n,i,s)}parseArrayData(t,n,i,s){return oR(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 Wp{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;PU0(U,u,f,!0)?1:Math.max(J,J*t,le,le*t),S=(U,J,le)=>U0(U,u,f,!0)?-1:Math.min(J,J*t,le,le*t),M=P(0,_,x),D=P(za,C,y),k=S(Bo,_,x),V=S(Bo+za,C,y);n=(M-k)/2,i=(D-V)/2,s=-(M+k)/2,d=-(D+V)/2}return{ratioX:n,ratioY:i,offsetX:s,offsetY:d}}var FM=(()=>{class e extends Wp{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=>+jc(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=W0(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 Wp{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:_}=N4(n,s,u);this._drawStart=f,this._drawCount=_,L4(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=Md(M)?M:Number.POSITIVE_INFINITY,V=this.chart._animationsDisabled||d||s==="none",U=n+i,J=t.length,le=n>0&&this.getParsed(n-1);for(let ee=0;ee=U){ce.skip=!0;continue}let _e=this.getParsed(ee),de=Co(_e[S]),j=ce[P]=u.getPixelForValue(_e[P],ee),W=ce[S]=d||de?f.getBasePixel():f.getPixelForValue(_?this.applyStack(f,_e,_):_e[S],ee);ce.skip=isNaN(j)||isNaN(W)||de,ce.stop=ee>0&&Math.abs(_e[P]-le[P])>k,D&&(ce.parsed=_e,ce.raw=C.data[ee]),y&&(ce.options=x||this.resolveDataElementOptions(ee,ae.active?"active":s)),V||this.updateElement(ae,ee,ce,s),le=_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})(),e9=(()=>{class e extends Wp{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=W0(n._parsed[t].r,i.options.locale);return{label:s[t]||"",value:d}}parseObjectData(t,n,i,s){return W4.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)?ds(this.resolveDataElementOptions(t,n).angle||i):0}}return e})(),rme=(()=>{class e extends FM{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}return e})(),lme=(()=>{class e extends Wp{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 W4.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 Wp{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}=N4(n,i,s);if(this._drawStart=d,this._drawCount=u,L4(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,V=Md(D)?D:Number.POSITIVE_INFINITY,U=this.chart._animationsDisabled||d||s==="none",J=n>0&&this.getParsed(n-1);for(let le=n;le0&&Math.abs(ae[S]-J[S])>V,k&&(ce.parsed=ae,ce.raw=C.data[le]),P&&(ce.options=y||this.resolveDataElementOptions(le,ee.active?"active":s)),U||this.updateElement(ee,le,ce,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})(),cme=Object.freeze({__proto__:null,BarController:ime,BubbleController:nme,DoughnutController:FM,LineController:ame,PieController:rme,PolarAreaController:e9,RadarController:lme,ScatterController:sme});function Ed(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var fM=class e{static override(o){Object.assign(e.prototype,o)}options;constructor(o){this.options=o||{}}init(){}formats(){return Ed()}parse(){return Ed()}format(){return Ed()}add(){return Ed()}diff(){return Ed()}startOf(){return Ed()}endOf(){return Ed()}},pme={_date:fM};function mme(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?IB:pc;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 Gf(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 hme={evaluateInteractionItems:Gf,modes:{index(e,o,t,n){let i=$p(o,e),s=t.axis||"x",d=t.includeInvisible||!1,u=t.intersect?aM(e,i,s,n,d):rM(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=$p(o,e),s=t.axis||"xy",d=t.includeInvisible||!1,u=t.intersect?aM(e,i,s,n,d):rM(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=$p(o,e),s=t.axis||"xy",d=t.includeInvisible||!1;return aM(e,i,s,n,d)},nearest(e,o,t,n){let i=$p(o,e),s=t.axis||"xy",d=t.includeInvisible||!1;return rM(e,i,s,t.intersect,n,d)},x(e,o,t,n){let i=$p(o,e);return lR(e,i,"x",t.intersect,n)},y(e,o,t,n){let i=$p(o,e);return lR(e,i,"y",t.intersect,n)}}},t9=["left","top","right","bottom"];function kf(e,o){return e.filter(t=>t.pos===o)}function sR(e,o){return e.filter(t=>t9.indexOf(t.pos)===-1&&t.box.axis===o)}function Bf(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 gme(e){let o=[],t,n,i,s,d,u;for(t=0,n=(e||[]).length;t_.box.fullSize),!0),n=Bf(kf(o,"left"),!0),i=Bf(kf(o,"right")),s=Bf(kf(o,"top"),!0),d=Bf(kf(o,"bottom")),u=sR(o,"x"),f=sR(o,"y");return{fullSize:t,leftAndTop:n.concat(s),rightAndBottom:i.concat(f).concat(d).concat(u),chartArea:kf(o,"chartArea"),vertical:n.concat(i).concat(f),horizontal:s.concat(d).concat(u)}}function cR(e,o,t,n){return Math.max(e[t],o[t])+Math.max(e[n],o[n])}function i9(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 xme(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&&i9(d,s.getPadding());let u=Math.max(0,o.outerWidth-cR(d,e,"left","right")),f=Math.max(0,o.outerHeight-cR(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 bme(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 yme(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 Lf(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);i9(y,qr(n));let P=Object.assign({maxPadding:y,w:s,h:d,x:i.left,y:i.top},i),S=Cme(f.concat(_),x);Lf(u.fullSize,P,x,S),Lf(f,P,x,S),Lf(_,P,x,S)&&Lf(f,P,x,S),bme(P),pR(u.leftAndTop,P,x,S),P.x+=P.w,P.y+=P.h,pR(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},Ko(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})})}},uC=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){}},hM=class extends uC{acquireContext(o){return o&&o.getContext&&o.getContext("2d")||null}updateConfig(o){o.options.animation=!1}},pC="$chartjs",Sme={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},mR=e=>e===null||e==="";function wme(e,o){let t=e.style,n=e.getAttribute("height"),i=e.getAttribute("width");if(e[pC]={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",mR(i)){let s=Y4(e,"width");s!==void 0&&(e.width=s)}if(mR(n))if(e.style.height==="")e.height=e.width/(o||2);else{let s=Y4(e,"height");s!==void 0&&(e.height=s)}return e}var n9=WB?{passive:!0}:!1;function Pme(e,o,t){e&&e.addEventListener(o,t,n9)}function Tme(e,o,t){e&&e.canvas&&e.canvas.removeEventListener(o,t,n9)}function Mme(e,o){let t=Sme[e.type]||e.type,{x:n,y:i}=$p(e,o);return{type:t,chart:o,native:e,x:n!==void 0?n:null,y:i!==void 0?i:null}}function fC(e,o){for(let t of e)if(t===o||t.contains(o))return!0}function Dme(e,o,t){let n=e.canvas,i=new MutationObserver(s=>{let d=!1;for(let u of s)d=d||fC(u.addedNodes,n),d=d&&!fC(u.removedNodes,n);d&&t()});return i.observe(document,{childList:!0,subtree:!0}),i}function Eme(e,o,t){let n=e.canvas,i=new MutationObserver(s=>{let d=!1;for(let u of s)d=d||fC(u.removedNodes,n),d=d&&!fC(u.addedNodes,n);d&&t()});return i.observe(document,{childList:!0,subtree:!0}),i}var qf=new Map,dR=0;function o9(){let e=window.devicePixelRatio;e!==dR&&(dR=e,qf.forEach((o,t)=>{t.currentDevicePixelRatio!==e&&o()}))}function Ime(e,o){qf.size||window.addEventListener("resize",o9),qf.set(e,o)}function Ome(e){qf.delete(e),qf.size||window.removeEventListener("resize",o9)}function Ame(e,o,t){let n=e.canvas,i=n&&iC(n);if(!i)return;let s=R4((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),Ime(e,s),d}function lM(e,o,t){t&&t.disconnect(),o==="resize"&&Ome(e)}function Fme(e,o,t){let n=e.canvas,i=R4(s=>{e.ctx!==null&&t(Mme(s,e))},e);return Pme(n,o,i),i}var gM=class extends uC{acquireContext(o,t){let n=o&&o.getContext&&o.getContext("2d");return n&&n.canvas===o?(wme(o,t),n):null}releaseContext(o){let t=o.canvas;if(!t[pC])return!1;let n=t[pC].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[pC],!0}addEventListener(o,t,n){this.removeEventListener(o,t);let i=o.$proxies||(o.$proxies={}),d={attach:Dme,detach:Eme,resize:Ame}[t]||Fme;i[t]=d(o,t,n)}removeEventListener(o,t){let n=o.$proxies||(o.$proxies={}),i=n[t];if(!i)return;({attach:lM,detach:lM,resize:lM}[t]||Tme)(o,t,i),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(o,t,n,i){return UB(o,t,n,i)}isAttached(o){let t=o&&iC(o);return!!(t&&t.isConnected)}};function kme(e){return!tC()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?hM:gM}var Vs=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 Md(this.x)&&Md(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 Bme(e,o){let t=e.options.ticks,n=Rme(e),i=Math.min(t.maxTicksLimit||n,n),s=t.major.enabled?Lme(o):[],d=s.length,u=s[0],f=s[d-1],_=[];if(d>i)return Vme(o,_,s,d/i),_;let C=Nme(s,o,i);if(d>0){let x,y,P=d>1?Math.round((f-u)/(d-1)):null;for(aC(o,_,C,Co(P)?0:u-P,u),x=0,y=d-1;xi)return f}return Math.max(i,1)}function Lme(e){let o=[],t,n;for(t=0,n=e.length;te==="left"?"right":e==="right"?"left":e,uR=(e,o,t)=>o==="top"||o==="left"?e[o]+t:e[o]-t,fR=(e,o)=>Math.min(o||e,e);function hR(e,o){let t=[],n=e.length/o,i=e.length,s=0;for(;sd+u)))return f}function Gme(e,o){Ko(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:Sl(t,Sl(n,t)),max:Sl(n,Sl(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=qB(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=gr(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-Rf(o.grid)-t.padding-gR(o.title,this.chart.options.font),_=Math.sqrt(x*x+y*y),d=Q_(Math.min(Math.asin(gr((C.highest.height+6)/u,-1,1)),Math.asin(gr(f/_,-1,1))-Math.asin(gr(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=gR(i,t.options.font);if(u?(o.width=this.maxWidth,o.height=Rf(s)+f):(o.height=this.maxHeight,o.width=Rf(s)+f),n.display&&this.ticks.length){let{first:_,last:C,widest:x,highest:y}=this._getLabelSizes(),P=n.padding*2,S=ds(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:ce(0),last:ce(t-1),widest:ce(ee),highest:ce(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 EB(this._alignToPixels?Hp(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=Rf(s),P=[],S=u.setContext(this.getContext()),M=S.display?S.width:0,D=M/2,k=function(L){return Hp(n,L,M)},V,U,J,le,ee,ae,ce,_e,de,j,W,pe;if(d==="top")V=k(this.bottom),ae=this.bottom-y,_e=V-D,j=k(o.top)+D,pe=o.bottom;else if(d==="bottom")V=k(this.top),j=o.top,pe=k(o.bottom)-D,ae=V+D,_e=this.top+y;else if(d==="left")V=k(this.right),ee=this.right-y,ce=V-D,de=k(o.left)+D,W=o.right;else if(d==="right")V=k(this.left),de=o.left,W=k(o.right)-D,ee=V+D,ce=this.left+y;else if(t==="x"){if(d==="center")V=k((o.top+o.bottom)/2+.5);else if(bo(d)){let L=Object.keys(d)[0],N=d[L];V=k(this.chart.scales[L].getPixelForValue(N))}j=o.top,pe=o.bottom,ae=V+D,_e=ae+y}else if(t==="y"){if(d==="center")V=k((o.left+o.right)/2);else if(bo(d)){let L=Object.keys(d)[0],N=d[L];V=k(this.chart.scales[L].getPixelForValue(N))}ee=V-D,ce=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:Oe,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:[le,ee],backdrop:be}})}return D}_getXAxisLabelAlignment(){let{position:o,ticks:t}=this.options;if(-ds(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 Jme(e){return"id"in e&&"defaults"in e}var _M=class{constructor(){this.controllers=new K0(Wp,"datasets",!0),this.elements=new K0(Vs,"elements"),this.plugins=new K0(Object,"plugins"),this.scales=new K0(Od,"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):Ko(i,d=>{let u=n||this._getRegistryForType(d);this._exec(o,u,d)})})}_exec(o,t,n){let i=W_(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 Kme(e){let o={},t=[],n=Object.keys(hc.plugins.items);for(let s=0;s1&&_R(e[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function CR(e,o,t){if(t[o+"AxisID"]===e)return{axis:o}}function ode(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 CR(e,"x",t[0])||CR(e,"y",t[0])}return{}}function ade(e,o){let t=zp[e.type]||{scales:{}},n=o.scales||{},i=vM(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=xM(d,u,ode(d,e),ba.scales[u.type]),_=ide(f,i),C=t.scales||{};s[d]=G0(Object.create(null),[{axis:f},u,C[f],C[_]])}),e.data.datasets.forEach(d=>{let u=d.type||e.type,f=d.indexAxis||vM(u,o),C=(zp[u]||{}).scales||{};Object.keys(C).forEach(x=>{let y=tde(x,f),P=d[y+"AxisID"]||y;s[P]=s[P]||Object.create(null),G0(s[P],[{axis:y},n[P],C[x]])})}),Object.keys(s).forEach(d=>{let u=s[d];G0(u,[ba.scales[u.type],ba.scale])}),s}function a9(e){let o=e.options||(e.options={});o.plugins=Kn(o.plugins,{}),o.scales=ade(e,o)}function r9(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function rde(e){return e=e||{},e.data=r9(e.data),a9(e),e}var vR=new Map,l9=new Set;function rC(e,o){let t=vR.get(e);return t||(t=o(),vR.set(e,t),l9.add(t)),t}var Nf=(e,o,t)=>{let n=jc(o,t);n!==void 0&&e.add(n)},bM=class{constructor(o){this._config=rde(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=r9(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(),a9(o)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(o){return rC(o,()=>[[`datasets.${o}`,""]])}datasetAnimationScopeKeys(o,t){return rC(`${o}.transition.${t}`,()=>[[`datasets.${o}.transitions.${t}`,`transitions.${t}`],[`datasets.${o}`,""]])}datasetElementScopeKeys(o,t){return rC(`${o}-${t}`,()=>[[`datasets.${o}.elements.${t}`,`datasets.${o}`,`elements.${t}`,""]])}pluginScopeKeys(o){let t=o.id,n=this.type;return rC(`${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=>Nf(f,o,x))),C.forEach(x=>Nf(f,i,x)),C.forEach(x=>Nf(f,zp[s]||{},x)),C.forEach(x=>Nf(f,ba,x)),C.forEach(x=>Nf(f,K_,x))});let _=Array.from(f);return _.length===0&&_.push(Object.create(null)),l9.has(t)&&d.set(t,_),_}chartOptionScopes(){let{options:o,type:t}=this;return[o,zp[t]||{},ba.datasets[t]||{},{type:t},ba,K_]}resolveNamedOptions(o,t,n,i=[""]){let s={$shared:!0},{resolver:d,subPrefixes:u}=xR(this._resolverCache,o,i),f=d;if(sde(d,t)){s.$shared=!1,n=Hc(n)?n():n;let _=this.createResolver(o,n,u);f=Td(d,n,_)}for(let _ of t)s[_]=f[_];return s}createResolver(o,t,n=[""],i){let{resolver:s}=xR(this._resolverCache,o,n);return bo(t)?Td(s,t,void 0,i):s}};function xR(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:eC(o,t),subPrefixes:t.filter(u=>!u.toLowerCase().includes("hover"))},n.set(i,s)),s}var lde=e=>bo(e)&&Object.getOwnPropertyNames(e).some(o=>Hc(e[o]));function sde(e,o){let{isScriptable:t,isIndexable:n}=j4(e);for(let i of o){let s=t(i),d=n(i),u=(d||s)&&e[i];if(s&&(Hc(u)||lde(u))||d&&ga(u))return!0}return!1}var cde="4.5.1",pde=["top","bottom","left","right","chartArea"];function bR(e,o){return e==="top"||e==="bottom"||pde.indexOf(e)===-1&&o==="x"}function yR(e,o){return function(t,n){return t[e]===n[e]?t[o]-n[o]:t[e]-n[e]}}function SR(e){let o=e.chart,t=o.options.animation;o.notifyPlugins("afterRender"),oa(t&&t.onComplete,[e],o)}function mde(e){let o=e.chart,t=o.options.animation;oa(t&&t.onProgress,[e],o)}function s9(e){return tC()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var mC={},wR=e=>{let o=s9(e);return Object.values(mC).filter(t=>t.canvas===o).pop()};function dde(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 ude(e,o,t,n){return!t||e.type==="mouseout"?null:n?o:e}var Tl=(()=>{class e{static defaults=ba;static instances=mC;static overrides=zp;static registry=hc;static version=cde;static getChart=wR;static register(...t){hc.add(...t),PR()}static unregister(...t){hc.remove(...t),PR()}constructor(t,n){let i=this.config=new bM(n),s=s9(t),d=wR(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||kme(s)),this.platform.updateConfig(i);let f=this.platform.acquireContext(s,u.aspectRatio),_=f&&f.canvas,C=_&&_.height,x=_&&_.width;if(this.id=SB(),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 CM,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=kB(y=>this.update(y),u.resizeDelay||0),this._dataChanges=[],mC[this.id]=this,!f||!_){console.error("Failed to create chart: can't acquire context from the given item");return}Uc.listen(this,"complete",SR),Uc.listen(this,"progress",mde),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 hc}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Q4(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return z4(this.canvas,this.ctx),this}stop(){return Uc.stop(this),this}resize(t,n){Uc.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,Q4(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||{};Ko(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],_=xM(u,f),C=_==="r",x=_==="x";return{options:f,dposition:C?"chartArea":x?"bottom":"left",dtype:C?"radialLinear":x?"category":"linear"}}))),Ko(d,u=>{let f=u.options,_=f.id,C=xM(_,f),x=Kn(f.type,u.dtype);(f.position===void 0||bR(f.position,C)!==bR(u.dposition))&&(f.position=u.dposition),s[_]=!0;let y=null;if(_ in i&&i[_].type===x)y=i[_];else{let P=hc.getScale(x);y=new P({id:_,type:x,ctx:this.ctx,chart:this}),i[y.id]=y}y.init(f,t)}),Ko(s,(u,f)=>{u||delete i[f]}),Ko(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(yR("z","_idx"));let{_active:f,_lastEvent:_}=this;_?this._eventHandler(_,!0):f.length&&this._updateHoverStyles(f,f,!0),this.render()}_updateScales(){Ko(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);(!D4(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;dde(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=[],Ko(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=eM(this,t);this.notifyPlugins("beforeDatasetDraw",i)!==!1&&(s&&Of(n,s),t.controller.draw(),s&&Af(n),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(t){return mc(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,i,s){let d=hme.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=$c(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);j0(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(),Uc.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)};Ko(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(){Ko(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Ko(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}});!Ef(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),_=TB(t),C=ude(t,this._lastEvent,i,_);i&&(this._lastEvent=null,oa(d.onHover,[t,f,this],this),_&&oa(d.onClick,[t,f,this],this));let x=!Ef(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 PR(){return Ko(Tl.instances,e=>e._plugins.invalidate())}function fde(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 hde(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 gde(e){return Z_(e,["outerStart","outerEnd","innerStart","innerEnd"])}function _de(e,o,t,n){let i=gde(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 gr(f,0,Math.min(s,_))};return{outerStart:u(i.outerStart),outerEnd:u(i.outerEnd),innerStart:gr(i.innerStart,0,d),innerEnd:gr(i.innerEnd,0,d)}}function J0(e,o,t,n){return{x:t+e*Math.cos(o),y:n+e*Math.sin(o)}}function hC(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,V=i-D-P,{outerStart:U,outerEnd:J,innerStart:le,innerEnd:ee}=_de(o,y,x,V-k),ae=x-U,ce=x-J,_e=k+U/ae,de=V-J/ce,j=y+le,W=y+ee,pe=k+le/j,O=V-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 $=J0(ce,de,d,u);e.arc($.x,$.y,J,de,V+za)}let L=J0(W,V,d,u);if(e.lineTo(L.x,L.y),ee>0){let $=J0(W,O,d,u);e.arc($.x,$.y,ee,V+za,O+Math.PI)}let N=(V-ee/y+(k+le/y))/2;if(e.arc(d,u,y,V-ee/y,N,!0),e.arc(d,u,y,N,k+le/y,!0),le>0){let $=J0(j,pe,d,u);e.arc($.x,$.y,le,pe+Math.PI,k-za)}let G=J0(ae,k,d,u);if(e.lineTo(G.x,G.y),U>0){let $=J0(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 Cde(e,o,t,n,i){let{fullCircles:s,startAngle:d,circumference:u}=o,f=o.endAngle;if(s){hC(e,o,t,n,f,i);for(let _=0;_=Bo&&P===0&&C!=="miter"&&fde(e,o,M),s||(hC(e,o,t,n,M,i),e.stroke())}var yM=class extends Vs{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}=A4(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=U0(s,u,f)&&u!==f,M=P>=_a||S,D=uc(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,Cde(o,this,_,s,d),vde(o,this,_,s,d),o.restore()}};function c9(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 xde(e,o,t){e.lineTo(t.x,t.y)}function bde(e){return e.stepped?LB:e.tension||e.cubicInterpolationMode==="monotone"?VB:xde}function p9(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[V(0)],e.moveTo(P.x,P.y)),y=0;y<=u;++y){if(P=i[V(y)],P.skip)continue;let J=P.x,le=P.y,ee=J|0;ee===S?(leD&&(D=le),C=(x*C+J)/++x):(U(),e.lineTo(J,le),S=ee,x=0,M=D=le),k=le}U()}function SM(e){let o=e.options,t=o.borderDash&&o.borderDash.length;return!e._decimated&&!e._loop&&!o.tension&&o.cubicInterpolationMode!=="monotone"&&!o.stepped&&!t?Sde:yde}function wde(e){return e.stepped?QB:e.tension||e.cubicInterpolationMode==="monotone"?YB:Vp}function Pde(e,o,t,n){let i=o._path;i||(i=o._path=new Path2D,o.path(i,t,n)&&i.closePath()),c9(e,o.options),e.stroke(i)}function Tde(e,o,t,n){let{segments:i,options:s}=o,d=SM(o);for(let u of i)c9(e,s,u.style),e.beginPath(),d(e,o,u,{start:t,end:t+n-1})&&e.closePath(),e.stroke()}var Mde=typeof Path2D=="function";function Dde(e,o,t,n){Mde&&!o.options.segment?Pde(e,o,t,n):Tde(e,o,t,n)}var CC=(()=>{class e extends Vs{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;$B(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=KB(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=Z4(this,{property:n,start:s,end:s});if(!u.length)return;let f=[],_=wde(i),C,x;for(C=0,x=u.length;C{class e extends Vs{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 d9(e){return PM[e%PM.length]}function u9(e){return MR[e%MR.length]}function Rde(e,o){return e.borderColor=d9(o),e.backgroundColor=u9(o),++o}function Nde(e,o){return e.backgroundColor=e.data.map(()=>d9(o++)),o}function Lde(e,o){return e.backgroundColor=e.data.map(()=>u9(o++)),o}function Vde(e){let o=0;return(t,n)=>{let i=e.getDatasetMeta(n).controller;i instanceof FM?o=Nde(t,o):i instanceof e9?o=Lde(t,o):i&&(o=Rde(t,o))}}function DR(e){let o;for(o in e)if(e[o].borderColor||e[o].backgroundColor)return!0;return!1}function qde(e){return e&&(e.borderColor||e.backgroundColor)}function zde(){return ba.borderColor!=="rgba(0,0,0,0.1)"||ba.backgroundColor!=="rgba(0,0,0,0.1)"}var Hde={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=DR(n)||qde(i)||s&&DR(s)||zde();if(!t.forceOverride&&d)return;let u=Vde(e);n.forEach(u)}};function Gde(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[V],M=V);d[f++]=y,C=M}return d[f++]=e[_],d}function jde(e,o,t,n){let i=0,s=0,d,u,f,_,C,x,y,P,S,M,D=[],k=o+t-1,V=e[o].x,J=e[k].x-V;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),ce=Math.max(x,y);ae!==P&&ae!==ee&&D.push(qt(at({},e[ae]),{x:i})),ce!==P&&ce!==ee&&D.push(qt(at({},e[ce]),{x:i}))}d>0&&ee!==P&&D.push(e[ee]),D.push(u),C=le,s=0,S=M=_,x=y=P=d}}return D}function f9(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 ER(e){e.data.datasets.forEach(o=>{f9(o)})}function $de(e,o){let t=o.length,n=0,i,{iScale:s}=e,{min:d,max:u,minDefined:f,maxDefined:_}=s.getUserBounds();return f&&(n=gr(pc(o,s.axis,d).lo,0,t-1)),_?i=gr(pc(o,s.axis,u).hi+1,n,t)-n:i=t-n,{start:n,count:i}}var Ude={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,o,t)=>{if(!t.enabled){ER(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(Y0([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}=$de(f,_),P=t.threshold||4*n;if(y<=P){f9(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=Gde(_,x,y,n,t);break;case"min-max":S=jde(_,x,y,n);break;default:throw new Error(`Unsupported decimation algorithm '${t.algorithm}'`)}i._decimated=S})},destroy(e){ER(e)}};function Wde(e,o,t){let n=e.segments,i=e.points,s=o.points,d=[];for(let u of n){let{start:f,end:_}=u;_=vC(f,_,i);let C=TM(t,i[f],i[_],u.loop);if(!o.segments){d.push({source:u,target:C,start:i[f],end:i[_]});continue}let x=Z4(o,C);for(let y of x){let P=TM(t,s[y.start],s[y.end],y.loop),S=X4(u,i,P);for(let M of S)d.push({source:M,target:y,start:{[t]:IR(C,P,"start",Math.max)},end:{[t]:IR(C,P,"end",Math.min)}})}}return d}function TM(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 Qde(e,o){let{x:t=null,y:n=null}=e||{},i=o.points,s=[];return o.segments.forEach(({start:d,end:u})=>{u=vC(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 vC(e,o,t){for(;o>e;o--){let n=t[o];if(!isNaN(n.x)&&!isNaN(n.y))break}return o}function IR(e,o,t,n){return e&&o?n(e[t],o[t]):e?e[t]:o?o[t]:0}function h9(e,o){let t=[],n=!1;return ga(e)?(n=!0,t=e):t=Qde(e,o),t.length?new CC({points:t,options:{tension:0},_loop:n,_fullLoop:n}):null}function OR(e){return e&&e.fill!==!1}function Yde(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 Jde(e,o,t){let n=e0e(e);if(bo(n))return isNaN(n.value)?!1:n;let i=parseFloat(n);return Fa(i)&&Math.floor(i)===i?Kde(n[0],o,i,t):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function Kde(e,o,t,n){return(e==="-"||e==="+")&&(t=o+t),t===o||t<0||t>=n?!1:t}function Xde(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 Zde(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 e0e(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 t0e(e){let{scale:o,index:t,line:n}=e,i=[],s=n.segments,d=n.points,u=i0e(o,t);u.push(h9({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&&pM(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;OR(s)&&pM(e.ctx,s,e.chartArea)}},beforeDatasetDraw(e,o,t){let n=o.meta.$filler;!OR(n)||t.drawTime!=="beforeDatasetDraw"||pM(e.ctx,n,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},BR=(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)}},u0e=(e,o)=>e!==null&&o!==null&&e.datasetIndex===o.datasetIndex&&e.index===o.index,_C=class extends Vs{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=lr(n.font),s=i.size,d=this._computeTitleHeight(),{boxWidth:u,itemHeight:f}=BR(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:V,itemHeight:U}=f0e(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:V,height:U},y=Math.max(y,V),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=Dd(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;Of(o,this),this._draw(),Af(o)}}_draw(){let{options:o,columnSizes:t,lineWidths:n,ctx:i}=this,{align:s,labels:d}=o,u=ba.color,f=Dd(o.rtl,this.left,this.width),_=lr(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}=BR(d,x),k=function(ee,ae,ce){if(isNaN(S)||S<=0||isNaN(M)||M<0)return;i.save();let _e=Kn(ce.lineWidth,1);if(i.fillStyle=Kn(ce.fillStyle,u),i.lineCap=Kn(ce.lineCap,"butt"),i.lineDashOffset=Kn(ce.lineDashOffset,0),i.lineJoin=Kn(ce.lineJoin,"miter"),i.lineWidth=_e,i.strokeStyle=Kn(ce.strokeStyle,u),i.setLineDash(Kn(ce.lineDash,[])),d.usePointStyle){let de={radius:M*Math.SQRT2/2,pointStyle:ce.pointStyle,rotation:ce.rotation,borderWidth:_e},j=f.xPlus(ee,S/2),W=ae+y;H4(i,de,j,W,d.pointStyleWidth&&S)}else{let de=ae+Math.max((x-M)/2,0),j=f.leftForLtr(ee,S),W=jp(ce.borderRadius);i.beginPath(),Object.values(W).some(pe=>pe!==0)?Q0(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()},V=function(ee,ae,ce){Gp(i,ce.text,ee,ae+D/2,_,{strikethrough:ce.hidden,textAlign:f.textAlign(ce.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},J4(this.ctx,o.textDirection);let le=D+C;this.legendItems.forEach((ee,ae)=>{i.strokeStyle=ee.fontColor,i.fillStyle=ee.fontColor;let ce=i.measureText(ee.text).width,_e=f.textAlign(ee.textAlign||(ee.textAlign=d.textAlign)),de=S+y+ce,j=P.x,W=P.y;f.setWidth(this.width),U?ae>0&&j+de+C>this.right&&(W=P.y+=le,P.line++,j=P.x=Vr(s,this.left+C,this.right-n[P.line])):ae>0&&W+le>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=BB(_e,j+S+y,U?j+de:this.right,o.rtl),V(f.x(j),W,ee),U)P.x+=de+C;else if(typeof ee.text!="string"){let O=_.lineHeight;P.y+=g9(ee,O)+C}else P.y+=le}),K4(this.ctx,o.textDirection)}drawTitle(){let o=this.options,t=o.title,n=lr(t.font),i=qr(t.padding);if(!t.display)return;let s=Dd(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(J_(u)),d.textBaseline="middle",d.strokeStyle=t.color,d.fillStyle=t.color,d.font=n.string,Gp(d,t.text,P,C,n)}_computeTitleHeight(){let o=this.options.title,t=lr(o.font),n=qr(o.padding);return o.display?t.lineHeight+n.height:0}_getLegendItemAt(o,t){let n,i,s;if(uc(o,this.left,this.right)&&uc(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 g0e(e,o,t){let n=e;return typeof o.text!="string"&&(n=g9(o,t)),n}function g9(e,o){let t=e.text?e.text.length:0;return o*t}function _0e(e,o){return!!((e==="mousemove"||e==="mouseout")&&(o.onHover||o.onLeave)||o.onClick&&(e==="click"||e==="mouseup"))}var C0e={id:"legend",_element:_C,start(e,o,t){let n=e.legend=new _C({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)}}},zf=class extends Vs{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*lr(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=lr(t.font),s=n.lineHeight/2+this._padding.top,{titleX:d,titleY:u,maxWidth:f,rotation:_}=this._drawArgs(s);Gp(o,t.text,0,0,n,{color:t.color,maxWidth:f,rotation:_,textAlign:J_(t.align),textBaseline:"middle",translation:[d,u]})}};function v0e(e,o){let t=new zf({ctx:e.ctx,options:o,chart:e});Jr.configure(e,t,o),Jr.addBox(e,t),e.titleBlock=t}var x0e={id:"title",_element:zf,start(e,o,t){v0e(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}},lC=new WeakMap,b0e={id:"subtitle",start(e,o,t){let n=new zf({ctx:e.ctx,options:t,chart:e});Jr.configure(e,n,t),Jr.addBox(e,n),lC.set(e,n)},stop(e){Jr.removeBox(e,lC.get(e)),lC.delete(e)},beforeUpdate(e,o,t){let n=lC.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}},Vf={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 y0e(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 RR(e,o){let t=e.chart.ctx,{body:n,footer:i,title:s}=e,{boxWidth:d,boxHeight:u}=o,f=lr(o.bodyFont),_=lr(o.titleFont),C=lr(o.footerFont),x=s.length,y=i.length,P=n.length,S=qr(o.padding),M=S.height,D=0,k=n.reduce((J,le)=>J+le.before.length+le.lines.length+le.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 V=0,U=function(J){D=Math.max(D,t.measureText(J).width+V)};return t.save(),t.font=_.string,Ko(e.title,U),t.font=f.string,Ko(e.beforeBody.concat(e.afterBody),U),V=o.displayColors?d+2+o.boxPadding:0,Ko(n,J=>{Ko(J.before,U),Ko(J.lines,U),Ko(J.after,U)}),V=0,t.font=C.string,Ko(e.footer,U),t.restore(),D+=S.width,{width:D,height:M}}function S0e(e,o){let{y:t,height:n}=o;return te.height-n/2?"bottom":"center"}function w0e(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 P0e(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"),w0e(_,e,o,t)&&(_="center"),_}function NR(e,o,t){let n=t.yAlign||o.yAlign||S0e(e,t);return{xAlign:t.xAlign||o.xAlign||P0e(e,o,t,n),yAlign:n}}function T0e(e,o){let{x:t,width:n}=e;return o==="right"?t-=n:o==="center"&&(t-=n/2),t}function M0e(e,o,t){let{y:n,height:i}=e;return o==="top"?n+=t:o==="bottom"?n-=i+t:n-=i/2,n}function LR(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}=jp(d),S=T0e(o,u),M=M0e(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:gr(S,0,n.width-o.width),y:gr(M,0,n.height-o.height)}}function sC(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 VR(e){return fc([],Wc(e))}function D0e(e,o,t){return $c(e,{tooltip:o,tooltipItems:t,type:"tooltip"})}function qR(e,o){let t=o&&o.dataset&&o.dataset.tooltip&&o.dataset.tooltip.callbacks;return t?e.override(t):e}var _9={beforeTitle:dc,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"?_9[o].call(t,n):i}var zR=(()=>{class e extends Vs{static positioners=Vf;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 dC(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(d)),d}getContext(){return this.$context||(this.$context=D0e(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){let{callbacks:i}=n,s=wl(i,"beforeTitle",this,t),d=wl(i,"title",this,t),u=wl(i,"afterTitle",this,t),f=[];return f=fc(f,Wc(s)),f=fc(f,Wc(d)),f=fc(f,Wc(u)),f}getBeforeBody(t,n){return VR(wl(n.callbacks,"beforeBody",this,t))}getBody(t,n){let{callbacks:i}=n,s=[];return Ko(t,d=>{let u={before:[],lines:[],after:[]},f=qR(i,d);fc(u.before,Wc(wl(f,"beforeLabel",this,d))),fc(u.lines,wl(f,"label",this,d)),fc(u.after,Wc(wl(f,"afterLabel",this,d))),s.push(u)}),s}getAfterBody(t,n){return VR(wl(n.callbacks,"afterBody",this,t))}getFooter(t,n){let{callbacks:i}=n,s=wl(i,"beforeFooter",this,t),d=wl(i,"footer",this,t),u=wl(i,"afterFooter",this,t),f=[];return f=fc(f,Wc(s)),f=fc(f,Wc(d)),f=fc(f,Wc(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))),Ko(f,x=>{let y=qR(t.callbacks,x);s.push(wl(y,"labelColor",this,x)),d.push(wl(y,"labelPointStyle",this,x)),u.push(wl(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=Vf[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=RR(this,i),C=Object.assign({},f,_),x=NR(this.chart,i,C),y=LR(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}=jp(f),{x:P,y:S}=t,{width:M,height:D}=n,k,V,U,J,le,ee;return d==="center"?(le=S+D/2,s==="left"?(k=P,V=k-u,J=le+u,ee=le-u):(k=P+M,V=k+u,J=le-u,ee=le+u),U=k):(s==="left"?V=P+Math.max(_,x)+u:s==="right"?V=P+M-Math.max(C,y)-u:V=this.caretX,d==="top"?(J=S,le=J-u,k=V-u,U=V+u):(J=S+D,le=J+u,k=V+u,U=V-u),ee=J),{x1:k,x2:V,x3:U,y1:J,y2:le,y3:ee}}drawTitle(t,n,i){let s=this.title,d=s.length,u,f,_;if(d){let C=Dd(i.rtl,this.x,this.width);for(t.x=sC(this,i.titleAlign,i),n.textAlign=C.textAlign(i.titleAlign),n.textBaseline="middle",u=lr(i.titleFont),f=i.titleSpacing,n.fillStyle=i.titleColor,n.font=u.string,_=0;_U!==0)?(t.beginPath(),t.fillStyle=d.multiKeyBackground,Q0(t,{x:D,y:M,w:C,h:_,radius:V}),t.fill(),t.stroke(),t.fillStyle=u.backgroundColor,t.beginPath(),Q0(t,{x:k,y:M+1,w:C-2,h:_-2,radius:V}),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=lr(i.bodyFont),P=y.lineHeight,S=0,M=Dd(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),V,U,J,le,ee,ae,ce;for(n.textAlign=u,n.textBaseline="middle",n.font=y.string,t.x=sC(this,k,i),n.fillStyle=i.bodyColor,Ko(this.beforeBody,D),S=f&&k!=="right"?u==="center"?C/2+x:C+2+x:0,le=0,ae=s.length;le0&&n.stroke()}_updateAnimationTarget(t){let n=this.chart,i=this.$animations,s=i&&i.x,d=i&&i.y;if(s||d){let u=Vf[t.position].call(this,this._active,this._eventPosition);if(!u)return;let f=this._size=RR(this,t),_=Object.assign({},u,this._size),C=NR(n,t,_),x=LR(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),J4(t,n.textDirection),d.y+=u.top,this.drawTitle(d,t,n),this.drawBody(d,t,n),this.drawFooter(d,t,n),K4(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=!Ef(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||!Ef(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=Vf[d.position].call(this,t,n);return u!==!1&&(i!==u.x||s!==u.y)}}return e})(),E0e={id:"tooltip",_element:zR,positioners:Vf,afterInit(e,o,t){t&&(e.tooltip=new zR({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:_9},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"]},I0e=Object.freeze({__proto__:null,Colors:Hde,Decimation:Ude,Filler:d0e,Legend:C0e,SubTitle:b0e,Title:x0e,Tooltip:E0e}),O0e=(e,o,t,n)=>(typeof o=="string"?(t=e.push(o)-1,n.unshift({index:t,label:o})):isNaN(o)&&(t=null),t);function A0e(e,o,t,n){let i=e.indexOf(o);if(i===-1)return O0e(e,o,t,n);let s=e.lastIndexOf(o);return i!==s?t:i}var F0e=(e,o)=>e===null?null:gr(Math.round(e),0,o);function HR(e){let o=this.getLabels();return e>=0&&e{class e extends Od{static id="category";static defaults={ticks:{callback:HR}};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:A0e(i,t,Kn(n,t),this._addedLabels),F0e(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 HR.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 B0e(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),V=!Co(u),U=!Co(_),J=(D-M)/(x+1),le=E4((D-M)/S/P)*P,ee,ae,ce,_e;if(le<1e-14&&!k&&!V)return[{value:M},{value:D}];_e=Math.ceil(D/le)-Math.floor(M/le),_e>S&&(le=E4(_e*le/S/P)*P),Co(f)||(ee=Math.pow(10,f),le=Math.ceil(le*ee)/ee),i==="ticks"?(ae=Math.floor(M/le)*le,ce=Math.ceil(D/le)*le):(ae=M,ce=D),k&&V&&s&&DB((u-d)/s,le/1e3)?(_e=Math.round(Math.min((u-d)/le,C)),le=(u-d)/_e,ae=d,ce=u):U?(ae=k?d:ae,ce=V?u:ce,_e=_-1,le=(ce-ae)/_e):(_e=(ce-ae)/le,$0(_e,Math.round(_e),le/1e3)?_e=Math.round(_e):_e=Math.ceil(_e));let de=Math.max(O4(le),O4(ae));ee=Math.pow(10,Co(f)?de:f),ae=Math.round(ae*ee)/ee,ce=Math.round(ce*ee)/ee;let j=0;for(k&&(y&&ae!==d?(t.push({value:d}),aeu)break;t.push({value:W})}return V&&y&&ce!==u?t.length&&$0(t[t.length-1].value,u,GR(u,J,e))?t[t.length-1].value=u:t.push({value:u}):(!V||ce===u)&&t.push({value:ce}),t}function GR(e,o,{horizontal:t,minRotation:n}){let i=ds(n),s=(t?Math.sin(i):Math.cos(i))||.001,d=.75*o*(""+e).length;return Math.min(o/s,d)}var X0=class extends Od{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=Ls(i),_=Ls(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=B0e(i,s);return o.bounds==="ticks"&&I4(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 W0(o,this.chart.options.locale,this.options.ticks.format)}},MM=class extends X0{static id="linear";static defaults={ticks:{callback:If.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=ds(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}},Hf=e=>Math.floor(Gc(e)),Id=(e,o)=>Math.pow(10,Hf(e)+o);function jR(e){return e/Math.pow(10,Hf(e))===1}function $R(e,o,t){let n=Math.pow(10,t),i=Math.floor(e/n);return Math.ceil(o/n)-i}function R0e(e,o){let t=o-e,n=Hf(t);for(;$R(e,o,n)>10;)n++;for(;$R(e,o,n)<10;)n--;return Math.min(n,Hf(e))}function N0e(e,{min:o,max:t}){o=Sl(e.min,o);let n=[],i=Hf(o),s=R0e(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=Sl(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=Sl(e.max,y);return n.push({value:P,major:jR(P),significand:x}),n}var DM=class extends Od{static id="logarithmic";static defaults={ticks:{callback:If.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=X0.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===Id(this.min,0)?Id(this.min,-1):Id(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(Id(n,-1)),d(Id(i,1)))),n<=0&&s(Id(i,-1)),i<=0&&d(Id(n,1)),this.min=n,this.max=i}buildTicks(){let o=this.options,t={min:this._userMin,max:this._userMax},n=N0e(t,this);return o.bounds==="ticks"&&I4(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":W0(o,this.chart.options.locale,this.options.ticks.format)}configure(){let o=this.min;super.configure(),this._startValue=Gc(o),this._valueRange=Gc(this.max)-Gc(o)}getPixelForValue(o){return(o===void 0||o===0)&&(o=this.min),o===null||isNaN(o)?NaN:this.getPixelForDecimal(o===this.min?0:(Gc(o)-this._startValue)/this._valueRange)}getValueForPixel(o){let t=this.getDecimalForPixel(o);return Math.pow(10,this._startValue+t*this._valueRange)}};function EM(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 L0e(e,o,t){return t=ga(t)?t:[t],{w:NB(e,o.string,t),h:t.length*o.lineHeight}}function UR(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 V0e(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 z0e(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(Q_(Lr(f.angle+za))),C=U0e(f.y,u.h,_),x=j0e(_),y=$0e(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 H0e(e,o){if(!o)return!0;let{left:t,top:n,right:i,bottom:s}=e;return!(mc({x:t,y:n},o)||mc({x:t,y:s},o)||mc({x:i,y:n},o)||mc({x:i,y:s},o))}function G0e(e,o,t){let n=[],i=e._pointLabels.length,s=e.options,{centerPointLabels:d,display:u}=s.pointLabels,f={extra:EM(s)/2,additionalAngle:d?Bo/i:0},_;for(let C=0;C270||t<90)&&(e-=o),e}function W0e(e,o,t){let{left:n,top:i,right:s,bottom:d}=t,{backdropColor:u}=o;if(!Co(u)){let f=jp(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(),Q0(e,{x:C,y:x,w:y,h:P,radius:f}),e.fill()):e.fillRect(C,x,y,P)}}function Q0e(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));W0e(t,d,s);let u=lr(d.font),{x:f,y:_,textAlign:C}=s;Gp(t,e._pointLabels[i],f,_+u.lineHeight/2,u,{color:d.color,textAlign:C,textBaseline:"middle"})}}function C9(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?V0e(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+ds(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);Y0e(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=lr(_.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)}Gp(o,u.label,0,-s,C,{color:_.color,strokeColor:_.textStrokeColor,strokeWidth:_.textStrokeWidth})}),o.restore()}drawTitle(){}},xC={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}},Pl=Object.keys(xC);function WR(e,o){return e-o}function QR(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"&&(Md(s)||s===!0)?t.startOf(d,"isoWeek",s):t.startOf(d,i)),+d)}function YR(e,o,t,n){let i=Pl.length;for(let s=Pl.indexOf(e);s=Pl.indexOf(t);s--){let d=Pl[s];if(xC[d].common&&e._adapter.diff(i,n,d)>=o-1)return d}return Pl[t?Pl.indexOf(t):0]}function X0e(e){for(let o=Pl.indexOf(e)+1,t=Pl.length;o=o?t[n]:t[i];e[s]=!0}}function Z0e(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 KR(e,o,t){let n=[],i={},s=o.length,d,u;for(d=0;d{class e extends Od{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 pme._date(t.adapters.date);s.init(n),G0(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:QR(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=OB(s,d,u);return this._unit=n.unit||(i.autoSkip?YR(n.minUnit,this.min,this.max,this._getLabelCapacity(d)):K0e(this,f.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:X0e(this._unit),this.initOffsets(s),t.reverse&&f.reverse(),KR(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=gr(n,0,u),i=gr(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||YR(d.minUnit,n,i,this._getLabelCapacity(n)),f=Kn(s.ticks.stepSize,1),_=u==="week"?d.isoWeekday:!1,C=Md(_)||_===!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}=pc(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}=pc(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 AM=class extends OM{static id="timeseries";static defaults=OM.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=cC(t,this.min),this._tableRange=cC(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(cC(this._table,o)-this._minPos)/this._tableRange}getValueForPixel(o){let t=this._offsets,n=this.getDecimalForPixel(o)/t.factor-t.end;return cC(this._table,n*this._tableRange+this._minPos,!0)}},eue=Object.freeze({__proto__:null,CategoryScale:k0e,LinearScale:MM,LogarithmicScale:DM,RadialLinearScale:IM,TimeScale:OM,TimeSeriesScale:AM}),Qp=[cme,Bde,I0e,eue];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," ")}}Tl.register(...Qp);var bC=(()=>{class e{constructor(){this.homeService=T(L0),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(){fl(this.officeId.valueChanges,this.timescale.valueChanges).pipe(sF(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);g0([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);g0([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);g0([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 Tl("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,iue,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,tue,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,os,fe,Ue,gn,$e,Je,Fe,Be,gt,ft,sa,ke,Ap,Fp,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 nue=e=>({display:e});function oue(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 aue(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")))}Tl.register(...Qp);var yC=(()=>{class e{constructor(){this.homeService=T(L0),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 Tl("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,oue,2,2,"mat-option",6,Pe),r()()()()(),l(14,"mat-card-content")(15,"div",7),b(16,"canvas",8),r(),E(17,aue,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,nue,i.hideOutput?"none":"block")),a(2),I(i.showFallback?17:-1))},dependencies:[ue,os,fe,Ue,gn,$e,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 rue=e=>({display:e});function lue(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 sue(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")))}Tl.register(...Qp);var SC=(()=>{class e{constructor(){this.homeService=T(L0),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 Tl("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,lue,2,2,"mat-option",6,Pe),r()()()()(),l(14,"mat-card-content")(15,"div",7),b(16,"canvas",8),r(),E(17,sue,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,rue,i.hideOutput?"none":"block")),a(2),I(i.showFallback?17:-1))},dependencies:[ue,os,fe,Ue,gn,$e,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 cue(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 wC=(()=>{class e{constructor(){this.router=T(qe),this.searchText=new it,this.allActivities=k_,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(Dn(t=>typeof t=="string"?t:t.activity),Dn(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,cue,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=xe(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,Ue,gn,Ae,$e,Je,Fe,Be,ze,ft,Za,Xa,bC,yC,SC,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 pue=[_o.withShell([{path:"",redirectTo:"/home",pathMatch:"full"},{path:"home",component:R_,data:{title:"Home"}},{path:"dashboard",component:wC,data:{title:"Dashboard",breadcrumb:"Dashboard"},resolve:{offices:zr}}])],v9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[zr],imports:[hn.forChild(pue),hn]})}}return e})();var x9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[Rg,oo,ha,v9,Mp,R_,wC,SC,yC,bC,B_,y_]})}}return e})();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.Username")," "),a(3),h(m(5,4,"labels.commons.is required")))}function due(e,o){e&1&&(l(0,"span",3),b(1,"fa-icon",11),r())}function uue(e,o){e&1&&b(0,"fa-icon",13)}function fue(e,o){e&1&&b(0,"fa-icon",14)}function hue(e,o){if(e&1){let t=Y();l(0,"button",12),R("mousedown",function(){z(t);let i=w(2);return H(i.togglePasswordVisibility())})("mouseup",function(){z(t);let i=w(2);return H(i.togglePasswordVisibility())}),E(1,uue,1,0,"fa-icon",13),E(2,fue,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 gue(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 _ue(e,o){e&1&&b(0,"mat-progress-bar",8)}function Cue(e,o){e&1&&b(0,"mat-spinner",10),e&2&&g("diameter",20)}function vue(e,o){if(e&1){let t=Y();l(0,"div")(1,"form",1),R("ngSubmit",function(){z(t);let i=w();return H(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,mue,6,6,"mat-error"),r(),l(10,"mat-form-field",2),E(11,due,2,0,"span",3),l(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",6),E(16,hue,3,2,"button",7),E(17,gue,6,6,"mat-error"),r(),E(18,_ue,1,0,"mat-progress-bar",8),l(19,"button",9),c(20),p(21,"translate"),E(22,Cue,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 xue(e,o){e&1&&b(0,"mat-spinner",10),e&2&&g("diameter",20)}function bue(e,o){if(e&1){let t=Y();l(0,"div",0)(1,"button",15),R("click",function(){z(t);let i=w();return H(i.loginOAuth())}),c(2),p(3,"translate"),E(4,xue,1,1,"mat-spinner",10),r()()}if(e&2){let t=w();a(),g("disabled",t.loading),a(),v(" ",m(3,3,"labels.buttons.Login")," "),a(2),I(t.loading?4:-1)}}var PC=(()=>{class e{constructor(){this.formBuilder=T(QF),this.authenticationService=T(Qo),this.passwordInputType="password",this.loading=!1,this.oauthEnabled=xn.OIDC.oidcServerEnabled||xn.oauth.enabled,this.enableRememberMe=xn.enableRememberMe===!0}ngOnInit(){this.createLoginForm()}login(){this.loading=!0,this.loginForm.disable(),this.authenticationService.login(this.loginForm.value).pipe(al(()=>{this.loginForm.reset(),this.loginForm.markAsPristine(),this.loginForm.enable(),this.loading=!1})).subscribe()}loginOAuth(){this.loading=!0,this.authenticationService.login().pipe(al(()=>{this.loading=!1})).subscribe({error:()=>{}})}togglePasswordVisibility(){this.passwordInputType=this.passwordInputType==="password"?"text":"password"}createLoginForm(){this.loginForm=this.formBuilder.group({username:["",re.required],password:["",[re.required,re.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,"layout-column"],["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"],["mat-raised-button","","color","primary",1,"login-button-first","flex-align-center",3,"click","disabled"]],template:function(n,i){n&1&&(E(0,vue,23,19,"div"),E(1,bue,5,5,"div",0)),n&2&&(I(i.oauthEnabled?-1:0),a(),I(i.oauthEnabled?1:-1))},dependencies:[ue,fe,tt,st,Ue,Xe,Ze,et,Fe,Be,ut,ai,ze,ve,w0,ke,as,M0,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 Yp=e=>{let o=e.get("password"),t=e.get("repeatPassword");return o&&t&&o.value!==t.value?{passwordsDoNotMatch:!0}:null};function yue(e,o){e&1&&b(0,"fa-icon",12)}function Sue(e,o){e&1&&b(0,"fa-icon",13)}function wue(e,o){if(e&1){let t=Y();l(0,"button",11),R("mousedown",function(){z(t);let i=w();return H(i.passwordInputType="text")})("mouseup",function(){z(t);let i=w();return H(i.passwordInputType="password")}),E(1,yue,1,0,"fa-icon",12),E(2,Sue,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 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.inputs.Password")," "),a(3),h(m(5,4,"labels.commons.is required")))}function Tue(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 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.commons.Password should be at least")," "),a(3),h(m(5,4,"labels.commons.12 characters long")))}function Due(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 Eue(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 Iue(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 Oue(e,o){e&1&&b(0,"mat-spinner",10),e&2&&g("diameter",20)}var TC=(()=>{class e{constructor(){this.formBuilder=T(nt),this.authenticationService=T(Qo),this.passwordsUtility=T(T0),this.loading=!1}ngOnInit(){this.createResetPasswordForm(),this.passwordInputType="password"}resetPassword(){this.loading=!0,this.resetPasswordForm.disable(),this.authenticationService.resetPassword(this.resetPasswordForm.value).pipe(al(()=>{this.resetPasswordForm.reset(),this.resetPasswordForm.markAsPristine(),this.resetPasswordForm.enable(),this.loading=!1})).subscribe()}createResetPasswordForm(){this.resetPasswordForm=this.formBuilder.group({password:["",this.passwordsUtility.getPasswordValidators()],repeatPassword:["",re.required]},{validator:Yp})}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,wue,3,2,"button",5),E(13,Pue,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,Tue,6,6,"mat-error"),E(22,Mue,6,6,"mat-error"),E(23,Due,6,6,"mat-error"),E(24,Eue,15,15,"mat-error"),r(),E(25,Iue,6,6,"p",8),l(26,"button",9),c(27),p(28,"translate"),E(29,Oue,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,Ue,Xe,dt,Ze,et,Fe,Be,ut,ai,ze,ve,Ri,w0,ke,wi,M0,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 Aue(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 Fue(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(),bg(" ",m(2,5,"labels.inputs.Send")," ",t.name," ",m(3,7,"labels.inputs.to")," ",t.target," ")}}function kue(e,o){e&1&&b(0,"mat-spinner",5),e&2&&g("diameter",20)}function Bue(e,o){if(e&1){let t=Y();l(0,"form",1),R("ngSubmit",function(){z(t);let i=w();return H(i.requestOTP())}),l(1,"mat-radio-group",2),Se(2,Fue,4,9,"mat-radio-button",3,Pe),r(),l(4,"button",4),c(5),p(6,"translate"),E(7,kue,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 Rue(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 Nue(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.OTP")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Lue(e,o){e&1&&b(0,"mat-spinner",5),e&2&&g("diameter",20)}function Vue(e,o){e&1&&b(0,"mat-spinner",5),e&2&&g("diameter",20)}function que(e,o){if(e&1){let t=Y();l(0,"form",1),R("ngSubmit",function(){z(t);let i=w();return H(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,Nue,7,9,"mat-error"),r(),l(20,"button",12),c(21),p(22,"translate"),E(23,Lue,1,1,"mat-spinner",5),r(),l(24,"button",13),R("click",function(){z(t);let i=w();return H(i.resendOTP())}),c(25),p(26,"translate"),E(27,Vue,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),se(" ",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 MC=(()=>{class e{constructor(){this.formBuilder=T(nt),this.authenticationService=T(Qo),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(al(()=>{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(al(()=>{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(al(()=>{this.twoFactorAuthenticationForm.reset(),this.twoFactorAuthenticationForm.markAsPristine(),this.twoFactorAuthenticationForm.enable(),this.resendOTPLoading=!1})).subscribe()}createTwoFactorAuthenticationDeliveryMethodForm(){this.twoFactorAuthenticationDeliveryMethodForm=this.formBuilder.group({twoFactorAuthenticationDeliveryMethod:["",re.required]})}createTwoFactorAuthenticationForm(){this.twoFactorAuthenticationForm=this.formBuilder.group({otp:["",re.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,Aue,3,3,"p"),E(6,Bue,8,6,"form",0),E(7,Rue,3,3,"p"),E(8,que,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,Ue,Xe,dt,Ze,et,Fe,Be,ut,qa,ze,ve,Ri,er,tr,M0,w0,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 zue(e,o){e&1&&b(0,"mifosx-server-selector",14)}function Hue(e,o){e&1&&b(0,"mifosx-tenant-selector")}function Gue(e,o){e&1&&b(0,"mifosx-login-form")}function jue(e,o){e&1&&b(0,"mifosx-reset-password")}function $ue(e,o){e&1&&b(0,"mifosx-two-factor-authentication")}var DC=(()=>{class e{constructor(){this.alertService=T(Sr),this.settingsService=T(At),this.router=T(qe),this.environment=xn,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(xn.fineractPlatformTenantId||"default"),this.settingsService.setTenantIdentifiers(xn.fineractPlatformTenantIds.split(",")),this.settingsService.setServers(xn.baseApiUrls.split(",")),window.location.reload()}displayTenantSelector(){return xn.oauth.enabled?!1:xn.displayTenantSelector!=="false"}allowServerSwitch(){return xn.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,zue,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,Hue,1,0,"mifosx-tenant-selector"),E(33,Gue,1,0,"mifosx-login-form"),l(34,"div",3),E(35,jue,1,0,"mifosx-reset-password"),E(36,$ue,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 z(s),H(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=xe(56),d=xe(67),u=xe(78);a(4),h(m(5,31,"APP_NAME")),a(3),se(" ",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",Sp("",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,ve,qg,Zg,sk,ck,PC,TC,MC,xl,Vo,oc,Vg,ke,nc,ic,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 Uue=[{path:"login",component:DC,data:{title:"Login"}}],b9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[hn.forChild(Uue),hn]})}}return e})();var y9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,b9,Mp,DC,PC,TC,MC]})}}return e})();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.name," ")}}function Que(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 Yue(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 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," ")}}var EC=(()=>{class e{constructor(){this.settingsService=T(At),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,Wue,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,Que,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,Yue,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,Jue,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,Ue,gn,Fe,Be,ze,gt,ft,Dr,Pr,Tr,Mr,Ep,tk,he],styles:[".header[_ngcontent-%COMP%]{font-weight:500}"]})}}return e})();var Kue=[_o.withShell([{path:"settings",component:EC,data:{title:"Settings",breadcrumb:"Settings"}}])],S9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[hn.forChild(Kue),hn]})}}return e})();var w9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,S9,EC]})}}return e})();var IC=(()=>{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 Xue(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 Zue(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 jf=(()=>{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,Xue,3,3,"div",4),E(9,Zue,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,Yo,Ea,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 efe(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 tfe(e,o){if(e&1&&(l(0,"div",7),c(1),r()),e&2){let t=w();a(),v(" ",t.employeeData.mobileNo," ")}}var $f=(()=>{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,efe,3,3,"div",6),E(28,tfe,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),se("",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,Yo,si,vl,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 ife=()=>[10,25];function nfe(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 ofe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function afe(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 rfe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function lfe(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 sfe(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 cfe(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 pfe(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 mfe(e,o){e&1&&b(0,"tr",21)}function dfe(e,o){e&1&&b(0,"tr",22)}var qs=(()=>{class e{constructor(){this.accountsFilterPipe=T(rs),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,nfe,3,3,"th",6)(11,ofe,2,1,"td",7),Z(),X(12,8),F(13,afe,3,3,"th",6)(14,rfe,2,1,"td",7),Z(),X(15,9),F(16,lfe,3,3,"th",10)(17,sfe,2,3,"td",7),Z(),X(18,11),F(19,cfe,3,3,"th",10)(20,pfe,4,5,"td",7),Z(),F(21,mfe,1,0,"tr",12)(22,dfe,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,ife)))},dependencies:[ue,fe,Fe,Be,ze,ve,_t,It,xt,vt,bt,ri,Ct,yt,ke,si,St,Pt,wt,Tt,kt,he,go],encapsulation:2})}}return e})();var ufe=()=>[10,25];function ffe(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 hfe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function gfe(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 _fe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function Cfe(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 vfe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountBalance)}}function xfe(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 bfe(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 yfe(e,o){e&1&&b(0,"tr",20)}function Sfe(e,o){e&1&&b(0,"tr",21)}var zs=(()=>{class e{constructor(){this.accountsFilterPipe=T(rs),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,ffe,3,3,"th",6)(11,hfe,2,1,"td",7),Z(),X(12,8),F(13,gfe,3,3,"th",6)(14,_fe,2,1,"td",7),Z(),X(15,9),F(16,Cfe,3,3,"th",6)(17,vfe,2,1,"td",7),Z(),X(18,10),F(19,xfe,3,3,"th",11)(20,bfe,4,5,"td",7),Z(),F(21,yfe,1,0,"tr",12)(22,Sfe,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,ve,_t,It,xt,vt,bt,ri,Ct,yt,ke,si,St,Pt,wt,Tt,kt,he,go],encapsulation:2})}}return e})();function wfe(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 Pfe(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 Tfe(e,o){if(e&1&&(l(0,"div",9),c(1),r()),e&2){let t=w();a(),v(" ",t.centerSummaryData.activeClients," ")}}function Mfe(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 Dfe(e,o){if(e&1&&(l(0,"div",9),c(1),r()),e&2){let t=w();a(),v(" ",t.centerSummaryData.activeClientLoans," ")}}function Efe(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 Ife(e,o){if(e&1&&(l(0,"div",9),c(1),r()),e&2){let t=w();a(),v(" ",t.centerSummaryData.activeClientBorrowers," ")}}function Ofe(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 Afe(e,o){if(e&1&&(l(0,"div",9),c(1),r()),e&2){let t=w();a(),v(" ",t.centerSummaryData.overdueGroupLoans," ")}}function Ffe(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 kfe(e,o){if(e&1&&(l(0,"div",9),c(1),r()),e&2){let t=w();a(),v(" ",t.centerSummaryData.overdueClientLoans," ")}}function Bfe(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 Rfe(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 Nfe(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 Lfe(e,o){if(e&1&&(l(0,"div",9),c(1),r()),e&2){let t=w();a(),v(" ",t.centerSummaryData.collectionMeetingCalendar.humanReadable," ")}}function Vfe(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 qfe(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 Uf=(()=>{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(qs,5),Ee(zs,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,wfe,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,Pfe,3,3,"div",8),E(32,Tfe,2,1,"div",9),E(33,Mfe,3,3,"div",8),E(34,Dfe,2,1,"div",9),E(35,Efe,3,3,"div",8),E(36,Ife,2,1,"div",9),E(37,Ofe,3,3,"div",8),E(38,Afe,2,1,"div",9),E(39,Ffe,3,3,"div",8),E(40,kfe,2,1,"div",9),E(41,Bfe,3,3,"div",10),E(42,Rfe,3,3,"div",9),E(43,Nfe,3,3,"div",10),E(44,Lfe,2,1,"div",9),l(45,"div",8),c(46),p(47,"translate"),r(),l(48,"div",9),c(49),r()()(),E(50,Vfe,2,1,"mat-tab",11),E(51,qfe,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,Yo,si,vl,lc,Ea,Nr,Qr,qs,zs,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 zfe(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 Hfe(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.groupData.centerName," ")}}function Gfe(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 jfe(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 $fe(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 Ufe(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.groupData.collectionMeetingCalendar.humanReadable," ")}}function Wfe(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 Qfe(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 Wf=(()=>{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(qs,5),Ee(zs,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,zfe,3,3,"div",7),E(30,Hfe,2,1,"div",8),E(31,Gfe,3,3,"div",9),E(32,jfe,3,3,"div",8),E(33,$fe,3,3,"div",9),E(34,Ufe,2,1,"div",8),l(35,"div",7),c(36),p(37,"translate"),r(),l(38,"div",8),c(39),r()()(),E(40,Wfe,2,1,"mat-tab",10),E(41,Qfe,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),Wo(" ",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,Yo,si,vl,Nr,Qr,qs,zs,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 Yfe=()=>[10,25];function Jfe(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 Kfe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function Xfe(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 Zfe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function e1e(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 t1e(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalApprovedShares)}}function i1e(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 n1e(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 o1e(e,o){e&1&&b(0,"tr",20)}function a1e(e,o){e&1&&b(0,"tr",21)}var Qf=(()=>{class e{constructor(){this.accountsFilterPipe=T(rs),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,Jfe,3,3,"th",6)(11,Kfe,2,1,"td",7),Z(),X(12,8),F(13,Xfe,3,3,"th",6)(14,Zfe,2,1,"td",7),Z(),X(15,9),F(16,e1e,3,3,"th",6)(17,t1e,2,1,"td",7),Z(),X(18,10),F(19,i1e,3,3,"th",11)(20,n1e,4,5,"td",7),Z(),F(21,o1e,1,0,"tr",12)(22,a1e,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,Yfe)))},dependencies:[ue,fe,Fe,Be,ze,ve,_t,It,xt,vt,bt,ri,Ct,yt,ke,si,St,Pt,wt,Tt,kt,he,go],encapsulation:2})}}return e})();var r1e=()=>[10,25];function l1e(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 s1e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function c1e(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 p1e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function m1e(e,o){e&1&&b(0,"tr",13)}function d1e(e,o){e&1&&b(0,"tr",14)}var Yf=(()=>{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,l1e,3,3,"th",5)(9,s1e,2,1,"td",6),Z(),X(10,7),F(11,c1e,3,3,"th",5)(12,p1e,2,1,"td",6),Z(),F(13,m1e,1,0,"tr",8)(14,d1e,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,r1e)))},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 u1e(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 f1e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.clientData.firstName," ")}}function h1e(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 g1e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.clientData.middleName," ")}}function _1e(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 C1e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.clientData.lastName," ")}}function v1e(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 x1e(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 b1e(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 y1e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.clientData.mobileNo," ")}}function S1e(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 w1e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.clientData.officeName," ")}}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.Associated Staff")," "))}function T1e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.clientData.staffName," ")}}function M1e(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 D1e(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 E1e(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 I1e(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 Jf=(()=>{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(qs,5),Ee(zs,5),Ee(Qf,5),Ee(Yf,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,u1e,3,3,"div",7),E(19,f1e,2,1,"div",8),E(20,h1e,3,3,"div",7),E(21,g1e,2,1,"div",8),E(22,_1e,3,3,"div",7),E(23,C1e,2,1,"div",8),E(24,v1e,3,3,"div",7),E(25,x1e,3,3,"div",8),E(26,b1e,3,3,"div",7),E(27,y1e,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,S1e,3,3,"div",7),E(35,w1e,2,1,"div",8),E(36,P1e,3,3,"div",7),E(37,T1e,2,1,"div",8),r()(),E(38,M1e,2,1,"mat-tab",9),E(39,D1e,2,1,"mat-tab",10),E(40,E1e,2,1,"mat-tab",11),E(41,I1e,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),Wo(" ",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,Yo,si,vl,Nr,Qr,qs,zs,Qf,Yf,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 O1e(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 A1e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",5),Se(5,O1e,2,2,"mat-option",6,Pe),r()()),e&2){let t=w(2);a(2),h(m(3,2,"labels.inputs.Office")),a(2),g("formControl",t.officeSelector),a(),we(t.officeData)}}function F1e(e,o){e&1&&F(0,A1e,7,4,"mat-form-field",4),e&2&&g("mifosxHasPermission","READ_OFFICES")}function k1e(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 B1e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),r(),l(3,"mat-select",5),Se(4,k1e,2,2,"mat-option",6,Pe),r()()),e&2){let t=w(2);a(2),h(t.employeeData.length?"Officer":"No Associated Officers"),a(),g("formControl",t.employeeSelector),a(),we(t.employeeData)}}function R1e(e,o){e&1&&F(0,B1e,6,2,"mat-form-field",4),e&2&&g("mifosxHasPermission","READ_STAFF")}function N1e(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 L1e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),r(),l(3,"mat-select",5),Se(4,N1e,2,2,"mat-option",6,Pe),r()()),e&2){let t=w(2);a(2),h(t.centerData.length?"Center":"No Associated Centers"),a(),g("formControl",t.centerSelector),a(),we(t.centerData)}}function V1e(e,o){e&1&&F(0,L1e,6,2,"mat-form-field",4),e&2&&g("mifosxHasPermission","READ_CENTERS")}function q1e(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 z1e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),r(),l(3,"mat-select",5),Se(4,q1e,2,2,"mat-option",6,Pe),r()()),e&2){let t=w(2);a(2),h(t.groupData.length?"Group":"No Associated Groups"),a(),g("formControl",t.groupSelector),a(),we(t.groupData)}}function H1e(e,o){e&1&&F(0,z1e,6,2,"mat-form-field",4),e&2&&g("mifosxHasPermission","READ_GROUPS")}function G1e(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 j1e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),r(),l(3,"mat-select",5),Se(4,G1e,2,2,"mat-option",6,Pe),r()()),e&2){let t=w(2);a(2),h(t.clientData.length?"Client":"No Associated Clients"),a(),g("formControl",t.clientSelector),a(),we(t.clientData)}}function $1e(e,o){e&1&&F(0,j1e,6,2,"mat-form-field",4),e&2&&g("mifosxHasPermission","READ_CLIENTS")}function U1e(e,o){if(e&1&&b(0,"mifosx-office-navigation",7),e&2){let t=w(2);g("officeData",t.selectedItem)("employeeData",t.employeeData)}}function W1e(e,o){if(e&1&&b(0,"mifosx-staff-navigation",8),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",9),e&2){let t=w(2);g("centerData",t.selectedItem)("groupData",t.groupData)("centerAccountsData",t.selectedItemAccounts)("centerSummaryData",t.selectedItemSummary)}}function Y1e(e,o){if(e&1&&b(0,"mifosx-group-navigation",10),e&2){let t=w(2);g("groupData",t.selectedItem)("clientData",t.clientData)("groupAccountsData",t.selectedItemAccounts)}}function J1e(e,o){if(e&1&&b(0,"mifosx-client-navigation",11),e&2){let t=w(2);g("clientData",t.selectedItem)("clientAccountsData",t.selectedItemAccounts)}}function K1e(e,o){if(e&1&&(l(0,"mat-card",3),E(1,U1e,1,2,"mifosx-office-navigation",7),E(2,W1e,1,2,"mifosx-staff-navigation",8),E(3,Q1e,1,4,"mifosx-center-navigation",9),E(4,Y1e,1,3,"mifosx-group-navigation",10),E(5,J1e,1,2,"mifosx-client-navigation",11),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 OC=(()=>{class e{constructor(){this.navigationService=T(IC),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(jf,5),Ee($f,5),Ee(Uf,5),Ee(Wf,5),Ee(Jf,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"],[4,"mifosxHasPermission"],[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,F1e,1,1,"mat-form-field"),E(6,R1e,1,1,"mat-form-field"),E(7,V1e,1,1,"mat-form-field"),E(8,H1e,1,1,"mat-form-field"),E(9,$1e,1,1,"mat-form-field"),r()()(),l(10,"div",2),E(11,K1e,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,Ue,gn,$e,Je,Fe,Be,gt,ft,Ke,jf,$f,Uf,Wf,Jf,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 kM=(()=>{class e{constructor(){this.navigationService=T(IC)}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 X1e=[_o.withShell([{path:"navigation",component:OC,data:{title:"Navigation",breadcrumb:"Navigation"},resolve:{offices:kM}}])],P9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[kM],imports:[hn.forChild(X1e),hn]})}}return e})();var T9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,ha,P9,OC,jf,$f,Uf,Wf,Jf,qs,Qf,zs,Yf]})}}return e})();var Z1e=["showClosedAccounts"],ehe=()=>[5,50,100],the=()=>["../","organization","bulk-import","Clients"],ihe=()=>["create"],nhe=e=>[e,"general"];function ohe(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 ahe(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,the)),a(2),v("",m(3,2,"labels.buttons.Import Client")," "))}function rhe(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,ihe)),a(2),v("",m(3,2,"labels.buttons.Create Client")," "))}function lhe(e,o){e&1&&(l(0,"div"),b(1,"mat-progress-bar",30),r())}function she(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 che(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Nt(2,nhe,t.id)),a(),h(t.displayName)}}function phe(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 mhe(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 dhe(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 uhe(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 fhe(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 hhe(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 ghe(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 _he(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function Che(e,o){e&1&&b(0,"tr",40)}function vhe(e,o){e&1&&b(0,"tr",41)}var AC=(()=>{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(){xn.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(Z1e,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,ohe,5,3,"div",6),l(6,"div",7),F(7,ahe,4,5,"button",8)(8,rhe,4,5,"button",8),r()(),l(9,"div",9),E(10,lhe,2,0,"div"),l(11,"table",10),R("matSortChange",function(d){return i.sortChanged(d)}),X(12,11),F(13,she,3,3,"th",12)(14,che,2,4,"td",13),Z(),X(15,14),F(16,phe,3,3,"th",12)(17,mhe,2,2,"td",15),Z(),X(18,16),F(19,dhe,3,3,"th",12)(20,uhe,2,2,"td",15),Z(),X(21,17),F(22,fhe,3,3,"th",18)(23,hhe,7,6,"td",15),Z(),X(24,19),F(25,ghe,3,3,"th",18)(26,_he,2,1,"td",15),Z(),F(27,Che,1,0,"tr",20)(28,vhe,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,ehe))("length",i.totalRows),a(),g("hidden",!i.notExistsClientsToFilter),a(3),v(" ",m(34,13,"labels.text.No client was found")," "))},dependencies:[ue,co,fe,Ae,$e,Fe,ze,ve,fi,Ke,ke,as,_t,It,xt,vt,bt,ri,Ct,yt,lc,Ea,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 xhe=()=>({confirm:!0}),FC=(()=>{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,xhe)),a(),v(" ",m(13,11,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,ve,Un,ho,Nn,$n,he],encapsulation:2})}}return e})();var kC=(()=>{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,ve,Un,Ep,Nn,$n,he],encapsulation:2})}}return e})();var j9=Is(G9());var Khe=()=>({delete:!0}),Xhe=()=>({upload:!0});function Zhe(e,o){if(e&1&&(l(0,"div",1),b(1,"img",6),r()),e&2){let t=w();a(),g("src",t.signatureImage,bp)}}function ege(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 tge(e,o){e&1&&(l(0,"button",4),c(1),p(2,"translate"),r()),e&2&&(g("mat-dialog-close",oe(4,Khe)),a(),v(" ",m(2,2,"labels.buttons.Delete")," "))}function ige(e,o){e&1&&(l(0,"button",5),c(1),p(2,"translate"),r()),e&2&&(g("mat-dialog-close",oe(4,Xhe)),a(),v(" ",m(2,2,"labels.buttons.Upload")," "))}var LC=(()=>{class e{constructor(){this.dialogRef=T(eo),this.clientsService=T(Oi),this.sanitizer=T(ec),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=>Yn(this,null,function*(){let n=j9.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,Zhe,2,1,"div",1),E(4,ege,4,3,"div",1),l(5,"mat-dialog-actions",2)(6,"button",3),c(7),p(8,"translate"),r(),E(9,tge,3,5,"button",4),E(10,ige,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,ve,Un,ho,Nn,$n,he],encapsulation:2})}}return e})();var nge=e=>({delete:!0,id:e}),oge=()=>({upload:!0});function age(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 rge(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 lge(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,nge,t.signatureId)),a(),v(" ",m(2,2,"labels.buttons.Confirm")," ")}}function sge(e,o){e&1&&(l(0,"button",5),c(1),p(2,"translate"),r()),e&2&&(g("mat-dialog-close",oe(4,oge)),a(),v(" ",m(2,2,"labels.buttons.Upload")," "))}var VC=(()=>{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,age,4,3,"div",1),E(4,rge,4,3,"div",1),l(5,"mat-dialog-actions",2)(6,"button",3),c(7),p(8,"translate"),r(),E(9,lge,3,6,"button",4),E(10,sge,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,ve,Un,ho,Nn,$n,he],encapsulation:2})}}return e})();var qC=(()=>{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,ve,Un,Ep,Nn,$n,he],encapsulation:2})}}return e})();var cge=["video"],pge=["canvas"],mge=["fallback"],dge=["captureButton"],$9=()=>({display:"none"});function uge(e,o){if(e&1){let t=Y();l(0,"button",14,3),R("click",function(){z(t);let i=w();return H(i.capture())}),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Capture")," "))}function fge(e,o){if(e&1){let t=Y();l(0,"button",14),R("click",function(){z(t);let i=w();return H(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 zC=(()=>{class e{constructor(){this.dialogRef=T(eo),this.renderer=T(Cg),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(cge,7),Ee(pge,7),Ee(mge,7),Ee(dge,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,uge,4,3,"button",10),E(12,fge,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,$9)),a(2),g("ngStyle",oe(16,$9)),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,os,fe,ve,Un,ke,Nn,$n,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 hge=()=>["./general"],gge=()=>["./address"],_ge=()=>["./family-members"],Cge=()=>["edit"],vge=()=>["loans-accounts","create"],xge=()=>["savings-accounts","create"],bge=()=>["shares-accounts","create"],yge=()=>["recurring-deposits-accounts","create-recurring-deposits-account"],Sge=()=>["fixed-deposits-accounts","create"],wge=()=>["./identities"],Pge=()=>["./documents"],Tge=()=>["./notes"],Mge=e=>["./datatables",e];function Dge(e,o){if(e&1){let t=Y();l(0,"button",45),p(1,"translate"),R("click",function(){z(t);let i=w();return H(i.doAction("Upload Image"))}),b(2,"i",46),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Upload Image")))}function Ege(e,o){if(e&1){let t=Y();l(0,"button",45),p(1,"translate"),R("click",function(){z(t);let i=w();return H(i.doAction("Capture Image"))}),b(2,"i",47),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Capture Image")))}function Ige(e,o){if(e&1){let t=Y();l(0,"button",45),p(1,"translate"),R("click",function(){z(t);let i=w();return H(i.doAction("Delete Image"))}),b(2,"i",48),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Delete Image")))}function Oge(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 Age(e,o){if(e&1&&(l(0,"td"),c(1),r()),e&2){let t=w();a(),h(t.clientViewData.staffName)}}function Fge(e,o){e&1&&(l(0,"td"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Unassigned")))}function kge(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 Bge(e,o){if(e&1&&(l(0,"tr")(1,"td")(2,"b"),c(3),p(4,"translate"),r()(),l(5,"td"),Se(6,kge,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 Rge(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 Nge(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,Cge)),a(4),h(m(5,2,"labels.buttons.Edit")))}function Lge(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=xe(97);g("matMenuTriggerFor",t),a(4),h(m(5,2,"labels.buttons.Applications"))}}function Vge(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){z(t);let i=w();return H(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 qge(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){z(t);let i=w(2);return H(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 zge(e,o){e&1&&(l(0,"span"),F(1,qge,6,3,"button",40),r()),e&2&&(a(),g("mifosxHasPermission","UNASSIGNSTAFF_CLIENT"))}function Hge(e,o){e&1&&(l(0,"button",50),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,vge)),a(),v(" ",m(2,2,"labels.buttons.New Loan Account")," "))}function Gge(e,o){e&1&&(l(0,"button",50),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,xge)),a(),v(" ",m(2,2,"labels.buttons.New Savings Account")," "))}function jge(e,o){e&1&&(l(0,"button",50),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,bge)),a(),v(" ",m(2,2,"labels.buttons.New Share Account")," "))}function $ge(e,o){e&1&&(l(0,"button",50),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,yge)),a(),v(" ",m(2,2,"labels.buttons.New Recurring Deposit Account")," "))}function Uge(e,o){e&1&&(l(0,"button",50),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,Sge)),a(),v(" ",m(2,2,"labels.buttons.New Fixed Deposits Account")," "))}function Wge(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){z(t);let i=w();return H(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(){z(t);let i=w();return H(i.doAction("Withdraw"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Withdraw")," "))}function Yge(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){z(t);let i=w();return H(i.doAction("Reject"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),h(m(3,1,"labels.buttons.Reject")))}function Jge(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){z(t);let i=w(2);return H(i.doAction("Delete"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Delete")," "))}function Kge(e,o){e&1&&(l(0,"span"),F(1,Jge,3,3,"button",40),r()),e&2&&(a(),g("mifosxHasPermission","DELETE_CLIENT"))}function Xge(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){z(t);let i=w();return H(i.doAction("Reactivate"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Reactivate")," "))}function Zge(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){z(t);let i=w();return H(i.doAction("Undo Rejection"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Undo Rejection")," "))}function e_e(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){z(t);let i=w();return H(i.doAction("Undo Transfer"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Undo Transfer")," "))}function t_e(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){z(t);let i=w();return H(i.doAction("Accept Transfer"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Accept Transfer")," "))}function i_e(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){z(t);let i=w();return H(i.doAction("Reject Transfer"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Reject transfer")," "))}function n_e(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){z(t);let i=w();return H(i.doAction("Add Charge"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Add Charge")," "))}function o_e(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){z(t);let i=w();return H(i.doAction("Update Default Savings"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Update Default Savings")," "))}function a_e(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){z(t);let i=w();return H(i.doAction("Upload Signature"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Upload Signature")," "))}function r_e(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){z(t);let i=w();return H(i.doAction("Delete Signature"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Delete Signature")," "))}function l_e(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){z(t);let i=w();return H(i.doAction("Create Standing Instructions"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Create Standing Instructions")," "))}function s_e(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){z(t);let i=w(2);return H(i.doAction("View Standing Instructions"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.View Standing Instructions")," "))}function c_e(e,o){e&1&&(l(0,"span"),F(1,s_e,3,3,"button",40),r()),e&2&&(a(),g("mifosxHasPermission","READ_STANDINGINSTRUCTION"))}function p_e(e,o){if(e&1&&(l(0,"a",43,8),c(2),p(3,"translate"),r()),e&2){let t=xe(1);g("routerLink",oe(5,wge))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Identities")," ")}}function m_e(e,o){if(e&1&&(l(0,"a",43,9),c(2),p(3,"translate"),r()),e&2){let t=xe(1);g("routerLink",oe(5,Pge))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Documents")," ")}}function d_e(e,o){if(e&1&&(l(0,"a",43,10),c(2),p(3,"translate"),r()),e&2){let t=xe(1);g("routerLink",oe(5,Tge))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Notes")," ")}}function u_e(e,o){if(e&1&&(l(0,"a",43,11),c(2),r()),e&2){let t=xe(1),n=w().$implicit;g("routerLink",Nt(3,Mge,n.registeredTableName))("active",t.isActive),a(2),v(" ",n.registeredTableName," ")}}function f_e(e,o){if(e&1&&F(0,u_e,3,5,"a",44),e&2){let t=o.$implicit;g("mifosxHasPermission","READ_"+t.registeredTableName)}}var HC=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.clientsService=T(Oi),this._sanitizer=T(ec),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(FC).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(LC,{data:{documents:t,id:this.clientViewData.id}}).afterClosed().subscribe(i=>{i.upload?this.uploadSignature():i.delete&&this.deleteSignature()})})}uploadSignature(){this.dialog.open(kC).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(VC,{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(zC).afterClosed().subscribe(n=>{n&&this.clientsService.uploadCapturedClientProfileImage(this.clientViewData.id,n).subscribe(()=>{this.reload()})})}uploadProfileImage(){this.dialog.open(qC).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,Dge,3,4,"button",18)(8,Ege,3,4,"button",18)(9,Ige,3,4,"button",18),b(10,"br"),r(),l(11,"p",19),R("click",function(){return z(s),H(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,Oge,8,6,"tr"),l(55,"tr")(56,"td")(57,"b"),c(58),p(59,"translate"),r()(),E(60,Age,2,1,"td"),E(61,Fge,3,3,"td"),r()()()(),l(62,"div",30)(63,"table",31)(64,"tbody"),E(65,Bge,8,3,"tr"),E(66,Rge,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,Nge,6,5,"button",34),E(84,Lge,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,Vge,6,3,"button",38),E(92,zge,2,1,"span"),l(93,"button",35),c(94),p(95,"translate"),r()(),l(96,"mat-menu",null,1),F(98,Hge,3,5,"button",34)(99,Gge,3,5,"button",34)(100,jge,3,5,"button",34)(101,$ge,3,5,"button",34)(102,Uge,3,5,"button",34),r(),l(103,"mat-menu",null,2)(105,"button",39),R("click",function(){return z(s),H(i.doAction("Close"))}),c(106),p(107,"translate"),r(),l(108,"button",39),R("click",function(){return z(s),H(i.doAction("Transfer Client"))}),c(109),p(110,"translate"),r(),E(111,Wge,4,3,"span"),E(112,Qge,4,3,"span"),E(113,Yge,4,3,"span"),E(114,Kge,2,1,"span"),E(115,Xge,4,3,"span"),E(116,Zge,4,3,"span"),E(117,e_e,4,3,"span"),E(118,t_e,4,3,"span"),E(119,i_e,4,3,"span"),r(),l(120,"mat-menu",null,3),F(122,n_e,3,3,"button",40),l(123,"button",39),R("click",function(){return z(s),H(i.doAction("Create Collateral"))}),c(124),p(125,"translate"),r(),l(126,"button",41),R("click",function(){return z(s),H(i.doAction("Survey"))}),c(127),p(128,"translate"),r(),F(129,o_e,3,3,"button",40)(130,a_e,3,3,"button",40)(131,r_e,3,3,"button",40),l(132,"button",39),R("click",function(){return z(s),H(i.doAction("Client Screen Reports"))}),c(133),p(134,"translate"),r(),F(135,l_e,3,3,"button",40),E(136,c_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,p_e,4,6,"a",44)(152,m_e,4,6,"a",44)(153,d_e,4,6,"a",44),Se(154,f_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=xe(82),d=xe(104),u=xe(121),f=xe(140),_=xe(144),C=xe(148),x=xe(157);a(5),g("src",i.clientImage?i.clientImage:"assets/images/user_placeholder.png",bp),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,hge))("active",f.isActive),a(2),v(" ",m(142,114,"labels.inputs.General")," "),a(2),g("routerLink",oe(121,gge))("active",_.isActive),a(2),v(" ",m(146,116,"labels.inputs.Address")," "),a(2),g("routerLink",oe(122,_ge))("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,Ae,$e,Je,ve,Ke,sa,Wr,S0,si,Yo,Bk,wi,oc,Jo,ke,vl,lc,Ea,nc,ic,ir,nr,Na,or,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 h_e=()=>["../","charges","overview"],g_e=e=>["../","charges",e,"pay"],__e=e=>["../","charges",e],C_e=e=>["../","loans-accounts",e,"actions","Make Repayment"],v_e=e=>["../","loans-accounts",e,"actions","Approve"],x_e=e=>["../","loans-accounts",e,"actions","Disburse"],U9=e=>["../","loans-accounts",e,"general"],b_e=e=>["../","savings-accounts",e,"actions","Deposit"],y_e=e=>["../","savings-accounts",e,"actions","Withdrawal"],S_e=e=>["../","savings-accounts",e,"actions","Approve"],w_e=e=>["../","savings-accounts",e,"actions","Undo Approval"],P_e=e=>["../","savings-accounts",e,"actions","Activate"],W9=e=>["../","savings-accounts",e,"general"],T_e=e=>["../","fixed-deposits-accounts",e,"actions","Approve"],M_e=e=>["../","fixed-deposits-accounts",e,"actions","Undo Approval"],D_e=e=>["../","fixed-deposits-accounts",e,"actions","Activate"],Q9=e=>["../","fixed-deposits-accounts",e,"general"],E_e=e=>["../","recurring-deposits-accounts",e,"actions","Approve"],I_e=e=>["../","recurring-deposits-accounts",e,"actions","Undo Approval"],O_e=e=>["../","recurring-deposits-accounts",e,"actions","Activate"],Y9=e=>["../","recurring-deposits-accounts",e,"general"],A_e=e=>["../","shares-accounts",e,"actions","Approve"],F_e=e=>["../","shares-accounts",e,"actions","Undo Approval"],k_e=e=>["../","shares-accounts",e,"actions","Activate"],J9=e=>["../","shares-accounts",e,"general"],B_e=e=>["../","client-collateral",e];function R_e(e,o){e&1&&(l(0,"button",30),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,h_e)),a(),v(" ",m(2,2,"labels.buttons.Charges Overview")," "))}function N_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 L_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 V_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 q_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 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.Due")))}function H_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 G_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 j_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 $_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 U_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 W_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 Y_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 J_e(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){z(t);let s=w(2);return H(s.routeEdit(i))}),b(1,"i",41),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,g_e,t.id))}}function K_e(e,o){if(e&1){let t=Y();l(0,"button",42),R("click",function(i){z(t);let s=w().$implicit,d=w();return d.routeEdit(i),H(d.waiveCharge(s.id,s.clientId))}),b(1,"i",43),r()}}function X_e(e,o){e&1&&(l(0,"td",37),F(1,J_e,2,3,"button",38)(2,K_e,2,0,"button",39),r()),e&2&&(a(),g("mifosxHasPermission","PAY_CLIENTCHARGE"),a(),g("mifosxHasPermission","WAIVE_CLIENTCHARGE"))}function Z_e(e,o){e&1&&b(0,"tr",44)}function eCe(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,__e,t.id))}}function tCe(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 iCe(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 nCe(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 oCe(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 aCe(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 rCe(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.originalLoan)}}function lCe(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 sCe(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 cCe(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 pCe(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 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",Le(t.loanType.value))("ngClass",t.loanType.value==="Individual"?"fa-user":"fa-group")}}function uCe(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 fCe(e,o){if(e&1){let t=Y();l(0,"button",57),p(1,"translate"),R("click",function(i){z(t);let s=w(3);return H(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,C_e,t.id))}}function hCe(e,o){if(e&1){let t=Y();l(0,"button",57),p(1,"translate"),R("click",function(i){z(t);let s=w(4);return H(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,v_e,t.id))}}function gCe(e,o){e&1&&(l(0,"span"),F(1,hCe,3,7,"button",58),r()),e&2&&(a(),g("mifosxHasPermission","APPROVE_LOAN"))}function _Ce(e,o){if(e&1){let t=Y();l(0,"button",57),p(1,"translate"),R("click",function(i){z(t);let s=w(4);return H(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,x_e,t.id))}}function CCe(e,o){e&1&&(l(0,"span"),F(1,_Ce,3,7,"button",58),r()),e&2&&(a(),g("mifosxHasPermission","DISBURSE_LOAN"))}function vCe(e,o){if(e&1){let t=Y();l(0,"button",61),p(1,"translate"),R("click",function(i){z(t);let s=w(2).$implicit,d=w(2);return d.routeEdit(i),H(d.routeTransferFund(s.id))}),b(2,"i",62),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Transfer Funds")))}function xCe(e,o){e&1&&(l(0,"span"),F(1,vCe,3,4,"button",60),r()),e&2&&(a(),g("mifosxHasPermission","DISBURSE_LOAN"))}function bCe(e,o){if(e&1&&(l(0,"td",37),E(1,fCe,3,7,"button",56),E(2,gCe,2,1,"span"),E(3,CCe,2,1,"span"),E(4,xCe,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 yCe(e,o){e&1&&b(0,"tr",44)}function SCe(e,o){if(e&1&&b(0,"tr",63),e&2){let t=o.$implicit;g("routerLink",Nt(1,U9,t.id))}}function wCe(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,tCe,3,3,"th",9)(4,iCe,4,5,"td",10),Z(),X(5,47),F(6,nCe,3,3,"th",9)(7,oCe,2,2,"td",10),Z(),X(8,48),F(9,aCe,3,3,"th",9)(10,rCe,2,1,"td",10),Z(),X(11,49),F(12,lCe,3,3,"th",13)(13,sCe,3,3,"td",14),Z(),X(14,50),F(15,cCe,3,3,"th",13)(16,pCe,3,3,"td",14),Z(),X(17,51),F(18,mCe,3,3,"th",19)(19,dCe,2,3,"td",20),Z(),X(20,18),F(21,uCe,3,3,"th",19)(22,bCe,5,4,"td",20),Z(),F(23,yCe,1,0,"tr",21)(24,SCe,1,3,"tr",52),r()),e&2){let t=w();g("dataSource",Ot(1,3,t.loanAccounts,"loan")),a(23),g("matHeaderRowDef",t.openLoansColumns),a(),g("matRowDefColumns",t.openLoansColumns)}}function PCe(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 TCe(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 MCe(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 DCe(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 ECe(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 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.lastActiveTransactionDate))}}function OCe(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 ACe(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 FCe(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 kCe(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 BCe(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 RCe(e,o){if(e&1&&(l(0,"td",37),b(1,"i",55),r()),e&2){let t=o.$implicit;a(),g("matTooltip",Sp(" ",t.loanType.value))("ngClass",t.loanType.value==="Individual"?"fa-user":"fa-group")}}function NCe(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 LCe(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 VCe(e,o){e&1&&b(0,"tr",44)}function qCe(e,o){if(e&1&&b(0,"tr",63),e&2){let t=o.$implicit;g("routerLink",Nt(1,U9,t.id))}}function zCe(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,PCe,3,3,"th",9)(4,TCe,4,5,"td",10),Z(),X(5,47),F(6,MCe,3,3,"th",9)(7,DCe,2,2,"td",10),Z(),X(8,48),F(9,ECe,3,3,"th",9)(10,ICe,3,3,"td",10),Z(),X(11,49),F(12,OCe,3,3,"th",13)(13,ACe,3,3,"td",14),Z(),X(14,50),F(15,FCe,3,3,"th",13)(16,kCe,3,3,"td",14),Z(),X(17,51),F(18,BCe,3,3,"th",19)(19,RCe,2,3,"td",20),Z(),X(20,64),F(21,NCe,3,3,"th",9)(22,LCe,3,3,"td",10),Z(),F(23,VCe,1,0,"tr",21)(24,qCe,1,3,"tr",52),r()),e&2){let t=w();g("dataSource",br(1,3,t.loanAccounts,"loan","closed")),a(23),g("matHeaderRowDef",t.closedLoansColumns),a(),g("matRowDefColumns",t.closedLoansColumns)}}function HCe(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 GCe(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 jCe(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 $Ce(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 UCe(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 WCe(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 YCe(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 JCe(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 KCe(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){z(t);let s=w(3);return H(s.routeEdit(i))}),b(1,"i",69),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,b_e,t.id))}}function XCe(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){z(t);let s=w(3);return H(s.routeEdit(i))}),b(1,"i",70),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,y_e,t.id))}}function ZCe(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){z(t);let s=w(3);return H(s.routeEdit(i))}),b(1,"i",59),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,S_e,t.id))}}function e2e(e,o){if(e&1&&(l(0,"button",68),b(1,"i",71),r()),e&2){let t=w().$implicit;g("routerLink",Nt(1,w_e,t.id))}}function t2e(e,o){if(e&1&&(l(0,"button",68),b(1,"i",72),r()),e&2){let t=w().$implicit;g("routerLink",Nt(1,P_e,t.id))}}function i2e(e,o){if(e&1&&(l(0,"td",37),E(1,KCe,2,3,"button",68),E(2,XCe,2,3,"button",68),E(3,ZCe,2,3,"button",68),E(4,e2e,2,3,"button",68),E(5,t2e,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 n2e(e,o){e&1&&b(0,"tr",44)}function o2e(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,W9,t.id))}}function a2e(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,HCe,3,3,"th",9)(4,GCe,4,5,"td",10),Z(),X(5,65),F(6,jCe,3,3,"th",9)(7,$Ce,2,2,"td",10),Z(),X(8,66),F(9,UCe,3,3,"th",9)(10,WCe,3,3,"td",10),Z(),X(11,67),F(12,QCe,3,3,"th",13)(13,YCe,3,3,"td",14),Z(),X(14,18),F(15,JCe,3,3,"th",19)(16,i2e,6,5,"td",20),Z(),F(17,n2e,1,0,"tr",21)(18,o2e,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 r2e(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 l2e(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 s2e(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 c2e(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 p2e(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 m2e(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 d2e(e,o){e&1&&b(0,"tr",44)}function u2e(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,W9,t.id))}}function f2e(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,r2e,3,3,"th",9)(4,l2e,4,5,"td",10),Z(),X(5,65),F(6,s2e,3,3,"th",9)(7,c2e,2,2,"td",10),Z(),X(8,64),F(9,p2e,3,3,"th",9)(10,m2e,3,3,"td",10),Z(),F(11,d2e,1,0,"tr",21)(12,u2e,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 h2e(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 g2e(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 _2e(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 C2e(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function v2e(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 x2e(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 b2e(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 y2e(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 S2e(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 w2e(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){z(t);let s=w(3);return H(s.routeEdit(i))}),b(1,"i",59),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,T_e,t.id))}}function P2e(e,o){if(e&1&&(l(0,"button",68),b(1,"i",71),r()),e&2){let t=w().$implicit;g("routerLink",Nt(1,M_e,t.id))}}function T2e(e,o){if(e&1&&(l(0,"button",68),b(1,"i",72),r()),e&2){let t=w().$implicit;g("routerLink",Nt(1,D_e,t.id))}}function M2e(e,o){if(e&1&&(l(0,"td",37),E(1,w2e,2,3,"button",68),E(2,P2e,2,3,"button",68),E(3,T2e,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 D2e(e,o){e&1&&b(0,"tr",44)}function E2e(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,Q9,t.id))}}function I2e(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,h2e,3,3,"th",9)(4,g2e,4,5,"td",10),Z(),X(5,65),F(6,_2e,3,3,"th",9)(7,C2e,2,1,"td",10),Z(),X(8,66),F(9,v2e,3,3,"th",9)(10,x2e,3,3,"td",10),Z(),X(11,67),F(12,b2e,3,3,"th",13)(13,y2e,3,3,"td",14),Z(),X(14,18),F(15,S2e,3,3,"th",19)(16,M2e,4,3,"td",20),Z(),F(17,D2e,1,0,"tr",21)(18,E2e,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 O2e(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 A2e(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 F2e(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 k2e(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 B2e(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 R2e(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 N2e(e,o){e&1&&b(0,"tr",44)}function L2e(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,Q9,t.id))}}function V2e(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,O2e,3,3,"th",9)(4,A2e,4,5,"td",10),Z(),X(5,65),F(6,F2e,3,3,"th",9)(7,k2e,2,2,"td",10),Z(),X(8,64),F(9,B2e,3,3,"th",9)(10,R2e,3,3,"td",10),Z(),F(11,N2e,1,0,"tr",21)(12,L2e,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 q2e(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 z2e(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 H2e(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 G2e(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 j2e(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 $2e(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 W2e(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 Y2e(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,E_e,t.id))}}function J2e(e,o){e&1&&F(0,Y2e,2,3,"button",73),e&2&&g("mifosxHasPermission","APPROVE_SAVINGSACCOUNT")}function K2e(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){z(t);let s=w(4);return H(s.routeEdit(i))}),b(1,"i",71),r()}if(e&2){let t=w(2).$implicit;g("routerLink",Nt(1,I_e,t.id))}}function X2e(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){z(t);let s=w(4);return H(s.routeEdit(i))}),b(1,"i",72),r()}if(e&2){let t=w(2).$implicit;g("routerLink",Nt(1,O_e,t.id))}}function Z2e(e,o){e&1&&F(0,K2e,2,3,"button",38)(1,X2e,2,3,"button",38),e&2&&(g("mifosxHasPermission","APPROVALUNDO_SAVINGSACCOUNT"),a(),g("mifosxHasPermission","ACTIVATE_SAVINGSACCOUNT"))}function eve(e,o){if(e&1&&(l(0,"td",37),E(1,J2e,1,1,"button",68),E(2,Z2e,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 tve(e,o){e&1&&b(0,"tr",44)}function ive(e,o){if(e&1&&b(0,"tr",63),e&2){let t=o.$implicit;g("routerLink",Nt(1,Y9,t.id))}}function nve(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,q2e,3,3,"th",9)(4,z2e,4,5,"td",10),Z(),X(5,65),F(6,H2e,3,3,"th",9)(7,G2e,2,2,"td",10),Z(),X(8,66),F(9,j2e,3,3,"th",9)(10,$2e,3,3,"td",10),Z(),X(11,67),F(12,U2e,3,3,"th",13)(13,W2e,3,3,"td",14),Z(),X(14,18),F(15,Q2e,3,3,"th",19)(16,eve,3,2,"td",20),Z(),F(17,tve,1,0,"tr",21)(18,ive,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 ove(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 ave(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 rve(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 lve(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 sve(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 cve(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 pve(e,o){e&1&&b(0,"tr",44)}function mve(e,o){if(e&1&&b(0,"tr",63),e&2){let t=o.$implicit;g("routerLink",Nt(1,Y9,t.id))}}function dve(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,ove,3,3,"th",9)(4,ave,4,5,"td",10),Z(),X(5,65),F(6,rve,3,3,"th",9)(7,lve,2,2,"td",10),Z(),X(8,64),F(9,sve,3,3,"th",9)(10,cve,3,3,"td",10),Z(),F(11,pve,1,0,"tr",21)(12,mve,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 uve(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 fve(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 hve(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 gve(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 _ve(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 Cve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalApprovedShares)}}function vve(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 xve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalPendingForApprovalShares)}}function bve(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 yve(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){z(t);let s=w(3);return H(s.routeEdit(i))}),b(1,"i",59),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,A_e,t.id))}}function Sve(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){z(t);let s=w(3);return H(s.routeEdit(i))}),b(1,"i",71),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,F_e,t.id))}}function wve(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){z(t);let s=w(3);return H(s.routeEdit(i))}),b(1,"i",72),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,k_e,t.id))}}function Pve(e,o){if(e&1&&(l(0,"td",37),E(1,yve,2,3,"button",68),E(2,Sve,2,3,"button",68),E(3,wve,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 Tve(e,o){e&1&&b(0,"tr",44)}function Mve(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,J9,t.id))}}function Dve(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,uve,3,3,"th",9)(4,fve,4,5,"td",10),Z(),X(5,74),F(6,hve,3,3,"th",9)(7,gve,2,2,"td",10),Z(),X(8,75),F(9,_ve,3,3,"th",9)(10,Cve,2,1,"td",10),Z(),X(11,76),F(12,vve,3,3,"th",9)(13,xve,2,1,"td",10),Z(),X(14,18),F(15,bve,3,3,"th",19)(16,Pve,4,3,"td",20),Z(),F(17,Tve,1,0,"tr",21)(18,Mve,1,3,"tr",22),r()),e&2){let t=w();g("dataSource",Ot(1,3,t.shareAccounts,"share")),a(17),g("matHeaderRowDef",t.openSharesColumns),a(),g("matRowDefColumns",t.openSharesColumns)}}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.Account No")))}function Ive(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 Ove(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 Ave(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function Fve(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 kve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalApprovedShares)}}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.Pending For Approval Shares")))}function Rve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalPendingForApprovalShares)}}function Nve(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 Lve(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 Vve(e,o){e&1&&b(0,"tr",44)}function qve(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,J9,t.id))}}function zve(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,Eve,3,3,"th",9)(4,Ive,4,5,"td",10),Z(),X(5,74),F(6,Ove,3,3,"th",9)(7,Ave,2,1,"td",10),Z(),X(8,75),F(9,Fve,3,3,"th",9)(10,kve,2,1,"td",10),Z(),X(11,76),F(12,Bve,3,3,"th",9)(13,Rve,2,1,"td",10),Z(),X(14,64),F(15,Nve,3,3,"th",9)(16,Lve,3,3,"td",10),Z(),F(17,Vve,1,0,"tr",21)(18,qve,1,3,"tr",22),r()),e&2){let t=w();g("dataSource",br(1,3,t.shareAccounts,"share","closed")),a(17),g("matHeaderRowDef",t.closedSharesColumns),a(),g("matRowDefColumns",t.closedSharesColumns)}}function Hve(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 Gve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.collateralId)}}function jve(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 $ve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function Uve(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 Wve(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 Yve(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 Jve(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 Kve(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 Xve(e,o){e&1&&b(0,"tr",44)}function Zve(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,B_e,t.collateralId))}}var GC=(()=>{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,R_e,3,5,"button",6),r()()(),l(38,"table",7),X(39,8),F(40,N_e,3,3,"th",9)(41,L_e,4,4,"td",10),Z(),X(42,11),F(43,V_e,3,3,"th",9)(44,q_e,3,3,"td",10),Z(),X(45,12),F(46,z_e,3,3,"th",13)(47,H_e,3,3,"td",14),Z(),X(48,15),F(49,G_e,3,3,"th",13)(50,j_e,3,3,"td",14),Z(),X(51,16),F(52,$_e,3,3,"th",13)(53,U_e,3,3,"td",14),Z(),X(54,17),F(55,W_e,3,3,"th",13)(56,Q_e,3,3,"td",14),Z(),X(57,18),F(58,Y_e,3,3,"th",19)(59,X_e,3,2,"td",20),Z(),F(60,Z_e,1,0,"tr",21)(61,eCe,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,wCe,25,6,"table",7),E(74,zCe,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,a2e,19,8,"table",7),E(87,f2e,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,I2e,19,8,"table",7),E(100,V2e,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,nve,19,8,"table",7),E(113,dve,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,Dve,19,6,"table",7),E(126,zve,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,Hve,3,3,"th",9)(141,Gve,2,1,"td",10),Z(),X(142,8),F(143,jve,3,3,"th",9)(144,$ve,2,1,"td",10),Z(),X(145,27),F(146,Uve,3,3,"th",13)(147,Wve,3,3,"td",14),Z(),X(148,28),F(149,Qve,3,3,"th",13)(150,Yve,3,3,"td",14),Z(),X(151,29),F(152,Jve,3,3,"th",13)(153,Kve,3,3,"td",14),Z(),F(154,Xve,1,0,"tr",21)(155,Zve,1,3,"tr",22),r()()),n&2&&(a(2),h(m(3,41,"labels.heading.Performance History")),a(8),se(" ",m(11,43,"labels.inputs.No. Of Loan Cycles")," :",i.clientSummary==null?null:i.clientSummary.loanCycle," "),a(3),se(" ",m(14,45,"labels.inputs.No. of Active Loans")," :",i.clientSummary==null?null:i.clientSummary.activeLoans," "),a(3),se(" ",m(17,47,"labels.inputs.Last Loan Amount")," :",m(18,49,i.clientSummary==null?null:i.clientSummary.lastLoanAmount)," "),a(6),se(" ",m(23,51,"labels.inputs.No. of Active Savings")," :",i.clientSummary==null?null:i.clientSummary.activeSavings," "),a(3),se(" ",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,Ae,ve,Ke,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,lc,Rk,si,Pi,he,go,rs,On],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 exe=()=>["./add"],txe=e=>[e,"edit"];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(),se("",m(2,2,"labels.inputs.First Name")," : ",t.firstName)}}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(),se("",m(2,2,"labels.inputs.Middle Name")," : ",t.middleName)}}function oxe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Last Name")," : ",t.lastName)}}function axe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Qualification")," : ",t.qualification)}}function rxe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Mobile Number")," : ",t.mobileNumber)}}function lxe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Age")," : ",t.age)}}function sxe(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(),se("",m(2,2,"labels.inputs.Is Dependent")," : ",m(3,4,t.isDependent))}}function cxe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Marital Status")," : ",t.maritalStatus)}}function pxe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Gender")," : ",t.gender)}}function mxe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Profession")," : ",t.profession)}}function dxe(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(),se("",m(2,2,"labels.inputs.Date Of Birth")," : ",m(3,4,t.dateOfBirth))}}function uxe(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=z(t),s=i.$implicit,d=i.$index,u=w();return H(u.deleteFamilyMember(s.clientId,s.id,s.firstName,d))}),b(11,"fa-icon",10),r()(),l(12,"p"),E(13,ixe,4,4,"span"),E(14,nxe,4,4,"span"),E(15,oxe,4,4,"span"),E(16,axe,4,4,"span"),E(17,rxe,4,4,"span"),E(18,lxe,4,4,"span"),E(19,sxe,5,6,"span"),E(20,cxe,4,4,"span"),E(21,pxe,4,4,"span"),E(22,mxe,4,4,"span"),E(23,dxe,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,txe,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 jC=(()=>{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,uxe,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,exe)),a(2),v("",m(9,5,"labels.buttons.Add")," "),a(3),we(i.clientFamilyMembers))},dependencies:[ue,fe,Ae,ve,ra,ke,Dr,Pr,Tr,Mr,ac,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 fxe=()=>["../"];function hxe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.First Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}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(),se(" ",m(2,3,"labels.inputs.Last Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function _xe(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(" ",Ot(2,2,t.name,"catalogs")," ")}}function Cxe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Relationship")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function vxe(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(" ",Ot(2,2,t.name,"catalogs")," ")}}function xxe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Gender")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function bxe(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(" ",Ot(2,2,t.name,"catalogs")," ")}}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(" ",Ot(2,2,t.name,"catalogs")," ")}}var $C=(()=>{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(At),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 z(s),H(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,hxe,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,gxe,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,_xe,3,5,"mat-option",12,Pe),r(),E(40,Cxe,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,vxe,3,5,"mat-option",12,Pe),r(),E(48,xxe,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,bxe,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,yxe,3,5,"mat-option",12,Pe),r()(),l(63,"mat-form-field",16),R("click",function(){z(s);let u=xe(70);return H(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=xe(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,fxe)),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,Ue,Xe,dt,Da,Ze,et,Ae,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,fi,he,Fi],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 Sxe=()=>["../../"];function wxe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.First Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}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(),se(" ",m(2,3,"labels.inputs.Last Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Txe(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(" ",Ot(2,2,t.name,"catalogs")," ")}}function Mxe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Relationship")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Dxe(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(" ",Ot(2,2,t.name,"catalogs")," ")}}function Exe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Gender")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Ixe(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(" ",Ot(2,2,t.name,"catalogs")," ")}}function Oxe(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(" ",Ot(2,2,t.name,"catalogs")," ")}}var UC=(()=>{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(At),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 z(s),H(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,wxe,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,Pxe,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,Txe,3,5,"mat-option",12,Pe),r(),E(40,Mxe,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,Dxe,3,5,"mat-option",12,Pe),r(),E(48,Exe,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,Ixe,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,Oxe,3,5,"mat-option",12,Pe),r()(),l(63,"mat-form-field",16),R("click",function(){z(s);let u=xe(70);return H(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=xe(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,Sxe)),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,Ue,Xe,dt,Ze,et,Ae,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,fi,he,Fi],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 Axe=["identifiersTable"],Fxe=["identityLightbox"],kxe=()=>({"margin-top":"3%"});function Bxe(e,o){if(e&1){let t=Y();l(0,"button",18),R("click",function(){z(t);let i=w();return H(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 Rxe(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 Nxe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.id)}}function Lxe(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 Vxe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.documentType.name)}}function qxe(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 zxe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.documentKey)}}function Hxe(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 Gxe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.description)}}function jxe(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 $xe(e,o){if(e&1&&b(0,"img",26),e&2){let t=w().$implicit,n=w(3);g("src",n.previewThumbnails[t.id],bp)("alt",t.name)("title",t.name)}}function Uxe(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 Wxe(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 Yxe(e,o){if(e&1){let t=Y();l(0,"div",24)(1,"div",25),p(2,"translate"),R("keydown.enter",function(){let i=z(t).$implicit,s=w(2).$implicit,d=w();return H(d.isPreviewable(i)&&d.openDocumentPreview(s,i))})("keydown.space",function(){let i=z(t).$implicit,s=w(2).$implicit,d=w();return H(d.isPreviewable(i)&&d.openDocumentPreview(s,i))})("click",function(){let i=z(t).$implicit,s=w(2).$implicit,d=w();return H(d.isPreviewable(i)&&d.openDocumentPreview(s,i))}),E(3,$xe,1,3,"img",26)(4,Uxe,4,1,"div",27),E(5,Wxe,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(),Cl("clickable",n.isPreviewable(t)),wn("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 Jxe(e,o){if(e&1&&(l(0,"div",22),Se(1,Yxe,10,9,"div",24,gd().trackByDocumentId,!0),r()),e&2){let t=w().$implicit;a(),we(t.documents)}}function Kxe(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 Xxe(e,o){if(e&1&&(l(0,"td",21),E(1,Jxe,3,0,"div",22)(2,Kxe,3,3,"span",23),r()),e&2){let t=o.$implicit;a(),I(t.documents!=null&&t.documents.length?1:2)}}function Zxe(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 ebe(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 tbe(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 ibe(e,o){if(e&1){let t=Y();l(0,"button",35),p(1,"translate"),p(2,"translate"),R("click",function(){z(t);let i=w(),s=i.$implicit,d=i.index,u=w();return H(u.deleteIdentifier(s.clientId,s.id,d))}),b(3,"fa-icon",36),r()}e&2&&(g("title",m(1,2,"labels.buttons.Delete")),wn("aria-label",m(2,4,"labels.buttons.Delete")))}function nbe(e,o){e&1&&(l(0,"td",21),F(1,ibe,4,6,"button",34),r()),e&2&&(a(),g("mifosxHasPermission","DELETE_CLIENTIDENTIFIER"))}function obe(e,o){e&1&&b(0,"tr",37)}function abe(e,o){e&1&&b(0,"tr",38)}var WC=(()=>{class e{constructor(){this.route=T(Ie),this.dialog=T(Ht),this.clientService=T(Oi),this.translateService=T(yi),this.documentPreviewService=T(Ak),this.destroyRef=T(dF),this.identitiesColumns=["id","description","type","documentKey","documents","status","actions"],this.previewThumbnails={},this.lightboxInstance=null,this.lightboxPlugins=[Ok,Ik,Ek],this.clientId=this.route.parent.snapshot.paramMap.get("clientId"),this.route.data.pipe(Nk(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(Qg,{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 Yn(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=Dk(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(Axe,7),Ee(Fxe,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,Bxe,4,3,"button",4),r(),l(6,"table",5,0),X(8,6),F(9,Rxe,3,3,"th",7)(10,Nxe,2,1,"td",8),Z(),X(11,9),F(12,Lxe,3,3,"th",7)(13,Vxe,2,1,"td",8),Z(),X(14,10),F(15,qxe,3,3,"th",7)(16,zxe,2,1,"td",8),Z(),X(17,11),F(18,Hxe,3,3,"th",7)(19,Gxe,2,1,"td",8),Z(),X(20,12),F(21,jxe,3,3,"th",7)(22,Xxe,3,1,"td",8),Z(),X(23,13),F(24,Zxe,3,3,"th",7)(25,ebe,2,1,"td",8),Z(),X(26,14),F(27,tbe,3,3,"th",7)(28,nbe,2,1,"td",8),Z(),F(29,obe,1,0,"tr",15)(30,abe,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,kxe)),a(23),g("matHeaderRowDef",i.identitiesColumns),a(),g("matRowDefColumns",i.identitiesColumns))},dependencies:[ue,os,fe,ve,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 QC=(()=>{class e{constructor(){this.route=T(Ie),this.clientsService=T(Oi),this.authenticationService=T(Qo),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,A0],encapsulation:2})}}return e})();var YC=(()=>{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,Fk],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 JC=(()=>{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 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(),se("",m(2,2,"labels.inputs.Street")," : ",t.street)}}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(),se("",m(2,2,"labels.inputs.Address Line")," 1 : ",t.addressLine1)}}function sbe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Address Line")," 2 : ",t.addressLine2)}}function cbe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Address Line")," 3 : ",t.addressLine3)}}function pbe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Town / Village")," : ",t.townVillage)}}function mbe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.City")," : ",t.city)}}function dbe(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(),se("",m(2,2,"labels.inputs.State / Province")," : ",(t=i.getSelectedValue("stateProvinceIdOptions",n.stateProvinceId))==null?null:t.name)}}function ube(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(),se("",m(2,2,"labels.inputs.Country")," : ",(t=i.getSelectedValue("countryIdOptions",n.countryId))==null?null:t.name)}}function fbe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Postal Code")," : ",t.postalCode)}}function hbe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Active Status")," : ",t.isActive)}}function gbe(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=z(t),s=i.$implicit,d=i.$index,u=w();return H(u.editAddress(s,d))}),b(9,"fa-icon",8),r(),l(10,"mat-slide-toggle",9),R("change",function(){let i=z(t).$implicit,s=w();return H(s.toggleAddress(i))}),r()(),l(11,"p"),E(12,rbe,4,4,"span"),E(13,lbe,4,4,"span"),E(14,sbe,4,4,"span"),E(15,cbe,4,4,"span"),E(16,pbe,4,4,"span"),E(17,mbe,4,4,"span"),E(18,dbe,4,4,"span"),E(19,ube,4,4,"span"),E(20,fbe,4,4,"span"),E(21,hbe,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 KC=(()=>{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,gbe,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,ve,ke,Dr,Pr,Tr,Mr,ac,Ri,Bp,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 _be=()=>["../../"];function Cbe(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 vbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Staff")," ",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.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,Cbe,2,2,"mat-option",5,Pe),r(),E(12,vbe,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,_be)),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,Ue,Xe,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,gt,ft,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var xbe=()=>["../../"];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(),se(" ",m(2,3,"labels.inputs.Closed On Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ybe(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 Sbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Closure 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(At),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:["",re.required],closureReasonId:["",re.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 z(s),H(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){z(s);let u=xe(12);return H(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,ybe,2,2,"mat-option",9,Pe),r(),E(21,Sbe,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=xe(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,xbe)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var wbe=()=>["../Take Survey"],Pbe=()=>[10,25,50,100];function Tbe(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 Mbe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.surveyName)}}function Dbe(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 Ebe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdBy)}}function Ibe(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 Obe(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 Abe(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 Fbe(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 kbe(e,o){e&1&&b(0,"tr",24)}function Bbe(e,o){e&1&&b(0,"tr",25)}var e2=(()=>{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,Tbe,3,3,"th",10)(16,Mbe,2,1,"td",11),Z(),X(17,12),F(18,Dbe,3,3,"th",13)(19,Ebe,2,1,"td",11),Z(),X(20,14),F(21,Ibe,3,3,"th",15)(22,Obe,3,3,"td",11),Z(),X(23,16),F(24,Abe,3,3,"th",15)(25,Fbe,3,3,"td",11),Z(),F(26,kbe,1,0,"tr",17)(27,Bbe,1,0,"tr",18),r(),b(28,"mat-paginator",19),r()()),n&2&&(a(),g("routerLink",oe(11,wbe)),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,Pbe)))},dependencies:[ue,fe,Ae,Fe,Be,ze,ve,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he,Yr,On],styles:[".headingContent[_ngcontent-%COMP%]{margin-bottom:1%;margin-top:1%}.headingName[_ngcontent-%COMP%]{display:block}"]})}}return e})();var Rbe=()=>["../../"];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(),se(" ",m(2,3,"labels.inputs.Rejection Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Lbe(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 Vbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Rejection 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(At),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:["",re.required],rejectionReasonId:["",re.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 z(s),H(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){z(s);let u=xe(12);return H(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,"mat-form-field",7)(15,"mat-label"),c(16),p(17,"translate"),r(),l(18,"mat-select",8),Se(19,Lbe,2,2,"mat-option",9,Pe),r(),E(21,Vbe,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=xe(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,Rbe)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var qbe=()=>["../../"];function zbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Activated On 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(At),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:["",re.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 z(s),H(i.submit())}),l(3,"mat-card-content")(4,"mat-form-field",3),R("click",function(){z(s);let u=xe(11);return H(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,zbe,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=xe(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,qbe)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Hbe=()=>["../../"];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(),se(" ",m(2,3,"labels.inputs.Withdrawal Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function jbe(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 $be(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Withdrawal 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.clientsService=T(Oi),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(At),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:["",re.required],withdrawalReasonId:["",re.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 z(s),H(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){z(s);let u=xe(12);return H(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,Gbe,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,jbe,2,2,"mat-option",9,Pe),r(),E(21,$be,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=xe(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,Hbe)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Ube=()=>["../../"];function Wbe(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(),se(" ",m(2,3,"labels.inputs.Account")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var o2=(()=>{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,Wbe,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,Ube)),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,Ue,Xe,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,gt,ft,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Ybe=()=>["../../"];function Jbe(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 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(),se(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Xbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Transfer Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var a2=(()=>{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(At),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:["",re.required],transferDate:["",re.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 z(s),H(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,Jbe,2,2,"mat-option",5,Pe),r(),E(12,Kbe,7,9,"mat-error"),r(),l(13,"mat-form-field",6),R("click",function(){z(s);let u=xe(20);return H(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,Xbe,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=xe(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,Ybe)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Zbe=()=>["../../"],r2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.settingsService=T(At),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 z(s),H(i.submit())}),l(3,"mat-card-content",3)(4,"mat-form-field",4),R("click",function(){z(s);let u=xe(11);return H(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=xe(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,Zbe)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ai,ze,mi,di,pi,ve,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var eye=()=>["../../"],l2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.settingsService=T(At),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 z(s),H(i.submit())}),l(3,"mat-card-content",3)(4,"mat-form-field",4),R("click",function(){z(s);let u=xe(11);return H(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=xe(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,eye)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ai,ze,mi,di,pi,ve,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var tye=()=>["../../"],s2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.settingsService=T(At),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 z(s),H(i.submit())}),l(3,"mat-card-content",3)(4,"mat-form-field",4),R("click",function(){z(s);let u=xe(11);return H(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=xe(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,tye)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ai,ze,mi,di,pi,ve,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var iye=()=>["../../"];function nye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Reactivation Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var c2=(()=>{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(At),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:["",re.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 z(s),H(i.submit())}),l(3,"mat-card-content")(4,"mat-form-field",3),R("click",function(){z(s);let u=xe(11);return H(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,nye,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=xe(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,iye)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var oye=()=>["../../"];function aye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Reopened On Date")," ",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.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(At),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:["",re.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 z(s),H(i.submit())}),l(3,"mat-card-content")(4,"mat-form-field",3),R("click",function(){z(s);let u=xe(11);return H(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,aye,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=xe(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,oye)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var rye=()=>["../../"];function lye(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 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(),se(" ",m(2,3,"labels.inputs.Charge")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function cye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function pye(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 mye(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 dye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",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 uye(e,o){if(e&1){let t=Y();l(0,"mat-form-field",13),R("click",function(){z(t);let i=xe(7);return H(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,dye,7,9,"mat-error"),r()}if(e&2){let t=xe(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 fye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Due Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function hye(e,o){if(e&1){let t=Y();l(0,"mat-form-field",13),R("click",function(){z(t);let i=xe(7);return H(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,fye,7,9,"mat-error"),r()}if(e&2){let t=xe(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 gye(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 _ye(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,cye,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,pye,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,mye,2,2,"mat-option",6,Pe),r()(),E(21,uye,9,8,"mat-form-field"),E(22,hye,9,8,"mat-form-field"),E(23,gye,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 m2=(()=>{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(At),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("",re.required)):this.clientChargeForm.removeControl("dueDate"),!this.chargeDetails.dueDateNotRequired&&this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.clientChargeForm.addControl("feeOnMonthDay",new it("",re.required)):this.clientChargeForm.removeControl("feeOnMonthDay"),i.value==="Monthly Fee"?this.clientChargeForm.addControl("feeInterval",new it(n.feeInterval,re.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:["",re.required],amount:["",re.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,lye,2,2,"mat-option",6,Pe),r(),E(12,sye,7,9,"mat-error"),r(),E(13,_ye,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,rye)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]})}}return e})();var Cye=()=>["../../general"];function vye(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 xye(e,o){e&1&&(l(0,"h2"),c(1,"component[0].componentKey"),r())}function bye(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 yye(e,o){if(e&1&&(l(0,"div"),c(1),p(2,"translate"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.text.Your answer is"),": ",t.answer.text)}}function Sye(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),Nc("ngModelChange",function(i){let s=z(t).$implicit;return Rc(s.answer,i)||(s.answer=i),H(i)}),Se(4,bye,3,2,"mat-radio-button",12,Pe),r()(),E(6,yye,3,4,"div")}if(e&2){let t=o.$implicit;a(2),h(t.text),a(),Bc("ngModel",t.answer),a(),we(t.responseDatas),a(2),I(t.answer?6:-1)}}function wye(e,o){if(e&1&&(E(0,xye,2,0,"h2"),l(1,"div",8),Se(2,Sye,7,3,null,null,Pe),r()),e&2){let t=o.$implicit;I(t[0].componentKey?0:-1),a(2),we(t)}}var d2=(()=>{class e{constructor(){this.route=T(Ie),this.clientsService=T(Oi),this.router=T(qe),this.authenticationService=T(Qo),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,vye,2,2,"mat-option",5,Pe),r()(),b(9,"hr"),l(10,"div"),Se(11,wye,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,Cye)),a(),v(" ",m(15,6,"labels.buttons.Cancel")," "),a(3),v(" ",m(18,8,"labels.buttons.Submit")," "))},dependencies:[ue,fe,Ue,Ae,Be,gt,ft,ve,er,tc,Dp,tr,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 Pye=["screenReport"],Tye=()=>["../../"];function Mye(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 Dye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Screen Report")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var u2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.route=T(Ie),this.sanitizer=T(ec),this.renderer=T(Cg),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(hF.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(Pye,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-raised-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 z(s),H(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,Mye,2,2,"mat-option",6,Pe),r(),E(12,Dye,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 z(s),H(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,Tye)),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,Ue,Xe,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,gt,ft,ve,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} .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(At)}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 Eye=()=>["../../"];function Iye(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 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(),se(" ",m(2,3,"labels.inputs.Collateral")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Aye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Quantity")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Fye(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,Aye,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 f2=(()=>{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(At),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:["",re.required],quantity:["",re.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,Iye,2,2,"mat-option",4,Pe),r(),E(12,Oye,7,9,"mat-error"),r(),E(13,Fye,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,Eye)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ze,gt,ft,ve,he],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]})}}return e})();function kye(e,o){e&1&&b(0,"mifosx-client-assign-staff")}function Bye(e,o){e&1&&b(0,"mifosx-close-client")}function Rye(e,o){e&1&&b(0,"mifosx-view-survey")}function Nye(e,o){e&1&&b(0,"mifosx-reject-client")}function Lye(e,o){e&1&&b(0,"mifosx-activate-client")}function Vye(e,o){e&1&&b(0,"mifosx-withdraw-client")}function qye(e,o){e&1&&b(0,"mifosx-update-client-savings-account")}function zye(e,o){e&1&&b(0,"mifosx-transfer-client")}function Hye(e,o){e&1&&b(0,"mifosx-undo-client-transfer")}function Gye(e,o){e&1&&b(0,"mifosx-reject-client-transfer")}function jye(e,o){e&1&&b(0,"mifosx-accept-client-transfer")}function $ye(e,o){e&1&&b(0,"mifosx-reactivate-client")}function Uye(e,o){e&1&&b(0,"mifosx-undo-client-rejection")}function Wye(e,o){e&1&&b(0,"mifosx-add-client-charge")}function Qye(e,o){e&1&&b(0,"mifosx-take-survey")}function Yye(e,o){e&1&&b(0,"mifosx-client-screen-reports")}function Jye(e,o){e&1&&b(0,"mifosx-add-client-collateral")}var h2=(()=>{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,kye,1,0,"mifosx-client-assign-staff"),E(1,Bye,1,0,"mifosx-close-client"),E(2,Rye,1,0,"mifosx-view-survey"),E(3,Nye,1,0,"mifosx-reject-client"),E(4,Lye,1,0,"mifosx-activate-client"),E(5,Vye,1,0,"mifosx-withdraw-client"),E(6,qye,1,0,"mifosx-update-client-savings-account"),E(7,zye,1,0,"mifosx-transfer-client"),E(8,Hye,1,0,"mifosx-undo-client-transfer"),E(9,Gye,1,0,"mifosx-reject-client-transfer"),E(10,jye,1,0,"mifosx-accept-client-transfer"),E(11,$ye,1,0,"mifosx-reactivate-client"),E(12,Uye,1,0,"mifosx-undo-client-rejection"),E(13,Wye,1,0,"mifosx-add-client-charge"),E(14,Qye,1,0,"mifosx-take-survey"),E(15,Yye,1,0,"mifosx-client-screen-reports"),E(16,Jye,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,XC,ZC,e2,t2,i2,n2,o2,a2,r2,l2,s2,c2,p2,m2,d2,u2,f2],encapsulation:2})}}return e})();var Kye=()=>["../../","general"],Xye=()=>["pay"],tu=e=>({strikeoff:e});function Zye(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,Xye)),a(2),v(" ",m(3,2,"labels.buttons.Pay")," "))}function e3e(e,o){if(e&1){let t=Y();l(0,"button",3),R("click",function(){z(t);let i=w();return H(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 t3e(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 i3e(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;g("ngClass",Nt(2,tu,t.reversed)),a(),h(t.id)}}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.Office Name")))}function o3e(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;g("ngClass",Nt(2,tu,t.reversed)),a(),v(" ",t.officeName," ")}}function a3e(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 r3e(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;g("ngClass",Nt(2,tu,t.reversed)),a(),v(" ",t.type.value," ")}}function l3e(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 s3e(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,tu,t.reversed)),a(),v(" ",m(2,2,t.date)," ")}}function c3e(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 p3e(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,tu,t.reversed)),a(),v(" ",m(2,2,t.amount)," ")}}function m3e(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 d3e(e,o){if(e&1){let t=Y();l(0,"td",26)(1,"button",27),R("click",function(){let i=z(t).$implicit,s=w(2);return H(s.undoTransaction(i.id))}),b(2,"fa-icon",4),r()()}if(e&2){let t=o.$implicit;g("ngClass",Nt(1,tu,t.reversed))}}function u3e(e,o){e&1&&b(0,"tr",28)}function f3e(e,o){e&1&&b(0,"tr",29)}function h3e(e,o){if(e&1&&(l(0,"table",9),X(1,15),F(2,t3e,3,3,"th",16)(3,i3e,2,4,"td",17),Z(),X(4,18),F(5,n3e,3,3,"th",16)(6,o3e,2,4,"td",17),Z(),X(7,19),F(8,a3e,3,3,"th",16)(9,r3e,2,4,"td",17),Z(),X(10,20),F(11,l3e,3,3,"th",16)(12,s3e,3,6,"td",17),Z(),X(13,21),F(14,c3e,3,3,"th",16)(15,p3e,3,6,"td",17),Z(),X(16,22),F(17,m3e,3,3,"th",16)(18,d3e,3,3,"td",17),Z(),F(19,u3e,1,0,"tr",23)(20,f3e,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 g2=(()=>{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,Zye,4,5,"button",1)(2,e3e,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,h3e,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,Kye)),a(),v(" ",m(76,49,"labels.buttons.Back")," "))},dependencies:[ue,co,fe,Ae,$e,Je,Et,ve,Ke,ke,Yo,Ri,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,Pi,he,go,On],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 g3e=()=>["../../..","general"];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(),se(" ",m(2,3,"labels.inputs.Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}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(),se(" ",m(2,3,"labels.inputs.Transaction date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var _2=(()=>{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(At),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,re.required],transactionDate:[new Date,re.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 z(s),H(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,_3e,7,9,"mat-error"),r(),l(10,"mat-form-field",5),R("click",function(){z(s);let u=xe(17);return H(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,C3e,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=xe(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,g3e)),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,Ue,Xe,dt,Ze,et,Ae,$e,Fe,Be,ut,ai,ze,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var jM=()=>["Date of Birth","Incorporation Date"],v3e=()=>["../general"],$M=()=>["Name","Entity Name"];function x3e(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 b3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}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.value," ")}}function S3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Client name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function w3e(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,S3e,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,4,"labels.inputs."+t.getDateLabel(t.legalFormId,oe(10,$M)))),a(2),g("placeholder",m(5,6,"labels.inputs."+t.getDateLabel(t.legalFormId,oe(11,$M))))("title",m(6,8,"labels.inputs."+t.getDateLabel(t.legalFormId,oe(12,$M)))),a(3),I(t.editClientForm.controls.fullname.hasError("required")?7:-1)}}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(),se(" ",m(2,3,"labels.inputs.Client first name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function T3e(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,P3e,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 M3e(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 D3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Client last name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function E3e(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,D3e,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 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-form-field",13)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",36),Se(5,I3e,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 A3e(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 F3e(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 k3e(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 B3e(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 R3e(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,k3e,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,B3e,2,2,"mat-option",9,Pe),r()(),l(15,"mat-form-field",16),R("click",function(){z(t);let i=xe(24);return H(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=xe(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 N3e(e,o){e&1&&(l(0,"mat-error"),c(1," Email not valid "),r())}function L3e(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 V3e(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 q3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Submitted Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var C2=(()=>{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(At),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:["",re.email],dateOfBirth:[""],clientTypeId:[""],clientClassificationId:[""],submittedOnDate:["",re.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,re.required)),this.editClientForm.addControl("middlename",new it(this.clientDataAndTemplate.middlename)),this.editClientForm.addControl("lastname",new it(this.clientDataAndTemplate.lastname,re.required))):(this.editClientForm.removeControl("firstname"),this.editClientForm.removeControl("middlename"),this.editClientForm.removeControl("lastname"),this.editClientForm.addControl("fullname",new it(this.clientDataAndTemplate.fullname,re.required)),this.editClientForm.addControl("clientNonPersonDetails",this.formBuilder.group({constitutionId:[this.clientDataAndTemplate.clientNonPersonDetails.constitution&&this.clientDataAndTemplate.clientNonPersonDetails.constitution.id,re.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,x3e,2,2,"mat-option",9,Pe),r(),E(12,b3e,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,y3e,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,w3e,8,13,"mat-form-field",13),E(36,T3e,8,10,"mat-form-field",14),E(37,M3e,7,9,"mat-form-field",14),E(38,E3e,8,10,"mat-form-field",14),r(),b(39,"mat-divider",15),l(40,"div",6)(41,"mat-form-field",16),R("click",function(){z(s);let u=xe(50);return H(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,O3e,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,A3e,2,2,"mat-option",9,Pe),r()(),E(60,F3e,3,3,"mat-checkbox",21),r(),E(61,R3e,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,N3e,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,L3e,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,V3e,2,2,"mat-option",9,Pe),r()()(),l(93,"div",6)(94,"mat-form-field",16),R("click",function(){z(s);let u=xe(103);return H(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,q3e,7,9,"mat-error"),r(),l(105,"mat-form-field",16),R("click",function(){z(s);let u=xe(114);return H(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 z(s),H(i.submit())}),c(120),p(121,"translate"),r()()()()()}if(n&2){let s=xe(50),d=xe(103),u=xe(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,jM)))),a(2),g("max",i.maxDate)("matDatepicker",s)("placeholder",m(46,70,"labels.inputs."+i.getDateLabel(i.legalFormId,oe(109,jM))))("title",m(47,72,"labels.inputs."+i.getDateLabel(i.legalFormId,oe(110,jM)))),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,v3e)),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,Ue,Xe,dt,Ze,et,la,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,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 z3e=()=>["Date of Birth","Incorporation Date"],H3e=()=>["Name","Entity Name"];function G3e(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 j3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $3e(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(" ",Ot(2,2,t.value,"inputs")," ")}}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(),se(" ",m(2,3,"labels.inputs.Client 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 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,U3e,7,9,"mat-error"),E(6,W3e,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,H3e)))," "),a(3),I(t.createClientForm.controls.fullname.hasError("required")?5:-1),a(),I(t.createClientForm.controls.fullname.hasError("pattern")?6:-1)}}function Y3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Client first name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}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 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 K3e(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,Y3e,7,9,"mat-error"),E(6,J3e,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 X3e(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 Z3e(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,X3e,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 eSe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Client last name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function tSe(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 iSe(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,eSe,7,9,"mat-error"),E(6,tSe,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 nSe(e,o){if(e&1&&(l(0,"div",12),E(1,K3e,7,5,"mat-form-field",33),E(2,Z3e,6,4,"mat-form-field",34),E(3,iSe,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 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){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,oSe,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,aSe,2,2,"mat-option",8,Pe),r()(),l(15,"mat-form-field",13),R("click",function(){z(t);let i=xe(22);return H(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=xe(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 lSe(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 sSe(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,lSe,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 cSe(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 pSe(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 mSe(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 dSe(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 uSe(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 fSe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Activation Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function hSe(e,o){if(e&1){let t=Y();l(0,"mat-form-field",13),R("click",function(){z(t);let i=xe(7);return H(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,fSe,7,9,"mat-error"),r()}if(e&2){let t=xe(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 gSe(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 _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(),se(" ",m(2,3,"labels.inputs.Savings Product")," ",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-form-field",11)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",46),Se(5,gSe,2,2,"mat-option",8,Pe),r(),E(7,_Se,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 Kf=(()=>{class e{constructor(){this.formBuilder=T(nt),this.dateUtils=T(Zt),this.settingsService=T(At),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:["",re.required],staffId:[""],legalFormId:["",re.required],isStaff:[!1],active:[!1],addSavings:[!1],accountNo:[""],externalId:[""],genderId:[""],mobileNo:[""],emailAddress:["",re.email],dateOfBirth:[""],clientTypeId:[""],clientClassificationId:[""],submittedOnDate:[this.settingsService.businessDate,re.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("",[re.required,re.pattern("(^[A-z]).*")])),this.createClientForm.addControl("middlename",new it("",re.pattern("(^[A-z]).*"))),this.createClientForm.addControl("lastname",new it("",[re.required,re.pattern("(^[A-z]).*")]))):(this.createClientForm.removeControl("firstname"),this.createClientForm.removeControl("middlename"),this.createClientForm.removeControl("lastname"),this.createClientForm.addControl("fullname",new it("",[re.required,re.pattern("(^[A-z]).*")])),this.createClientForm.addControl("clientNonPersonDetails",this.formBuilder.group({constitutionId:["",re.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("",re.required)):this.createClientForm.removeControl("activationDate")}),this.createClientForm.get("addSavings").valueChanges.subscribe(t=>{t?this.createClientForm.addControl("savingsProductId",new it("",re.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,G3e,2,2,"mat-option",8,Pe),r(),E(9,j3e,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,$3e,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,nSe,4,3,"div",12),b(24,"mat-divider"),l(25,"mat-form-field",13),R("click",function(){z(s);let u=xe(32);return H(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,rSe,33,19,"div",16),E(34,sSe,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,cSe,2,2,"mat-option",8,Pe),r()(),E(42,pSe,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,mSe,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,dSe,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,uSe,2,2,"mat-option",8,Pe),r()(),l(69,"mat-form-field",13),R("click",function(){z(s);let u=xe(76);return H(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,hSe,9,8,"mat-form-field",11),l(82,"mat-checkbox",26),c(83),p(84,"translate"),r(),E(85,CSe,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=xe(32),d=xe(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,z3e)))," "),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,Ue,Xe,dt,Ze,et,la,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,fi,Ri,Ln,qi,ke,Ji,he,Fi],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 vSe=e=>({member:e});function xSe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.First Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function bSe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Last Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ySe(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(" ",Ot(2,2,t.name,"catalogs")," ")}}function SSe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Relationship")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wSe(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(" ",Ot(2,2,t.name,"catalogs")," ")}}function PSe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Gender")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function TSe(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(" ",Ot(2,2,t.name,"catalogs")," ")}}function MSe(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(" ",Ot(2,2,t.name,"catalogs")," ")}}var Xf=(()=>{class e{constructor(){this.dialogRef=T(eo),this.formBuilder=T(nt),this.dateUtils=T(Zt),this.data=T(Po),this.settingsService=T(At),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(Xf,{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(Xf,{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,DSe,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,ve,ke,Dr,Pr,Tr,Mr,ac,Ri,qi,Ji,Pi,he,Wn],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 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(),se("",m(2,2,"labels.inputs.Street")," : ",t.street)}}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(),se("",m(2,2,"labels.inputs.Address Line")," 1 : ",t.addressLine1)}}function OSe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Address Line")," 2 : ",t.addressLine2)}}function ASe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Address Line")," 3 : ",t.addressLine3)}}function FSe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Town / Village")," : ",t.townVillage)}}function kSe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.City")," : ",t.city)}}function BSe(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(),se("",m(2,2,"labels.inputs.State / Province")," : ",(t=i.getSelectedValue("stateProvinceIdOptions",n.stateProvinceId))==null?null:t.name)}}function RSe(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(),se("",m(2,2,"labels.inputs.Country")," : ",(t=i.getSelectedValue("countryIdOptions",n.countryId))==null?null:t.name)}}function NSe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Postal Code")," : ",t.postalCode)}}function LSe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Active Status")," : ",t.isActive)}}function VSe(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=z(t),s=i.$implicit,d=i.$index,u=w(2);return H(u.editAddress(s,d))}),b(9,"fa-icon",12),r(),l(10,"button",13),R("click",function(){let i=z(t),s=i.$implicit,d=i.$index,u=w(2);return H(u.deleteAddress(s,d))}),b(11,"fa-icon",14),r(),l(12,"mat-slide-toggle",15),R("change",function(){let i=z(t).$implicit,s=w(2);return H(s.toggleAddress(i))}),r()(),l(13,"p"),E(14,ESe,4,4,"span"),E(15,ISe,4,4,"span"),E(16,OSe,4,4,"span"),E(17,ASe,4,4,"span"),E(18,FSe,4,4,"span"),E(19,kSe,4,4,"span"),E(20,BSe,4,4,"span"),E(21,RSe,4,4,"span"),E(22,NSe,4,4,"span"),E(23,LSe,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 qSe(e,o){if(e&1&&(l(0,"mat-accordion"),Se(1,VSe,24,13,"mat-expansion-panel",9,Pe),r()),e&2){let t=w();a(),we(t.clientAddressData)}}var x2=(()=>{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,qSe,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,ve,ke,Dr,Pr,Tr,Mr,ac,Ri,Bp,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 zSe(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 HSe(e,o){if(e&1&&(l(0,"mat-select",11),Se(1,zSe,2,2,"mat-option",14,Pe),r()),e&2){let t=w(2).$implicit;g("formControlName",Le(t.controlName)),a(),we(t.columnValues)}}function GSe(e,o){if(e&1&&b(0,"input",12),e&2){let t=w(2).$implicit;g("formControlName",Le(t.controlName))}}function jSe(e,o){if(e&1&&b(0,"input",13),e&2){let t=w(2).$implicit;g("formControlName",Le(t.controlName))}}function $Se(e,o){if(e&1&&b(0,"textarea",13),e&2){let t=w(2).$implicit;g("formControlName",Le(t.controlName))}}function USe(e,o){if(e&1){let t=Y();l(0,"span",15),R("click",function(){z(t);let i=xe(4);return H(i.open())}),b(1,"input",16)(2,"mat-datepicker-toggle",17)(3,"mat-datepicker",null,0),r()}if(e&2){let t=xe(4),n=w(2).$implicit;a(),g("formControlName",Le(n.controlName))("matDatepicker",t),a(),g("for",t)}}function WSe(e,o){if(e&1&&(l(0,"mat-form-field",9)(1,"mat-label"),c(2),r(),E(3,HSe,3,2,"mat-select",11),E(4,GSe,1,2,"input",12),E(5,jSe,1,2,"input",13),E(6,$Se,1,2,"textarea",13),E(7,USe,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 YSe(e,o){if(e&1&&(l(0,"div",3),E(1,WSe,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 b2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.settingsService=T(At),this.datatableService=T(Jg),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,[re.required]):t[n.controlName]=new it("",[re.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,YSe,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,Ue,Xe,Ze,et,Fe,Be,ai,ze,gt,ft,mi,di,pi,ve,fi,qi,ke,Ji,he],styles:[".date-picker[_ngcontent-%COMP%]{width:92%}mat-checkbox[_ngcontent-%COMP%]{margin-top:30px}"]})}}return e})();var JSe=()=>["../"];function KSe(e,o){if(e&1&&(l(0,"span",4),c(1),r()),e&2){let t=w();a(),h(t.client.fullname)}}function XSe(e,o){if(e&1&&(l(0,"span",4),c(1),r()),e&2){let t=w();a(),se("",t.client.firstname," ",t.client.middlename?t.client.middlename+" "+t.client.lastname:t.client.lastname)}}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,"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 ewe(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 twe(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 iwe(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 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),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Email Address")),a(3),h(t.client.emailAddress)}}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();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 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();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 rwe(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 lwe(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 swe(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 cwe(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 pwe(e,o){if(e&1&&(E(0,cwe,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 mwe(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 dwe(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 uwe(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 fwe(e,o){if(e&1&&(E(0,mwe,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,dwe,7,9,"div",2),E(8,uwe,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 hwe(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),se(" ",t.firstName," ",t.middleName?t.middleName+" "+t.lastName:t.lastName," "),a(2),v(" ",t.relationship," "),a(3),se(" ",m(9,25,"labels.inputs.First Name")," : ",t.firstName),a(3),se(" ",m(12,27,"labels.inputs.Middle Name")," : ",t.middleName),a(3),se(" ",m(15,29,"labels.inputs.Last Name")," : ",t.lastName),a(3),se(" ",m(18,31,"labels.inputs.Qualification")," : ",t.qualification),a(3),se(" ",m(21,33,"labels.inputs.Relationship")," : ",$t(22,35,t.relationshipId,n.clientTemplate.familyMemberOptions.relationshipIdOptions,"id","name")),a(4),se(" ",m(25,40,"labels.inputs.Age")," : ",t.age),a(3),se(" ",m(28,42,"labels.inputs.Is Dependent")," : ",t.isDependent?"Yes":"No"),a(3),se(" ",m(31,44,"labels.inputs.Marital Status")," : ",$t(32,46,t.maritalStatusId,n.clientTemplate.familyMemberOptions.maritalStatusIdOptions,"id","name")),a(4),se(" ",m(35,51,"labels.inputs.Gender")," : ",$t(36,53,t.genderId,n.clientTemplate.familyMemberOptions.genderIdOptions,"id","name")),a(4),se(" ",m(39,58,"labels.inputs.Profession")," : ",$t(40,60,t.professionId,n.clientTemplate.familyMemberOptions.professionIdOptions,"id","name")),a(4),se(" ",m(43,65,"labels.inputs.Date Of Birth")," : ",m(44,67,t.dateOfBirth))}}function gwe(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,hwe,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 _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(),se("",m(2,2,"labels.inputs.Street")," : ",t.street)}}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(),se("",m(2,2,"labels.inputs.Address Line")," 1 : ",t.addressLine1)}}function vwe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Address Line")," 2 : ",t.addressLine2)}}function xwe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Address Line")," 3 : ",t.addressLine3)}}function bwe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Town / Village")," : ",t.townVillage)}}function ywe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.City")," : ",t.city)}}function Swe(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(),se("",m(2,2,"labels.inputs.State / Province")," : ",(t=i.getSelectedValue("stateProvinceIdOptions",n.stateProvinceId))==null?null:t.name)}}function wwe(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(),se("",m(2,2,"labels.inputs.Country")," : ",(t=i.getSelectedValue("countryIdOptions",n.countryId))==null?null:t.name)}}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(),se("",m(2,2,"labels.inputs.Postal Code")," : ",t.postalCode)}}function Twe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Active Status")," : ",t.isActive)}}function Mwe(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,_we,4,4,"span"),E(9,Cwe,4,4,"span"),E(10,vwe,4,4,"span"),E(11,xwe,4,4,"span"),E(12,bwe,4,4,"span"),E(13,ywe,4,4,"span"),E(14,Swe,4,4,"span"),E(15,wwe,4,4,"span"),E(16,Pwe,4,4,"span"),E(17,Twe,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 Dwe(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,Mwe,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 y2=(()=>{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,KSe,2,1,"span",4),E(10,XSe,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,ZSe,7,9,"div",2),E(26,ewe,6,4,"div",2),E(27,twe,6,5,"div",2),E(28,iwe,6,4,"div",2),E(29,nwe,6,4,"div",2),E(30,owe,7,9,"div",2),E(31,awe,7,9,"div",2),E(32,rwe,7,9,"div",2),E(33,lwe,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,swe,7,6,"div",2),E(42,pwe,8,7),E(43,fwe,15,11),E(44,gwe,8,3,"div",5),E(45,Dwe,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,JSe)),a(),v(" ",m(53,53,"labels.buttons.Cancel")," "),a(3),v(" ",m(56,55,"labels.buttons.Submit")," "))},dependencies:[ue,fe,Ae,ve,Ri,Ea,Dr,Pr,Tr,Mr,ac,qi,ke,Pi,he,Wn,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 Ewe=["clientFamily"],Iwe=["clientAddress"],Owe=["dtclient"];function Awe(e,o){e&1&&b(0,"fa-icon",16)}function Fwe(e,o){e&1&&b(0,"fa-icon",16)}function kwe(e,o){e&1&&b(0,"fa-icon",17)}function Bwe(e,o){e&1&&b(0,"fa-icon",18)}function Rwe(e,o){e&1&&b(0,"fa-icon",19)}function Nwe(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.GENERAL"))}function Lwe(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.FAMILY MEMBERS"))}function Vwe(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.ADDRESS"))}function qwe(e,o){if(e&1&&(l(0,"mat-step"),F(1,Vwe,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 zwe(e,o){if(e&1&&c(0),e&2){let t=w().$implicit;h(t.registeredTableName)}}function Hwe(e,o){if(e&1&&(l(0,"mat-step"),F(1,zwe,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 Gwe(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function jwe(e,o){if(e&1){let t=Y();l(0,"mat-step",15),F(1,Gwe,2,3,"ng-template",12),l(2,"mifosx-client-preview-step",22),R("submitEvent",function(){z(t);let i=w();return H(i.submit())}),r()()}if(e&2){let t=w();a(2),g("clientTemplate",t.clientTemplate)("clientAddressFieldConfig",t.clientAddressFieldConfig)("client",t.client)}}var S2=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.clientsService=T(Oi),this.settingsService=T(At),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(Kf,7),Ee(Ewe,5),Ee(Iwe,5),Ee(Owe,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,Awe,1,0,"ng-template",6)(4,Fwe,1,0,"ng-template",7)(5,kwe,1,0,"ng-template",8)(6,Bwe,1,0,"ng-template",9)(7,Rwe,1,0,"ng-template",10),l(8,"mat-step",11),F(9,Nwe,2,3,"ng-template",12),l(10,"mifosx-client-general-step",13),R("legalFormChangeEvent",function(u){return z(s),H(i.legalFormChange(u))}),r()(),l(11,"mat-step"),F(12,Lwe,2,3,"ng-template",12),b(13,"mifosx-client-family-members-step",14,1),r(),E(15,qwe,4,2,"mat-step"),Se(16,Hwe,4,1,"mat-step",null,Pe),E(18,jwe,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,Kf,v2,x2,b2,y2,he],encapsulation:2})}}return e})();var w2=(()=>{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 UM=(()=>{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 WM=(()=>{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 QM=(()=>{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 K9=(()=>{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 YM=(()=>{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 JM=(()=>{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 iu=(()=>{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 KM=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.paramMap.get("clientId"),i;return this.clientsService.getClientIdentifiers(n).pipe(Dn(s=>{i=s;let d=[];return s.forEach(u=>{d.push(this.clientsService.getClientIdentificationDocuments(u.id))}),g0(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 XM=(()=>{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 ZM=(()=>{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 e5=(()=>{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 t5=(()=>{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 i5=(()=>{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 P2=(()=>{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 n5=(()=>{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 $we=()=>[10,20,25];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.name")))}function Wwe(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 Ywe(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 Jwe(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 Kwe(e,o){if(e&1&&(l(0,"td",15),c(1),r()),e&2){let t=o.$implicit;a(),h(t.amount)}}function Xwe(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 Zwe(e,o){if(e&1&&(l(0,"td",15),c(1),r()),e&2){let t=o.$implicit;a(),h(t.amountPaid)}}function ePe(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 tPe(e,o){if(e&1&&(l(0,"td",15),c(1),r()),e&2){let t=o.$implicit;a(),h(t.amountWaived)}}function iPe(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 nPe(e,o){if(e&1&&(l(0,"td",15),c(1),r()),e&2){let t=o.$implicit;a(),h(t.amountOutstanding)}}function oPe(e,o){e&1&&b(0,"tr",17)}function aPe(e,o){e&1&&b(0,"tr",18)}var T2=(()=>{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,Uwe,3,3,"th",4)(8,Wwe,4,4,"td",5),Z(),X(9,6),F(10,Qwe,3,3,"th",4)(11,Ywe,3,3,"td",5),Z(),X(12,7),F(13,Jwe,3,3,"th",4)(14,Kwe,2,1,"td",5),Z(),X(15,8),F(16,Xwe,3,3,"th",4)(17,Zwe,2,1,"td",5),Z(),X(18,9),F(19,ePe,3,3,"th",4)(20,tPe,2,1,"td",5),Z(),X(21,10),F(22,iPe,3,3,"th",4)(23,nPe,2,1,"td",5),Z(),F(24,oPe,1,0,"tr",11)(25,aPe,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,$we)))},dependencies:[ue,co,fe,$e,_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 o5=(()=>{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 a5=(()=>{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 r5=(()=>{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 l5=(()=>{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 s5=(()=>{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 c5=(()=>{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 rPe=[_o.withShell([{path:"clients",data:{title:"Clients",breadcrumb:"Clients",routeParamBreadcrumb:!1},children:[{path:"",component:AC},{path:"create",data:{title:"Create Client",breadcrumb:"Create Client",routeParamBreadcrumb:!1},component:S2,resolve:{clientAddressFieldConfig:P2,clientTemplate:iu}},{path:":clientId",component:HC,data:{title:"Clients View",routeParamBreadcrumb:"clientId"},resolve:{clientViewData:w2,clientTemplateData:iu,clientDatatables:e5},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:GC,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{clientAccountsData:UM,clientChargesData:QM,clientCollateralData:c5}},{path:"address",component:KC,data:{title:"Address",breadcrumb:"Address",routeParamBreadcrumb:!1},resolve:{clientAddressFieldConfig:P2,clientAddressTemplateData:n5,clientAddressData:WM}},{path:"family-members",data:{title:"Family Members",breadcrumb:"Family Members",routeParamBreadcrumb:!1},children:[{path:"",component:jC,resolve:{clientFamilyMembers:YM}},{path:"add",component:$C,data:{title:"Add",breadcrumb:"Add",routeParamBreadcrumb:!1},resolve:{clientTemplate:iu}},{path:":familyMemberId",children:[{path:"edit",component:UC,data:{title:"Family Member View",routeParamBreadcrumb:"familyMemberId"},resolve:{clientTemplate:iu,editFamilyMember:JM}}]}]},{path:"identities",component:WC,data:{title:"Identities",breadcrumb:"Identities",routeParamBreadcrumb:!1},resolve:{clientIdentities:KM,clientIdentifierTemplate:i5}},{path:"documents",component:YC,data:{title:"Documents",breadcrumb:"Documents",routeParamBreadcrumb:!1},resolve:{clientDocuments:ZM}},{path:"notes",component:QC,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{clientNotes:XM}},{path:"datatables",children:[{path:":datatableName",component:JC,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{clientDatatable:t5}}]}]}]},{path:"clients",data:{title:"Clients",breadcrumb:"Clients",routeParamBreadcrumb:!1},children:[{path:":clientId",data:{title:"Clients View",routeParamBreadcrumb:"clientId"},resolve:{clientViewData:w2},children:[{path:"edit",data:{title:"Edit Client",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:C2,resolve:{clientDataAndTemplate:s5}},{path:"actions/:name",data:{title:"Client Actions",routeParamBreadcrumb:"name"},component:h2,resolve:{clientActionData:a5}},{path:"charges",children:[{path:"overview",data:{title:"Charges Overview",breadcrumb:"Charges Overview"},component:T2,resolve:{clientChargesData:o5}},{path:":chargeId",data:{title:"Charges",routeParamBreadcrumb:"chargeId"},children:[{path:"",component:g2,resolve:{clientChargeData:r5}},{path:"pay",data:{title:"Pay Charge",routeParamBreadcrumb:!1},component:_2,resolve:{transactionData:l5}}]}]},{path:"loans-accounts",loadChildren:()=>import("./loans.module-3CU5NU4S.js").then(e=>e.LoansModule)},{path:"client-collateral",loadChildren:()=>import("./collaterals.module-XJE6QYGQ.js").then(e=>e.CollateralsModule)},{path:"fixed-deposits-accounts",loadChildren:()=>import("./fixed-deposits.module-5IEOXBZZ.js").then(e=>e.FixedDepositsModule)},{path:"savings-accounts",loadChildren:()=>import("./savings.module-NVUDJ6BQ.js").then(e=>e.SavingsModule)},{path:"recurring-deposits-accounts",loadChildren:()=>import("./recurring-deposits.module-HZHXUGE6.js").then(e=>e.RecurringDepositsModule)},{path:"shares-accounts",loadChildren:()=>import("./shares.module-OWTP5I4O.js").then(e=>e.SharesModule)},{path:"standing-instructions",loadChildren:()=>import("./account-transfers.module-XUJ6S2O7.js").then(e=>e.AccountTransfersModule)}]}]}])],X9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[w2,UM,WM,QM,K9,YM,JM,iu,KM,XM,ZM,e5,t5,i5,P2,n5,o5,a5,r5,l5,s5,c5],imports:[hn.forChild(rPe),hn]})}}return e})();var lPe=e=>({editForm:e}),Z9=(()=>{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,re.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,lPe,i.noteForm)),a(),v(" ",m(14,10,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,tt,st,Ue,Xe,Ze,et,Fe,ze,ve,Un,Nn,$n,he],encapsulation:2})}}return e})();var eN=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,X9,ha,Er,AC,HC,GC,jC,$C,UC,WC,Qg,QC,Z9,YC,JC,KC,T2,h2,XC,FC,ZC,e2,t2,i2,n2,d2,o2,a2,r2,l2,s2,c2,p2,m2,g2,_2,LC,kC,VC,qC,u2,C2,S2,Kf,v2,y2,x2,Xf,zC,f2,b2]})}}return e})();var M2=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 sPe=["showClosedGroups"],cPe=()=>["../","organization","bulk-import","Groups"],pPe=()=>[10,25,50,100],mPe=()=>["create"],dPe=e=>[e,"general"];function uPe(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,mPe)),a(2),v("",m(3,2,"labels.buttons.Create Group")," "))}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.name")))}function hPe(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function gPe(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 _Pe(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function CPe(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 vPe(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.externalId)}}function xPe(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 bPe(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 yPe(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 SPe(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function wPe(e,o){e&1&&b(0,"tr",29)}function PPe(e,o){if(e&1&&b(0,"tr",30),e&2){let t=o.$implicit;g("routerLink",Nt(1,dPe,t.id))}}var D2=(()=>{class e{constructor(){this.groupsService=T(An),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),fl(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 M2(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(sPe,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 z(s),H(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,uPe,4,5,"button",10),r()(),l(15,"table",11),X(16,12),F(17,fPe,3,3,"th",13)(18,hPe,2,1,"td",14),Z(),X(19,15),F(20,gPe,3,3,"th",16)(21,_Pe,2,1,"td",14),Z(),X(22,17),F(23,CPe,3,3,"th",16)(24,vPe,2,1,"td",14),Z(),X(25,18),F(26,xPe,3,3,"th",16)(27,bPe,4,3,"td",14),Z(),X(28,19),F(29,yPe,3,3,"th",13)(30,SPe,2,1,"td",14),Z(),F(31,wPe,1,0,"tr",20)(32,PPe,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,cPe)),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,pPe)))},dependencies:[ue,co,fe,st,Ue,gn,Ae,$e,Fe,ze,ve,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 TPe=()=>({confirm:!0}),E2=(()=>{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,TPe)),a(),v(" ",m(13,11,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,ve,Un,ho,Nn,$n,he],encapsulation:2})}}return e})();var MPe=()=>["./general"],DPe=()=>["./committee"],EPe=()=>["savings-accounts","create"],IPe=()=>["loans-accounts","create"],OPe=()=>["loans-accounts","glim-account","create"],APe=()=>["savings-accounts","gsim-account","create"],FPe=()=>["./notes"],kPe=e=>["./datatables",e];function BPe(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 RPe(e,o){if(e&1){let t=Y();l(0,"i",30),R("click",function(){z(t);let i=w(2);return H(i.doAction("Edit Meeting"))}),r()}}function NPe(e,o){if(e&1&&(l(0,"div")(1,"p"),c(2),p(3,"translate"),p(4,"dateFormat"),E(5,RPe,1,0,"i",29),b(6,"br"),c(7),p(8,"translate"),p(9,"lowercase"),r()()),e&2){let t=w();a(2),se(" ",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),se(" ",m(8,9,"labels.inputs.Meeting Frequency"),": ",m(9,11,t.groupViewData.collectionMeetingCalendar==null?null:t.groupViewData.collectionMeetingCalendar.frequency.value)," ")}}function LPe(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),se(" ",m(3,4,"labels.inputs.Next Meeting on"),": ",m(4,6,"labels.inputs.Unassigned")," "),a(5),se(" ",m(8,8,"labels.inputs.Meeting Frequency"),": ",m(9,10,"labels.inputs.N/A")," "))}function VPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){z(t);let i=w(2);return H(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 qPe(e,o){e&1&&(l(0,"span"),F(1,VPe,6,3,"button",23),r()),e&2&&(a(),g("mifosxHasPermission","UPDATE_GROUP"))}function zPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){z(t);let i=w();return H(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 HPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){z(t);let i=w();return H(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 GPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){z(t);let i=w();return H(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 jPe(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=xe(55);g("matMenuTriggerFor",t),a(4),h(m(5,2,"labels.buttons.Applications"))}}function $Pe(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 UPe(e,o){e&1&&(l(0,"span"),F(1,$Pe,3,3,"button",39),r()),e&2&&(a(),g("mifosxHasPermission","CREATE_LOAN"))}function WPe(e,o){e&1&&(l(0,"button",41),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,EPe)),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,IPe)),a(),v(" ",m(2,2,"labels.buttons.Group Loan Application")," "))}function YPe(e,o){e&1&&(l(0,"button",41),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,OPe)),a(),v(" ",m(2,2,"labels.buttons.GLIM Application")," "))}function JPe(e,o){e&1&&(l(0,"span"),F(1,YPe,3,5,"button",25),r()),e&2&&(a(),g("mifosxHasPermission","CREATE_LOAN"))}function KPe(e,o){e&1&&(l(0,"button",41),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,APe)),a(),v(" ",m(2,2,"labels.buttons.GSIM Application")," "))}function XPe(e,o){e&1&&(l(0,"span"),F(1,KPe,3,5,"button",25),r()),e&2&&(a(),g("mifosxHasPermission","CREATE_GSIMACCOUNT"))}function ZPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){z(t);let i=w(2);return H(i.doAction("Attendance"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Attendance")," "))}function eTe(e,o){e&1&&(l(0,"span"),F(1,ZPe,3,3,"button",23),r()),e&2&&(a(),g("mifosxHasPermission","SAVEORUPDATEATTENDANCE_MEETING"))}function tTe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){z(t);let i=w(2);return H(i.doAction("Assign Staff"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Assign Staff")," "))}function iTe(e,o){e&1&&(l(0,"span"),F(1,tTe,3,3,"button",23),r()),e&2&&(a(),g("mifosxHasPermission","ASSIGNSTAFF_GROUP"))}function nTe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){z(t);let i=w(2);return H(i.doAction("Unassign Staff"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Unassign Staff")," "))}function oTe(e,o){e&1&&(l(0,"span"),F(1,nTe,3,3,"button",23),r()),e&2&&(a(),g("mifosxHasPermission","UNASSIGNSTAFF_GROUP"))}function aTe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){z(t);let i=w(2);return H(i.doAction("Attach Meeting"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Attach Meeting")," "))}function rTe(e,o){e&1&&(l(0,"span"),F(1,aTe,3,3,"button",23),r()),e&2&&(a(),g("mifosxHasPermission","CREATE_MEETING"))}function lTe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){z(t);let i=w();return H(i.doAction("Close"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Close")," "))}function sTe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){z(t);let i=w();return H(i.doAction("Delete"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Delete")," "))}function cTe(e,o){if(e&1&&(l(0,"a",27,6),c(2),p(3,"translate"),r()),e&2){let t=xe(1);g("routerLink",oe(5,FPe))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Notes")," ")}}function pTe(e,o){if(e&1&&(l(0,"a",27,7),c(2),r()),e&2){let t=xe(1),n=w().$implicit;g("routerLink",Nt(3,kPe,n.registeredTableName))("active",t.isActive),a(2),v(" ",n.registeredTableName," ")}}function mTe(e,o){if(e&1&&(l(0,"span"),F(1,pTe,3,5,"a",28),r()),e&2){let t=o.$implicit;a(),g("mifosxHasPermission","READ_"+t.registeredTableName)}}var I2=(()=>{class e{constructor(){this.route=T(Ie),this.groupsService=T(An),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(E2).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,BPe,6,6,"span"),r(),l(44,"div",22),E(45,NPe,10,13,"div")(46,LPe,10,12,"div"),r()()(),l(47,"mat-menu",null,0),E(49,qPe,2,1,"span"),F(50,zPe,6,3,"button",23)(51,HPe,6,3,"button",23)(52,GPe,6,3,"button",23),E(53,jPe,6,4,"button",24),l(54,"mat-menu",null,1),E(56,UPe,2,1,"span"),F(57,WPe,3,5,"button",25)(58,QPe,3,5,"button",25),E(59,JPe,2,1,"span"),E(60,XPe,2,1,"span"),r(),l(61,"button",24),c(62),p(63,"translate"),r(),l(64,"mat-menu",null,2),E(66,eTe,2,1,"span"),E(67,iTe,2,1,"span"),E(68,oTe,2,1,"span"),E(69,rTe,2,1,"span"),F(70,lTe,3,3,"button",23)(71,sTe,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,cTe,4,6,"a",28),l(79,"a",27,4),c(81),p(82,"translate"),r(),Se(83,mTe,2,1,"span",null,Pe),r(),l(85,"mat-tab-nav-panel",null,5),b(87,"router-outlet"),r()()()),n&2){let s=xe(48),d=xe(65),u=xe(75),f=xe(80),_=xe(86);a(9),g("ngClass",m(10,43,i.groupViewData.status.code))("matTooltip",i.groupViewData.status.value),a(2),se(" ",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,MPe))("active",u.isActive),a(2),v(" ",m(77,61,"labels.inputs.General")," "),a(2),g("mifosxHasPermission","READ_GROUPNOTE"),a(),g("routerLink",oe(66,DPe))("active",f.isActive),a(2),v(" ",m(82,63,"labels.inputs.Committee")," "),a(2),we(i.groupDatatables)}},dependencies:[ue,co,fe,Ae,$e,Je,Ke,sa,Wr,S0,Yo,si,wi,oc,Jo,ke,vl,nc,ic,ir,nr,Na,or,ra,Sg,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 dTe=e=>["/clients",e,"general"],tN=e=>["../","loans-accounts",e,"general"],uTe=e=>["../","savings-accounts","gsim-account",e],fTe=e=>["../","loans-accounts","glim-account",e],hTe=e=>["../","savings-accounts",e,"actions","Deposit"],gTe=e=>["../","savings-accounts",e,"actions","Withdrawal"],_Te=e=>["../","savings-accounts",e,"actions","Approve"],CTe=e=>["../","savings-accounts",e,"actions","Undo Approval"],vTe=e=>["../","savings-accounts",e,"actions","Activate"],iN=e=>["../","savings-accounts",e,"transactions"];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.name")))}function bTe(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 yTe(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 STe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function wTe(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 PTe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function TTe(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 MTe(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 DTe(e,o){if(e&1&&(l(0,"td",12),E(1,MTe,4,4,"div",14),r()),e&2){let t=o.$implicit;a(),I(t.status.code!=="clientStatusType.closed"?1:-1)}}function ETe(e,o){e&1&&b(0,"tr",17)}function ITe(e,o){if(e&1&&b(0,"tr",18),e&2){let t=o.$implicit;g("routerLink",Nt(1,dTe,t.id))}}function OTe(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,xTe,3,3,"th",4)(7,bTe,4,5,"td",5),Z(),X(8,6),F(9,yTe,3,3,"th",4)(10,STe,2,1,"td",5),Z(),X(11,7),F(12,wTe,3,3,"th",4)(13,PTe,2,1,"td",5),Z(),X(14,8),F(15,TTe,3,3,"th",4)(16,DTe,2,1,"td",5),Z(),F(17,ETe,1,0,"tr",9)(18,ITe,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 ATe(e,o){if(e&1){let t=Y();l(0,"div",21)(1,"button",22),R("click",function(){z(t);let i=w(2);return H(i.toggleLoanAccountsOverview())}),c(2),r()()}if(e&2){let t=w(2);a(2),v(" ",t.showClosedLoanAccounts?"View Active Accounts":"View Closed Accounts"," ")}}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 kTe(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 BTe(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 RTe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}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.Original Loan")))}function LTe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.originalLoan)}}function VTe(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 qTe(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 zTe(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 HTe(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 GTe(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 jTe(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 $Te(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 UTe(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 WTe(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 YTe(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 JTe(e,o){if(e&1&&(l(0,"td",12),E(1,UTe,3,4,"button",31),E(2,WTe,3,4,"button",31),E(3,QTe,3,4,"button",31),E(4,YTe,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 KTe(e,o){e&1&&b(0,"tr",17)}function XTe(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,tN,t.id))}}function ZTe(e,o){if(e&1&&(l(0,"table",2),p(1,"accountsFilter"),X(2,6),F(3,FTe,3,3,"th",4)(4,kTe,4,5,"td",5),Z(),X(5,23),F(6,BTe,3,3,"th",4)(7,RTe,2,1,"td",5),Z(),X(8,24),F(9,NTe,3,3,"th",4)(10,LTe,2,1,"td",5),Z(),X(11,25),F(12,VTe,3,3,"th",4)(13,qTe,3,6,"td",5),Z(),X(14,26),F(15,zTe,3,3,"th",4)(16,HTe,3,6,"td",5),Z(),X(17,27),F(18,GTe,3,3,"th",4)(19,jTe,2,2,"td",5),Z(),X(20,28),F(21,$Te,3,3,"th",4)(22,JTe,5,4,"td",5),Z(),F(23,KTe,1,0,"tr",9)(24,XTe,1,3,"tr",29),r()),e&2){let t=w(2);g("dataSource",Ot(1,3,t.loanAccounts,"loan")),a(23),g("matHeaderRowDef",t.openLoansColumns),a(),g("matRowDefColumns",t.openLoansColumns)}}function e4e(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 t4e(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 i4e(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 n4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}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.Original Loan")))}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.lastActiveTransactionDate))}}function r4e(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 l4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.loanBalance)}}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.Amount Paid")))}function c4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountBalance)}}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.Type")))}function m4e(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 d4e(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 u4e(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 f4e(e,o){e&1&&b(0,"tr",17)}function h4e(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,tN,t.id))}}function g4e(e,o){if(e&1&&(l(0,"table",2),p(1,"accountsFilter"),X(2,6),F(3,e4e,3,3,"th",4)(4,t4e,4,5,"td",5),Z(),X(5,23),F(6,i4e,3,3,"th",4)(7,n4e,2,1,"td",5),Z(),X(8,24),F(9,o4e,3,3,"th",4)(10,a4e,3,3,"td",5),Z(),X(11,25),F(12,r4e,3,3,"th",4)(13,l4e,2,1,"td",5),Z(),X(14,26),F(15,s4e,3,3,"th",4)(16,c4e,2,1,"td",5),Z(),X(17,27),F(18,p4e,3,3,"th",4)(19,m4e,2,2,"td",5),Z(),X(20,37),F(21,d4e,3,3,"th",4)(22,u4e,3,3,"td",5),Z(),F(23,f4e,1,0,"tr",9)(24,h4e,1,3,"tr",29),r()),e&2){let t=w(2);g("dataSource",br(1,3,t.loanAccounts,"loan","closed")),a(23),g("matHeaderRowDef",t.closedLoansColumns),a(),g("matRowDefColumns",t.closedLoansColumns)}}function _4e(e,o){if(e&1&&(l(0,"div")(1,"div",19)(2,"div",20)(3,"h3"),c(4),p(5,"translate"),r()(),E(6,ATe,3,1,"div",21),p(7,"accountsFilter"),r(),E(8,ZTe,25,6,"table",2),E(9,g4e,25,7,"table",2),r()),e&2){let t=w();a(4),h(m(5,4,"labels.heading.Loan Accounts")),a(2),I(br(7,6,t.loanAccounts,"loan","closed").length?6:-1),a(2),I(t.showClosedLoanAccounts?-1:8),a(),I(t.showClosedLoanAccounts?9:-1)}}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.GSIM Id")))}function v4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.gsimId," ")}}function x4e(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 b4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNumber)}}function y4e(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 S4e(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 w4e(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 P4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.parentBalance)}}function T4e(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 M4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.savingsStatus)}}function D4e(e,o){e&1&&b(0,"tr",17)}function E4e(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,uTe,t.accountNumber))}}function I4e(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,C4e,3,3,"th",4)(9,v4e,2,1,"td",5),Z(),X(10,39),F(11,x4e,3,3,"th",4)(12,b4e,2,1,"td",5),Z(),X(13,40),F(14,y4e,3,3,"th",4)(15,S4e,2,1,"td",5),Z(),X(16,41),F(17,w4e,3,3,"th",4)(18,P4e,2,1,"td",5),Z(),X(19,42),F(20,T4e,3,3,"th",4)(21,M4e,2,1,"td",5),Z(),F(22,D4e,1,0,"tr",9)(23,E4e,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 O4e(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 A4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.glimId," ")}}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.Account Number")))}function k4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNumber)}}function B4e(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 R4e(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 N4e(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 L4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.parentPrincipalAmount)}}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.Status")))}function q4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.loanStatus)}}function z4e(e,o){e&1&&b(0,"tr",17)}function H4e(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,fTe,t.glimId))}}function G4e(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,O4e,3,3,"th",4)(9,A4e,2,1,"td",5),Z(),X(10,39),F(11,F4e,3,3,"th",4)(12,k4e,2,1,"td",5),Z(),X(13,40),F(14,B4e,3,3,"th",4)(15,R4e,2,1,"td",5),Z(),X(16,24),F(17,N4e,3,3,"th",4)(18,L4e,2,1,"td",5),Z(),X(19,42),F(20,V4e,3,3,"th",4)(21,q4e,2,1,"td",5),Z(),F(22,z4e,1,0,"tr",9)(23,H4e,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 j4e(e,o){if(e&1){let t=Y();l(0,"button",22),R("click",function(){z(t);let i=w(2);return H(i.toggleSavingAccountsOverview())}),c(1),r()}if(e&2){let t=w(2);a(),v(" ",t.showClosedSavingAccounts?"View Active Accounts":"View Closed Accounts"," ")}}function $4e(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 U4e(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 W4e(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 Y4e(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 J4e(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 K4e(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 X4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountBalance)}}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.Actions")))}function eMe(e,o){if(e&1){let t=Y();l(0,"button",48),R("click",function(i){z(t);let s=w(4);return H(s.routeEdit(i))}),b(1,"i",49),p(2,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(5,hTe,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Deposit")))}}function tMe(e,o){if(e&1){let t=Y();l(0,"button",48),R("click",function(i){z(t);let s=w(4);return H(s.routeEdit(i))}),b(1,"i",50),p(2,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(5,gTe,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Withdraw")))}}function iMe(e,o){if(e&1){let t=Y();l(0,"button",48),R("click",function(i){z(t);let s=w(4);return H(s.routeEdit(i))}),b(1,"i",33),p(2,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(5,_Te,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Approve")))}}function nMe(e,o){if(e&1){let t=Y();l(0,"button",48),R("click",function(i){z(t);let s=w(4);return H(s.routeEdit(i))}),b(1,"i",51),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.Undo Approval")))}}function oMe(e,o){if(e&1){let t=Y();l(0,"button",48),R("click",function(i){z(t);let s=w(4);return H(s.routeEdit(i))}),b(1,"i",52),p(2,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(5,vTe,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Activate")))}}function aMe(e,o){if(e&1&&(l(0,"td",12),E(1,eMe,3,7,"button",47),E(2,tMe,3,7,"button",47),E(3,iMe,3,7,"button",47),E(4,nMe,3,7,"button",47),E(5,oMe,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 rMe(e,o){e&1&&b(0,"tr",17)}function lMe(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,iN,t.id))}}function sMe(e,o){if(e&1&&(l(0,"table",2),p(1,"accountsFilter"),X(2,6),F(3,$4e,3,3,"th",4)(4,U4e,4,5,"td",5),Z(),X(5,45),F(6,W4e,3,3,"th",4)(7,Q4e,2,1,"td",5),Z(),X(8,46),F(9,Y4e,3,3,"th",4)(10,J4e,3,3,"td",5),Z(),X(11,41),F(12,K4e,3,3,"th",4)(13,X4e,2,1,"td",5),Z(),X(14,28),F(15,Z4e,3,3,"th",4)(16,aMe,6,5,"td",5),Z(),F(17,rMe,1,0,"tr",9)(18,lMe,1,3,"tr",29),r()),e&2){let t=w(2);g("dataSource",Ot(1,3,t.savingAccounts,"saving")),a(17),g("matHeaderRowDef",t.openSavingsColumns),a(),g("matRowDefColumns",t.openSavingsColumns)}}function cMe(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 pMe(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 mMe(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 dMe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function uMe(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 fMe(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 hMe(e,o){e&1&&b(0,"tr",17)}function gMe(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,iN,t.id))}}function _Me(e,o){if(e&1&&(l(0,"table",2),p(1,"accountsFilter"),X(2,6),F(3,cMe,3,3,"th",4)(4,pMe,4,5,"td",5),Z(),X(5,45),F(6,mMe,3,3,"th",4)(7,dMe,2,1,"td",5),Z(),X(8,37),F(9,uMe,3,3,"th",4)(10,fMe,3,3,"td",5),Z(),F(11,hMe,1,0,"tr",9)(12,gMe,1,3,"tr",29),r()),e&2){let t=w(2);g("dataSource",br(1,3,t.savingAccounts,"saving","closed")),a(11),g("matHeaderRowDef",t.closedSavingsColumns),a(),g("matRowDefColumns",t.closedSavingsColumns)}}function CMe(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,j4e,2,1,"button",44),p(8,"accountsFilter"),r()(),E(9,sMe,19,6,"table",2),E(10,_Me,13,7,"table",2),r()),e&2){let t=w();a(4),h(m(5,4,"labels.heading.Saving Accounts")),a(3),I(br(8,6,t.savingAccounts,"saving","closed").length?7:-1),a(2),I(t.showClosedSavingAccounts?-1:9),a(),I(t.showClosedSavingAccounts?10:-1)}}var O2=(()=>{class e{constructor(){this.route=T(Ie),this.groupsService=T(An),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,OTe,19,6,"div"),E(30,_4e,10,10,"div"),E(31,I4e,24,6,"div"),E(32,G4e,24,6,"div"),E(33,CMe,11,10,"div"),r()),n&2&&(a(2),h(m(3,20,"labels.heading.Group Details")),a(4),se(" ",m(7,22,"labels.inputs.Active Client Loans"),": ",i.groupSummary==null?null:i.groupSummary.activeClientLoans),a(3),se(" ",m(10,24,"labels.inputs.Active Client Borrowers"),": ",i.groupSummary==null?null:i.groupSummary.activeClientBorrowers),a(3),se(" ",m(13,26,"labels.inputs.Active Overdue Client Loans"),": ",i.groupSummary==null?null:i.groupSummary.overdueClientLoans),a(4),se(" ",m(17,28,"labels.inputs.Active Group Loans"),": ",i.groupSummary==null?null:i.groupSummary.activeGroupLoans),a(3),se(" ",m(20,30,"labels.inputs.Active Group Borrowers"),": ",i.groupSummary==null?null:i.groupSummary.activeGroupBorrowers),a(3),se(" ",m(23,32,"labels.inputs.Active Overdue Group Loans"),": ",i.groupSummary==null?null:i.groupSummary.overdueGroupLoans),a(4),se("",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,Ae,ve,_t,xt,vt,bt,Ct,yt,si,St,Pt,wt,Tt,Tg,Pi,he,go,rs],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 A2=(()=>{class e{constructor(){this.route=T(Ie),this.authenticationService=T(Qo),this.groupsService=T(An),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,A0],encapsulation:2})}}return e})();var vMe=()=>({confirm:!0}),F2=(()=>{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),se("",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,vMe)),a(),v(" ",m(13,12,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,ve,Un,ho,Nn,$n,he],encapsulation:2})}}return e})();var xMe=["rolesTable"],bMe=()=>["add-role"];function yMe(e,o){e&1&&(l(0,"button",6),b(1,"i",7),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,bMe)),a(2),v("\xA0 ",m(3,2,"labels.buttons.Add")," "))}function SMe(e,o){e&1&&(l(0,"div",4),F(1,yMe,4,5,"button",5),r()),e&2&&(a(),g("mifosxHasPermission","ASSIGNROLE_GROUP"))}function wMe(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 PMe(e,o){if(e&1&&(l(0,"td",18),c(1),r()),e&2){let t=o.$implicit;a(),h(t.clientName)}}function TMe(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 MMe(e,o){if(e&1&&(l(0,"td",18),c(1),r()),e&2){let t=o.$implicit;a(),h(t.role.name)}}function DMe(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 EMe(e,o){if(e&1&&(l(0,"td",18),c(1),r()),e&2){let t=o.$implicit;a(),h(t.clientId)}}function IMe(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 OMe(e,o){if(e&1){let t=Y();l(0,"button",20),R("click",function(){z(t);let i=w(2).$implicit,s=w(2);return H(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 AMe(e,o){e&1&&(l(0,"span"),F(1,OMe,3,4,"button",19),r()),e&2&&(a(),g("mifosxHasPermission","UNASSIGNROLE_GROUP"))}function FMe(e,o){if(e&1&&(l(0,"td",18),E(1,AMe,2,1,"span"),r()),e&2){let t=w(2);a(),I(t.groupStatus!=="Closed"?1:-1)}}function kMe(e,o){e&1&&b(0,"tr",22)}function BMe(e,o){e&1&&b(0,"tr",23)}function RMe(e,o){if(e&1&&(l(0,"div")(1,"table",8,0),X(3,9),F(4,wMe,3,3,"th",10)(5,PMe,2,1,"td",11),Z(),X(6,12),F(7,TMe,3,3,"th",10)(8,MMe,2,1,"td",11),Z(),X(9,13),F(10,DMe,3,3,"th",10)(11,EMe,2,1,"td",11),Z(),X(12,14),F(13,IMe,3,3,"th",10)(14,FMe,2,1,"td",11),Z(),F(15,kMe,1,0,"tr",15)(16,BMe,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 k2=(()=>{class e{constructor(){this.route=T(Ie),this.groupsService=T(An),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(F2,{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(xMe,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,SMe,2,1,"div",4),r(),E(7,RMe,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,Ae,ve,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 NMe=()=>["../"];function LMe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Group Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function VMe(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 qMe(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 zMe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function HMe(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 GMe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Submission Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}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(),se(" ",m(2,3,"labels.inputs.Activation Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $Me(e,o){if(e&1){let t=Y();l(0,"mat-form-field",10),R("click",function(){z(t);let i=xe(7);return H(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,jMe,7,9,"mat-error"),r()}if(e&2){let t=xe(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 UMe(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 WMe(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(){z(t);let i=w();return H(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=z(t).$index,s=w(2);return H(s.removeClient(i))}),b(4,"fa-icon",33),r()()}if(e&2){let t=o.$implicit;a(2),h(t.displayName)}}function YMe(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 B2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.clientsService=T(Oi),this.groupService=T(An),this.dateUtils=T(Zt),this.settingsService=T(At),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:["",[re.required,re.pattern("(^[A-z]).*")]],officeId:["",re.required],submittedOnDate:[this.settingsService.businessDate,re.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("",re.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,LMe,7,9,"mat-error"),E(11,VMe,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,qMe,2,2,"mat-option",8,Pe),r(),E(19,zMe,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,HMe,2,2,"mat-option",8,Pe),r()(),l(27,"mat-form-field",10),R("click",function(){z(s);let u=xe(34);return H(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,GMe,7,9,"mat-error"),r(),l(36,"mat-checkbox",13),c(37),p(38,"translate"),r(),E(39,$Me,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,UMe,2,2,"mat-option",8,Pe),r(),l(54,"div",17),E(55,WMe,25,15,"div",18),E(56,YMe,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 z(s),H(i.submit())}),c(62),p(63,"translate"),r()()()()()}if(n&2){let s=xe(34),d=xe(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,NMe)),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,Ue,Xe,dt,gn,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,fi,Za,Xa,wi,ke,pa,kp,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 R2=(()=>{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 JMe=()=>["../"];function KMe(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 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(),se(" ",m(2,3,"labels.inputs.Client Member")," ",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",4),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(),se(" ",m(2,3,"labels.inputs.Role")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function t5e(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 N2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(An),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:["",re.required],role:["",re.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,KMe,2,2,"mat-option",4,Pe),r(),E(12,XMe,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,ZMe,2,2,"mat-option",4,Pe),r(),E(20,e5e,7,9,"mat-error"),r()()(),l(21,"mat-card-actions",6)(22,"button",7),c(23),p(24,"translate"),r(),F(25,t5e,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,JMe)),a(),v(" ",m(24,12,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","ASSIGNROLE_GROUP"))},dependencies:[ue,fe,tt,Ue,Xe,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,gt,ft,ve,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var i5e=()=>["../../"];function n5e(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 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(),se(" ",m(2,3,"labels.inputs.Staff")," ",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(An),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,n5e,2,2,"mat-option",5,Pe),r(),E(12,o5e,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,i5e)),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,Ue,Xe,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,gt,ft,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var a5e=()=>["../../"];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(),se(" ",m(2,3,"labels.inputs.Closed On Date")," ",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-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function s5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Closure Reason")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var V2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(An),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(At),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:["",re.required],closureReasonId:["",re.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 z(s),H(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){z(s);let u=xe(12);return H(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,r5e,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,l5e,2,2,"mat-option",9,Pe),r(),E(21,s5e,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=xe(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,a5e)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var c5e=()=>["../../"];function p5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Activated On Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var q2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(An),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(At),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:["",re.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 z(s),H(i.submit())}),l(3,"mat-card-content")(4,"mat-form-field",3),R("click",function(){z(s);let u=xe(11);return H(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,p5e,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=xe(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,c5e)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var m5e=()=>["../../"];function d5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Start Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function u5e(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 f5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Repetition Frequency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function h5e(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,u5e,2,2,"mat-option",12,Pe),r(),E(7,f5e,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 g5e(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 _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(),se(" ",m(2,3,"labels.inputs.Repeition Interval")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function C5e(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,g5e,2,2,"mat-option",12,Pe),r(),E(7,_5e,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 v5e(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 x5e(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 b5e(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,v5e,2,2,"mat-option",12,Pe),r(),E(7,x5e,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 y5e(e,o){if(e&1){let t=Y();l(0,"button",15),R("click",function(){z(t);let i=w();return H(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 z2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(An),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(At),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:["",re.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("",re.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(){z(s);let u=xe(12);return H(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,d5e,7,9,"mat-error"),r(),l(14,"mat-checkbox",7),c(15),p(16,"translate"),r(),E(17,h5e,8,4,"mat-form-field"),E(18,C5e,8,4,"mat-form-field"),E(19,b5e,8,4,"mat-form-field"),r()(),l(20,"mat-card-actions",8)(21,"button",9),c(22),p(23,"translate"),r(),F(24,y5e,3,4,"button",10),r()()()()}if(n&2){let s=xe(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,m5e)),a(),v(" ",m(23,18,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_MEETING")}},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,fi,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var S5e=()=>["../../"];function w5e(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 P5e(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 T5e(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 M5e(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 D5e(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Present")))}function E5e(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Absent")))}function I5e(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Approved")))}function O5e(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Leave")))}function A5e(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Late")))}function F5e(e,o){if(e&1){let t=Y();l(0,"td",19),F(1,D5e,3,3,"span",20)(2,E5e,3,3,"span",20)(3,I5e,3,3,"span",20)(4,O5e,3,3,"span",20)(5,A5e,3,3,"span",20),l(6,"button",21),R("click",function(){let i=z(t).$implicit,s=w();return H(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 k5e(e,o){e&1&&b(0,"tr",23)}function B5e(e,o){e&1&&b(0,"tr",24)}function R5e(e,o){if(e&1){let t=Y();l(0,"button",25),R("click",function(){z(t);let i=w();return H(i.submit())}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Confirm")," "))}var H2=(()=>{class e{constructor(){this.route=T(Ie),this.dateUtils=T(Zt),this.router=T(qe),this.groupsService=T(An),this.dialog=T(Ht),this.settingsService=T(At),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,w5e,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,P5e,3,3,"th",7)(15,T5e,3,6,"td",8),Z(),X(16,9),F(17,M5e,3,3,"th",7)(18,F5e,8,6,"td",10),Z(),F(19,k5e,1,0,"tr",11)(20,B5e,1,0,"tr",12),r(),l(21,"mat-card-actions",13)(22,"button",14),c(23),p(24,"translate"),r(),F(25,R5e,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),se("",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,S5e)),a(),v(" ",m(24,17,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","SAVEORUPDATEATTENDANCE_MEETING"))},dependencies:[ue,ns,Xs,Zs,fe,Ue,gn,Ae,$e,Et,Fe,Be,qa,gt,ft,ve,Ke,_t,xt,vt,bt,Ct,yt,wi,ke,St,Pt,wt,Tt,Pi,he,Wn],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();function N5e(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 L5e(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=z(t),s=i.$implicit,d=i.$index,u=w(2);return H(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 V5e(e,o){if(e&1&&(l(0,"mat-nav-list"),Se(1,L5e,7,5,"div",16,Pe),r()),e&2){let t=w();a(),we(t.clientMembers)}}var G2=(()=>{class e{constructor(){this.route=T(Ie),this.groupsService=T(An),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,N5e,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 z(s),H(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,V5e,3,0,"mat-nav-list"),r()()}if(n&2){let s=xe(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,Ue,gn,$e,Fe,Be,ze,ft,Za,Xa,wi,ke,kp,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 q5e=()=>["../../"];function z5e(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 H5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Repetition Frequency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function G5e(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 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(),se(" ",m(2,3,"labels.inputs.Repeition Interval")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $5e(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 U5e(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 W5e(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,$5e,2,2,"mat-option",8,Pe),r(),E(7,U5e,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(),se(" ",m(2,3,"labels.inputs.Changes Affection Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Y5e(e,o){if(e&1){let t=Y();l(0,"button",17),R("click",function(){z(t);let i=w();return H(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 j2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(An),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(At),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:["",re.required],frequency:["",re.required],interval:["",re.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("",re.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-30",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 z(s),H(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,z5e,2,2,"mat-option",8,Pe),r(),E(17,H5e,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,G5e,2,2,"mat-option",8,Pe),r(),E(25,j5e,7,9,"mat-error"),r(),E(26,W5e,8,4,"mat-form-field"),l(27,"mat-form-field",10),R("click",function(){z(s);let u=xe(34);return H(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,Y5e,3,4,"button",15),r()()()()}if(n&2){let s=xe(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,q5e)),a(),v(" ",m(42,27,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_MEETING")}},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,qa,ze,gt,ft,mi,di,pi,ve,Ke,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:32rem}"]})}}return e})();var J5e=()=>["../../"];function K5e(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 X5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Existing Meeting Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Z5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Revised Meeting Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function eDe(e,o){if(e&1){let t=Y();l(0,"button",12),R("click",function(){z(t);let i=w();return H(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 $2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(An),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(At),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:["",re.required],newMeetingDate:["",re.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,K5e,3,4,"mat-option",5,Pe),r(),E(12,X5e,7,9,"mat-error"),r(),l(13,"mat-form-field",6),R("click",function(){z(s);let u=xe(20);return H(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,Z5e,7,9,"mat-error"),r()()(),l(22,"mat-card-actions",9)(23,"button",10),c(24),p(25,"translate"),r(),F(26,eDe,3,4,"button",11),r()()()()}if(n&2){let s=xe(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,J5e)),a(),v(" ",m(25,16,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_MEETING")}},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,Ke,Pi,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var tDe=()=>["../../"],iDe=e=>({id:e});function nDe(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",Nt(2,iDe,t.id)),a(),v(" ",t.displayName," ")}}function oDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Destination Group")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function aDe(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 rDe(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 lDe(e,o){if(e&1){let t=Y();l(0,"button",17),R("click",function(){z(t);let i=w();return H(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 U2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.groupsService=T(An),this.settingsService=T(At),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:["",re.required],inheritDestinationGroupLoanOfficer:[!1],destinationGroupId:["",re.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,nDe,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,oDe,7,9,"mat-error"),r()(),l(21,"mat-autocomplete",8,0),Se(23,aDe,2,2,"mat-option",5,Pe),r(),E(25,rDe,36,25,"div",9),r(),l(26,"mat-card-actions",10)(27,"button",11),c(28),p(29,"translate"),r(),F(30,lDe,3,4,"button",12),r()()()()),n&2){let s,d=xe(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,tDe)),a(),v(" ",m(29,17,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","TRANSFERCLIENTS_GROUP")}},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ze,gt,ft,ve,fi,Ke,Za,Xa,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 sDe(e,o){e&1&&b(0,"mifosx-group-assign-staff")}function cDe(e,o){e&1&&b(0,"mifosx-close-group")}function pDe(e,o){e&1&&b(0,"mifosx-activate-group")}function mDe(e,o){e&1&&b(0,"mifosx-attach-group-meeting")}function dDe(e,o){e&1&&b(0,"mifosx-group-attendance")}function uDe(e,o){e&1&&b(0,"mifosx-manage-group-members")}function fDe(e,o){e&1&&b(0,"mifosx-edit-group-meeting")}function hDe(e,o){e&1&&b(0,"mifosx-edit-group-meeting-schedule")}function gDe(e,o){e&1&&b(0,"mifosx-group-transfer-clients")}var W2=(()=>{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,sDe,1,0,"mifosx-group-assign-staff"),E(1,cDe,1,0,"mifosx-close-group"),E(2,pDe,1,0,"mifosx-activate-group"),E(3,mDe,1,0,"mifosx-attach-group-meeting"),E(4,dDe,1,0,"mifosx-group-attendance"),E(5,uDe,1,0,"mifosx-manage-group-members"),E(6,fDe,1,0,"mifosx-edit-group-meeting"),E(7,hDe,1,0,"mifosx-edit-group-meeting-schedule"),E(8,gDe,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,L2,V2,q2,z2,H2,G2,j2,$2,U2],encapsulation:2})}}return e})();var _De=()=>["../"];function CDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Group Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function vDe(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 xDe(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 bDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Submission Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function yDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Activation Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function SDe(e,o){if(e&1){let t=Y();l(0,"mat-form-field",8),R("click",function(){z(t);let i=xe(7);return H(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,yDe,7,9,"mat-error"),r()}if(e&2){let t=xe(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 Q2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.groupService=T(An),this.dateUtils=T(Zt),this.settingsService=T(At),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:["",[re.required,re.pattern("(^[A-z]).*")]],submittedOnDate:["",re.required],staffId:[""],externalId:[""]}),this.buildDependencies()}buildDependencies(){this.groupData.active?(this.editGroupForm.addControl("activationDate",new it("",re.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,CDe,7,9,"mat-error"),E(11,vDe,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,xDe,2,2,"mat-option",7,Pe),r()(),l(19,"mat-form-field",8),R("click",function(){z(s);let u=xe(26);return H(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,bDe,7,9,"mat-error"),r(),E(28,SDe,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 z(s),H(i.submit())}),c(39),p(40,"translate"),r()()()()()}if(n&2){let s=xe(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,_De)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:50rem}"]})}}return e})();var p5=(()=>{class e{constructor(){this.groupsService=T(An)}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 m5=(()=>{class e{constructor(){this.groupsService=T(An)}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 d5=(()=>{class e{constructor(){this.groupsService=T(An)}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 u5=(()=>{class e{constructor(){this.groupsService=T(An)}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 Y2=(()=>{class e{constructor(){this.groupsService=T(An)}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 f5=(()=>{class e{constructor(){this.groupsService=T(An)}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 h5=(()=>{class e{constructor(){this.groupsService=T(An)}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 wDe=[_o.withShell([{path:"groups",data:{title:"Groups",breadcrumb:"Groups",routeParamBreadcrumb:!1},children:[{path:"",component:D2},{path:"create",component:B2,data:{title:"Create Group",breadcrumb:"Create",routeParamBreadcrumb:!1},resolve:{offices:zr}},{path:":groupId",data:{title:"View Group",routeParamBreadcrumb:"groupId"},resolve:{groupViewData:uf},children:[{path:"",component:I2,resolve:{groupViewData:uf,groupDatatables:d5},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:O2,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{groupAccountsData:NT,groupSummary:p5,gsimData:LT,glimData:h5}},{path:"notes",component:A2,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{groupNotes:m5}},{path:"committee",component:k2,data:{title:"Committee",breadcrumb:"Committee",routeParamBreadcrumb:!1}},{path:"datatables",children:[{path:":datatableName",component:R2,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{groupDatatable:u5}}]}]},{path:"edit",component:Q2,data:{title:"Edit Group",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{groupAndTemplateData:Y2,groupViewData:uf}},{path:"committee",children:[{path:"",redirectTo:"../committee",pathMatch:"prefix"},{path:"add-role",data:{title:"Add Role",breadcrumb:"Add Role",routeParamBreadcrumb:!1},component:N2,resolve:{groupAndTemplateData:Y2}}]},{path:"actions/:action",data:{title:"Group Actions",breadcrumb:"action",routeParamBreadcrumb:"action"},component:W2,resolve:{groupActionData:f5}},{path:"loans-accounts",loadChildren:()=>import("./loans.module-3CU5NU4S.js").then(e=>e.LoansModule)},{path:"savings-accounts",loadChildren:()=>import("./savings.module-NVUDJ6BQ.js").then(e=>e.SavingsModule)}]}]}])],nN=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[uf,NT,p5,m5,d5,u5,Y2,f5,LT,h5],imports:[hn.forChild(wDe),hn]})}}return e})();var oN=(()=>{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,nN,D2,I2,O2,A2,k2,B2,R2,N2,F2,W2,L2,E2,V2,q2,Q2,z2,H2,G2,j2,$2,U2]})}}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 J2=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 PDe=["showClosedCenters"],TDe=()=>[10,25,50,100],MDe=()=>["../","organization","bulk-import","Centers"],DDe=()=>["create"],EDe=e=>[e,"general"];function IDe(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,MDe)),a(2),v("",m(3,2,"labels.buttons.Import Center")," "))}function ODe(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,DDe)),a(2),v("",m(3,2,"labels.buttons.Create Center")," "))}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.name")))}function FDe(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function kDe(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 BDe(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function RDe(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 NDe(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.externalId)}}function LDe(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 VDe(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 qDe(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 zDe(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function HDe(e,o){e&1&&b(0,"tr",30)}function GDe(e,o){if(e&1&&b(0,"tr",31),e&2){let t=o.$implicit;g("routerLink",Nt(1,EDe,t.id))}}var K2=(()=>{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),fl(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 J2(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(PDe,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 z(s),H(i.changeShowClosedCenters())}),c(9),p(10,"translate"),r()(),l(11,"div",8),F(12,IDe,4,5,"button",9)(13,ODe,4,5,"button",9),r()(),l(14,"table",10),X(15,11),F(16,ADe,3,3,"th",12)(17,FDe,2,1,"td",13),Z(),X(18,14),F(19,kDe,3,3,"th",15)(20,BDe,2,1,"td",13),Z(),X(21,16),F(22,RDe,3,3,"th",15)(23,NDe,2,1,"td",13),Z(),X(24,17),F(25,LDe,3,3,"th",15)(26,VDe,4,3,"td",13),Z(),X(27,18),F(28,qDe,3,3,"th",12)(29,zDe,2,1,"td",13),Z(),F(30,HDe,1,0,"tr",19)(31,GDe,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,TDe)))},dependencies:[ue,co,fe,st,Ue,gn,Ae,$e,Fe,ze,ve,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 jDe=()=>["../"];function $De(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Center Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function UDe(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 WDe(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(),se(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function YDe(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 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(),se(" ",m(2,3,"labels.inputs.Activation Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function KDe(e,o){if(e&1){let t=Y();l(0,"mat-form-field",11),R("click",function(){z(t);let i=xe(7);return H(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,JDe,7,9,"mat-error"),r()}if(e&2){let t=xe(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 XDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Submission Date")," ",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),a(),v(" ",t.name," ")}}function eEe(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(){z(t);let i=w();return H(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 tEe(e,o){if(e&1){let t=Y();l(0,"div",28)(1,"button",23),R("click",function(){let i=z(t).$index,s=w(2);return H(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 iEe(e,o){if(e&1&&(l(0,"mat-nav-list")(1,"h3",27),c(2),p(3,"translate"),r(),Se(4,tEe,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 nEe(e,o){if(e&1){let t=Y();l(0,"button",31),R("click",function(){z(t);let i=w();return H(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 X2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.centerService=T(Jn),this.settingsService=T(At),this.groupService=T(An),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:["",[re.required,re.pattern("(^[A-z]).*")]],officeId:["",re.required],submittedOnDate:["",re.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("",re.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,$De,7,9,"mat-error"),E(11,UDe,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,WDe,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,YDe,2,2,"mat-option",7,Pe),r()(),l(27,"mat-checkbox",9),c(28),p(29,"translate"),r(),E(30,KDe,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(){z(s);let u=xe(43);return H(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,XDe,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,ZDe,2,2,"mat-option",7,Pe),r()()(),l(52,"div",15),E(53,eEe,25,15,"div",16),E(54,iEe,6,3,"mat-nav-list"),r()(),l(55,"mat-card-actions",17)(56,"button",18),c(57),p(58,"translate"),r(),F(59,nEe,3,4,"button",19),r()()()()}if(n&2){let s=xe(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,jDe)),a(),v(" ",m(58,37,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_CENTER")}},dependencies:[ue,fe,tt,st,Ue,Xe,dt,gn,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,fi,Ke,wi,ke,pa,kp,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 oEe=()=>["./general"],aEe=()=>["savings-accounts","create"],rEe=()=>["./notes"],lEe=e=>["./datatables",e];function sEe(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=xe(36);a(),g("matMenuTriggerFor",t)}}function cEe(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 pEe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w();a(),se(" ",m(2,2,"labels.inputs.Staff"),": ",t.centerViewData.staffName," ")}}function mEe(e,o){if(e&1){let t=Y();l(0,"i",28),R("click",function(){z(t);let i=w(3);return H(i.doAction("Edit Meeting"))}),r()}}function dEe(e,o){e&1&&(l(0,"span"),F(1,mEe,1,0,"i",27),b(2,"br"),r()),e&2&&(a(),g("mifosxHasPermission","UPDATE_MEETING"))}function uEe(e,o){if(e&1&&(l(0,"div")(1,"p"),c(2),p(3,"translate"),p(4,"dateFormat"),E(5,dEe,3,1,"span"),c(6),p(7,"translate"),p(8,"lowercase"),r()()),e&2){let t=w();a(2),se(" ",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(),se(" ",m(7,9,"labels.inputs.Meeting Frequency"),": ",m(8,11,t.centerViewData.collectionMeetingCalendar==null?null:t.centerViewData.collectionMeetingCalendar.frequency.value)," ")}}function fEe(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),se(" ",m(3,4,"labels.inputs.Next Meeting on"),": ",m(4,6,"labels.text.Unassigned")," "),a(5),se(" ",m(8,8,"labels.inputs.Meeting Frequency"),": ",m(9,10,"labels.text.N/A")," "))}function hEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){z(t);let i=w(2);return H(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 gEe(e,o){e&1&&(l(0,"span"),F(1,hEe,6,3,"button",17),r()),e&2&&(a(),g("mifosxHasPermission","ACTIVATE_CENTER"))}function _Ee(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){z(t);let i=w();return H(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 CEe(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 vEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){z(t);let i=w();return H(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 xEe(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,aEe)),a(4),h(m(5,3,"labels.buttons.Centers Saving Application")))}function bEe(e,o){e&1&&(l(0,"span"),F(1,xEe,6,6,"button",36),r()),e&2&&(a(),g("mifosxHasPermission","CREATE_SAVINGSACCOUNT"))}function yEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){z(t);let i=w(2);return H(i.doAction("Attendance"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Attendance")," "))}function SEe(e,o){e&1&&(l(0,"span"),F(1,yEe,3,3,"button",17),r()),e&2&&(a(),g("mifosxHasPermission","SAVEORUPDATEATTENDANCE_MEETING"))}function wEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){z(t);let i=w(2);return H(i.doAction("Assign Staff"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Assign Staff")," "))}function PEe(e,o){e&1&&(l(0,"span"),F(1,wEe,3,3,"button",17),r()),e&2&&(a(),g("mifosxHasPermission","ASSIGNSTAFF_GROUP"))}function TEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){z(t);let i=w(2);return H(i.doAction("Unassign Staff"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Unassign Staff")," "))}function MEe(e,o){e&1&&(l(0,"span"),F(1,TEe,3,3,"button",17),r()),e&2&&(a(),g("mifosxHasPermission","UNASSIGNSTAFF_GROUP"))}function DEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){z(t);let i=w(2);return H(i.doAction("Delete"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Delete")," "))}function EEe(e,o){e&1&&(l(0,"span"),F(1,DEe,3,3,"button",17),r()),e&2&&(a(),g("mifosxHasPermission","DELETE_CENTER"))}function IEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){z(t);let i=w();return H(i.doAction("Close"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Close")," "))}function OEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){z(t);let i=w(2);return H(i.doAction("Attach Meeting"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Attach Meeting")," "))}function AEe(e,o){e&1&&(l(0,"span"),F(1,OEe,3,3,"button",17),r()),e&2&&(a(),g("mifosxHasPermission","CREATE_MEETING"))}function FEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){z(t);let i=w();return H(i.doAction("Staff Assignment History"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Staff Assignment History")," "))}function kEe(e,o){if(e&1&&(l(0,"a",21,4),c(2),p(3,"translate"),r()),e&2){let t=xe(1);g("routerLink",oe(5,rEe))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Notes")," ")}}function BEe(e,o){if(e&1&&(l(0,"a",21,5),c(2),r()),e&2){let t=xe(1),n=w().$implicit;g("routerLink",Nt(3,lEe,n.registeredTableName))("active",t.isActive),a(2),v(" ",n.registeredTableName," ")}}function REe(e,o){if(e&1&&(l(0,"span"),F(1,BEe,3,5,"a",22),r()),e&2){let t=o.$implicit;a(),g("mifosxHasPermission","READ_"+t.registeredTableName)}}var Z2=(()=>{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,sEe,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,cEe,5,5,"span"),E(27,pEe,4,4,"span"),c(28),p(29,"translate"),p(30,"dateFormat"),b(31,"br"),r()(),l(32,"div",16),E(33,uEe,9,13,"div")(34,fEe,10,12,"div"),r()()()(),l(35,"mat-menu",null,0),E(37,gEe,2,1,"span"),F(38,_Ee,6,3,"button",17)(39,CEe,6,4,"button",18)(40,vEe,6,3,"button",17),E(41,bEe,2,1,"span"),l(42,"button",19),c(43),p(44,"translate"),r(),l(45,"mat-menu",null,1),E(47,SEe,2,1,"span"),E(48,PEe,2,1,"span"),E(49,MEe,2,1,"span"),E(50,EEe,2,1,"span"),F(51,IEe,3,3,"button",17),E(52,AEe,2,1,"span"),F(53,FEe,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,kEe,4,6,"a",22),Se(61,REe,2,1,"span",null,Pe),r(),l(63,"mat-tab-nav-panel",null,3),b(65,"router-outlet"),r()()()),n&2){let s=xe(46),d=xe(57),u=xe(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),se(" ",m(21,38,"labels.inputs.Account")," #:",i.centerViewData.accountNo," "),a(3),se(" ",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(),se(" ",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,oEe))("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,Ae,$e,Je,Ke,sa,Wr,S0,Yo,si,wi,oc,Jo,ke,vl,Ea,nc,ic,ir,nr,Na,or,ra,Sg,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 NEe=e=>["/groups",e,"general"],aN=e=>["../","savings-accounts",e,"actions","Deposit"],rN=e=>["../","savings-accounts",e,"actions","Withdrawal"],LEe=e=>["../","savings-accounts",e,"actions","Approve"],VEe=e=>["../","savings-accounts",e,"actions","Undo Approval"],qEe=e=>["../","savings-accounts",e,"actions","Activate"],zEe=e=>["../","savings-accounts",e,"transactions"];function HEe(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 GEe(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 jEe(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 $Ee(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 UEe(e,o){if(e&1&&(l(0,"td",13),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function WEe(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 YEe(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 JEe(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 KEe(e,o){e&1&&b(0,"tr",15)}function XEe(e,o){if(e&1&&b(0,"tr",16),e&2){let t=o.$implicit;g("routerLink",Nt(1,NEe,t.id))}}function ZEe(e,o){if(e&1&&(l(0,"h3"),c(1),p(2,"translate"),r(),l(3,"table",3),X(4,4),F(5,GEe,3,3,"th",5)(6,jEe,4,6,"td",6),Z(),X(7,7),F(8,$Ee,3,3,"th",5)(9,UEe,2,1,"td",6),Z(),X(10,8),F(11,WEe,3,3,"th",5)(12,QEe,2,1,"td",6),Z(),X(13,9),F(14,YEe,3,3,"th",5)(15,JEe,3,3,"td",6),Z(),F(16,KEe,1,0,"tr",10)(17,XEe,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 eIe(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 tIe(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 iIe(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 nIe(e,o){if(e&1&&(l(0,"td",13),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function oIe(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 aIe(e,o){if(e&1&&(l(0,"td",13),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountBalance)}}function rIe(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 lIe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(i){z(t);let s=w(5);return H(s.routeEdit(i))}),b(1,"i",22),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.Deposit")))}}function sIe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(i){z(t);let s=w(5);return H(s.routeEdit(i))}),b(1,"i",22),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.Deposit")))}}function cIe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(i){z(t);let s=w(5);return H(s.routeEdit(i))}),b(1,"i",23),p(2,"translate"),r()}if(e&2){let t=w(2).$implicit;g("routerLink",Nt(5,rN,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Withdraw")))}}function pIe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(i){z(t);let s=w(5);return H(s.routeEdit(i))}),b(1,"i",23),p(2,"translate"),r()}if(e&2){let t=w(2).$implicit;g("routerLink",Nt(5,rN,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Withdraw")))}}function mIe(e,o){if(e&1&&(E(0,lIe,3,7,"button",20),E(1,sIe,3,7,"button",20),E(2,cIe,3,7,"button",20),E(3,pIe,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 dIe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(i){z(t);let s=w(4);return H(s.routeEdit(i))}),b(1,"i",24),p(2,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(5,LEe,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Approve")))}}function uIe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(i){z(t);let s=w(4);return H(s.routeEdit(i))}),b(1,"i",25),p(2,"translate"),r(),l(3,"button",21),R("click",function(i){z(t);let s=w(4);return H(s.routeEdit(i))}),b(4,"i",26),p(5,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(10,VEe,t.id)),a(),g("matTooltip",Le(m(2,6,"tooltips.Undo Approve"))),a(2),g("routerLink",Nt(12,qEe,t.id)),a(),g("matTooltip",Le(m(5,8,"tooltips.Activate")))}}function fIe(e,o){if(e&1&&(l(0,"td",13),E(1,mIe,4,4),E(2,dIe,3,7,"button",20),E(3,uIe,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 hIe(e,o){e&1&&b(0,"tr",15)}function gIe(e,o){if(e&1&&b(0,"tr",16),e&2){let t=o.$implicit;g("routerLink",Nt(1,zEe,t.id))}}function _Ie(e,o){if(e&1&&(l(0,"h3"),c(1),p(2,"translate"),r(),l(3,"table",3),X(4,4),F(5,eIe,3,3,"th",5)(6,tIe,4,6,"td",6),Z(),X(7,17),F(8,iIe,3,3,"th",5)(9,nIe,2,1,"td",6),Z(),X(10,18),F(11,oIe,3,3,"th",5)(12,aIe,2,1,"td",6),Z(),X(13,19),F(14,rIe,3,3,"th",5)(15,fIe,4,3,"td",6),Z(),F(16,hIe,1,0,"tr",10)(17,gIe,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 CIe(e,o){if(e&1&&E(0,_Ie,18,6),e&2){let t=w();I(t.savingsAccountData.length>0?0:-1)}}var ev=(()=>{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,HEe,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,ZEe,18,6),E(30,CIe,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),se(" ",m(8,20,"labels.inputs.Active Clients"),": ",i.centerSummaryData.activeClients),a(3),se(" ",m(11,22,"labels.inputs.Active Group Loans"),": ",i.centerSummaryData.activeGroupLoans),a(3),se(" ",m(14,24,"labels.inputs.Active Client Loans"),": ",i.centerSummaryData.activeClientLoans),a(3),se(" ",m(17,26,"labels.inputs.Active Overdue Group Loans"),": ",i.centerSummaryData.overdueGroupLoans),a(4),se(" ",m(21,28,"labels.inputs.Active Group Borrowers"),": ",i.centerSummaryData.activeGroupBorrowers),a(3),se(" ",m(24,30,"labels.inputs.Active Client Borrowers"),": ",i.centerSummaryData.activeClientBorrowers),a(3),se(" ",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,Ae,ve,_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 tv=(()=>{class e{constructor(){this.route=T(Ie),this.authenticationService=T(Qo),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,A0],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}"]})}}return e})();var iv=(()=>{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 vIe=()=>["../general"];function xIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Center Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function bIe(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 yIe(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 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(),se(" ",m(2,3,"labels.inputs.Activation Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wIe(e,o){if(e&1){let t=Y();X(0,11),R("click",function(){z(t);let i=xe(8);return H(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,SIe,7,9,"mat-error"),r(),Z()}if(e&2){let t=xe(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 nv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.centersService=T(Jn),this.settingsService=T(At),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,[re.required,re.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,re.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,xIe,7,9,"mat-error"),E(11,bIe,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,yIe,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,wIe,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,vIe)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var PIe=()=>["../../"];function TIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Activated On Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var ov=(()=>{class e{constructor(){this.formBuilder=T(nt),this.centersService=T(Jn),this.settingsService=T(At),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,re.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 z(s),H(i.submit())}),l(3,"mat-card-content")(4,"mat-form-field",3),R("click",function(){z(s);let u=xe(11);return H(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,TIe,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=xe(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,PIe)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var MIe=()=>["../../"];function DIe(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 EIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Staff")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var av=(()=>{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,DIe,2,2,"mat-option",5,Pe),r(),E(12,EIe,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,MIe)),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,Ue,Xe,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,gt,ft,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var IIe=()=>["../../"];function OIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Closed On Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function AIe(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 FIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Closure Reason")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function kIe(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 rv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.centersService=T(Jn),this.settingsService=T(At),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:["",re.required],closureReasonId:["",re.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 z(s),H(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){z(s);let u=xe(12);return H(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,OIe,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,AIe,2,2,"mat-option",9,Pe),r(),E(21,FIe,7,9,"mat-error"),r()()(),l(22,"mat-card-actions",10)(23,"button",11),c(24),p(25,"translate"),r(),F(26,kIe,3,4,"button",12),r()()()()}if(n&2){let s=xe(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,IIe)),a(),v(" ",m(25,16,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CLOSE_CENTER")}},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var BIe=()=>["../../"];function RIe(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 NIe(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 LIe(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 VIe(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 qIe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Present")))}function zIe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Absent")))}function HIe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Approved")))}function GIe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Leave")))}function jIe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Late")))}function $Ie(e,o){if(e&1){let t=Y();l(0,"td",19),F(1,qIe,3,3,"span",20)(2,zIe,3,3,"span",20)(3,HIe,3,3,"span",20)(4,GIe,3,3,"span",20)(5,jIe,3,3,"span",20),l(6,"button",21),R("click",function(){let i=z(t).$implicit,s=w();return H(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 UIe(e,o){e&1&&b(0,"tr",23)}function WIe(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(){z(t);let i=w();return H(i.submit())}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Confirm")," "))}var lv=(()=>{class e{constructor(){this.route=T(Ie),this.dateUtils=T(Zt),this.router=T(qe),this.centersService=T(Jn),this.settingsService=T(At),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,RIe,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,NIe,3,3,"th",7)(15,LIe,3,6,"td",8),Z(),X(16,9),F(17,VIe,3,3,"th",7)(18,$Ie,8,6,"td",10),Z(),F(19,UIe,1,0,"tr",11)(20,WIe,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),se("",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,BIe)),a(),v(" ",m(24,17,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_MEETING"))},dependencies:[ue,ns,Xs,Zs,fe,Ue,gn,Ae,$e,Et,Fe,Be,qa,gt,ft,ve,Ke,_t,xt,vt,bt,Ct,yt,wi,ke,St,Pt,wt,Tt,Pi,he,Wn],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var YIe=()=>["../../"];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(),se(" ",m(2,3,"labels.inputs.Start Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function KIe(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 XIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Repetition Frequency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ZIe(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,KIe,2,2,"mat-option",12,Pe),r(),E(7,XIe,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 e6e(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 t6e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Repetition Interval")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function i6e(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,e6e,2,2,"mat-option",12,Pe),r(),E(7,t6e,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 n6e(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 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",14),Se(5,n6e,2,2,"mat-option",12,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.centerMeetingForm.controls.repeatsOnDay.hasError("repeatsOnDay")?7:-1)}}var sv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.centersService=T(Jn),this.settingsService=T(At),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:["",re.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("",re.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(){z(s);let u=xe(12);return H(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,JIe,7,9,"mat-error"),r(),l(14,"mat-checkbox",7),c(15),p(16,"translate"),r(),E(17,ZIe,8,4,"mat-form-field"),E(18,i6e,8,4,"mat-form-field"),E(19,a6e,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 z(s),H(i.submit())}),c(25),p(26,"translate"),r()()()()()}if(n&2){let s=xe(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,YIe)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,fi,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var r6e=()=>["../../"];function l6e(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 s6e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Repetition Frequency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function c6e(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 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(),se(" ",m(2,3,"labels.inputs.Repetition Interval")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function m6e(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 d6e(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 u6e(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,m6e,2,2,"mat-option",8,Pe),r(),E(7,d6e,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 f6e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Changes Affection Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var cv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.centersService=T(Jn),this.settingsService=T(At),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:["",re.required],frequency:["",re.required],interval:["",re.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("",re.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 z(s),H(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,l6e,2,2,"mat-option",8,Pe),r(),E(17,s6e,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,c6e,2,2,"mat-option",8,Pe),r(),E(25,p6e,7,9,"mat-error"),r(),E(26,u6e,8,4,"mat-form-field"),l(27,"mat-form-field",10),R("click",function(){z(s);let u=xe(34);return H(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,f6e,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 z(s),H(i.submit())}),c(44),p(45,"translate"),r()()()()()}if(n&2){let s=xe(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,r6e)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,qa,ze,gt,ft,mi,di,pi,ve,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var h6e=()=>["../../"];function g6e(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 _6e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Existing Meeting Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}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(),se(" ",m(2,3,"labels.inputs.Revised Meeting Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var pv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.centersService=T(Jn),this.settingsService=T(At),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:["",re.required],newMeetingDate:["",re.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,g6e,3,4,"mat-option",5,Pe),r(),E(12,_6e,7,9,"mat-error"),r(),l(13,"mat-form-field",6),R("click",function(){z(s);let u=xe(20);return H(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,C6e,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 z(s),H(i.submit())}),c(27),p(28,"translate"),r()()()()()}if(n&2){let s=xe(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,h6e)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,Pi,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();function v6e(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 x6e(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=z(t),s=i.$implicit,d=i.$index,u=w(2);return H(u.removeGroup(d,s))}),b(4,"fa-icon",19),r()()}if(e&2){let t=o.$implicit;a(2),h(t.name)}}function b6e(e,o){if(e&1&&(l(0,"mat-nav-list"),Se(1,x6e,5,1,"div",16,Pe),r()),e&2){let t=w();a(),we(t.groupMembers)}}var mv=(()=>{class e{constructor(){this.route=T(Ie),this.centersService=T(Jn),this.groupsService=T(An),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,v6e,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 z(s),H(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,b6e,3,0,"mat-nav-list"),r()()}if(n&2){let s=xe(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,Ue,gn,$e,Fe,Be,ze,ft,Za,Xa,wi,ke,kp,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 y6e=()=>["../../"],dv=(()=>{class e{constructor(){this.sanitizer=T(ec),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,y6e)),a(2),v("",m(5,3,"labels.buttons.Back")," "),a(2),g("src",i.pentahoUrl,_g))},dependencies:[ue,fe,Ae,$e,ve,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 S6e(e,o){e&1&&b(0,"mifosx-activate-center")}function w6e(e,o){e&1&&b(0,"mifosx-center-assign-staff")}function P6e(e,o){e&1&&b(0,"mifosx-close-center")}function T6e(e,o){e&1&&b(0,"mifosx-center-attendance")}function M6e(e,o){e&1&&b(0,"mifosx-attach-center-meeting")}function D6e(e,o){e&1&&b(0,"mifosx-edit-center-meeting")}function E6e(e,o){e&1&&b(0,"mifosx-edit-center-meeting-schedule")}function I6e(e,o){e&1&&b(0,"mifosx-manage-groups")}function O6e(e,o){e&1&&b(0,"mifosx-staff-assignment-history")}var uv=(()=>{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,S6e,1,0,"mifosx-activate-center"),E(1,w6e,1,0,"mifosx-center-assign-staff"),E(2,P6e,1,0,"mifosx-close-center"),E(3,T6e,1,0,"mifosx-center-attendance"),E(4,M6e,1,0,"mifosx-attach-center-meeting"),E(5,D6e,1,0,"mifosx-edit-center-meeting"),E(6,E6e,1,0,"mifosx-edit-center-meeting-schedule"),E(7,I6e,1,0,"mifosx-manage-groups"),E(8,O6e,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,ov,av,rv,lv,sv,cv,pv,mv,dv],encapsulation:2})}}return e})();var Zf=(()=>{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 e1=(()=>{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 t1=(()=>{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 i1=(()=>{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 n1=(()=>{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 o1=(()=>{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 a1=(()=>{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 g5=(()=>{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 _5=(()=>{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 A6e=[_o.withShell([{path:"centers",data:{title:"Centers",breadcrumb:"Centers"},children:[{path:"",component:K2},{path:"create",component:X2,data:{title:"Create Center",breadcrumb:"Create"},resolve:{offices:zr}},{path:":centerId",data:{title:"Centers View",routeParamBreadcrumb:"centerId"},resolve:{centerViewData:Zf},children:[{path:"",component:Z2,resolve:{centerDatatables:a1},children:[{path:"general",component:ev,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{centerSummaryData:i1,centerViewData:t1,savingsAccountData:e1}},{path:"notes",component:tv,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{centerNotes:n1}},{path:"datatables",children:[{path:":datatableName",component:iv,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{centerDatatable:o1}}]}]},{path:"actions/:action",data:{title:"Center Actions",breadcrumb:"action",routeParamBreadcrumb:"action"},component:uv,resolve:{centersActionData:g5}},{path:"edit",component:nv,data:{title:"Edit Center",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{centerData:_5}}]}]}])],lN=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[zr,Zf,e1,t1,i1,n1,o1,a1,g5,_5],imports:[hn.forChild(A6e),hn]})}}return e})();var sN=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[Zf,o1,a1,i1,t1,e1,n1],imports:[oo,lN,ha,Er,K2,X2,Z2,ev,tv,iv,uv,ov,av,rv,lv,sv,cv,pv,mv,dv,nv]})}}return e})();var F6e=["chartofAccounts"],k6e=["templateChartofAccounts"],B6e=["accountsLinked"],R6e=["templateAccountsLinked"],N6e=["migrateOpeningBalances"],L6e=["templateMigrateOpeningBalances"],V6e=["closingEntries"],q6e=["templateClosingEntries"],z6e=["createJournalEntries"],H6e=["templateCreateJournalEntries"],cN=()=>["journal-entries/frequent-postings"],pN=()=>["journal-entries/create"],mN=()=>["journal-entries"],dN=()=>["financial-activity-mappings"],uN=()=>["migrate-opening-balances"],fN=()=>["chart-of-accounts"],hN=()=>["closing-entries"],gN=()=>["accounting-rules"],_N=()=>["periodic-accruals"],CN=()=>["provisioning-entries"];function G6e(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.These are predefined postings")," "))}function j6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(0))}),r()}}function $6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(0))}),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",17),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,cN)),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 W6e(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.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(){z(t);let i=w(2);return H(i.arrowBooleansToggle(1))}),r()}}function Y6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(1))}),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",25),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,pN)),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 K6e(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.Advanced search option for journal entries")," "))}function X6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(2))}),r()}}function Z6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(2))}),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",26),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,mN)),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 tOe(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.List of Financial Activities and GL Account Mappings")," "))}function iOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(3))}),r()}}function nOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(3))}),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",27),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,dN)),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 aOe(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.Set or update office-level opening balances for GL accounts")," "))}function rOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(4))}),r()}}function lOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(4))}),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",28),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,uN)),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 cOe(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.List of accounts used by the organization")," "))}function pOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(5))}),r()}}function mOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(5))}),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",29),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,fN)),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 uOe(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.Journal entries made at the end of accounting period")," "))}function fOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(6))}),r()}}function hOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(6))}),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",30),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,hN)),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 _Oe(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.List of all accounting rules")," "))}function COe(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(7))}),r()}}function vOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(7))}),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",31),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,gN)),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 bOe(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.Accrues income, expenses and liabilities")," "))}function yOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(8))}),r()}}function SOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(8))}),r()}}function wOe(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,bOe,3,5,"p",19),r()(),l(9,"div",20),E(10,yOe,1,0,"fa-icon",21),E(11,SOe,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.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 POe(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.Create provisioning entries")," "))}function TOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(9))}),r()}}function MOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(9))}),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",33),r(),l(5,"div",18),c(6),p(7,"translate"),E(8,POe,3,5,"p",19),r()(),l(9,"div",20),E(10,TOe,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,CN)),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 EOe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStepChartofAccounts())}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 IOe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStepAccountsLinked())}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 OOe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStepMigrateOpeningBalances())}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 AOe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStepClosingEntries())}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 FOe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStepCreateJournalEntries())}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 fv=(()=>{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(F6e,5),Ee(k6e,5),Ee(B6e,5),Ee(R6e,5),Ee(N6e,5),Ee(L6e,5),Ee(V6e,5),Ee(q6e,5),Ee(z6e,5),Ee(H6e,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,U6e,12,8,"mat-list-item",13),l(6,"div",null,0),F(8,J6e,12,8,"mat-list-item",13),r(),F(9,eOe,12,8,"mat-list-item",13),l(10,"div",null,1),F(12,oOe,12,8,"mat-list-item",13),r(),l(13,"div",null,2),F(15,sOe,12,8,"mat-list-item",13),r()()(),l(16,"div",12)(17,"mat-nav-list")(18,"div",null,3),F(20,dOe,12,8,"mat-list-item",13),r(),l(21,"div",null,4),F(23,gOe,12,8,"mat-list-item",13),r(),F(24,xOe,12,8,"mat-list-item",13)(25,wOe,12,8,"mat-list-item",13)(26,DOe,12,8,"mat-list-item",13),r()()()()(),F(27,EOe,16,15,"ng-template",null,5,ti)(29,IOe,16,15,"ng-template",null,6,ti)(31,OOe,16,15,"ng-template",null,7,ti)(33,AOe,16,15,"ng-template",null,8,ti)(35,FOe,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,Ae,$e,ve,Ke,pa,Vo,Jo,ke,ca,he],styles:["mat-card[_ngcontent-%COMP%]{overflow:hidden}.layout-row.responsive-column[_ngcontent-%COMP%]{overflow:hidden}.layout-row.responsive-column[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{overflow:hidden}"]})}}return e})();var kOe=()=>["../../"];function BOe(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 ROe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function NOe(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 LOe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Accounting Rule")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function VOe(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 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(),se(" ",m(2,3,"labels.inputs.Currency")," ",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",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function HOe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",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 GOe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Debit Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function jOe(e,o){if(e&1){let t=Y();l(0,"button",34),R("click",function(){z(t);let i=w().$index,s=w();return H(s.removeAffectedGLEntry(s.debits,i))}),b(1,"fa-icon",35),r()}}function $Oe(e,o){if(e&1){let t=Y();l(0,"button",36),R("click",function(){z(t);let i=w(2);return H(i.addAffectedGLEntry(i.debits))}),b(1,"fa-icon",37),r()}}function UOe(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,zOe,2,2,"mat-option",6,Pe),r(),E(9,HOe,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,GOe,7,9,"mat-error"),r(),l(16,"span",31),E(17,jOe,2,0,"button",32),E(18,$Oe,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 WOe(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(),se(" ",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 YOe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Credit Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function JOe(e,o){if(e&1){let t=Y();l(0,"button",34),R("click",function(){z(t);let i=w().$index,s=w();return H(s.removeAffectedGLEntry(s.credits,i))}),b(1,"fa-icon",35),r()}}function KOe(e,o){if(e&1){let t=Y();l(0,"button",36),R("click",function(){z(t);let i=w(2);return H(i.addAffectedGLEntry(i.credits))}),b(1,"fa-icon",37),r()}}function XOe(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,WOe,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,YOe,7,9,"mat-error"),r(),l(16,"span",31),E(17,JOe,2,0,"button",32),E(18,KOe,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 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(),se(" ",m(2,3,"labels.inputs.Transaction Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function eAe(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 tAe(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 hv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.settingsService=T(At),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:["",re.required],accountingRule:["",re.required],currencyCode:["",re.required],debits:this.formBuilder.array([]),credits:this.formBuilder.array([]),referenceNumber:[""],transactionDate:["",re.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:["",re.required],amount:["",re.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 z(s),H(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,BOe,2,2,"mat-option",6,Pe),r(),E(12,ROe,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,NOe,2,2,"mat-option",6,Pe),r(),E(20,LOe,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,VOe,2,2,"mat-option",6,Pe),r(),E(28,qOe,7,9,"mat-error"),r(),b(29,"span",9),Se(30,UOe,19,11,"div",10,Pe),Se(32,XOe,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(){z(s);let u=xe(46);return H(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,ZOe,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,eAe,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,tAe,3,4,"button",26),r()()()()}if(n&2){let s=xe(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,kOe)),a(),v(" ",m(88,48,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_JOURNALENTRY")}},dependencies:[ue,fe,tt,st,tn,Ue,Xe,dt,Ze,et,la,La,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,Ke,wi,ke,Ln,he],encapsulation:2})}}return e})();var iAe=["createJournalFormRef"],nAe=["templateCreateJournalFormRef"],oAe=()=>["../../"];function aAe(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 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(),se(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function lAe(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 sAe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Currency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function cAe(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 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(),se(" ",m(2,3,"labels.inputs.Debit Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function mAe(e,o){if(e&1){let t=Y();l(0,"button",36),R("click",function(){z(t);let i=w().$index,s=w();return H(s.removeAffectedGLEntry(s.debits,i))}),b(1,"fa-icon",37),r()}}function dAe(e,o){if(e&1){let t=Y();l(0,"button",38),R("click",function(){z(t);let i=w(2);return H(i.addAffectedGLEntry(i.debits))}),b(1,"fa-icon",39),r()}}function uAe(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){z(t);let s=w();return H(s.onAmountInput(i))}),r(),E(8,pAe,7,9,"mat-error"),r(),l(9,"span",33),E(10,mAe,2,0,"button",34),E(11,dAe,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 fAe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Credit Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function hAe(e,o){if(e&1){let t=Y();l(0,"button",36),R("click",function(){z(t);let i=w().$index,s=w();return H(s.removeAffectedGLEntry(s.credits,i))}),b(1,"fa-icon",37),r()}}function gAe(e,o){if(e&1){let t=Y();l(0,"button",38),R("click",function(){z(t);let i=w(2);return H(i.addAffectedGLEntry(i.credits))}),b(1,"fa-icon",39),r()}}function _Ae(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){z(t);let s=w();return H(s.onAmountInput(i))}),r(),E(8,fAe,7,9,"mat-error"),r(),l(9,"span",33),E(10,hAe,2,0,"button",34),E(11,gAe,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 CAe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Transaction Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function vAe(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 xAe(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 bAe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(11),p(12,"translate"),r(),l(13,"button",45),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStep())}),c(14),p(15,"translate"),r(),l(16,"button",45),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 gv=(()=>{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(At),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:["",re.required],currencyCode:["",re.required],debits:this.formBuilder.array([this.createAffectedGLEntryForm()]),credits:this.formBuilder.array([this.createAffectedGLEntryForm()]),referenceNumber:[""],transactionDate:["",re.required],paymentTypeId:[""],accountNumber:[""],checkNumber:[""],routingCode:[""],receiptNumber:[""],bankNumber:[""],comments:[""]})}createAffectedGLEntryForm(){return this.formBuilder.group({glAccountId:["",re.required],amount:["",[re.required,re.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(ps,{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(iAe,5),Ee(nAe,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 z(s),H(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,aAe,2,2,"mat-option",8,Pe),r(),E(13,rAe,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,lAe,2,2,"mat-option",8,Pe),r(),E(21,sAe,7,9,"mat-error"),r(),E(22,cAe,5,3,"mat-form-field",9),Se(23,uAe,12,11,"div",11,Pe),Se(25,_Ae,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(){z(s);let u=xe(39);return H(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,CAe,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,vAe,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,xAe,3,4,"button",27),r()()()(),F(83,bAe,19,18,"ng-template",null,2,ti)}if(n&2){let s=xe(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,oAe)),a(),v(" ",m(81,45,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_JOURNALENTRY")}},dependencies:[ue,fe,tt,st,tn,Ue,Xe,dt,Da,Ze,et,la,La,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,Ke,ea,wi,ke,Ln,he],encapsulation:2})}}return e})();var _v=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 yAe=()=>[10,25,50,100],SAe=(e,o)=>({id:e,name:o}),wAe=e=>["transactions/view",e];function PAe(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 TAe(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",Ja(2,SAe,t.id,t.name)),a(),v(" ",t.name," ")}}function MAe(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 DAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.id)}}function EAe(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 IAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function OAe(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 AAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.transactionId)}}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.Transaction Date")))}function kAe(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 BAe(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 RAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountType.value)}}function NAe(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 LAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdByUserName)}}function VAe(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 qAe(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 zAe(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 HAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountCode)}}function GAe(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 jAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountName)}}function $Ae(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 UAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.currency.code)}}function WAe(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 YAe(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 JAe(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 KAe(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 XAe(e,o){if(e&1&&(l(0,"td",39),E(1,KAe,3,3,"span"),r()),e&2){let t=o.$implicit;a(),I(t.entryType.value==="CREDIT"?1:-1)}}function ZAe(e,o){e&1&&b(0,"tr",41)}function e7e(e,o){if(e&1&&b(0,"tr",42),e&2){let t=o.$implicit;g("routerLink",Nt(1,wAe,t.transactionId))}}var Cv=(()=>{class e{constructor(){this.accountingService=T(Ui),this.settingsService=T(At),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(Dn(t=>t.id?t.id:""),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"officeId")})).subscribe(),this.glAccount.valueChanges.pipe(Dn(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),fl(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(hl(""),Dn(t=>typeof t=="string"?t:t.name),Dn(t=>t?this.filterOfficeAutocompleteData(t):this.officeData))}setFilteredGlAccounts(){this.filteredGLAccountData=this.glAccount.valueChanges.pipe(hl(""),Dn(t=>typeof t=="string"?t:t.name+" ("+t.glCode+")"),Dn(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 _v(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 z(s),H(i.applyFilter(u.value,"manualEntriesOnly"))}),Se(12,PAe,2,2,"mat-option",10,Pe),r()(),l(14,"mat-form-field",11),R("click",function(){z(s);let u=xe(21);return H(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(){z(s);let u=xe(29);return H(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(){z(s);let u=xe(42);return H(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(){z(s);let u=xe(50);return H(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,TAe,2,5,"mat-option",10,Pe),p(55,"async"),r(),l(56,"div",18)(57,"table",19),X(58,20),F(59,MAe,3,3,"th",21)(60,DAe,2,1,"td",22),Z(),X(61,23),F(62,EAe,3,3,"th",21)(63,IAe,2,1,"td",22),Z(),X(64,24),F(65,OAe,3,3,"th",21)(66,AAe,2,1,"td",22),Z(),X(67,25),F(68,FAe,3,3,"th",21)(69,kAe,3,3,"td",22),Z(),X(70,26),F(71,BAe,3,3,"th",27)(72,RAe,2,1,"td",22),Z(),X(73,28),F(74,NAe,3,3,"th",27)(75,LAe,2,1,"td",22),Z(),X(76,29),F(77,VAe,3,3,"th",27)(78,qAe,3,3,"td",22),Z(),X(79,30),F(80,zAe,3,3,"th",21)(81,HAe,2,1,"td",22),Z(),X(82,31),F(83,GAe,3,3,"th",21)(84,jAe,2,1,"td",22),Z(),X(85,32),F(86,$Ae,3,3,"th",21)(87,UAe,2,1,"td",22),Z(),X(88,33),F(89,WAe,3,3,"th",21)(90,YAe,2,1,"td",22),Z(),X(91,34),F(92,JAe,3,3,"th",21)(93,XAe,2,1,"td",22),Z(),F(94,ZAe,1,0,"tr",35)(95,e7e,1,3,"tr",36),r(),b(96,"mat-paginator",37),p(97,"async"),r()}if(n&2){let s=xe(21),d=xe(29),u=xe(42),f=xe(50),_=xe(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,yAe))}},dependencies:[ue,fe,st,Ue,gn,Ae,Fe,Be,ai,ze,gt,ft,mi,di,pi,Za,ea,Xa,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,Ka,Pi,he,Yr,On],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 t7e=["buttonDefineMapping"],i7e=["templateButtonDefineMapping"],n7e=["activitiesTable"],o7e=["templateActivitiesTable"],a7e=()=>[10,25],r7e=()=>["create"],l7e=e=>["view",e];function s7e(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,r7e)),a(2),v(" ",m(3,2,"labels.buttons.Define New Mapping")," "))}function c7e(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 p7e(e,o){if(e&1&&(l(0,"td",20),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;a(),se(" (",t.financialActivityData.id,") ",m(2,2,"labels.accounting.financialActivity."+t.financialActivityData.name)," ")}}function m7e(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 d7e(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 u7e(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 f7e(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountData.glCode)}}function h7e(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 g7e(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountData.name)}}function _7e(e,o){e&1&&b(0,"tr",21)}function C7e(e,o){if(e&1&&b(0,"tr",22),e&2){let t=o.$implicit;g("routerLink",Nt(1,l7e,t.id))}}function v7e(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",26),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",26),R("click",function(){let i=z(t).popover,s=w(),d=xe(5),u=xe(25);return i.close(),H(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 x7e(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",26),R("click",function(){let i=z(t).popover,s=w(),d=xe(2),u=xe(23);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",26),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 vv=(()=>{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(t7e,5),Ee(i7e,5),Ee(n7e,5),Ee(o7e,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,s7e,4,5,"button",5),r()(),l(4,"div",6,1)(6,"table",7),X(7,8),F(8,c7e,3,3,"th",9)(9,p7e,3,4,"td",10),Z(),X(10,11),F(11,m7e,3,3,"th",9)(12,d7e,3,3,"td",10),Z(),X(13,12),F(14,u7e,3,3,"th",9)(15,f7e,2,1,"td",10),Z(),X(16,13),F(17,h7e,3,3,"th",9)(18,g7e,2,1,"td",10),Z(),F(19,_7e,1,0,"tr",14)(20,C7e,1,3,"tr",15),r(),b(21,"mat-paginator",16),r(),F(22,v7e,16,15,"ng-template",null,2,ti)(24,x7e,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,a7e)))},dependencies:[ue,fe,Ae,ve,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 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(),se(" (",t.id,") ",m(2,3,"labels.accounting.financialActivity."+t.name)," ")}}function S7e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Financial Activity")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function w7e(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 xv=(()=>{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:["",re.required],glAccountId:["",re.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,y7e,3,5,"mat-option",4,Pe),r(),E(12,S7e,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,w7e,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,b7e)),a(),v(" ",m(17,12,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_FINANCIALACTIVITYACCOUNT"))},dependencies:[ue,fe,tt,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,gt,ft,ve,Ke,ea,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var P7e=()=>["../.."],T7e=()=>["edit"];function M7e(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,T7e)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function D7e(e,o){if(e&1){let t=Y();l(0,"button",12),R("click",function(){z(t);let i=w();return H(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 bv=(()=>{class e{constructor(){this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.location=T(b0),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,M7e,4,5,"button",1)(2,D7e,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),se(" (",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,P7e)),a(),v(" ",m(23,19,"labels.buttons.Back")," "))},dependencies:[ue,fe,Ae,$e,Je,Et,ve,Ke,ke,ls,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 E7e=()=>["../"];function I7e(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(),se(" (",t.id,") ",m(2,3,"labels.accounting.financialActivity."+t.name)," ")}}function O7e(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 yv=(()=>{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:["",re.required],glAccountId:["",re.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,I7e,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,O7e,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,E7e)),a(),v(" ",m(16,11,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_FINANCIALACTIVITYACCOUNT"))},dependencies:[ue,fe,tt,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,gt,ft,ve,Ke,ea,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var vN=e=>{let o=e.controls.debit.value,t=e.controls.credit.value;return o&&t&&o>0&&t>0?{error:!0}:null};var A7e=["searchFormRef"],F7e=["templateSearchFormRef"],k7e=()=>["../"];function B7e(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 R7e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function N7e(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 L7e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Currency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function V7e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Opening Balances Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function q7e(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 z7e(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,N7e,2,2,"mat-option",9,Pe),r(),E(9,L7e,7,9,"mat-error"),r(),l(10,"mat-form-field",17),R("click",function(){z(t);let i=xe(17);return H(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,V7e,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,q7e,20,10,"div",25,Pe),r()}if(e&2){let t=xe(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),se(" ",m(28,27,"labels.inputs.GL Name")," ",m(29,29,"labels.inputs.Account")," "),a(4),se(" ",m(32,31,"labels.inputs.Total Debit"),": ",$t(33,33,n.debitsSum,n.currencyCode,"symbol-narrow","1.2-2")," "),a(4),se(" ",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 H7e(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 G7e(e,o){e&1&&(l(0,"mat-card-actions",13)(1,"button",33),c(2),p(3,"translate"),r(),F(4,H7e,3,4,"button",34),r()),e&2&&(a(),g("routerLink",oe(5,k7e)),a(),v(" ",m(3,3,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","DEFINEOPENINGBALANCE_JOURNALENTRY"))}function j7e(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(11),p(12,"translate"),r(),l(13,"button",11),R("click",function(){let i=z(t).popover,s=w();return i.close(),i.close(),H(s.previousStep())}),c(14),p(15,"translate"),r(),l(16,"button",11),R("click",function(){let i=z(t).popover,s=w();return i.close(),i.close(),H(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 Sv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.settingsService=T(At),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:["",re.required],currencyCode:["",re.required],transactionDate:["",re.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:vN})}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(A7e,5),Ee(F7e,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 z(s),H(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,B7e,2,2,"mat-option",9,Pe),r(),E(14,R7e,7,9,"mat-error"),r()(),l(15,"div",10)(16,"button",11),R("click",function(){return z(s),H(i.retrieveOpeningBalances())}),c(17),p(18,"translate"),r()()(),E(19,z7e,40,45,"div",12),r(),E(20,G7e,5,6,"mat-card-actions",13),r()()(),F(21,j7e,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,Ue,Xe,dt,Ze,et,la,La,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,Ke,ls,Tg,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 Cc=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 xN=(()=>{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 Cc("ACCOUNTS")),n[0].children.push(new Cc(this.translateService.instant("labels.inputs.accounting.ASSET"))),n[0].children.push(new Cc(this.translateService.instant("labels.inputs.accounting.EQUITY"))),n[0].children.push(new Cc(this.translateService.instant("labels.inputs.accounting.EXPENSE"))),n[0].children.push(new Cc(this.translateService.instant("labels.inputs.accounting.INCOME"))),n[0].children.push(new Cc(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 Cc(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 wv=(()=>{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 $7e=["buttonTreeView"],U7e=["templateButtonTreeView"],W7e=["accountsTable"],Q7e=["templateAccountsTable"],Y7e=()=>[10,25,50,100],J7e=()=>["gl-accounts/create"],K7e=e=>["gl-accounts/view",e];function X7e(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,J7e)),a(2),v(" ",m(3,2,"labels.buttons.Add Account")," "))}function Z7e(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 eFe(e,o){if(e&1&&(l(0,"td",43),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function tFe(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 iFe(e,o){if(e&1&&(l(0,"td",43),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glCode)}}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.Type")))}function oFe(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 aFe(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 rFe(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 lFe(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 sFe(e,o){e&1&&(b(0,"fa-icon",46),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Allowed")))}function cFe(e,o){e&1&&(b(0,"fa-icon",47),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.")))}function pFe(e,o){if(e&1&&(l(0,"td",43),E(1,sFe,2,4,"fa-icon",46),E(2,cFe,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 mFe(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 dFe(e,o){if(e&1&&(l(0,"td",43),c(1),r()),e&2){let t=o.$implicit;a(),h(t.usage.value)}}function uFe(e,o){e&1&&b(0,"tr",48)}function fFe(e,o){if(e&1&&b(0,"tr",49),e&2){let t=o.$implicit;g("routerLink",Nt(1,K7e,t.id))}}function hFe(e,o){if(e&1&&(l(0,"span",54),c(1),r()),e&2){let t=w().$implicit;a(),h("("+t.glCode+")")}}function gFe(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=z(t).$implicit,s=w();return H(s.viewGLAccountNode(i))}),E(4,hFe,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 _Fe(e,o){if(e&1&&(l(0,"span",54),c(1),r()),e&2){let t=w().$implicit;a(),h("("+t.glCode+")")}}function CFe(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=z(t).$implicit,s=w();return H(s.viewGLAccountNode(i))}),E(6,_Fe,2,1,"span",54),c(7),r()(),l(8,"ul"),_l(9,57),r()()()}if(e&2){let t=o.$implicit,n=w();a(3),wn("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(),Cl("gl-account-tree-invisible",!n.nestedTreeControl.isExpanded(t))}}function vFe(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 xFe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",64),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",64),R("click",function(){let i=z(t).popover,s=w(),d=xe(9),u=xe(57);return i.close(),H(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 bFe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",64),R("click",function(){let i=z(t).popover,s=w(),d=xe(2),u=xe(55);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",64),R("click",function(){let i=z(t).popover,s=w(),d=xe(13),u=xe(59);return i.close(),H(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 yFe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",64),R("click",function(){let i=z(t).popover,s=w(),d=xe(9),u=xe(57);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",64),R("click",function(){let i=z(t).popover,s=w(),d=xe(20),u=xe(61);return i.close(),H(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 SFe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",64),R("click",function(){let i=z(t).popover,s=w(),d=xe(13),u=xe(59);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",64),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 Pv=(()=>{class e{constructor(){this.glAccountTreeService=T(xN),this.route=T(Ie),this.router=T(qe),this.treeControlService=T(wv),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=>Os(n.children);let t=this.glAccountTreeService;this.route.data.subscribe(n=>{this.glAccountData=n.chartOfAccounts,t.initialize(this.glAccountData)}),this.nestedTreeControl=new Gg(this._getChildren),this.nestedTreeDataSource=new Ug}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($7e,5),Ee(U7e,5),Ee(W7e,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,X7e,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 z(s),H(i.applyFilter(u.target.value))}),r()()(),l(19,"div",19,3)(21,"table",20),X(22,21),F(23,Z7e,3,3,"th",22)(24,eFe,2,1,"td",23),Z(),X(25,24),F(26,tFe,3,3,"th",22)(27,iFe,2,1,"td",23),Z(),X(28,25),F(29,nFe,3,3,"th",22)(30,oFe,3,3,"td",23),Z(),X(31,26),F(32,aFe,3,3,"th",22)(33,rFe,3,3,"td",23),Z(),X(34,27),F(35,lFe,3,3,"th",22)(36,pFe,3,2,"td",23),Z(),X(37,28),F(38,mFe,3,3,"th",22)(39,dFe,2,1,"td",23),Z(),F(40,uFe,1,0,"tr",29)(41,fFe,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 z(s),H(i.toggleExpandCollapse())}),c(46),p(47,"translate"),r()(),l(48,"div",34)(49,"div",35)(50,"mat-tree",36),F(51,gFe,6,2,"mat-tree-node",37)(52,CFe,10,7,"mat-nested-tree-node",38),r()(),E(53,vFe,35,26,"div",39),r()(),F(54,xFe,16,15,"ng-template",null,4,ti)(56,bFe,16,15,"ng-template",null,5,ti)(58,yFe,13,12,"ng-template",null,6,ti)(60,SFe,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,Y7e)),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,Ue,gn,Ae,$e,Je,Fe,Be,ze,ve,Ke,Ap,Fp,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,I0,E0,D0,O0,wi,jg,$g,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 wFe=()=>({step:1}),PFe=()=>({step:2}),TFe=()=>({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),Wo(" ",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,wFe)),a(),v(" ",m(11,17,"labels.buttons.Close Configuration Wizard")," "),a(2),g("mat-dialog-close",oe(24,PFe)),a(),se(" ",m(14,19,"labels.buttons.Create more")," ",i.stepName," "),a(2),g("mat-dialog-close",oe(25,TFe)),a(),v(" ",m(17,21,"labels.buttons.Go to next step")," "))},dependencies:[ue,fe,ve,Un,ho,Nn,$n,he],encapsulation:2})}}return e})();var MFe=["accountFormRef"],DFe=["templateAccountFormRef"],EFe=e=>[e];function IFe(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 OFe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Account Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function AFe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Account Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function FFe(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 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(),se(" ",m(2,3,"labels.inputs.Account Usage")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function BFe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.GL Code")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function RFe(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 NFe(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 LFe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(11),p(12,"translate"),r(),l(13,"button",26),R("click",function(){let i=z(t).popover;return H(i.close())}),c(14),p(15,"translate"),r(),l(16,"button",26),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStep())}),c(17),p(18,"translate"),r(),l(19,"button",26),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 Tv=(()=>{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:["",re.required],name:["",re.required],usage:["",re.required],glCode:["",re.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(MFe,5),Ee(DFe,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 z(s),H(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,IFe,3,4,"mat-option",7,Pe),r(),E(13,OFe,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,AFe,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,FFe,2,2,"mat-option",7,Pe),r(),E(27,kFe,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,BFe,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,RFe,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,NFe,3,4,"button",20),r()()()(),F(56,LFe,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,EFe,i.cancelRoute)),a(),v(" ",m(54,33,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_GLACCOUNT"))},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ze,gt,ft,ve,fi,Ke,ea,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 VFe=()=>["/accounting/chart-of-accounts/gl-accounts/create"],qFe=(e,o)=>({parent:e,accountType:o}),zFe=()=>["edit"],HFe=e=>[e];function GFe(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,VFe))("queryParams",Ja(6,qFe,t.glAccount.id,t.glAccount.type.id)),a(2),v(" ",m(3,3,"labels.buttons.Subledger Account")," ")}}function jFe(e,o){if(e&1&&(l(0,"span"),E(1,GFe,4,9,"button",10),r()),e&2){let t=w();a(),I(t.glAccount.usage.value==="HEADER"?1:-1)}}function $Fe(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,zFe)),a(2),v(" ",m(4,2,"labels.buttons.Edit")," "))}function UFe(e,o){if(e&1){let t=Y();l(0,"button",15),R("click",function(){z(t);let i=w(2);return H(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 WFe(e,o){if(e&1&&(l(0,"span"),E(1,UFe,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(){z(t);let i=w(2);return H(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 YFe(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 JFe(e,o){if(e&1){let t=Y();l(0,"button",15),R("click",function(){z(t);let i=w();return H(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 KFe(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,HFe,"/accounting/chart-of-accounts/gl-accounts/view/"+t.glAccount.parent.id)),a(),g("glAccount",t.glAccount.parent)}}function XFe(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 ZFe(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 Mv=(()=>{class e{constructor(){this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.location=T(b0),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,jFe,2,1,"span",1)(2,$Fe,5,5,"span",1)(3,WFe,2,1,"span",1)(4,YFe,2,1,"span",1)(5,JFe,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,KFe,7,7,"div",5),E(24,XFe,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,ZFe,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,Ae,$e,Je,Et,ve,Ke,ke,ls,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 eke=()=>["../"];function tke(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 ike(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Account Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function nke(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Account Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function oke(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 ake(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Account Usage")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function rke(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.GL Code")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function lke(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 ske(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 Dv=(()=>{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:["",re.required],name:[this.glAccount.name,re.required],usage:[this.glAccount.usage.id,re.required],glCode:[this.glAccount.glCode,re.required],parentId:[this.glAccount.parentId],tagId:[this.glAccount.tagId.id],manualEntriesAllowed:[this.glAccount.manualEntriesAllowed,re.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,tke,2,2,"mat-option",5,Pe),r(),E(12,ike,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,nke,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,oke,2,2,"mat-option",5,Pe),r(),E(26,ake,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,rke,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,lke,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,ske,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,eke)),a(),v(" ",m(53,33,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_GLACCOUNT"))},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ze,gt,ft,ve,fi,Ke,ea,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 cke=["buttonCreateClosure"],pke=["templateButtonCreateClosure"],mke=["closuresTable"],dke=["templateClosuresTable"],uke=()=>[10,25,50,100],fke=()=>["create"],hke=e=>["view",e];function gke(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,fke)),a(2),v(" ",m(3,2,"labels.buttons.Create Closure")," "))}function _ke(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 Cke(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 vke(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function xke(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 bke(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),h(t.closingDate)}}function yke(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 Ske(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),h(t.comments)}}function wke(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 Pke(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdByUsername)}}function Tke(e,o){e&1&&b(0,"tr",30)}function Mke(e,o){if(e&1&&b(0,"tr",31),e&2){let t=o.$implicit;g("routerLink",Nt(1,hke,t.id))}}function Dke(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",35),R("click",function(){let i=z(t).popover,s=w(),d=xe(5),u=xe(38);return i.close(),H(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 Eke(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",35),R("click",function(){let i=z(t).popover,s=w(),d=xe(2),u=xe(36);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=z(t).popover,s=w(),d=xe(18),u=xe(40);return i.close(),H(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 Ike(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=z(t).popover,s=w(),d=xe(5),u=xe(38);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",35),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 Ev=(()=>{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(hl(""),Dn(t=>typeof t=="string"?t:t.name),Dn(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(cke,5),Ee(pke,5),Ee(mke,5),Ee(dke,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,gke,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,_ke,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,Cke,3,3,"th",18)(22,vke,2,1,"td",19),Z(),X(23,20),F(24,xke,3,3,"th",18)(25,bke,2,1,"td",19),Z(),X(26,21),F(27,yke,3,3,"th",18)(28,Ske,2,1,"td",19),Z(),X(29,22),F(30,wke,3,3,"th",18)(31,Pke,2,1,"td",19),Z(),F(32,Tke,1,0,"tr",23)(33,Mke,1,3,"tr",24),r(),b(34,"mat-paginator",25),r()(),F(35,Dke,16,15,"ng-template",null,4,ti)(37,Eke,13,12,"ng-template",null,5,ti)(39,Ike,16,15,"ng-template",null,6,ti)),n&2){let s=xe(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,uke))}},dependencies:[ue,fe,st,Ue,gn,Ae,Fe,Be,ze,ft,ve,Ke,ke,Za,Xa,_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 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," ")}}function Fke(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function kke(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Closing Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Bke(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 Iv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.settingsService=T(At),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:["",re.required],closingDate:["",re.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 z(s),H(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(),E(12,Fke,7,9,"mat-error"),r(),l(13,"mat-form-field",6),R("click",function(){z(s);let u=xe(20);return H(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,kke,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,Bke,3,4,"button",12),r()()()()}if(n&2){let s=xe(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,Oke)),a(),v(" ",m(30,19,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_GLCLOSURE")}},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,Ke,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Rke=()=>["edit"];function Nke(e,o){if(e&1){let t=Y();l(0,"button",5),R("click",function(){z(t);let i=w();return H(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 Lke(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 Ov=(()=>{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,Nke,4,3,"button",3),r(),E(6,Lke,39,28,"div",4)),n&2&&(a(),g("routerLink",oe(6,Rke)),a(2),v(" ",m(4,4,"labels.buttons.Edit")," "),a(2),g("mifosxHasPermission","DELETE_GLCLOSURE"),a(),I(i.glAccountClosure?6:-1))},dependencies:[ue,fe,Ae,$e,Je,ve,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 Vke=()=>["../"];function qke(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 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.glAccountClosure=t.glAccountClosure})}ngOnInit(){this.createAccountingClosureForm(),this.setAccountingClosure()}createAccountingClosureForm(){this.accountingClosureForm=this.formBuilder.group({officeId:[{value:"",disabled:!0},re.required],closingDate:[{value:"",disabled:!0},re.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 z(s),H(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,qke,2,2,"mat-option",5,Pe),r()(),l(12,"mat-form-field",6),R("click",function(){z(s);let u=xe(19);return H(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=xe(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,Vke)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ai,ze,gt,ft,mi,di,pi,ve,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var zke=()=>[10,25,50,100],Hke=()=>["create"],Gke=e=>["view",e];function jke(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,Hke)),a(2),v(" ",m(3,2,"labels.buttons.Add Rule")," "))}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.name")))}function Uke(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}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.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 Yke(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 Jke(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.debitTags)}}function Kke(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 Xke(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 Zke(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 e8e(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.creditTags)}}function t8e(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 i8e(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 n8e(e,o){e&1&&b(0,"tr",23)}function o8e(e,o){if(e&1&&b(0,"tr",24),e&2){let t=o.$implicit;g("routerLink",Nt(1,Gke,t.id))}}var Fv=(()=>{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,jke,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,$ke,3,3,"th",9)(13,Uke,2,1,"td",10),Z(),X(14,11),F(15,Wke,3,3,"th",9)(16,Qke,2,1,"td",10),Z(),X(17,12),F(18,Yke,3,3,"th",9)(19,Jke,2,1,"td",10),Z(),X(20,13),F(21,Kke,3,3,"th",9)(22,Xke,2,1,"td",10),Z(),X(23,14),F(24,Zke,3,3,"th",9)(25,e8e,2,1,"td",10),Z(),X(26,15),F(27,t8e,3,3,"th",9)(28,i8e,2,1,"td",10),Z(),F(29,n8e,1,0,"tr",16)(30,o8e,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,zke)))},dependencies:[ue,fe,Ae,Fe,Be,ze,ve,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 kv=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 a8e=()=>["../../"];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(),se(" ",m(2,3,"labels.inputs.Accounting Rule Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}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){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function c8e(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){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,c8e,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 m8e(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 d8e(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,m8e,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 u8e(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,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",23),Se(5,u8e,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 h8e(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 g8e(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,h8e,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 _8e(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 Bv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.snackBar=T(y0),this.translateService=T(yi),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:["",re.required],officeId:["",re.required],debitRuleType:["fixedAccount"],accountToDebit:[""],debitTags:[""],allowMultipleDebitEntries:[""],creditRuleType:["fixedAccount"],accountToCredit:[""],creditTags:[""],allowMultipleCreditEntries:[""],description:[""]},{validator:kv})}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({next:n=>{this.router.navigate(["../view",n.resourceId],{relativeTo:this.route})},error:n=>{let i=this.translateService.instant("errors.accountingRule.duplicateName");n?.error?.defaultUserMessage?.includes("Duplicate entry")||typeof n?.error?.message=="string"&&n.error.message.includes("Duplicate entry")||typeof n?.error=="string"&&n.error.includes("Duplicate entry")?this.snackBar.open(i,"Close",{duration:7e3,verticalPosition:"top",horizontalPosition:"right",panelClass:"custom-snackbar-top-right"}):this.snackBar.open(n?.error?.defaultUserMessage||n?.error?.message||"An error occurred. Please try again.","Close",{duration:7e3,verticalPosition:"top",horizontalPosition:"right",panelClass:"custom-snackbar-top-right"})}})}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,r8e,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,l8e,2,2,"mat-option",6,Pe),r(),E(18,s8e,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,p8e,7,3,"mat-form-field",3),E(31,d8e,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,f8e,7,3,"mat-form-field",3),E(44,g8e,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,_8e,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,a8e)),a(),v(" ",m(53,37,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_ACCOUNTINGRULE"))},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ze,gt,ft,ve,fi,Ke,er,tr,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 C8e=()=>["edit"];function v8e(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,C8e)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function x8e(e,o){if(e&1){let t=Y();l(0,"button",10),R("click",function(){z(t);let i=w();return H(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 b8e(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 y8e(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=o.$implicit;a(),h(t.tag.name)}}function S8e(e,o){if(e&1&&(l(0,"div",5)(1,"div",6),c(2),p(3,"translate"),r(),l(4,"div",7),Se(5,y8e,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 w8e(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name+" ("+t.glCode+")")}}function P8e(e,o){if(e&1&&(l(0,"div",5)(1,"div",6),c(2),p(3,"translate"),r(),l(4,"div",7),Se(5,w8e,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 T8e(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=o.$implicit;a(),h(t.tag.name)}}function M8e(e,o){if(e&1&&(l(0,"div",5)(1,"div",6),c(2),p(3,"translate"),r(),l(4,"div",7),Se(5,T8e,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 D8e(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name+" ("+t.glCode+")")}}function E8e(e,o){if(e&1&&(l(0,"div",5)(1,"div",6),c(2),p(3,"translate"),r(),l(4,"div",7),Se(5,D8e,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 Rv=(()=>{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,v8e,4,5,"button",2)(3,x8e,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,b8e,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,S8e,7,3,"div",5),E(28,P8e,7,3,"div",5),E(29,M8e,7,3,"div",5),E(30,E8e,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,Ae,$e,Je,ve,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 I8e=()=>["../"];function O8e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Accounting Rule Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}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){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function k8e(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 B8e(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,k8e,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 R8e(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 N8e(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,R8e,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 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 V8e(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,L8e,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 q8e(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 z8e(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,q8e,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 H8e(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 Nv=(()=>{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,re.required],officeId:[this.accountingRule.officeId,re.required],debitRuleType:[""],accountToDebit:[""],debitTags:[""],allowMultipleDebitEntries:[""],creditRuleType:[""],accountToCredit:[""],creditTags:[""],allowMultipleCreditEntries:[""],description:[this.accountingRule.description]},{validator:kv})}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,O8e,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,A8e,2,2,"mat-option",6,Pe),r(),E(18,F8e,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,B8e,7,3,"mat-form-field",3),E(31,N8e,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,V8e,7,3,"mat-form-field",3),E(44,z8e,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,H8e,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,I8e)),a(),v(" ",m(53,37,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_ACCOUNTINGRULE"))},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ze,gt,ft,ve,fi,Ke,er,tr,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 G8e=()=>["../"];function j8e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Accrue Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $8e(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 Lv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.settingsService=T(At),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:["",re.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 z(s),H(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){z(s);let u=xe(12);return H(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,j8e,7,9,"mat-error"),r()()(),l(14,"mat-card-actions",7)(15,"button",8),c(16),p(17,"translate"),r(),F(18,$8e,4,4,"button",9),r()()()()}if(n&2){let s=xe(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,G8e)),a(),v(" ",m(17,12,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","EXECUTE_PERIODICACCRUALACCOUNTING")}},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,ve,Ke,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var U8e=()=>[10,25,50,100],W8e=()=>["create"],Q8e=e=>["view",e];function Y8e(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,W8e)),a(2),v(" ",m(3,2,"labels.buttons.Create Provisioning Entry")," "))}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 By")))}function K8e(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdUser)}}function X8e(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 Z8e(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdDate)}}function eBe(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 tBe(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 iBe(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 nBe(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 oBe(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 aBe(e,o){if(e&1){let t=Y();l(0,"td",23)(1,"button",28),R("click",function(i){let s=z(t).$implicit,d=w();return H(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 rBe(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 lBe(e,o){if(e&1){let t=Y();l(0,"td",23)(1,"button",28),R("click",function(i){let s=z(t).$implicit,d=w();return H(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 sBe(e,o){e&1&&b(0,"tr",30)}function cBe(e,o){e&1&&b(0,"tr",31)}var Vv=(()=>{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,Y8e,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,J8e,3,3,"th",9)(13,K8e,2,1,"td",10),Z(),X(14,11),F(15,X8e,3,3,"th",9)(16,Z8e,2,1,"td",10),Z(),X(17,12),F(18,eBe,3,3,"th",9)(19,tBe,2,2,"td",10),Z(),X(20,13),F(21,iBe,3,3,"th",14)(22,nBe,5,6,"td",10),Z(),X(23,15),F(24,oBe,3,3,"th",14)(25,aBe,5,4,"td",10),Z(),X(26,16),F(27,rBe,3,3,"th",14)(28,lBe,5,4,"td",10),Z(),F(29,sBe,1,0,"tr",17)(30,cBe,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,U8e)))},dependencies:[ue,fe,Ae,Fe,Be,ze,ve,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 pBe=()=>["../"];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(),se(" ",m(2,3,"labels.inputs.Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function dBe(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 qv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.settingsService=T(At),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:["",re.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 z(s),H(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){z(s);let u=xe(12);return H(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,mBe,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,dBe,3,4,"button",11),r()()()()}if(n&2){let s=xe(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,pBe)),a(),v(" ",m(21,15,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_PROVISIONING_ENTRIES")}},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,ve,fi,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var uBe=()=>[10,25,50,100];function fBe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){z(t);let i=w(2);return H(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 hBe(e,o){if(e&1&&(l(0,"div",3)(1,"div",23),F(2,fBe,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 gBe(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 _Be(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.categoryName),a(),v(" ",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.Office Name")))}function xBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function bBe(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 yBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}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.Currency Code")))}function wBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.currencyCode)}}function PBe(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 TBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(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.Provisioning Amount")))}function DBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.amountreserved)}}function EBe(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 IBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.liabilityAccountName)}}function OBe(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 ABe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.expenseAccountName)}}function FBe(e,o){e&1&&b(0,"tr",34)}function kBe(e,o){e&1&&b(0,"tr",35)}var zv=(()=>{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(Dn(t=>t.toLowerCase()),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"officeName")})).subscribe(),this.loanProduct.valueChanges.pipe(Dn(t=>t.toLowerCase()),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"productName")})).subscribe(),this.provisioningCategory.valueChanges.pipe(Dn(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(hl(""),Dn(t=>typeof t=="string"?t:t.name),Dn(t=>t?this.filterOfficeAutocompleteData(t):this.officeData))}setFilteredLoanProducts(){this.filteredLoanProductData=this.loanProduct.valueChanges.pipe(hl(""),Dn(t=>typeof t=="string"?t:t.name),Dn(t=>t?this.filterLoanProductAutocompleteData(t):this.loanProductData))}setFilteredProvisioningCategories(){this.filteredProvisioningCategoryData=this.provisioningCategory.valueChanges.pipe(hl(""),Dn(t=>typeof t=="string"?t:t.categoryName),Dn(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,hBe,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,gBe,2,2,"mat-option",8,Pe),p(21,"async"),r(),l(22,"mat-autocomplete",7,1),Se(24,_Be,2,2,"mat-option",8,Pe),p(26,"async"),r(),l(27,"mat-autocomplete",7,2),Se(29,CBe,2,2,"mat-option",8,Pe),p(31,"async"),r(),l(32,"div",9)(33,"table",10),X(34,11),F(35,vBe,3,3,"th",12)(36,xBe,2,1,"td",13),Z(),X(37,14),F(38,bBe,3,3,"th",12)(39,yBe,2,1,"td",13),Z(),X(40,15),F(41,SBe,3,3,"th",12)(42,wBe,2,1,"td",13),Z(),X(43,16),F(44,PBe,3,3,"th",12)(45,TBe,2,1,"td",13),Z(),X(46,17),F(47,MBe,3,3,"th",12)(48,DBe,2,1,"td",13),Z(),X(49,18),F(50,EBe,3,3,"th",12)(51,IBe,2,1,"td",13),Z(),X(52,19),F(53,OBe,3,3,"th",12)(54,ABe,2,1,"td",13),Z(),F(55,FBe,1,0,"tr",20)(56,kBe,1,0,"tr",21),r(),b(57,"mat-paginator",22),r()),n&2){let s=xe(18),d=xe(23),u=xe(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,uBe))}},dependencies:[ue,fe,st,Ue,gn,$e,Je,Fe,Be,ze,ft,ve,Ke,ke,Za,Xa,_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 BBe=()=>[10,25,50,100];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.Entry ID")))}function NBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.id)}}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.Office")))}function VBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}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.Transaction Date")))}function zBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.transactionDate)}}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.Transaction ID")))}function GBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.transactionId)}}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.Type")))}function $Be(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountType.value)}}function UBe(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 WBe(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 YBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountCode)}}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.Account Name")))}function KBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountName)}}function XBe(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 ZBe(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 eRe(e,o){if(e&1&&(l(0,"td",22),E(1,ZBe,2,1,"span"),r()),e&2){let t=o.$implicit;a(),I(t.entryType.value==="DEBIT"?1:-1)}}function tRe(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 iRe(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 nRe(e,o){if(e&1&&(l(0,"td",22),E(1,iRe,2,1,"span"),r()),e&2){let t=o.$implicit;a(),I(t.entryType.value==="CREDIT"?1:-1)}}function oRe(e,o){e&1&&b(0,"tr",23)}function aRe(e,o){e&1&&b(0,"tr",24)}var Hv=(()=>{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,RBe,3,3,"th",7)(11,NBe,2,1,"td",8),Z(),X(12,9),F(13,LBe,3,3,"th",7)(14,VBe,2,1,"td",8),Z(),X(15,10),F(16,qBe,3,3,"th",7)(17,zBe,2,1,"td",8),Z(),X(18,11),F(19,HBe,3,3,"th",7)(20,GBe,2,1,"td",8),Z(),X(21,12),F(22,jBe,3,3,"th",7)(23,$Be,2,1,"td",8),Z(),X(24,13),F(25,UBe,3,3,"th",7)(26,WBe,2,1,"td",8),Z(),X(27,14),F(28,QBe,3,3,"th",7)(29,YBe,2,1,"td",8),Z(),X(30,15),F(31,JBe,3,3,"th",7)(32,KBe,2,1,"td",8),Z(),X(33,16),F(34,XBe,3,3,"th",7)(35,eRe,2,1,"td",8),Z(),X(36,17),F(37,tRe,3,3,"th",7)(38,nRe,2,1,"td",8),Z(),F(39,oRe,1,0,"tr",18)(40,aRe,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,BBe)))},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 C5=(()=>{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 r1=(()=>{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 Gv=(()=>{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 nu=(()=>{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 v5=(()=>{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 x5=(()=>{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 b5=(()=>{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 y5=(()=>{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 S5=(()=>{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 w5=(()=>{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 P5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(t){let n=t.paramMap.get("id");return this.accountingService.getGlAccount(n,!0).pipe(Dn(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 T5=(()=>{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 M5=(()=>{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 D5=(()=>{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 jv=(()=>{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 E5=(()=>{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 I5=(()=>{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 O5=(()=>{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 A5=(()=>{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 F5=(()=>{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 k5=(()=>{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 B5=(()=>{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 $v=(()=>{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 bN=(()=>{class e{constructor(){this.externalAssetOwnerService=T(e_)}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 R5=(()=>{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 rRe=[_o.withShell([{path:"accounting",data:{title:"Accounting",breadcrumb:"Accounting"},children:[{path:"",component:fv},{path:"journal-entries",data:{title:"Search Journal Entry",breadcrumb:"Journal Entries"},children:[{path:"",component:Cv,resolve:{offices:zr,glAccounts:nu}},{path:"frequent-postings",component:hv,data:{title:"Frequent Postings",breadcrumb:"Frequent Postings"},resolve:{offices:zr,accountingRules:C5,currencies:r1,paymentTypes:Gv}},{path:"create",component:gv,data:{title:"Create Journal Entry",breadcrumb:"Create"},resolve:{offices:zr,currencies:r1,paymentTypes:Gv,glAccounts:nu,globalConfig:R5}},{path:"transactions",data:{title:"Transactions",breadcrumb:"Transactions",addBreadcrumbLink:!1},children:[{path:"view/:id",component:Kg,data:{title:"View Transaction",routeParamBreadcrumb:"id"},resolve:{transaction:$v}}]}]},{path:"financial-activity-mappings",data:{title:"Financial Activity Mappings",breadcrumb:"Financial Activity Mappings"},children:[{path:"",component:vv,resolve:{financialActivityAccounts:v5}},{path:"create",component:xv,data:{title:"Create Financial Activity Mapping",breadcrumb:"Create"},resolve:{financialActivityAccountsTemplate:x5}},{path:"view/:id",data:{title:"View Financial Activity Mapping",routeParamBreadcrumb:"id"},children:[{path:"",component:bv,resolve:{financialActivityAccount:b5}},{path:"edit",component:yv,data:{title:"Edit Financial Activity Mapping",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{financialActivityAccountAndTemplate:y5}}]}]},{path:"migrate-opening-balances",component:Sv,data:{title:"Migrate Opening Balances",breadcrumb:"Migrate Opening Balances"},resolve:{offices:zr,currencies:r1}},{path:"chart-of-accounts",data:{title:"Chart of Accounts",breadcrumb:"Chart of Accounts"},children:[{path:"",component:Pv,resolve:{chartOfAccounts:S5}},{path:"gl-accounts",children:[{path:"create",component:Tv,data:{title:"Create GL Account",breadcrumb:"Create GL Account"},resolve:{chartOfAccountsTemplate:w5}},{path:"view/:id",data:{title:"View GL Account",routeResolveBreadcrumb:["glAccountAndChartOfAccountsTemplate","name"]},resolve:{glAccountAndChartOfAccountsTemplate:P5},runGuardsAndResolvers:"always",children:[{path:"",component:Mv},{path:"edit",component:Dv,data:{title:"Edit GL Account",breadcrumb:"Edit",routeResolveBreadcrumb:!1}}]}]}]},{path:"closing-entries",data:{title:"Accounting Closures",breadcrumb:"Closing Entries"},children:[{path:"",component:Ev,resolve:{offices:zr,glAccountClosures:T5}},{path:"create",component:Iv,data:{title:"Create Accounting Closure",breadcrumb:"Create"},resolve:{offices:zr}},{path:"view/:id",data:{title:"View Accounting Closure",routeParamBreadcrumb:"id"},resolve:{glAccountClosure:M5},runGuardsAndResolvers:"always",children:[{path:"",component:Ov},{path:"edit",component:Av,data:{title:"Edit Accounting Closure",breadcrumb:"Edit",routeParamBreadcrumb:!1}}]}]},{path:"accounting-rules",data:{title:"Accounting Rules",breadcrumb:"Accounting Rules"},children:[{path:"",component:Fv,resolve:{accountingRules:D5}},{path:"create",component:Bv,data:{title:"Create Accounting Rule",breadcrumb:"Create"},resolve:{accountingRulesTemplate:jv}},{path:"view/:id",data:{title:"View Accounting Rule",routeResolveBreadcrumb:["accountingRule","name"]},resolve:{accountingRule:E5},runGuardsAndResolvers:"always",children:[{path:"",component:Rv},{path:"edit",component:Nv,data:{title:"Edit Accounting Rules",breadcrumb:"Edit",routeResolveBreadcrumb:!1},resolve:{accountingRulesTemplate:jv}}]}]},{path:"periodic-accruals",component:Lv,data:{title:"Periodic Accrual Accounting",breadcrumb:"Execute Periodic Accrual Accounting"}},{path:"provisioning-entries",data:{title:"Provisioning Entries",breadcrumb:"Provisioning Entries"},children:[{path:"",component:Vv,resolve:{provisioningEntries:I5}},{path:"create",component:qv,data:{title:"Create Provisioning Entry",breadcrumb:"Create"}},{path:"view/:id",component:zv,data:{title:"View Provisioning Entry",routeParamBreadcrumb:"id"},resolve:{provisioningEntry:O5,provisioningEntryEntries:A5,office:zr,loanProducts:F5,provisioningCategories:k5}},{path:"journal-entries",data:{breadcrumb:"Journal Entries",addBreadcrumbLink:!1},children:[{path:"view/:id",component:Hv,data:{title:"View Provisioning Journal Entry",routeParamBreadcrumb:"id"},resolve:{provisioningJournalEntries:B5}}]}]}]},{path:"journal-entry",data:{title:"Journal Entries",breadcrumb:"Journal Entries"},children:[{path:"view/:id",component:Kg,data:{title:"View Transaction",routeParamBreadcrumb:"id"},resolve:{transaction:$v}},{path:"view-transfer/:transferId",component:Kg,data:{title:"View Transfer",routeParamBreadcrumb:"transferId"},resolve:{transferJournalEntryData:bN}}]}])],yN=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[zr,C5,r1,Gv,nu,$v,v5,x5,b5,y5,S5,w5,P5,T5,M5,D5,jv,E5,I5,O5,A5,F5,k5,B5,R5],imports:[hn.forChild(rRe),hn]})}}return e})();var SN=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,Er,yN,ha,fv,hv,gv,Cv,kk,vv,xv,bv,yv,Sv,Pv,Tv,Mv,Dv,Ev,Iv,Ov,Av,Fv,Bv,Rv,Nv,Lv,Vv,qv,zv,Hv]})}}return e})();var lRe=()=>[10,25,50,100],sRe=()=>["create"],cRe=e=>[e];function pRe(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,sRe)),a(2),v(" ",m(3,2,"labels.buttons.Create Preference")," "))}function mRe(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 dRe(e,o){if(e&1&&(l(0,"td",17),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ot(2,1,t.accountType.value,"catalogs")," ")}}function uRe(e,o){e&1&&b(0,"tr",18)}function fRe(e,o){if(e&1&&b(0,"tr",19),e&2){let t=o.$implicit;g("routerLink",Nt(1,cRe,t.id))}}var Uv=(()=>{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,pRe,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,mRe,3,3,"th",9)(13,dRe,3,4,"td",10),Z(),F(14,uRe,1,0,"tr",11)(15,fRe,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,lRe)))},dependencies:[ue,fe,Ae,Fe,Be,ze,ve,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he,Fi],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var hRe=()=>["../"];function gRe(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(" ",Ot(2,2,t.value,"catalogs")," ")}}function _Re(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Account Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function CRe(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 vRe(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 Wv=(()=>{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:["",re.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,gRe,3,5,"mat-option",4,Pe),r(),E(12,_Re,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,CRe,2,2,"mat-option",4,Pe),r()()()(),l(20,"mat-card-actions",6)(21,"button",7),c(22),p(23,"translate"),r(),F(24,vRe,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,hRe)),a(),v(" ",m(23,11,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_ACCOUNTNUMBERFORMAT"))},dependencies:[ue,fe,tt,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,gt,ft,ve,Ke,he,Fi],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var xRe=()=>["../"];function bRe(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(" ",Ot(2,2,t.value,"catalogs")," ")}}function yRe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Account Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function SRe(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 wRe(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 Qv=(()=>{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},re.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,bRe,3,5,"mat-option",4,Pe),r(),E(12,yRe,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,SRe,2,2,"mat-option",4,Pe),r()()()(),l(20,"mat-card-actions",6)(21,"button",7),c(22),p(23,"translate"),r(),F(24,wRe,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,xRe)),a(),v(" ",m(23,11,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_ACCOUNTNUMBERFORMAT"))},dependencies:[ue,fe,tt,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,gt,ft,ve,Ke,he,Fi],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var PRe=()=>["edit"];function TRe(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,PRe)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function MRe(e,o){if(e&1){let t=Y();l(0,"button",9),R("click",function(){z(t);let i=w();return H(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 DRe(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 ERe(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.accountNumberPreferenceData.prefixType.value," ")}}var Yv=(()=>{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,TRe,4,5,"button",1)(2,MRe,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,DRe,3,3,"div",5),E(14,ERe,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(" ",Ot(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,Ae,$e,Je,ve,Ke,ke,he,Fi],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 Jv=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 wN=(e,o)=>({id:e,name:o}),IRe=e=>[e],ORe=()=>[10,25,50,100];function ARe(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.processingResult," ")}}function FRe(e,o){if(e&1&&(l(0,"mat-option",16),c(1),r()),e&2){let t=o.$implicit;g("value",Ja(2,wN,t.id,t.username)),a(),v(" ",t.username," ")}}function kRe(e,o){if(e&1&&(l(0,"mat-option",16),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function BRe(e,o){if(e&1&&(l(0,"mat-option",16),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function RRe(e,o){if(e&1&&(l(0,"mat-option",16),c(1),r()),e&2){let t=o.$implicit;g("value",Ja(2,wN,t.id,t.username)),a(),v(" ",t.username," ")}}function NRe(e,o){e&1&&(l(0,"div"),b(1,"mat-progress-bar",28),r())}function LRe(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Trail ID")))}function VRe(e,o){if(e&1&&(l(0,"td",45),c(1),r()),e&2){let t=o.$implicit;a(),h(t.id)}}function qRe(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Resource ID")))}function zRe(e,o){if(e&1&&(l(0,"td",45),c(1),r()),e&2){let t=o.$implicit;a(),h(t.resourceId)}}function HRe(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function GRe(e,o){if(e&1&&(l(0,"td",45),c(1),r()),e&2){let t=o.$implicit;a(),h(t.processingResult)}}function jRe(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Made By")))}function $Re(e,o){if(e&1&&(l(0,"td",45),c(1),r()),e&2){let t=o.$implicit;a(),h(t.maker)}}function URe(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Action")))}function WRe(e,o){if(e&1&&(l(0,"td",45),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ot(2,1,t.actionName,"auditTrail.actions"))}}function QRe(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity")))}function YRe(e,o){if(e&1&&(l(0,"td",45),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ot(2,1,t.entityName,"auditTrail.entities"))}}function JRe(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office")))}function KRe(e,o){if(e&1&&(l(0,"td",45),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function XRe(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Made Date")))}function ZRe(e,o){if(e&1&&(l(0,"td",45),c(1),p(2,"datetimeFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.madeOnDate))}}function e9e(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Checker")))}function t9e(e,o){if(e&1&&(l(0,"td",45),c(1),r()),e&2){let t=o.$implicit;a(),h(t.checker)}}function i9e(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Checked Date")))}function n9e(e,o){if(e&1&&(l(0,"td",45),c(1),p(2,"datetimeFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.checkedOnDate))}}function o9e(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Client Ip")))}function a9e(e,o){if(e&1&&(l(0,"td",45),c(1),r()),e&2){let t=o.$implicit;a(),h(t.ip)}}function r9e(e,o){e&1&&b(0,"tr",46)}function l9e(e,o){if(e&1&&b(0,"tr",47),e&2){let t=o.$implicit;g("routerLink",Nt(1,IRe,t.id))}}function s9e(e,o){if(e&1&&(l(0,"table",26),X(1,29),F(2,LRe,3,3,"th",30)(3,VRe,2,1,"td",31),Z(),X(4,32),F(5,qRe,3,3,"th",30)(6,zRe,2,1,"td",31),Z(),X(7,33),F(8,HRe,3,3,"th",30)(9,GRe,2,1,"td",31),Z(),X(10,34),F(11,jRe,3,3,"th",30)(12,$Re,2,1,"td",31),Z(),X(13,35),F(14,URe,3,3,"th",30)(15,WRe,3,4,"td",31),Z(),X(16,36),F(17,QRe,3,3,"th",30)(18,YRe,3,4,"td",31),Z(),X(19,37),F(20,JRe,3,3,"th",30)(21,KRe,2,1,"td",31),Z(),X(22,38),F(23,XRe,3,3,"th",30)(24,ZRe,3,3,"td",31),Z(),X(25,39),F(26,e9e,3,3,"th",30)(27,t9e,2,1,"td",31),Z(),X(28,40),F(29,i9e,3,3,"th",30)(30,n9e,3,3,"td",31),Z(),X(31,41),F(32,o9e,3,3,"th",30)(33,a9e,2,1,"td",31),Z(),F(34,r9e,1,0,"tr",42)(35,l9e,1,3,"tr",43),r()),e&2){let t=w();g("dataSource",t.dataSource),a(34),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns)}}function c9e(e,o){if(e&1&&(b(0,"mat-paginator",27),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,ORe))}}var Kv=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.dateUtils=T(Zt),this.settingsService=T(At),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 Jv(this.systemService),this.getAuditTrails()}ngAfterViewInit(){this.user.valueChanges.pipe(Dn(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(Dn(t=>t||""),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"actionName")})).subscribe(),this.entityName.valueChanges.pipe(Dn(t=>t||""),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"entityName")})).subscribe(),this.checker.valueChanges.pipe(Dn(t=>t||""),Oo(500),Ao(),Eo(t=>{this.applyFilter(t.id,"checkerId")})).subscribe(),this.sort&&this.paginator&&fl(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(hl(""),Dn(t=>typeof t=="string"?t:t.name),Dn(t=>t?this.filterUserAutocompleteData(t):this.auditTrailSearchTemplateData.appUsers))}setFilteredCheckers(){this.filteredCheckerData=this.checker.valueChanges.pipe(hl(""),Dn(t=>typeof t=="string"?t:t.name),Dn(t=>t?this.filterUserAutocompleteData(t):this.auditTrailSearchTemplateData.appUsers))}setFilteredActions(){this.filteredActionData=this.actionName.valueChanges.pipe(hl(""),Dn(t=>typeof t=="string"?t:""),Dn(t=>t?this.filterActionAutocompleteData(t):this.auditTrailSearchTemplateData.actionNames))}setFilteredEntities(){this.filteredEntityData=this.entityName.valueChanges.pipe(hl(""),Dn(t=>typeof t=="string"?t:""),Dn(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 +`):e}function y0e(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 RR(e,o){let t=e.chart.ctx,{body:n,footer:i,title:s}=e,{boxWidth:d,boxHeight:u}=o,f=lr(o.bodyFont),_=lr(o.titleFont),C=lr(o.footerFont),x=s.length,y=i.length,P=n.length,S=qr(o.padding),M=S.height,D=0,k=n.reduce((J,le)=>J+le.before.length+le.lines.length+le.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 V=0,U=function(J){D=Math.max(D,t.measureText(J).width+V)};return t.save(),t.font=_.string,Ko(e.title,U),t.font=f.string,Ko(e.beforeBody.concat(e.afterBody),U),V=o.displayColors?d+2+o.boxPadding:0,Ko(n,J=>{Ko(J.before,U),Ko(J.lines,U),Ko(J.after,U)}),V=0,t.font=C.string,Ko(e.footer,U),t.restore(),D+=S.width,{width:D,height:M}}function S0e(e,o){let{y:t,height:n}=o;return te.height-n/2?"bottom":"center"}function w0e(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 P0e(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"),w0e(_,e,o,t)&&(_="center"),_}function NR(e,o,t){let n=t.yAlign||o.yAlign||S0e(e,t);return{xAlign:t.xAlign||o.xAlign||P0e(e,o,t,n),yAlign:n}}function T0e(e,o){let{x:t,width:n}=e;return o==="right"?t-=n:o==="center"&&(t-=n/2),t}function M0e(e,o,t){let{y:n,height:i}=e;return o==="top"?n+=t:o==="bottom"?n-=i+t:n-=i/2,n}function LR(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}=jp(d),S=T0e(o,u),M=M0e(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:gr(S,0,n.width-o.width),y:gr(M,0,n.height-o.height)}}function sC(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 VR(e){return fc([],Wc(e))}function D0e(e,o,t){return $c(e,{tooltip:o,tooltipItems:t,type:"tooltip"})}function qR(e,o){let t=o&&o.dataset&&o.dataset.tooltip&&o.dataset.tooltip.callbacks;return t?e.override(t):e}var _9={beforeTitle:dc,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"?_9[o].call(t,n):i}var zR=(()=>{class e extends Vs{static positioners=Vf;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 dC(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(d)),d}getContext(){return this.$context||(this.$context=D0e(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){let{callbacks:i}=n,s=wl(i,"beforeTitle",this,t),d=wl(i,"title",this,t),u=wl(i,"afterTitle",this,t),f=[];return f=fc(f,Wc(s)),f=fc(f,Wc(d)),f=fc(f,Wc(u)),f}getBeforeBody(t,n){return VR(wl(n.callbacks,"beforeBody",this,t))}getBody(t,n){let{callbacks:i}=n,s=[];return Ko(t,d=>{let u={before:[],lines:[],after:[]},f=qR(i,d);fc(u.before,Wc(wl(f,"beforeLabel",this,d))),fc(u.lines,wl(f,"label",this,d)),fc(u.after,Wc(wl(f,"afterLabel",this,d))),s.push(u)}),s}getAfterBody(t,n){return VR(wl(n.callbacks,"afterBody",this,t))}getFooter(t,n){let{callbacks:i}=n,s=wl(i,"beforeFooter",this,t),d=wl(i,"footer",this,t),u=wl(i,"afterFooter",this,t),f=[];return f=fc(f,Wc(s)),f=fc(f,Wc(d)),f=fc(f,Wc(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))),Ko(f,x=>{let y=qR(t.callbacks,x);s.push(wl(y,"labelColor",this,x)),d.push(wl(y,"labelPointStyle",this,x)),u.push(wl(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=Vf[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=RR(this,i),C=Object.assign({},f,_),x=NR(this.chart,i,C),y=LR(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}=jp(f),{x:P,y:S}=t,{width:M,height:D}=n,k,V,U,J,le,ee;return d==="center"?(le=S+D/2,s==="left"?(k=P,V=k-u,J=le+u,ee=le-u):(k=P+M,V=k+u,J=le-u,ee=le+u),U=k):(s==="left"?V=P+Math.max(_,x)+u:s==="right"?V=P+M-Math.max(C,y)-u:V=this.caretX,d==="top"?(J=S,le=J-u,k=V-u,U=V+u):(J=S+D,le=J+u,k=V+u,U=V-u),ee=J),{x1:k,x2:V,x3:U,y1:J,y2:le,y3:ee}}drawTitle(t,n,i){let s=this.title,d=s.length,u,f,_;if(d){let C=Dd(i.rtl,this.x,this.width);for(t.x=sC(this,i.titleAlign,i),n.textAlign=C.textAlign(i.titleAlign),n.textBaseline="middle",u=lr(i.titleFont),f=i.titleSpacing,n.fillStyle=i.titleColor,n.font=u.string,_=0;_U!==0)?(t.beginPath(),t.fillStyle=d.multiKeyBackground,Q0(t,{x:D,y:M,w:C,h:_,radius:V}),t.fill(),t.stroke(),t.fillStyle=u.backgroundColor,t.beginPath(),Q0(t,{x:k,y:M+1,w:C-2,h:_-2,radius:V}),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=lr(i.bodyFont),P=y.lineHeight,S=0,M=Dd(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),V,U,J,le,ee,ae,ce;for(n.textAlign=u,n.textBaseline="middle",n.font=y.string,t.x=sC(this,k,i),n.fillStyle=i.bodyColor,Ko(this.beforeBody,D),S=f&&k!=="right"?u==="center"?C/2+x:C+2+x:0,le=0,ae=s.length;le0&&n.stroke()}_updateAnimationTarget(t){let n=this.chart,i=this.$animations,s=i&&i.x,d=i&&i.y;if(s||d){let u=Vf[t.position].call(this,this._active,this._eventPosition);if(!u)return;let f=this._size=RR(this,t),_=Object.assign({},u,this._size),C=NR(n,t,_),x=LR(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),J4(t,n.textDirection),d.y+=u.top,this.drawTitle(d,t,n),this.drawBody(d,t,n),this.drawFooter(d,t,n),K4(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=!Ef(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||!Ef(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=Vf[d.position].call(this,t,n);return u!==!1&&(i!==u.x||s!==u.y)}}return e})(),E0e={id:"tooltip",_element:zR,positioners:Vf,afterInit(e,o,t){t&&(e.tooltip=new zR({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:_9},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"]},I0e=Object.freeze({__proto__:null,Colors:Hde,Decimation:Ude,Filler:d0e,Legend:C0e,SubTitle:b0e,Title:x0e,Tooltip:E0e}),O0e=(e,o,t,n)=>(typeof o=="string"?(t=e.push(o)-1,n.unshift({index:t,label:o})):isNaN(o)&&(t=null),t);function A0e(e,o,t,n){let i=e.indexOf(o);if(i===-1)return O0e(e,o,t,n);let s=e.lastIndexOf(o);return i!==s?t:i}var F0e=(e,o)=>e===null?null:gr(Math.round(e),0,o);function HR(e){let o=this.getLabels();return e>=0&&e{class e extends Od{static id="category";static defaults={ticks:{callback:HR}};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:A0e(i,t,Kn(n,t),this._addedLabels),F0e(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 HR.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 B0e(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),V=!Co(u),U=!Co(_),J=(D-M)/(x+1),le=E4((D-M)/S/P)*P,ee,ae,ce,_e;if(le<1e-14&&!k&&!V)return[{value:M},{value:D}];_e=Math.ceil(D/le)-Math.floor(M/le),_e>S&&(le=E4(_e*le/S/P)*P),Co(f)||(ee=Math.pow(10,f),le=Math.ceil(le*ee)/ee),i==="ticks"?(ae=Math.floor(M/le)*le,ce=Math.ceil(D/le)*le):(ae=M,ce=D),k&&V&&s&&DB((u-d)/s,le/1e3)?(_e=Math.round(Math.min((u-d)/le,C)),le=(u-d)/_e,ae=d,ce=u):U?(ae=k?d:ae,ce=V?u:ce,_e=_-1,le=(ce-ae)/_e):(_e=(ce-ae)/le,$0(_e,Math.round(_e),le/1e3)?_e=Math.round(_e):_e=Math.ceil(_e));let de=Math.max(O4(le),O4(ae));ee=Math.pow(10,Co(f)?de:f),ae=Math.round(ae*ee)/ee,ce=Math.round(ce*ee)/ee;let j=0;for(k&&(y&&ae!==d?(t.push({value:d}),aeu)break;t.push({value:W})}return V&&y&&ce!==u?t.length&&$0(t[t.length-1].value,u,GR(u,J,e))?t[t.length-1].value=u:t.push({value:u}):(!V||ce===u)&&t.push({value:ce}),t}function GR(e,o,{horizontal:t,minRotation:n}){let i=ds(n),s=(t?Math.sin(i):Math.cos(i))||.001,d=.75*o*(""+e).length;return Math.min(o/s,d)}var X0=class extends Od{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=Ls(i),_=Ls(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=B0e(i,s);return o.bounds==="ticks"&&I4(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 W0(o,this.chart.options.locale,this.options.ticks.format)}},MM=class extends X0{static id="linear";static defaults={ticks:{callback:If.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=ds(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}},Hf=e=>Math.floor(Gc(e)),Id=(e,o)=>Math.pow(10,Hf(e)+o);function jR(e){return e/Math.pow(10,Hf(e))===1}function $R(e,o,t){let n=Math.pow(10,t),i=Math.floor(e/n);return Math.ceil(o/n)-i}function R0e(e,o){let t=o-e,n=Hf(t);for(;$R(e,o,n)>10;)n++;for(;$R(e,o,n)<10;)n--;return Math.min(n,Hf(e))}function N0e(e,{min:o,max:t}){o=Sl(e.min,o);let n=[],i=Hf(o),s=R0e(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=Sl(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=Sl(e.max,y);return n.push({value:P,major:jR(P),significand:x}),n}var DM=class extends Od{static id="logarithmic";static defaults={ticks:{callback:If.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=X0.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===Id(this.min,0)?Id(this.min,-1):Id(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(Id(n,-1)),d(Id(i,1)))),n<=0&&s(Id(i,-1)),i<=0&&d(Id(n,1)),this.min=n,this.max=i}buildTicks(){let o=this.options,t={min:this._userMin,max:this._userMax},n=N0e(t,this);return o.bounds==="ticks"&&I4(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":W0(o,this.chart.options.locale,this.options.ticks.format)}configure(){let o=this.min;super.configure(),this._startValue=Gc(o),this._valueRange=Gc(this.max)-Gc(o)}getPixelForValue(o){return(o===void 0||o===0)&&(o=this.min),o===null||isNaN(o)?NaN:this.getPixelForDecimal(o===this.min?0:(Gc(o)-this._startValue)/this._valueRange)}getValueForPixel(o){let t=this.getDecimalForPixel(o);return Math.pow(10,this._startValue+t*this._valueRange)}};function EM(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 L0e(e,o,t){return t=ga(t)?t:[t],{w:NB(e,o.string,t),h:t.length*o.lineHeight}}function UR(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 V0e(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 z0e(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(Q_(Lr(f.angle+za))),C=U0e(f.y,u.h,_),x=j0e(_),y=$0e(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 H0e(e,o){if(!o)return!0;let{left:t,top:n,right:i,bottom:s}=e;return!(mc({x:t,y:n},o)||mc({x:t,y:s},o)||mc({x:i,y:n},o)||mc({x:i,y:s},o))}function G0e(e,o,t){let n=[],i=e._pointLabels.length,s=e.options,{centerPointLabels:d,display:u}=s.pointLabels,f={extra:EM(s)/2,additionalAngle:d?Bo/i:0},_;for(let C=0;C270||t<90)&&(e-=o),e}function W0e(e,o,t){let{left:n,top:i,right:s,bottom:d}=t,{backdropColor:u}=o;if(!Co(u)){let f=jp(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(),Q0(e,{x:C,y:x,w:y,h:P,radius:f}),e.fill()):e.fillRect(C,x,y,P)}}function Q0e(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));W0e(t,d,s);let u=lr(d.font),{x:f,y:_,textAlign:C}=s;Gp(t,e._pointLabels[i],f,_+u.lineHeight/2,u,{color:d.color,textAlign:C,textBaseline:"middle"})}}function C9(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?V0e(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+ds(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);Y0e(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=lr(_.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)}Gp(o,u.label,0,-s,C,{color:_.color,strokeColor:_.textStrokeColor,strokeWidth:_.textStrokeWidth})}),o.restore()}drawTitle(){}},xC={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}},Pl=Object.keys(xC);function WR(e,o){return e-o}function QR(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"&&(Md(s)||s===!0)?t.startOf(d,"isoWeek",s):t.startOf(d,i)),+d)}function YR(e,o,t,n){let i=Pl.length;for(let s=Pl.indexOf(e);s=Pl.indexOf(t);s--){let d=Pl[s];if(xC[d].common&&e._adapter.diff(i,n,d)>=o-1)return d}return Pl[t?Pl.indexOf(t):0]}function X0e(e){for(let o=Pl.indexOf(e)+1,t=Pl.length;o=o?t[n]:t[i];e[s]=!0}}function Z0e(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 KR(e,o,t){let n=[],i={},s=o.length,d,u;for(d=0;d{class e extends Od{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 pme._date(t.adapters.date);s.init(n),G0(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:QR(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=OB(s,d,u);return this._unit=n.unit||(i.autoSkip?YR(n.minUnit,this.min,this.max,this._getLabelCapacity(d)):K0e(this,f.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:X0e(this._unit),this.initOffsets(s),t.reverse&&f.reverse(),KR(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=gr(n,0,u),i=gr(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||YR(d.minUnit,n,i,this._getLabelCapacity(n)),f=Kn(s.ticks.stepSize,1),_=u==="week"?d.isoWeekday:!1,C=Md(_)||_===!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}=pc(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}=pc(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 AM=class extends OM{static id="timeseries";static defaults=OM.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=cC(t,this.min),this._tableRange=cC(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(cC(this._table,o)-this._minPos)/this._tableRange}getValueForPixel(o){let t=this._offsets,n=this.getDecimalForPixel(o)/t.factor-t.end;return cC(this._table,n*this._tableRange+this._minPos,!0)}},eue=Object.freeze({__proto__:null,CategoryScale:k0e,LinearScale:MM,LogarithmicScale:DM,RadialLinearScale:IM,TimeScale:OM,TimeSeriesScale:AM}),Qp=[cme,Bde,I0e,eue];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," ")}}Tl.register(...Qp);var bC=(()=>{class e{constructor(){this.homeService=T(L0),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(){fl(this.officeId.valueChanges,this.timescale.valueChanges).pipe(sF(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);g0([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);g0([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);g0([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 Tl("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,iue,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,tue,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,os,fe,Ue,gn,$e,Je,Fe,Be,gt,ft,sa,ke,Ap,Fp,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 nue=e=>({display:e});function oue(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 aue(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")))}Tl.register(...Qp);var yC=(()=>{class e{constructor(){this.homeService=T(L0),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 Tl("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,oue,2,2,"mat-option",6,Pe),r()()()()(),l(14,"mat-card-content")(15,"div",7),b(16,"canvas",8),r(),E(17,aue,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,nue,i.hideOutput?"none":"block")),a(2),I(i.showFallback?17:-1))},dependencies:[ue,os,fe,Ue,gn,$e,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 rue=e=>({display:e});function lue(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 sue(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")))}Tl.register(...Qp);var SC=(()=>{class e{constructor(){this.homeService=T(L0),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 Tl("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,lue,2,2,"mat-option",6,Pe),r()()()()(),l(14,"mat-card-content")(15,"div",7),b(16,"canvas",8),r(),E(17,sue,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,rue,i.hideOutput?"none":"block")),a(2),I(i.showFallback?17:-1))},dependencies:[ue,os,fe,Ue,gn,$e,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 cue(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 wC=(()=>{class e{constructor(){this.router=T(qe),this.searchText=new it,this.allActivities=k_,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(Dn(t=>typeof t=="string"?t:t.activity),Dn(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,cue,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=xe(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,Ue,gn,Ae,$e,Je,Fe,Be,ze,ft,Za,Xa,bC,yC,SC,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 pue=[_o.withShell([{path:"",redirectTo:"/home",pathMatch:"full"},{path:"home",component:R_,data:{title:"Home"}},{path:"dashboard",component:wC,data:{title:"Dashboard",breadcrumb:"Dashboard"},resolve:{offices:zr}}])],v9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[zr],imports:[hn.forChild(pue),hn]})}}return e})();var x9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[Rg,oo,ha,v9,Mp,R_,wC,SC,yC,bC,B_,y_]})}}return e})();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.Username")," "),a(3),h(m(5,4,"labels.commons.is required")))}function due(e,o){e&1&&(l(0,"span",3),b(1,"fa-icon",11),r())}function uue(e,o){e&1&&b(0,"fa-icon",13)}function fue(e,o){e&1&&b(0,"fa-icon",14)}function hue(e,o){if(e&1){let t=Y();l(0,"button",12),R("mousedown",function(){z(t);let i=w(2);return H(i.togglePasswordVisibility())})("mouseup",function(){z(t);let i=w(2);return H(i.togglePasswordVisibility())}),E(1,uue,1,0,"fa-icon",13),E(2,fue,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 gue(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 _ue(e,o){e&1&&b(0,"mat-progress-bar",8)}function Cue(e,o){e&1&&b(0,"mat-spinner",10),e&2&&g("diameter",20)}function vue(e,o){if(e&1){let t=Y();l(0,"div")(1,"form",1),R("ngSubmit",function(){z(t);let i=w();return H(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,mue,6,6,"mat-error"),r(),l(10,"mat-form-field",2),E(11,due,2,0,"span",3),l(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",6),E(16,hue,3,2,"button",7),E(17,gue,6,6,"mat-error"),r(),E(18,_ue,1,0,"mat-progress-bar",8),l(19,"button",9),c(20),p(21,"translate"),E(22,Cue,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 xue(e,o){e&1&&b(0,"mat-spinner",10),e&2&&g("diameter",20)}function bue(e,o){if(e&1){let t=Y();l(0,"div",0)(1,"button",15),R("click",function(){z(t);let i=w();return H(i.loginOAuth())}),c(2),p(3,"translate"),E(4,xue,1,1,"mat-spinner",10),r()()}if(e&2){let t=w();a(),g("disabled",t.loading),a(),v(" ",m(3,3,"labels.buttons.Login")," "),a(2),I(t.loading?4:-1)}}var PC=(()=>{class e{constructor(){this.formBuilder=T(QF),this.authenticationService=T(Qo),this.passwordInputType="password",this.loading=!1,this.oauthEnabled=xn.OIDC.oidcServerEnabled||xn.oauth.enabled,this.enableRememberMe=xn.enableRememberMe===!0}ngOnInit(){this.createLoginForm()}login(){this.loading=!0,this.loginForm.disable(),this.authenticationService.login(this.loginForm.value).pipe(al(()=>{this.loginForm.reset(),this.loginForm.markAsPristine(),this.loginForm.enable(),this.loading=!1})).subscribe()}loginOAuth(){this.loading=!0,this.authenticationService.login().pipe(al(()=>{this.loading=!1})).subscribe({error:()=>{}})}togglePasswordVisibility(){this.passwordInputType=this.passwordInputType==="password"?"text":"password"}createLoginForm(){this.loginForm=this.formBuilder.group({username:["",re.required],password:["",[re.required,re.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,"layout-column"],["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"],["mat-raised-button","","color","primary",1,"login-button-first","flex-align-center",3,"click","disabled"]],template:function(n,i){n&1&&(E(0,vue,23,19,"div"),E(1,bue,5,5,"div",0)),n&2&&(I(i.oauthEnabled?-1:0),a(),I(i.oauthEnabled?1:-1))},dependencies:[ue,fe,tt,st,Ue,Xe,Ze,et,Fe,Be,ut,ai,ze,ve,w0,ke,as,M0,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 Yp=e=>{let o=e.get("password"),t=e.get("repeatPassword");return o&&t&&o.value!==t.value?{passwordsDoNotMatch:!0}:null};function yue(e,o){e&1&&b(0,"fa-icon",12)}function Sue(e,o){e&1&&b(0,"fa-icon",13)}function wue(e,o){if(e&1){let t=Y();l(0,"button",11),R("mousedown",function(){z(t);let i=w();return H(i.passwordInputType="text")})("mouseup",function(){z(t);let i=w();return H(i.passwordInputType="password")}),E(1,yue,1,0,"fa-icon",12),E(2,Sue,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 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.inputs.Password")," "),a(3),h(m(5,4,"labels.commons.is required")))}function Tue(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 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.commons.Password should be at least")," "),a(3),h(m(5,4,"labels.commons.12 characters long")))}function Due(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 Eue(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 Iue(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 Oue(e,o){e&1&&b(0,"mat-spinner",10),e&2&&g("diameter",20)}var TC=(()=>{class e{constructor(){this.formBuilder=T(nt),this.authenticationService=T(Qo),this.passwordsUtility=T(T0),this.loading=!1}ngOnInit(){this.createResetPasswordForm(),this.passwordInputType="password"}resetPassword(){this.loading=!0,this.resetPasswordForm.disable(),this.authenticationService.resetPassword(this.resetPasswordForm.value).pipe(al(()=>{this.resetPasswordForm.reset(),this.resetPasswordForm.markAsPristine(),this.resetPasswordForm.enable(),this.loading=!1})).subscribe()}createResetPasswordForm(){this.resetPasswordForm=this.formBuilder.group({password:["",this.passwordsUtility.getPasswordValidators()],repeatPassword:["",re.required]},{validator:Yp})}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,wue,3,2,"button",5),E(13,Pue,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,Tue,6,6,"mat-error"),E(22,Mue,6,6,"mat-error"),E(23,Due,6,6,"mat-error"),E(24,Eue,15,15,"mat-error"),r(),E(25,Iue,6,6,"p",8),l(26,"button",9),c(27),p(28,"translate"),E(29,Oue,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,Ue,Xe,dt,Ze,et,Fe,Be,ut,ai,ze,ve,Ri,w0,ke,wi,M0,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 Aue(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 Fue(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(),bg(" ",m(2,5,"labels.inputs.Send")," ",t.name," ",m(3,7,"labels.inputs.to")," ",t.target," ")}}function kue(e,o){e&1&&b(0,"mat-spinner",5),e&2&&g("diameter",20)}function Bue(e,o){if(e&1){let t=Y();l(0,"form",1),R("ngSubmit",function(){z(t);let i=w();return H(i.requestOTP())}),l(1,"mat-radio-group",2),Se(2,Fue,4,9,"mat-radio-button",3,Pe),r(),l(4,"button",4),c(5),p(6,"translate"),E(7,kue,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 Rue(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 Nue(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.OTP")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Lue(e,o){e&1&&b(0,"mat-spinner",5),e&2&&g("diameter",20)}function Vue(e,o){e&1&&b(0,"mat-spinner",5),e&2&&g("diameter",20)}function que(e,o){if(e&1){let t=Y();l(0,"form",1),R("ngSubmit",function(){z(t);let i=w();return H(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,Nue,7,9,"mat-error"),r(),l(20,"button",12),c(21),p(22,"translate"),E(23,Lue,1,1,"mat-spinner",5),r(),l(24,"button",13),R("click",function(){z(t);let i=w();return H(i.resendOTP())}),c(25),p(26,"translate"),E(27,Vue,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),se(" ",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 MC=(()=>{class e{constructor(){this.formBuilder=T(nt),this.authenticationService=T(Qo),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(al(()=>{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(al(()=>{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(al(()=>{this.twoFactorAuthenticationForm.reset(),this.twoFactorAuthenticationForm.markAsPristine(),this.twoFactorAuthenticationForm.enable(),this.resendOTPLoading=!1})).subscribe()}createTwoFactorAuthenticationDeliveryMethodForm(){this.twoFactorAuthenticationDeliveryMethodForm=this.formBuilder.group({twoFactorAuthenticationDeliveryMethod:["",re.required]})}createTwoFactorAuthenticationForm(){this.twoFactorAuthenticationForm=this.formBuilder.group({otp:["",re.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,Aue,3,3,"p"),E(6,Bue,8,6,"form",0),E(7,Rue,3,3,"p"),E(8,que,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,Ue,Xe,dt,Ze,et,Fe,Be,ut,qa,ze,ve,Ri,er,tr,M0,w0,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 zue(e,o){e&1&&b(0,"mifosx-server-selector",14)}function Hue(e,o){e&1&&b(0,"mifosx-tenant-selector")}function Gue(e,o){e&1&&b(0,"mifosx-login-form")}function jue(e,o){e&1&&b(0,"mifosx-reset-password")}function $ue(e,o){e&1&&b(0,"mifosx-two-factor-authentication")}var DC=(()=>{class e{constructor(){this.alertService=T(Sr),this.settingsService=T(At),this.router=T(qe),this.environment=xn,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(xn.fineractPlatformTenantId||"default"),this.settingsService.setTenantIdentifiers(xn.fineractPlatformTenantIds.split(",")),this.settingsService.setServers(xn.baseApiUrls.split(",")),window.location.reload()}displayTenantSelector(){return xn.oauth.enabled?!1:xn.displayTenantSelector!=="false"}allowServerSwitch(){return xn.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,zue,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,Hue,1,0,"mifosx-tenant-selector"),E(33,Gue,1,0,"mifosx-login-form"),l(34,"div",3),E(35,jue,1,0,"mifosx-reset-password"),E(36,$ue,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 z(s),H(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=xe(56),d=xe(67),u=xe(78);a(4),h(m(5,31,"APP_NAME")),a(3),se(" ",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",Sp("",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,ve,qg,Zg,sk,ck,PC,TC,MC,xl,Vo,oc,Vg,ke,nc,ic,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 Uue=[{path:"login",component:DC,data:{title:"Login"}}],b9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[hn.forChild(Uue),hn]})}}return e})();var y9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,b9,Mp,DC,PC,TC,MC]})}}return e})();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.name," ")}}function Que(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 Yue(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 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," ")}}var EC=(()=>{class e{constructor(){this.settingsService=T(At),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,Wue,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,Que,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,Yue,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,Jue,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,Ue,gn,Fe,Be,ze,gt,ft,Dr,Pr,Tr,Mr,Ep,tk,he],styles:[".header[_ngcontent-%COMP%]{font-weight:500}"]})}}return e})();var Kue=[_o.withShell([{path:"settings",component:EC,data:{title:"Settings",breadcrumb:"Settings"}}])],S9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[hn.forChild(Kue),hn]})}}return e})();var w9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,S9,EC]})}}return e})();var IC=(()=>{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 Xue(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 Zue(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 jf=(()=>{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,Xue,3,3,"div",4),E(9,Zue,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,Yo,Ea,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 efe(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 tfe(e,o){if(e&1&&(l(0,"div",7),c(1),r()),e&2){let t=w();a(),v(" ",t.employeeData.mobileNo," ")}}var $f=(()=>{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,efe,3,3,"div",6),E(28,tfe,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),se("",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,Yo,si,vl,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 ife=()=>[10,25];function nfe(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 ofe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function afe(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 rfe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function lfe(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 sfe(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 cfe(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 pfe(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 mfe(e,o){e&1&&b(0,"tr",21)}function dfe(e,o){e&1&&b(0,"tr",22)}var qs=(()=>{class e{constructor(){this.accountsFilterPipe=T(rs),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,nfe,3,3,"th",6)(11,ofe,2,1,"td",7),Z(),X(12,8),F(13,afe,3,3,"th",6)(14,rfe,2,1,"td",7),Z(),X(15,9),F(16,lfe,3,3,"th",10)(17,sfe,2,3,"td",7),Z(),X(18,11),F(19,cfe,3,3,"th",10)(20,pfe,4,5,"td",7),Z(),F(21,mfe,1,0,"tr",12)(22,dfe,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,ife)))},dependencies:[ue,fe,Fe,Be,ze,ve,_t,It,xt,vt,bt,ri,Ct,yt,ke,si,St,Pt,wt,Tt,kt,he,go],encapsulation:2})}}return e})();var ufe=()=>[10,25];function ffe(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 hfe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function gfe(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 _fe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function Cfe(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 vfe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountBalance)}}function xfe(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 bfe(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 yfe(e,o){e&1&&b(0,"tr",20)}function Sfe(e,o){e&1&&b(0,"tr",21)}var zs=(()=>{class e{constructor(){this.accountsFilterPipe=T(rs),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,ffe,3,3,"th",6)(11,hfe,2,1,"td",7),Z(),X(12,8),F(13,gfe,3,3,"th",6)(14,_fe,2,1,"td",7),Z(),X(15,9),F(16,Cfe,3,3,"th",6)(17,vfe,2,1,"td",7),Z(),X(18,10),F(19,xfe,3,3,"th",11)(20,bfe,4,5,"td",7),Z(),F(21,yfe,1,0,"tr",12)(22,Sfe,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,ve,_t,It,xt,vt,bt,ri,Ct,yt,ke,si,St,Pt,wt,Tt,kt,he,go],encapsulation:2})}}return e})();function wfe(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 Pfe(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 Tfe(e,o){if(e&1&&(l(0,"div",9),c(1),r()),e&2){let t=w();a(),v(" ",t.centerSummaryData.activeClients," ")}}function Mfe(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 Dfe(e,o){if(e&1&&(l(0,"div",9),c(1),r()),e&2){let t=w();a(),v(" ",t.centerSummaryData.activeClientLoans," ")}}function Efe(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 Ife(e,o){if(e&1&&(l(0,"div",9),c(1),r()),e&2){let t=w();a(),v(" ",t.centerSummaryData.activeClientBorrowers," ")}}function Ofe(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 Afe(e,o){if(e&1&&(l(0,"div",9),c(1),r()),e&2){let t=w();a(),v(" ",t.centerSummaryData.overdueGroupLoans," ")}}function Ffe(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 kfe(e,o){if(e&1&&(l(0,"div",9),c(1),r()),e&2){let t=w();a(),v(" ",t.centerSummaryData.overdueClientLoans," ")}}function Bfe(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 Rfe(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 Nfe(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 Lfe(e,o){if(e&1&&(l(0,"div",9),c(1),r()),e&2){let t=w();a(),v(" ",t.centerSummaryData.collectionMeetingCalendar.humanReadable," ")}}function Vfe(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 qfe(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 Uf=(()=>{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(qs,5),Ee(zs,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,wfe,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,Pfe,3,3,"div",8),E(32,Tfe,2,1,"div",9),E(33,Mfe,3,3,"div",8),E(34,Dfe,2,1,"div",9),E(35,Efe,3,3,"div",8),E(36,Ife,2,1,"div",9),E(37,Ofe,3,3,"div",8),E(38,Afe,2,1,"div",9),E(39,Ffe,3,3,"div",8),E(40,kfe,2,1,"div",9),E(41,Bfe,3,3,"div",10),E(42,Rfe,3,3,"div",9),E(43,Nfe,3,3,"div",10),E(44,Lfe,2,1,"div",9),l(45,"div",8),c(46),p(47,"translate"),r(),l(48,"div",9),c(49),r()()(),E(50,Vfe,2,1,"mat-tab",11),E(51,qfe,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,Yo,si,vl,lc,Ea,Nr,Qr,qs,zs,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 zfe(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 Hfe(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.groupData.centerName," ")}}function Gfe(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 jfe(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 $fe(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 Ufe(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.groupData.collectionMeetingCalendar.humanReadable," ")}}function Wfe(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 Qfe(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 Wf=(()=>{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(qs,5),Ee(zs,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,zfe,3,3,"div",7),E(30,Hfe,2,1,"div",8),E(31,Gfe,3,3,"div",9),E(32,jfe,3,3,"div",8),E(33,$fe,3,3,"div",9),E(34,Ufe,2,1,"div",8),l(35,"div",7),c(36),p(37,"translate"),r(),l(38,"div",8),c(39),r()()(),E(40,Wfe,2,1,"mat-tab",10),E(41,Qfe,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),Wo(" ",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,Yo,si,vl,Nr,Qr,qs,zs,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 Yfe=()=>[10,25];function Jfe(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 Kfe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function Xfe(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 Zfe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function e1e(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 t1e(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalApprovedShares)}}function i1e(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 n1e(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 o1e(e,o){e&1&&b(0,"tr",20)}function a1e(e,o){e&1&&b(0,"tr",21)}var Qf=(()=>{class e{constructor(){this.accountsFilterPipe=T(rs),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,Jfe,3,3,"th",6)(11,Kfe,2,1,"td",7),Z(),X(12,8),F(13,Xfe,3,3,"th",6)(14,Zfe,2,1,"td",7),Z(),X(15,9),F(16,e1e,3,3,"th",6)(17,t1e,2,1,"td",7),Z(),X(18,10),F(19,i1e,3,3,"th",11)(20,n1e,4,5,"td",7),Z(),F(21,o1e,1,0,"tr",12)(22,a1e,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,Yfe)))},dependencies:[ue,fe,Fe,Be,ze,ve,_t,It,xt,vt,bt,ri,Ct,yt,ke,si,St,Pt,wt,Tt,kt,he,go],encapsulation:2})}}return e})();var r1e=()=>[10,25];function l1e(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 s1e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function c1e(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 p1e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function m1e(e,o){e&1&&b(0,"tr",13)}function d1e(e,o){e&1&&b(0,"tr",14)}var Yf=(()=>{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,l1e,3,3,"th",5)(9,s1e,2,1,"td",6),Z(),X(10,7),F(11,c1e,3,3,"th",5)(12,p1e,2,1,"td",6),Z(),F(13,m1e,1,0,"tr",8)(14,d1e,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,r1e)))},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 u1e(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 f1e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.clientData.firstName," ")}}function h1e(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 g1e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.clientData.middleName," ")}}function _1e(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 C1e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.clientData.lastName," ")}}function v1e(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 x1e(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 b1e(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 y1e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.clientData.mobileNo," ")}}function S1e(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 w1e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.clientData.officeName," ")}}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.Associated Staff")," "))}function T1e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.clientData.staffName," ")}}function M1e(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 D1e(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 E1e(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 I1e(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 Jf=(()=>{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(qs,5),Ee(zs,5),Ee(Qf,5),Ee(Yf,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,u1e,3,3,"div",7),E(19,f1e,2,1,"div",8),E(20,h1e,3,3,"div",7),E(21,g1e,2,1,"div",8),E(22,_1e,3,3,"div",7),E(23,C1e,2,1,"div",8),E(24,v1e,3,3,"div",7),E(25,x1e,3,3,"div",8),E(26,b1e,3,3,"div",7),E(27,y1e,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,S1e,3,3,"div",7),E(35,w1e,2,1,"div",8),E(36,P1e,3,3,"div",7),E(37,T1e,2,1,"div",8),r()(),E(38,M1e,2,1,"mat-tab",9),E(39,D1e,2,1,"mat-tab",10),E(40,E1e,2,1,"mat-tab",11),E(41,I1e,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),Wo(" ",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,Yo,si,vl,Nr,Qr,qs,zs,Qf,Yf,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 O1e(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 A1e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",5),Se(5,O1e,2,2,"mat-option",6,Pe),r()()),e&2){let t=w(2);a(2),h(m(3,2,"labels.inputs.Office")),a(2),g("formControl",t.officeSelector),a(),we(t.officeData)}}function F1e(e,o){e&1&&F(0,A1e,7,4,"mat-form-field",4),e&2&&g("mifosxHasPermission","READ_OFFICES")}function k1e(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 B1e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),r(),l(3,"mat-select",5),Se(4,k1e,2,2,"mat-option",6,Pe),r()()),e&2){let t=w(2);a(2),h(t.employeeData.length?"Officer":"No Associated Officers"),a(),g("formControl",t.employeeSelector),a(),we(t.employeeData)}}function R1e(e,o){e&1&&F(0,B1e,6,2,"mat-form-field",4),e&2&&g("mifosxHasPermission","READ_STAFF")}function N1e(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 L1e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),r(),l(3,"mat-select",5),Se(4,N1e,2,2,"mat-option",6,Pe),r()()),e&2){let t=w(2);a(2),h(t.centerData.length?"Center":"No Associated Centers"),a(),g("formControl",t.centerSelector),a(),we(t.centerData)}}function V1e(e,o){e&1&&F(0,L1e,6,2,"mat-form-field",4),e&2&&g("mifosxHasPermission","READ_CENTERS")}function q1e(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 z1e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),r(),l(3,"mat-select",5),Se(4,q1e,2,2,"mat-option",6,Pe),r()()),e&2){let t=w(2);a(2),h(t.groupData.length?"Group":"No Associated Groups"),a(),g("formControl",t.groupSelector),a(),we(t.groupData)}}function H1e(e,o){e&1&&F(0,z1e,6,2,"mat-form-field",4),e&2&&g("mifosxHasPermission","READ_GROUPS")}function G1e(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 j1e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),r(),l(3,"mat-select",5),Se(4,G1e,2,2,"mat-option",6,Pe),r()()),e&2){let t=w(2);a(2),h(t.clientData.length?"Client":"No Associated Clients"),a(),g("formControl",t.clientSelector),a(),we(t.clientData)}}function $1e(e,o){e&1&&F(0,j1e,6,2,"mat-form-field",4),e&2&&g("mifosxHasPermission","READ_CLIENTS")}function U1e(e,o){if(e&1&&b(0,"mifosx-office-navigation",7),e&2){let t=w(2);g("officeData",t.selectedItem)("employeeData",t.employeeData)}}function W1e(e,o){if(e&1&&b(0,"mifosx-staff-navigation",8),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",9),e&2){let t=w(2);g("centerData",t.selectedItem)("groupData",t.groupData)("centerAccountsData",t.selectedItemAccounts)("centerSummaryData",t.selectedItemSummary)}}function Y1e(e,o){if(e&1&&b(0,"mifosx-group-navigation",10),e&2){let t=w(2);g("groupData",t.selectedItem)("clientData",t.clientData)("groupAccountsData",t.selectedItemAccounts)}}function J1e(e,o){if(e&1&&b(0,"mifosx-client-navigation",11),e&2){let t=w(2);g("clientData",t.selectedItem)("clientAccountsData",t.selectedItemAccounts)}}function K1e(e,o){if(e&1&&(l(0,"mat-card",3),E(1,U1e,1,2,"mifosx-office-navigation",7),E(2,W1e,1,2,"mifosx-staff-navigation",8),E(3,Q1e,1,4,"mifosx-center-navigation",9),E(4,Y1e,1,3,"mifosx-group-navigation",10),E(5,J1e,1,2,"mifosx-client-navigation",11),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 OC=(()=>{class e{constructor(){this.navigationService=T(IC),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(jf,5),Ee($f,5),Ee(Uf,5),Ee(Wf,5),Ee(Jf,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"],[4,"mifosxHasPermission"],[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,F1e,1,1,"mat-form-field"),E(6,R1e,1,1,"mat-form-field"),E(7,V1e,1,1,"mat-form-field"),E(8,H1e,1,1,"mat-form-field"),E(9,$1e,1,1,"mat-form-field"),r()()(),l(10,"div",2),E(11,K1e,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,Ue,gn,$e,Je,Fe,Be,gt,ft,Ke,jf,$f,Uf,Wf,Jf,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 kM=(()=>{class e{constructor(){this.navigationService=T(IC)}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 X1e=[_o.withShell([{path:"navigation",component:OC,data:{title:"Navigation",breadcrumb:"Navigation"},resolve:{offices:kM}}])],P9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[kM],imports:[hn.forChild(X1e),hn]})}}return e})();var T9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,ha,P9,OC,jf,$f,Uf,Wf,Jf,qs,Qf,zs,Yf]})}}return e})();var Z1e=["showClosedAccounts"],ehe=()=>[5,50,100],the=()=>["../","organization","bulk-import","Clients"],ihe=()=>["create"],nhe=e=>[e,"general"];function ohe(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 ahe(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,the)),a(2),v("",m(3,2,"labels.buttons.Import Client")," "))}function rhe(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,ihe)),a(2),v("",m(3,2,"labels.buttons.Create Client")," "))}function lhe(e,o){e&1&&(l(0,"div"),b(1,"mat-progress-bar",30),r())}function she(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 che(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Nt(2,nhe,t.id)),a(),h(t.displayName)}}function phe(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 mhe(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 dhe(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 uhe(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 fhe(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 hhe(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 ghe(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 _he(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function Che(e,o){e&1&&b(0,"tr",40)}function vhe(e,o){e&1&&b(0,"tr",41)}var AC=(()=>{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(){xn.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(Z1e,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,ohe,5,3,"div",6),l(6,"div",7),F(7,ahe,4,5,"button",8)(8,rhe,4,5,"button",8),r()(),l(9,"div",9),E(10,lhe,2,0,"div"),l(11,"table",10),R("matSortChange",function(d){return i.sortChanged(d)}),X(12,11),F(13,she,3,3,"th",12)(14,che,2,4,"td",13),Z(),X(15,14),F(16,phe,3,3,"th",12)(17,mhe,2,2,"td",15),Z(),X(18,16),F(19,dhe,3,3,"th",12)(20,uhe,2,2,"td",15),Z(),X(21,17),F(22,fhe,3,3,"th",18)(23,hhe,7,6,"td",15),Z(),X(24,19),F(25,ghe,3,3,"th",18)(26,_he,2,1,"td",15),Z(),F(27,Che,1,0,"tr",20)(28,vhe,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,ehe))("length",i.totalRows),a(),g("hidden",!i.notExistsClientsToFilter),a(3),v(" ",m(34,13,"labels.text.No client was found")," "))},dependencies:[ue,co,fe,Ae,$e,Fe,ze,ve,fi,Ke,ke,as,_t,It,xt,vt,bt,ri,Ct,yt,lc,Ea,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 xhe=()=>({confirm:!0}),FC=(()=>{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,xhe)),a(),v(" ",m(13,11,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,ve,Un,ho,Nn,$n,he],encapsulation:2})}}return e})();var kC=(()=>{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,ve,Un,Ep,Nn,$n,he],encapsulation:2})}}return e})();var j9=Is(G9());var Khe=()=>({delete:!0}),Xhe=()=>({upload:!0});function Zhe(e,o){if(e&1&&(l(0,"div",1),b(1,"img",6),r()),e&2){let t=w();a(),g("src",t.signatureImage,bp)}}function ege(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 tge(e,o){e&1&&(l(0,"button",4),c(1),p(2,"translate"),r()),e&2&&(g("mat-dialog-close",oe(4,Khe)),a(),v(" ",m(2,2,"labels.buttons.Delete")," "))}function ige(e,o){e&1&&(l(0,"button",5),c(1),p(2,"translate"),r()),e&2&&(g("mat-dialog-close",oe(4,Xhe)),a(),v(" ",m(2,2,"labels.buttons.Upload")," "))}var LC=(()=>{class e{constructor(){this.dialogRef=T(eo),this.clientsService=T(Oi),this.sanitizer=T(ec),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=>Yn(this,null,function*(){let n=j9.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,Zhe,2,1,"div",1),E(4,ege,4,3,"div",1),l(5,"mat-dialog-actions",2)(6,"button",3),c(7),p(8,"translate"),r(),E(9,tge,3,5,"button",4),E(10,ige,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,ve,Un,ho,Nn,$n,he],encapsulation:2})}}return e})();var nge=e=>({delete:!0,id:e}),oge=()=>({upload:!0});function age(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 rge(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 lge(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,nge,t.signatureId)),a(),v(" ",m(2,2,"labels.buttons.Confirm")," ")}}function sge(e,o){e&1&&(l(0,"button",5),c(1),p(2,"translate"),r()),e&2&&(g("mat-dialog-close",oe(4,oge)),a(),v(" ",m(2,2,"labels.buttons.Upload")," "))}var VC=(()=>{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,age,4,3,"div",1),E(4,rge,4,3,"div",1),l(5,"mat-dialog-actions",2)(6,"button",3),c(7),p(8,"translate"),r(),E(9,lge,3,6,"button",4),E(10,sge,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,ve,Un,ho,Nn,$n,he],encapsulation:2})}}return e})();var qC=(()=>{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,ve,Un,Ep,Nn,$n,he],encapsulation:2})}}return e})();var cge=["video"],pge=["canvas"],mge=["fallback"],dge=["captureButton"],$9=()=>({display:"none"});function uge(e,o){if(e&1){let t=Y();l(0,"button",14,3),R("click",function(){z(t);let i=w();return H(i.capture())}),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Capture")," "))}function fge(e,o){if(e&1){let t=Y();l(0,"button",14),R("click",function(){z(t);let i=w();return H(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 zC=(()=>{class e{constructor(){this.dialogRef=T(eo),this.renderer=T(Cg),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(cge,7),Ee(pge,7),Ee(mge,7),Ee(dge,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,uge,4,3,"button",10),E(12,fge,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,$9)),a(2),g("ngStyle",oe(16,$9)),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,os,fe,ve,Un,ke,Nn,$n,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 hge=()=>["./general"],gge=()=>["./address"],_ge=()=>["./family-members"],Cge=()=>["edit"],vge=()=>["loans-accounts","create"],xge=()=>["savings-accounts","create"],bge=()=>["shares-accounts","create"],yge=()=>["recurring-deposits-accounts","create-recurring-deposits-account"],Sge=()=>["fixed-deposits-accounts","create"],wge=()=>["./identities"],Pge=()=>["./documents"],Tge=()=>["./notes"],Mge=e=>["./datatables",e];function Dge(e,o){if(e&1){let t=Y();l(0,"button",45),p(1,"translate"),R("click",function(){z(t);let i=w();return H(i.doAction("Upload Image"))}),b(2,"i",46),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Upload Image")))}function Ege(e,o){if(e&1){let t=Y();l(0,"button",45),p(1,"translate"),R("click",function(){z(t);let i=w();return H(i.doAction("Capture Image"))}),b(2,"i",47),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Capture Image")))}function Ige(e,o){if(e&1){let t=Y();l(0,"button",45),p(1,"translate"),R("click",function(){z(t);let i=w();return H(i.doAction("Delete Image"))}),b(2,"i",48),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Delete Image")))}function Oge(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 Age(e,o){if(e&1&&(l(0,"td"),c(1),r()),e&2){let t=w();a(),h(t.clientViewData.staffName)}}function Fge(e,o){e&1&&(l(0,"td"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Unassigned")))}function kge(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 Bge(e,o){if(e&1&&(l(0,"tr")(1,"td")(2,"b"),c(3),p(4,"translate"),r()(),l(5,"td"),Se(6,kge,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 Rge(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 Nge(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,Cge)),a(4),h(m(5,2,"labels.buttons.Edit")))}function Lge(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=xe(97);g("matMenuTriggerFor",t),a(4),h(m(5,2,"labels.buttons.Applications"))}}function Vge(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){z(t);let i=w();return H(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 qge(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){z(t);let i=w(2);return H(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 zge(e,o){e&1&&(l(0,"span"),F(1,qge,6,3,"button",40),r()),e&2&&(a(),g("mifosxHasPermission","UNASSIGNSTAFF_CLIENT"))}function Hge(e,o){e&1&&(l(0,"button",50),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,vge)),a(),v(" ",m(2,2,"labels.buttons.New Loan Account")," "))}function Gge(e,o){e&1&&(l(0,"button",50),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,xge)),a(),v(" ",m(2,2,"labels.buttons.New Savings Account")," "))}function jge(e,o){e&1&&(l(0,"button",50),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,bge)),a(),v(" ",m(2,2,"labels.buttons.New Share Account")," "))}function $ge(e,o){e&1&&(l(0,"button",50),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,yge)),a(),v(" ",m(2,2,"labels.buttons.New Recurring Deposit Account")," "))}function Uge(e,o){e&1&&(l(0,"button",50),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,Sge)),a(),v(" ",m(2,2,"labels.buttons.New Fixed Deposits Account")," "))}function Wge(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){z(t);let i=w();return H(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(){z(t);let i=w();return H(i.doAction("Withdraw"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Withdraw")," "))}function Yge(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){z(t);let i=w();return H(i.doAction("Reject"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),h(m(3,1,"labels.buttons.Reject")))}function Jge(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){z(t);let i=w(2);return H(i.doAction("Delete"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Delete")," "))}function Kge(e,o){e&1&&(l(0,"span"),F(1,Jge,3,3,"button",40),r()),e&2&&(a(),g("mifosxHasPermission","DELETE_CLIENT"))}function Xge(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){z(t);let i=w();return H(i.doAction("Reactivate"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Reactivate")," "))}function Zge(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){z(t);let i=w();return H(i.doAction("Undo Rejection"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Undo Rejection")," "))}function e_e(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){z(t);let i=w();return H(i.doAction("Undo Transfer"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Undo Transfer")," "))}function t_e(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){z(t);let i=w();return H(i.doAction("Accept Transfer"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Accept Transfer")," "))}function i_e(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){z(t);let i=w();return H(i.doAction("Reject Transfer"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Reject transfer")," "))}function n_e(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){z(t);let i=w();return H(i.doAction("Add Charge"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Add Charge")," "))}function o_e(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){z(t);let i=w();return H(i.doAction("Update Default Savings"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Update Default Savings")," "))}function a_e(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){z(t);let i=w();return H(i.doAction("Upload Signature"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Upload Signature")," "))}function r_e(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){z(t);let i=w();return H(i.doAction("Delete Signature"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Delete Signature")," "))}function l_e(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){z(t);let i=w();return H(i.doAction("Create Standing Instructions"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Create Standing Instructions")," "))}function s_e(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){z(t);let i=w(2);return H(i.doAction("View Standing Instructions"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.View Standing Instructions")," "))}function c_e(e,o){e&1&&(l(0,"span"),F(1,s_e,3,3,"button",40),r()),e&2&&(a(),g("mifosxHasPermission","READ_STANDINGINSTRUCTION"))}function p_e(e,o){if(e&1&&(l(0,"a",43,8),c(2),p(3,"translate"),r()),e&2){let t=xe(1);g("routerLink",oe(5,wge))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Identities")," ")}}function m_e(e,o){if(e&1&&(l(0,"a",43,9),c(2),p(3,"translate"),r()),e&2){let t=xe(1);g("routerLink",oe(5,Pge))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Documents")," ")}}function d_e(e,o){if(e&1&&(l(0,"a",43,10),c(2),p(3,"translate"),r()),e&2){let t=xe(1);g("routerLink",oe(5,Tge))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Notes")," ")}}function u_e(e,o){if(e&1&&(l(0,"a",43,11),c(2),r()),e&2){let t=xe(1),n=w().$implicit;g("routerLink",Nt(3,Mge,n.registeredTableName))("active",t.isActive),a(2),v(" ",n.registeredTableName," ")}}function f_e(e,o){if(e&1&&F(0,u_e,3,5,"a",44),e&2){let t=o.$implicit;g("mifosxHasPermission","READ_"+t.registeredTableName)}}var HC=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.clientsService=T(Oi),this._sanitizer=T(ec),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(FC).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(LC,{data:{documents:t,id:this.clientViewData.id}}).afterClosed().subscribe(i=>{i.upload?this.uploadSignature():i.delete&&this.deleteSignature()})})}uploadSignature(){this.dialog.open(kC).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(VC,{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(zC).afterClosed().subscribe(n=>{n&&this.clientsService.uploadCapturedClientProfileImage(this.clientViewData.id,n).subscribe(()=>{this.reload()})})}uploadProfileImage(){this.dialog.open(qC).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,Dge,3,4,"button",18)(8,Ege,3,4,"button",18)(9,Ige,3,4,"button",18),b(10,"br"),r(),l(11,"p",19),R("click",function(){return z(s),H(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,Oge,8,6,"tr"),l(55,"tr")(56,"td")(57,"b"),c(58),p(59,"translate"),r()(),E(60,Age,2,1,"td"),E(61,Fge,3,3,"td"),r()()()(),l(62,"div",30)(63,"table",31)(64,"tbody"),E(65,Bge,8,3,"tr"),E(66,Rge,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,Nge,6,5,"button",34),E(84,Lge,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,Vge,6,3,"button",38),E(92,zge,2,1,"span"),l(93,"button",35),c(94),p(95,"translate"),r()(),l(96,"mat-menu",null,1),F(98,Hge,3,5,"button",34)(99,Gge,3,5,"button",34)(100,jge,3,5,"button",34)(101,$ge,3,5,"button",34)(102,Uge,3,5,"button",34),r(),l(103,"mat-menu",null,2)(105,"button",39),R("click",function(){return z(s),H(i.doAction("Close"))}),c(106),p(107,"translate"),r(),l(108,"button",39),R("click",function(){return z(s),H(i.doAction("Transfer Client"))}),c(109),p(110,"translate"),r(),E(111,Wge,4,3,"span"),E(112,Qge,4,3,"span"),E(113,Yge,4,3,"span"),E(114,Kge,2,1,"span"),E(115,Xge,4,3,"span"),E(116,Zge,4,3,"span"),E(117,e_e,4,3,"span"),E(118,t_e,4,3,"span"),E(119,i_e,4,3,"span"),r(),l(120,"mat-menu",null,3),F(122,n_e,3,3,"button",40),l(123,"button",39),R("click",function(){return z(s),H(i.doAction("Create Collateral"))}),c(124),p(125,"translate"),r(),l(126,"button",41),R("click",function(){return z(s),H(i.doAction("Survey"))}),c(127),p(128,"translate"),r(),F(129,o_e,3,3,"button",40)(130,a_e,3,3,"button",40)(131,r_e,3,3,"button",40),l(132,"button",39),R("click",function(){return z(s),H(i.doAction("Client Screen Reports"))}),c(133),p(134,"translate"),r(),F(135,l_e,3,3,"button",40),E(136,c_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,p_e,4,6,"a",44)(152,m_e,4,6,"a",44)(153,d_e,4,6,"a",44),Se(154,f_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=xe(82),d=xe(104),u=xe(121),f=xe(140),_=xe(144),C=xe(148),x=xe(157);a(5),g("src",i.clientImage?i.clientImage:"assets/images/user_placeholder.png",bp),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,hge))("active",f.isActive),a(2),v(" ",m(142,114,"labels.inputs.General")," "),a(2),g("routerLink",oe(121,gge))("active",_.isActive),a(2),v(" ",m(146,116,"labels.inputs.Address")," "),a(2),g("routerLink",oe(122,_ge))("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,Ae,$e,Je,ve,Ke,sa,Wr,S0,si,Yo,Bk,wi,oc,Jo,ke,vl,lc,Ea,nc,ic,ir,nr,Na,or,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 h_e=()=>["../","charges","overview"],g_e=e=>["../","charges",e,"pay"],__e=e=>["../","charges",e],C_e=e=>["../","loans-accounts",e,"actions","Make Repayment"],v_e=e=>["../","loans-accounts",e,"actions","Approve"],x_e=e=>["../","loans-accounts",e,"actions","Disburse"],U9=e=>["../","loans-accounts",e,"general"],b_e=e=>["../","savings-accounts",e,"actions","Deposit"],y_e=e=>["../","savings-accounts",e,"actions","Withdrawal"],S_e=e=>["../","savings-accounts",e,"actions","Approve"],w_e=e=>["../","savings-accounts",e,"actions","Undo Approval"],P_e=e=>["../","savings-accounts",e,"actions","Activate"],W9=e=>["../","savings-accounts",e,"general"],T_e=e=>["../","fixed-deposits-accounts",e,"actions","Approve"],M_e=e=>["../","fixed-deposits-accounts",e,"actions","Undo Approval"],D_e=e=>["../","fixed-deposits-accounts",e,"actions","Activate"],Q9=e=>["../","fixed-deposits-accounts",e,"general"],E_e=e=>["../","recurring-deposits-accounts",e,"actions","Approve"],I_e=e=>["../","recurring-deposits-accounts",e,"actions","Undo Approval"],O_e=e=>["../","recurring-deposits-accounts",e,"actions","Activate"],Y9=e=>["../","recurring-deposits-accounts",e,"general"],A_e=e=>["../","shares-accounts",e,"actions","Approve"],F_e=e=>["../","shares-accounts",e,"actions","Undo Approval"],k_e=e=>["../","shares-accounts",e,"actions","Activate"],J9=e=>["../","shares-accounts",e,"general"],B_e=e=>["../","client-collateral",e];function R_e(e,o){e&1&&(l(0,"button",30),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,h_e)),a(),v(" ",m(2,2,"labels.buttons.Charges Overview")," "))}function N_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 L_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 V_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 q_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 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.Due")))}function H_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 G_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 j_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 $_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 U_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 W_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 Y_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 J_e(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){z(t);let s=w(2);return H(s.routeEdit(i))}),b(1,"i",41),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,g_e,t.id))}}function K_e(e,o){if(e&1){let t=Y();l(0,"button",42),R("click",function(i){z(t);let s=w().$implicit,d=w();return d.routeEdit(i),H(d.waiveCharge(s.id,s.clientId))}),b(1,"i",43),r()}}function X_e(e,o){e&1&&(l(0,"td",37),F(1,J_e,2,3,"button",38)(2,K_e,2,0,"button",39),r()),e&2&&(a(),g("mifosxHasPermission","PAY_CLIENTCHARGE"),a(),g("mifosxHasPermission","WAIVE_CLIENTCHARGE"))}function Z_e(e,o){e&1&&b(0,"tr",44)}function eCe(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,__e,t.id))}}function tCe(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 iCe(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 nCe(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 oCe(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 aCe(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 rCe(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.originalLoan)}}function lCe(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 sCe(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 cCe(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 pCe(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 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",Le(t.loanType.value))("ngClass",t.loanType.value==="Individual"?"fa-user":"fa-group")}}function uCe(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 fCe(e,o){if(e&1){let t=Y();l(0,"button",57),p(1,"translate"),R("click",function(i){z(t);let s=w(3);return H(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,C_e,t.id))}}function hCe(e,o){if(e&1){let t=Y();l(0,"button",57),p(1,"translate"),R("click",function(i){z(t);let s=w(4);return H(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,v_e,t.id))}}function gCe(e,o){e&1&&(l(0,"span"),F(1,hCe,3,7,"button",58),r()),e&2&&(a(),g("mifosxHasPermission","APPROVE_LOAN"))}function _Ce(e,o){if(e&1){let t=Y();l(0,"button",57),p(1,"translate"),R("click",function(i){z(t);let s=w(4);return H(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,x_e,t.id))}}function CCe(e,o){e&1&&(l(0,"span"),F(1,_Ce,3,7,"button",58),r()),e&2&&(a(),g("mifosxHasPermission","DISBURSE_LOAN"))}function vCe(e,o){if(e&1){let t=Y();l(0,"button",61),p(1,"translate"),R("click",function(i){z(t);let s=w(2).$implicit,d=w(2);return d.routeEdit(i),H(d.routeTransferFund(s.id))}),b(2,"i",62),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Transfer Funds")))}function xCe(e,o){e&1&&(l(0,"span"),F(1,vCe,3,4,"button",60),r()),e&2&&(a(),g("mifosxHasPermission","DISBURSE_LOAN"))}function bCe(e,o){if(e&1&&(l(0,"td",37),E(1,fCe,3,7,"button",56),E(2,gCe,2,1,"span"),E(3,CCe,2,1,"span"),E(4,xCe,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 yCe(e,o){e&1&&b(0,"tr",44)}function SCe(e,o){if(e&1&&b(0,"tr",63),e&2){let t=o.$implicit;g("routerLink",Nt(1,U9,t.id))}}function wCe(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,tCe,3,3,"th",9)(4,iCe,4,5,"td",10),Z(),X(5,47),F(6,nCe,3,3,"th",9)(7,oCe,2,2,"td",10),Z(),X(8,48),F(9,aCe,3,3,"th",9)(10,rCe,2,1,"td",10),Z(),X(11,49),F(12,lCe,3,3,"th",13)(13,sCe,3,3,"td",14),Z(),X(14,50),F(15,cCe,3,3,"th",13)(16,pCe,3,3,"td",14),Z(),X(17,51),F(18,mCe,3,3,"th",19)(19,dCe,2,3,"td",20),Z(),X(20,18),F(21,uCe,3,3,"th",19)(22,bCe,5,4,"td",20),Z(),F(23,yCe,1,0,"tr",21)(24,SCe,1,3,"tr",52),r()),e&2){let t=w();g("dataSource",Ot(1,3,t.loanAccounts,"loan")),a(23),g("matHeaderRowDef",t.openLoansColumns),a(),g("matRowDefColumns",t.openLoansColumns)}}function PCe(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 TCe(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 MCe(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 DCe(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 ECe(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 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.lastActiveTransactionDate))}}function OCe(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 ACe(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 FCe(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 kCe(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 BCe(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 RCe(e,o){if(e&1&&(l(0,"td",37),b(1,"i",55),r()),e&2){let t=o.$implicit;a(),g("matTooltip",Sp(" ",t.loanType.value))("ngClass",t.loanType.value==="Individual"?"fa-user":"fa-group")}}function NCe(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 LCe(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 VCe(e,o){e&1&&b(0,"tr",44)}function qCe(e,o){if(e&1&&b(0,"tr",63),e&2){let t=o.$implicit;g("routerLink",Nt(1,U9,t.id))}}function zCe(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,PCe,3,3,"th",9)(4,TCe,4,5,"td",10),Z(),X(5,47),F(6,MCe,3,3,"th",9)(7,DCe,2,2,"td",10),Z(),X(8,48),F(9,ECe,3,3,"th",9)(10,ICe,3,3,"td",10),Z(),X(11,49),F(12,OCe,3,3,"th",13)(13,ACe,3,3,"td",14),Z(),X(14,50),F(15,FCe,3,3,"th",13)(16,kCe,3,3,"td",14),Z(),X(17,51),F(18,BCe,3,3,"th",19)(19,RCe,2,3,"td",20),Z(),X(20,64),F(21,NCe,3,3,"th",9)(22,LCe,3,3,"td",10),Z(),F(23,VCe,1,0,"tr",21)(24,qCe,1,3,"tr",52),r()),e&2){let t=w();g("dataSource",br(1,3,t.loanAccounts,"loan","closed")),a(23),g("matHeaderRowDef",t.closedLoansColumns),a(),g("matRowDefColumns",t.closedLoansColumns)}}function HCe(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 GCe(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 jCe(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 $Ce(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 UCe(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 WCe(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 YCe(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 JCe(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 KCe(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){z(t);let s=w(3);return H(s.routeEdit(i))}),b(1,"i",69),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,b_e,t.id))}}function XCe(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){z(t);let s=w(3);return H(s.routeEdit(i))}),b(1,"i",70),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,y_e,t.id))}}function ZCe(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){z(t);let s=w(3);return H(s.routeEdit(i))}),b(1,"i",59),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,S_e,t.id))}}function e2e(e,o){if(e&1&&(l(0,"button",68),b(1,"i",71),r()),e&2){let t=w().$implicit;g("routerLink",Nt(1,w_e,t.id))}}function t2e(e,o){if(e&1&&(l(0,"button",68),b(1,"i",72),r()),e&2){let t=w().$implicit;g("routerLink",Nt(1,P_e,t.id))}}function i2e(e,o){if(e&1&&(l(0,"td",37),E(1,KCe,2,3,"button",68),E(2,XCe,2,3,"button",68),E(3,ZCe,2,3,"button",68),E(4,e2e,2,3,"button",68),E(5,t2e,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 n2e(e,o){e&1&&b(0,"tr",44)}function o2e(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,W9,t.id))}}function a2e(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,HCe,3,3,"th",9)(4,GCe,4,5,"td",10),Z(),X(5,65),F(6,jCe,3,3,"th",9)(7,$Ce,2,2,"td",10),Z(),X(8,66),F(9,UCe,3,3,"th",9)(10,WCe,3,3,"td",10),Z(),X(11,67),F(12,QCe,3,3,"th",13)(13,YCe,3,3,"td",14),Z(),X(14,18),F(15,JCe,3,3,"th",19)(16,i2e,6,5,"td",20),Z(),F(17,n2e,1,0,"tr",21)(18,o2e,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 r2e(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 l2e(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 s2e(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 c2e(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 p2e(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 m2e(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 d2e(e,o){e&1&&b(0,"tr",44)}function u2e(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,W9,t.id))}}function f2e(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,r2e,3,3,"th",9)(4,l2e,4,5,"td",10),Z(),X(5,65),F(6,s2e,3,3,"th",9)(7,c2e,2,2,"td",10),Z(),X(8,64),F(9,p2e,3,3,"th",9)(10,m2e,3,3,"td",10),Z(),F(11,d2e,1,0,"tr",21)(12,u2e,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 h2e(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 g2e(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 _2e(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 C2e(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function v2e(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 x2e(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 b2e(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 y2e(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 S2e(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 w2e(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){z(t);let s=w(3);return H(s.routeEdit(i))}),b(1,"i",59),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,T_e,t.id))}}function P2e(e,o){if(e&1&&(l(0,"button",68),b(1,"i",71),r()),e&2){let t=w().$implicit;g("routerLink",Nt(1,M_e,t.id))}}function T2e(e,o){if(e&1&&(l(0,"button",68),b(1,"i",72),r()),e&2){let t=w().$implicit;g("routerLink",Nt(1,D_e,t.id))}}function M2e(e,o){if(e&1&&(l(0,"td",37),E(1,w2e,2,3,"button",68),E(2,P2e,2,3,"button",68),E(3,T2e,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 D2e(e,o){e&1&&b(0,"tr",44)}function E2e(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,Q9,t.id))}}function I2e(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,h2e,3,3,"th",9)(4,g2e,4,5,"td",10),Z(),X(5,65),F(6,_2e,3,3,"th",9)(7,C2e,2,1,"td",10),Z(),X(8,66),F(9,v2e,3,3,"th",9)(10,x2e,3,3,"td",10),Z(),X(11,67),F(12,b2e,3,3,"th",13)(13,y2e,3,3,"td",14),Z(),X(14,18),F(15,S2e,3,3,"th",19)(16,M2e,4,3,"td",20),Z(),F(17,D2e,1,0,"tr",21)(18,E2e,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 O2e(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 A2e(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 F2e(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 k2e(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 B2e(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 R2e(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 N2e(e,o){e&1&&b(0,"tr",44)}function L2e(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,Q9,t.id))}}function V2e(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,O2e,3,3,"th",9)(4,A2e,4,5,"td",10),Z(),X(5,65),F(6,F2e,3,3,"th",9)(7,k2e,2,2,"td",10),Z(),X(8,64),F(9,B2e,3,3,"th",9)(10,R2e,3,3,"td",10),Z(),F(11,N2e,1,0,"tr",21)(12,L2e,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 q2e(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 z2e(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 H2e(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 G2e(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 j2e(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 $2e(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 W2e(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 Y2e(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,E_e,t.id))}}function J2e(e,o){e&1&&F(0,Y2e,2,3,"button",73),e&2&&g("mifosxHasPermission","APPROVE_SAVINGSACCOUNT")}function K2e(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){z(t);let s=w(4);return H(s.routeEdit(i))}),b(1,"i",71),r()}if(e&2){let t=w(2).$implicit;g("routerLink",Nt(1,I_e,t.id))}}function X2e(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){z(t);let s=w(4);return H(s.routeEdit(i))}),b(1,"i",72),r()}if(e&2){let t=w(2).$implicit;g("routerLink",Nt(1,O_e,t.id))}}function Z2e(e,o){e&1&&F(0,K2e,2,3,"button",38)(1,X2e,2,3,"button",38),e&2&&(g("mifosxHasPermission","APPROVALUNDO_SAVINGSACCOUNT"),a(),g("mifosxHasPermission","ACTIVATE_SAVINGSACCOUNT"))}function eve(e,o){if(e&1&&(l(0,"td",37),E(1,J2e,1,1,"button",68),E(2,Z2e,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 tve(e,o){e&1&&b(0,"tr",44)}function ive(e,o){if(e&1&&b(0,"tr",63),e&2){let t=o.$implicit;g("routerLink",Nt(1,Y9,t.id))}}function nve(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,q2e,3,3,"th",9)(4,z2e,4,5,"td",10),Z(),X(5,65),F(6,H2e,3,3,"th",9)(7,G2e,2,2,"td",10),Z(),X(8,66),F(9,j2e,3,3,"th",9)(10,$2e,3,3,"td",10),Z(),X(11,67),F(12,U2e,3,3,"th",13)(13,W2e,3,3,"td",14),Z(),X(14,18),F(15,Q2e,3,3,"th",19)(16,eve,3,2,"td",20),Z(),F(17,tve,1,0,"tr",21)(18,ive,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 ove(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 ave(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 rve(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 lve(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 sve(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 cve(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 pve(e,o){e&1&&b(0,"tr",44)}function mve(e,o){if(e&1&&b(0,"tr",63),e&2){let t=o.$implicit;g("routerLink",Nt(1,Y9,t.id))}}function dve(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,ove,3,3,"th",9)(4,ave,4,5,"td",10),Z(),X(5,65),F(6,rve,3,3,"th",9)(7,lve,2,2,"td",10),Z(),X(8,64),F(9,sve,3,3,"th",9)(10,cve,3,3,"td",10),Z(),F(11,pve,1,0,"tr",21)(12,mve,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 uve(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 fve(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 hve(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 gve(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 _ve(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 Cve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalApprovedShares)}}function vve(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 xve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalPendingForApprovalShares)}}function bve(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 yve(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){z(t);let s=w(3);return H(s.routeEdit(i))}),b(1,"i",59),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,A_e,t.id))}}function Sve(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){z(t);let s=w(3);return H(s.routeEdit(i))}),b(1,"i",71),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,F_e,t.id))}}function wve(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){z(t);let s=w(3);return H(s.routeEdit(i))}),b(1,"i",72),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,k_e,t.id))}}function Pve(e,o){if(e&1&&(l(0,"td",37),E(1,yve,2,3,"button",68),E(2,Sve,2,3,"button",68),E(3,wve,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 Tve(e,o){e&1&&b(0,"tr",44)}function Mve(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,J9,t.id))}}function Dve(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,uve,3,3,"th",9)(4,fve,4,5,"td",10),Z(),X(5,74),F(6,hve,3,3,"th",9)(7,gve,2,2,"td",10),Z(),X(8,75),F(9,_ve,3,3,"th",9)(10,Cve,2,1,"td",10),Z(),X(11,76),F(12,vve,3,3,"th",9)(13,xve,2,1,"td",10),Z(),X(14,18),F(15,bve,3,3,"th",19)(16,Pve,4,3,"td",20),Z(),F(17,Tve,1,0,"tr",21)(18,Mve,1,3,"tr",22),r()),e&2){let t=w();g("dataSource",Ot(1,3,t.shareAccounts,"share")),a(17),g("matHeaderRowDef",t.openSharesColumns),a(),g("matRowDefColumns",t.openSharesColumns)}}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.Account No")))}function Ive(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 Ove(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 Ave(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function Fve(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 kve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalApprovedShares)}}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.Pending For Approval Shares")))}function Rve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalPendingForApprovalShares)}}function Nve(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 Lve(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 Vve(e,o){e&1&&b(0,"tr",44)}function qve(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,J9,t.id))}}function zve(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,Eve,3,3,"th",9)(4,Ive,4,5,"td",10),Z(),X(5,74),F(6,Ove,3,3,"th",9)(7,Ave,2,1,"td",10),Z(),X(8,75),F(9,Fve,3,3,"th",9)(10,kve,2,1,"td",10),Z(),X(11,76),F(12,Bve,3,3,"th",9)(13,Rve,2,1,"td",10),Z(),X(14,64),F(15,Nve,3,3,"th",9)(16,Lve,3,3,"td",10),Z(),F(17,Vve,1,0,"tr",21)(18,qve,1,3,"tr",22),r()),e&2){let t=w();g("dataSource",br(1,3,t.shareAccounts,"share","closed")),a(17),g("matHeaderRowDef",t.closedSharesColumns),a(),g("matRowDefColumns",t.closedSharesColumns)}}function Hve(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 Gve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.collateralId)}}function jve(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 $ve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function Uve(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 Wve(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 Yve(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 Jve(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 Kve(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 Xve(e,o){e&1&&b(0,"tr",44)}function Zve(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,B_e,t.collateralId))}}var GC=(()=>{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,R_e,3,5,"button",6),r()()(),l(38,"table",7),X(39,8),F(40,N_e,3,3,"th",9)(41,L_e,4,4,"td",10),Z(),X(42,11),F(43,V_e,3,3,"th",9)(44,q_e,3,3,"td",10),Z(),X(45,12),F(46,z_e,3,3,"th",13)(47,H_e,3,3,"td",14),Z(),X(48,15),F(49,G_e,3,3,"th",13)(50,j_e,3,3,"td",14),Z(),X(51,16),F(52,$_e,3,3,"th",13)(53,U_e,3,3,"td",14),Z(),X(54,17),F(55,W_e,3,3,"th",13)(56,Q_e,3,3,"td",14),Z(),X(57,18),F(58,Y_e,3,3,"th",19)(59,X_e,3,2,"td",20),Z(),F(60,Z_e,1,0,"tr",21)(61,eCe,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,wCe,25,6,"table",7),E(74,zCe,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,a2e,19,8,"table",7),E(87,f2e,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,I2e,19,8,"table",7),E(100,V2e,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,nve,19,8,"table",7),E(113,dve,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,Dve,19,6,"table",7),E(126,zve,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,Hve,3,3,"th",9)(141,Gve,2,1,"td",10),Z(),X(142,8),F(143,jve,3,3,"th",9)(144,$ve,2,1,"td",10),Z(),X(145,27),F(146,Uve,3,3,"th",13)(147,Wve,3,3,"td",14),Z(),X(148,28),F(149,Qve,3,3,"th",13)(150,Yve,3,3,"td",14),Z(),X(151,29),F(152,Jve,3,3,"th",13)(153,Kve,3,3,"td",14),Z(),F(154,Xve,1,0,"tr",21)(155,Zve,1,3,"tr",22),r()()),n&2&&(a(2),h(m(3,41,"labels.heading.Performance History")),a(8),se(" ",m(11,43,"labels.inputs.No. Of Loan Cycles")," :",i.clientSummary==null?null:i.clientSummary.loanCycle," "),a(3),se(" ",m(14,45,"labels.inputs.No. of Active Loans")," :",i.clientSummary==null?null:i.clientSummary.activeLoans," "),a(3),se(" ",m(17,47,"labels.inputs.Last Loan Amount")," :",m(18,49,i.clientSummary==null?null:i.clientSummary.lastLoanAmount)," "),a(6),se(" ",m(23,51,"labels.inputs.No. of Active Savings")," :",i.clientSummary==null?null:i.clientSummary.activeSavings," "),a(3),se(" ",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,Ae,ve,Ke,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,lc,Rk,si,Pi,he,go,rs,On],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 exe=()=>["./add"],txe=e=>[e,"edit"];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(),se("",m(2,2,"labels.inputs.First Name")," : ",t.firstName)}}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(),se("",m(2,2,"labels.inputs.Middle Name")," : ",t.middleName)}}function oxe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Last Name")," : ",t.lastName)}}function axe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Qualification")," : ",t.qualification)}}function rxe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Mobile Number")," : ",t.mobileNumber)}}function lxe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Age")," : ",t.age)}}function sxe(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(),se("",m(2,2,"labels.inputs.Is Dependent")," : ",m(3,4,t.isDependent))}}function cxe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Marital Status")," : ",t.maritalStatus)}}function pxe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Gender")," : ",t.gender)}}function mxe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Profession")," : ",t.profession)}}function dxe(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(),se("",m(2,2,"labels.inputs.Date Of Birth")," : ",m(3,4,t.dateOfBirth))}}function uxe(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=z(t),s=i.$implicit,d=i.$index,u=w();return H(u.deleteFamilyMember(s.clientId,s.id,s.firstName,d))}),b(11,"fa-icon",10),r()(),l(12,"p"),E(13,ixe,4,4,"span"),E(14,nxe,4,4,"span"),E(15,oxe,4,4,"span"),E(16,axe,4,4,"span"),E(17,rxe,4,4,"span"),E(18,lxe,4,4,"span"),E(19,sxe,5,6,"span"),E(20,cxe,4,4,"span"),E(21,pxe,4,4,"span"),E(22,mxe,4,4,"span"),E(23,dxe,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,txe,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 jC=(()=>{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,uxe,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,exe)),a(2),v("",m(9,5,"labels.buttons.Add")," "),a(3),we(i.clientFamilyMembers))},dependencies:[ue,fe,Ae,ve,ra,ke,Dr,Pr,Tr,Mr,ac,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 fxe=()=>["../"];function hxe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.First Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}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(),se(" ",m(2,3,"labels.inputs.Last Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function _xe(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(" ",Ot(2,2,t.name,"catalogs")," ")}}function Cxe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Relationship")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function vxe(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(" ",Ot(2,2,t.name,"catalogs")," ")}}function xxe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Gender")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function bxe(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(" ",Ot(2,2,t.name,"catalogs")," ")}}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(" ",Ot(2,2,t.name,"catalogs")," ")}}var $C=(()=>{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(At),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 z(s),H(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,hxe,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,gxe,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,_xe,3,5,"mat-option",12,Pe),r(),E(40,Cxe,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,vxe,3,5,"mat-option",12,Pe),r(),E(48,xxe,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,bxe,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,yxe,3,5,"mat-option",12,Pe),r()(),l(63,"mat-form-field",16),R("click",function(){z(s);let u=xe(70);return H(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=xe(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,fxe)),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,Ue,Xe,dt,Da,Ze,et,Ae,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,fi,he,Fi],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 Sxe=()=>["../../"];function wxe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.First Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}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(),se(" ",m(2,3,"labels.inputs.Last Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Txe(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(" ",Ot(2,2,t.name,"catalogs")," ")}}function Mxe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Relationship")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Dxe(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(" ",Ot(2,2,t.name,"catalogs")," ")}}function Exe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Gender")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Ixe(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(" ",Ot(2,2,t.name,"catalogs")," ")}}function Oxe(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(" ",Ot(2,2,t.name,"catalogs")," ")}}var UC=(()=>{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(At),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 z(s),H(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,wxe,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,Pxe,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,Txe,3,5,"mat-option",12,Pe),r(),E(40,Mxe,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,Dxe,3,5,"mat-option",12,Pe),r(),E(48,Exe,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,Ixe,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,Oxe,3,5,"mat-option",12,Pe),r()(),l(63,"mat-form-field",16),R("click",function(){z(s);let u=xe(70);return H(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=xe(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,Sxe)),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,Ue,Xe,dt,Ze,et,Ae,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,fi,he,Fi],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 Axe=["identifiersTable"],Fxe=["identityLightbox"],kxe=()=>({"margin-top":"3%"});function Bxe(e,o){if(e&1){let t=Y();l(0,"button",18),R("click",function(){z(t);let i=w();return H(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 Rxe(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 Nxe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.id)}}function Lxe(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 Vxe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.documentType.name)}}function qxe(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 zxe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.documentKey)}}function Hxe(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 Gxe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.description)}}function jxe(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 $xe(e,o){if(e&1&&b(0,"img",26),e&2){let t=w().$implicit,n=w(3);g("src",n.previewThumbnails[t.id],bp)("alt",t.name)("title",t.name)}}function Uxe(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 Wxe(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 Yxe(e,o){if(e&1){let t=Y();l(0,"div",24)(1,"div",25),p(2,"translate"),R("keydown.enter",function(){let i=z(t).$implicit,s=w(2).$implicit,d=w();return H(d.isPreviewable(i)&&d.openDocumentPreview(s,i))})("keydown.space",function(){let i=z(t).$implicit,s=w(2).$implicit,d=w();return H(d.isPreviewable(i)&&d.openDocumentPreview(s,i))})("click",function(){let i=z(t).$implicit,s=w(2).$implicit,d=w();return H(d.isPreviewable(i)&&d.openDocumentPreview(s,i))}),E(3,$xe,1,3,"img",26)(4,Uxe,4,1,"div",27),E(5,Wxe,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(),Cl("clickable",n.isPreviewable(t)),wn("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 Jxe(e,o){if(e&1&&(l(0,"div",22),Se(1,Yxe,10,9,"div",24,gd().trackByDocumentId,!0),r()),e&2){let t=w().$implicit;a(),we(t.documents)}}function Kxe(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 Xxe(e,o){if(e&1&&(l(0,"td",21),E(1,Jxe,3,0,"div",22)(2,Kxe,3,3,"span",23),r()),e&2){let t=o.$implicit;a(),I(t.documents!=null&&t.documents.length?1:2)}}function Zxe(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 ebe(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 tbe(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 ibe(e,o){if(e&1){let t=Y();l(0,"button",35),p(1,"translate"),p(2,"translate"),R("click",function(){z(t);let i=w(),s=i.$implicit,d=i.index,u=w();return H(u.deleteIdentifier(s.clientId,s.id,d))}),b(3,"fa-icon",36),r()}e&2&&(g("title",m(1,2,"labels.buttons.Delete")),wn("aria-label",m(2,4,"labels.buttons.Delete")))}function nbe(e,o){e&1&&(l(0,"td",21),F(1,ibe,4,6,"button",34),r()),e&2&&(a(),g("mifosxHasPermission","DELETE_CLIENTIDENTIFIER"))}function obe(e,o){e&1&&b(0,"tr",37)}function abe(e,o){e&1&&b(0,"tr",38)}var WC=(()=>{class e{constructor(){this.route=T(Ie),this.dialog=T(Ht),this.clientService=T(Oi),this.translateService=T(yi),this.documentPreviewService=T(Ak),this.destroyRef=T(dF),this.identitiesColumns=["id","description","type","documentKey","documents","status","actions"],this.previewThumbnails={},this.lightboxInstance=null,this.lightboxPlugins=[Ok,Ik,Ek],this.clientId=this.route.parent.snapshot.paramMap.get("clientId"),this.route.data.pipe(Nk(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(Qg,{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 Yn(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=Dk(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(Axe,7),Ee(Fxe,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,Bxe,4,3,"button",4),r(),l(6,"table",5,0),X(8,6),F(9,Rxe,3,3,"th",7)(10,Nxe,2,1,"td",8),Z(),X(11,9),F(12,Lxe,3,3,"th",7)(13,Vxe,2,1,"td",8),Z(),X(14,10),F(15,qxe,3,3,"th",7)(16,zxe,2,1,"td",8),Z(),X(17,11),F(18,Hxe,3,3,"th",7)(19,Gxe,2,1,"td",8),Z(),X(20,12),F(21,jxe,3,3,"th",7)(22,Xxe,3,1,"td",8),Z(),X(23,13),F(24,Zxe,3,3,"th",7)(25,ebe,2,1,"td",8),Z(),X(26,14),F(27,tbe,3,3,"th",7)(28,nbe,2,1,"td",8),Z(),F(29,obe,1,0,"tr",15)(30,abe,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,kxe)),a(23),g("matHeaderRowDef",i.identitiesColumns),a(),g("matRowDefColumns",i.identitiesColumns))},dependencies:[ue,os,fe,ve,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 QC=(()=>{class e{constructor(){this.route=T(Ie),this.clientsService=T(Oi),this.authenticationService=T(Qo),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,A0],encapsulation:2})}}return e})();var YC=(()=>{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,Fk],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 JC=(()=>{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 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(),se("",m(2,2,"labels.inputs.Street")," : ",t.street)}}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(),se("",m(2,2,"labels.inputs.Address Line")," 1 : ",t.addressLine1)}}function sbe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Address Line")," 2 : ",t.addressLine2)}}function cbe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Address Line")," 3 : ",t.addressLine3)}}function pbe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Town / Village")," : ",t.townVillage)}}function mbe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.City")," : ",t.city)}}function dbe(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(),se("",m(2,2,"labels.inputs.State / Province")," : ",(t=i.getSelectedValue("stateProvinceIdOptions",n.stateProvinceId))==null?null:t.name)}}function ube(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(),se("",m(2,2,"labels.inputs.Country")," : ",(t=i.getSelectedValue("countryIdOptions",n.countryId))==null?null:t.name)}}function fbe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Postal Code")," : ",t.postalCode)}}function hbe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Active Status")," : ",t.isActive)}}function gbe(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=z(t),s=i.$implicit,d=i.$index,u=w();return H(u.editAddress(s,d))}),b(9,"fa-icon",8),r(),l(10,"mat-slide-toggle",9),R("change",function(){let i=z(t).$implicit,s=w();return H(s.toggleAddress(i))}),r()(),l(11,"p"),E(12,rbe,4,4,"span"),E(13,lbe,4,4,"span"),E(14,sbe,4,4,"span"),E(15,cbe,4,4,"span"),E(16,pbe,4,4,"span"),E(17,mbe,4,4,"span"),E(18,dbe,4,4,"span"),E(19,ube,4,4,"span"),E(20,fbe,4,4,"span"),E(21,hbe,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 KC=(()=>{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,gbe,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,ve,ke,Dr,Pr,Tr,Mr,ac,Ri,Bp,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 _be=()=>["../../"];function Cbe(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 vbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Staff")," ",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.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,Cbe,2,2,"mat-option",5,Pe),r(),E(12,vbe,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,_be)),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,Ue,Xe,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,gt,ft,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var xbe=()=>["../../"];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(),se(" ",m(2,3,"labels.inputs.Closed On Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ybe(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 Sbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Closure 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(At),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:["",re.required],closureReasonId:["",re.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 z(s),H(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){z(s);let u=xe(12);return H(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,ybe,2,2,"mat-option",9,Pe),r(),E(21,Sbe,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=xe(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,xbe)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var wbe=()=>["../Take Survey"],Pbe=()=>[10,25,50,100];function Tbe(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 Mbe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.surveyName)}}function Dbe(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 Ebe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdBy)}}function Ibe(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 Obe(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 Abe(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 Fbe(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 kbe(e,o){e&1&&b(0,"tr",24)}function Bbe(e,o){e&1&&b(0,"tr",25)}var e2=(()=>{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,Tbe,3,3,"th",10)(16,Mbe,2,1,"td",11),Z(),X(17,12),F(18,Dbe,3,3,"th",13)(19,Ebe,2,1,"td",11),Z(),X(20,14),F(21,Ibe,3,3,"th",15)(22,Obe,3,3,"td",11),Z(),X(23,16),F(24,Abe,3,3,"th",15)(25,Fbe,3,3,"td",11),Z(),F(26,kbe,1,0,"tr",17)(27,Bbe,1,0,"tr",18),r(),b(28,"mat-paginator",19),r()()),n&2&&(a(),g("routerLink",oe(11,wbe)),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,Pbe)))},dependencies:[ue,fe,Ae,Fe,Be,ze,ve,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he,Yr,On],styles:[".headingContent[_ngcontent-%COMP%]{margin-bottom:1%;margin-top:1%}.headingName[_ngcontent-%COMP%]{display:block}"]})}}return e})();var Rbe=()=>["../../"];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(),se(" ",m(2,3,"labels.inputs.Rejection Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Lbe(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 Vbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Rejection 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(At),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:["",re.required],rejectionReasonId:["",re.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 z(s),H(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){z(s);let u=xe(12);return H(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,"mat-form-field",7)(15,"mat-label"),c(16),p(17,"translate"),r(),l(18,"mat-select",8),Se(19,Lbe,2,2,"mat-option",9,Pe),r(),E(21,Vbe,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=xe(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,Rbe)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var qbe=()=>["../../"];function zbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Activated On 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(At),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:["",re.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 z(s),H(i.submit())}),l(3,"mat-card-content")(4,"mat-form-field",3),R("click",function(){z(s);let u=xe(11);return H(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,zbe,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=xe(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,qbe)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Hbe=()=>["../../"];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(),se(" ",m(2,3,"labels.inputs.Withdrawal Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function jbe(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 $be(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Withdrawal 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.clientsService=T(Oi),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(At),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:["",re.required],withdrawalReasonId:["",re.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 z(s),H(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){z(s);let u=xe(12);return H(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,Gbe,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,jbe,2,2,"mat-option",9,Pe),r(),E(21,$be,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=xe(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,Hbe)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Ube=()=>["../../"];function Wbe(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(),se(" ",m(2,3,"labels.inputs.Account")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var o2=(()=>{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,Wbe,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,Ube)),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,Ue,Xe,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,gt,ft,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Ybe=()=>["../../"];function Jbe(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 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(),se(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Xbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Transfer Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var a2=(()=>{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(At),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:["",re.required],transferDate:["",re.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 z(s),H(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,Jbe,2,2,"mat-option",5,Pe),r(),E(12,Kbe,7,9,"mat-error"),r(),l(13,"mat-form-field",6),R("click",function(){z(s);let u=xe(20);return H(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,Xbe,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=xe(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,Ybe)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Zbe=()=>["../../"],r2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.settingsService=T(At),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 z(s),H(i.submit())}),l(3,"mat-card-content",3)(4,"mat-form-field",4),R("click",function(){z(s);let u=xe(11);return H(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=xe(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,Zbe)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ai,ze,mi,di,pi,ve,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var eye=()=>["../../"],l2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.settingsService=T(At),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 z(s),H(i.submit())}),l(3,"mat-card-content",3)(4,"mat-form-field",4),R("click",function(){z(s);let u=xe(11);return H(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=xe(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,eye)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ai,ze,mi,di,pi,ve,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var tye=()=>["../../"],s2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.settingsService=T(At),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 z(s),H(i.submit())}),l(3,"mat-card-content",3)(4,"mat-form-field",4),R("click",function(){z(s);let u=xe(11);return H(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=xe(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,tye)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ai,ze,mi,di,pi,ve,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var iye=()=>["../../"];function nye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Reactivation Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var c2=(()=>{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(At),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:["",re.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 z(s),H(i.submit())}),l(3,"mat-card-content")(4,"mat-form-field",3),R("click",function(){z(s);let u=xe(11);return H(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,nye,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=xe(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,iye)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var oye=()=>["../../"];function aye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Reopened On Date")," ",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.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(At),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:["",re.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 z(s),H(i.submit())}),l(3,"mat-card-content")(4,"mat-form-field",3),R("click",function(){z(s);let u=xe(11);return H(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,aye,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=xe(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,oye)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var rye=()=>["../../"];function lye(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 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(),se(" ",m(2,3,"labels.inputs.Charge")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function cye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function pye(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 mye(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 dye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",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 uye(e,o){if(e&1){let t=Y();l(0,"mat-form-field",13),R("click",function(){z(t);let i=xe(7);return H(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,dye,7,9,"mat-error"),r()}if(e&2){let t=xe(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 fye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Due Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function hye(e,o){if(e&1){let t=Y();l(0,"mat-form-field",13),R("click",function(){z(t);let i=xe(7);return H(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,fye,7,9,"mat-error"),r()}if(e&2){let t=xe(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 gye(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 _ye(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,cye,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,pye,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,mye,2,2,"mat-option",6,Pe),r()(),E(21,uye,9,8,"mat-form-field"),E(22,hye,9,8,"mat-form-field"),E(23,gye,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 m2=(()=>{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(At),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("",re.required)):this.clientChargeForm.removeControl("dueDate"),!this.chargeDetails.dueDateNotRequired&&this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.clientChargeForm.addControl("feeOnMonthDay",new it("",re.required)):this.clientChargeForm.removeControl("feeOnMonthDay"),i.value==="Monthly Fee"?this.clientChargeForm.addControl("feeInterval",new it(n.feeInterval,re.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:["",re.required],amount:["",re.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,lye,2,2,"mat-option",6,Pe),r(),E(12,sye,7,9,"mat-error"),r(),E(13,_ye,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,rye)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]})}}return e})();var Cye=()=>["../../general"];function vye(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 xye(e,o){e&1&&(l(0,"h2"),c(1,"component[0].componentKey"),r())}function bye(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 yye(e,o){if(e&1&&(l(0,"div"),c(1),p(2,"translate"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.text.Your answer is"),": ",t.answer.text)}}function Sye(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),Nc("ngModelChange",function(i){let s=z(t).$implicit;return Rc(s.answer,i)||(s.answer=i),H(i)}),Se(4,bye,3,2,"mat-radio-button",12,Pe),r()(),E(6,yye,3,4,"div")}if(e&2){let t=o.$implicit;a(2),h(t.text),a(),Bc("ngModel",t.answer),a(),we(t.responseDatas),a(2),I(t.answer?6:-1)}}function wye(e,o){if(e&1&&(E(0,xye,2,0,"h2"),l(1,"div",8),Se(2,Sye,7,3,null,null,Pe),r()),e&2){let t=o.$implicit;I(t[0].componentKey?0:-1),a(2),we(t)}}var d2=(()=>{class e{constructor(){this.route=T(Ie),this.clientsService=T(Oi),this.router=T(qe),this.authenticationService=T(Qo),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,vye,2,2,"mat-option",5,Pe),r()(),b(9,"hr"),l(10,"div"),Se(11,wye,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,Cye)),a(),v(" ",m(15,6,"labels.buttons.Cancel")," "),a(3),v(" ",m(18,8,"labels.buttons.Submit")," "))},dependencies:[ue,fe,Ue,Ae,Be,gt,ft,ve,er,tc,Dp,tr,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 Pye=["screenReport"],Tye=()=>["../../"];function Mye(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 Dye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Screen Report")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var u2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.route=T(Ie),this.sanitizer=T(ec),this.renderer=T(Cg),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(hF.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(Pye,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-raised-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 z(s),H(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,Mye,2,2,"mat-option",6,Pe),r(),E(12,Dye,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 z(s),H(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,Tye)),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,Ue,Xe,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,gt,ft,ve,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} .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(At)}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 Eye=()=>["../../"];function Iye(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 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(),se(" ",m(2,3,"labels.inputs.Collateral")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Aye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Quantity")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Fye(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,Aye,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 f2=(()=>{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(At),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:["",re.required],quantity:["",re.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,Iye,2,2,"mat-option",4,Pe),r(),E(12,Oye,7,9,"mat-error"),r(),E(13,Fye,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,Eye)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ze,gt,ft,ve,he],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]})}}return e})();function kye(e,o){e&1&&b(0,"mifosx-client-assign-staff")}function Bye(e,o){e&1&&b(0,"mifosx-close-client")}function Rye(e,o){e&1&&b(0,"mifosx-view-survey")}function Nye(e,o){e&1&&b(0,"mifosx-reject-client")}function Lye(e,o){e&1&&b(0,"mifosx-activate-client")}function Vye(e,o){e&1&&b(0,"mifosx-withdraw-client")}function qye(e,o){e&1&&b(0,"mifosx-update-client-savings-account")}function zye(e,o){e&1&&b(0,"mifosx-transfer-client")}function Hye(e,o){e&1&&b(0,"mifosx-undo-client-transfer")}function Gye(e,o){e&1&&b(0,"mifosx-reject-client-transfer")}function jye(e,o){e&1&&b(0,"mifosx-accept-client-transfer")}function $ye(e,o){e&1&&b(0,"mifosx-reactivate-client")}function Uye(e,o){e&1&&b(0,"mifosx-undo-client-rejection")}function Wye(e,o){e&1&&b(0,"mifosx-add-client-charge")}function Qye(e,o){e&1&&b(0,"mifosx-take-survey")}function Yye(e,o){e&1&&b(0,"mifosx-client-screen-reports")}function Jye(e,o){e&1&&b(0,"mifosx-add-client-collateral")}var h2=(()=>{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,kye,1,0,"mifosx-client-assign-staff"),E(1,Bye,1,0,"mifosx-close-client"),E(2,Rye,1,0,"mifosx-view-survey"),E(3,Nye,1,0,"mifosx-reject-client"),E(4,Lye,1,0,"mifosx-activate-client"),E(5,Vye,1,0,"mifosx-withdraw-client"),E(6,qye,1,0,"mifosx-update-client-savings-account"),E(7,zye,1,0,"mifosx-transfer-client"),E(8,Hye,1,0,"mifosx-undo-client-transfer"),E(9,Gye,1,0,"mifosx-reject-client-transfer"),E(10,jye,1,0,"mifosx-accept-client-transfer"),E(11,$ye,1,0,"mifosx-reactivate-client"),E(12,Uye,1,0,"mifosx-undo-client-rejection"),E(13,Wye,1,0,"mifosx-add-client-charge"),E(14,Qye,1,0,"mifosx-take-survey"),E(15,Yye,1,0,"mifosx-client-screen-reports"),E(16,Jye,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,XC,ZC,e2,t2,i2,n2,o2,a2,r2,l2,s2,c2,p2,m2,d2,u2,f2],encapsulation:2})}}return e})();var Kye=()=>["../../","general"],Xye=()=>["pay"],tu=e=>({strikeoff:e});function Zye(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,Xye)),a(2),v(" ",m(3,2,"labels.buttons.Pay")," "))}function e3e(e,o){if(e&1){let t=Y();l(0,"button",3),R("click",function(){z(t);let i=w();return H(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 t3e(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 i3e(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;g("ngClass",Nt(2,tu,t.reversed)),a(),h(t.id)}}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.Office Name")))}function o3e(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;g("ngClass",Nt(2,tu,t.reversed)),a(),v(" ",t.officeName," ")}}function a3e(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 r3e(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;g("ngClass",Nt(2,tu,t.reversed)),a(),v(" ",t.type.value," ")}}function l3e(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 s3e(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,tu,t.reversed)),a(),v(" ",m(2,2,t.date)," ")}}function c3e(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 p3e(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,tu,t.reversed)),a(),v(" ",m(2,2,t.amount)," ")}}function m3e(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 d3e(e,o){if(e&1){let t=Y();l(0,"td",26)(1,"button",27),R("click",function(){let i=z(t).$implicit,s=w(2);return H(s.undoTransaction(i.id))}),b(2,"fa-icon",4),r()()}if(e&2){let t=o.$implicit;g("ngClass",Nt(1,tu,t.reversed))}}function u3e(e,o){e&1&&b(0,"tr",28)}function f3e(e,o){e&1&&b(0,"tr",29)}function h3e(e,o){if(e&1&&(l(0,"table",9),X(1,15),F(2,t3e,3,3,"th",16)(3,i3e,2,4,"td",17),Z(),X(4,18),F(5,n3e,3,3,"th",16)(6,o3e,2,4,"td",17),Z(),X(7,19),F(8,a3e,3,3,"th",16)(9,r3e,2,4,"td",17),Z(),X(10,20),F(11,l3e,3,3,"th",16)(12,s3e,3,6,"td",17),Z(),X(13,21),F(14,c3e,3,3,"th",16)(15,p3e,3,6,"td",17),Z(),X(16,22),F(17,m3e,3,3,"th",16)(18,d3e,3,3,"td",17),Z(),F(19,u3e,1,0,"tr",23)(20,f3e,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 g2=(()=>{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,Zye,4,5,"button",1)(2,e3e,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,h3e,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,Kye)),a(),v(" ",m(76,49,"labels.buttons.Back")," "))},dependencies:[ue,co,fe,Ae,$e,Je,Et,ve,Ke,ke,Yo,Ri,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,Pi,he,go,On],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 g3e=()=>["../../..","general"];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(),se(" ",m(2,3,"labels.inputs.Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}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(),se(" ",m(2,3,"labels.inputs.Transaction date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var _2=(()=>{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(At),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,re.required],transactionDate:[new Date,re.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 z(s),H(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,_3e,7,9,"mat-error"),r(),l(10,"mat-form-field",5),R("click",function(){z(s);let u=xe(17);return H(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,C3e,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=xe(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,g3e)),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,Ue,Xe,dt,Ze,et,Ae,$e,Fe,Be,ut,ai,ze,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var jM=()=>["Date of Birth","Incorporation Date"],v3e=()=>["../general"],$M=()=>["Name","Entity Name"];function x3e(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 b3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}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.value," ")}}function S3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Client name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function w3e(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,S3e,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,4,"labels.inputs."+t.getDateLabel(t.legalFormId,oe(10,$M)))),a(2),g("placeholder",m(5,6,"labels.inputs."+t.getDateLabel(t.legalFormId,oe(11,$M))))("title",m(6,8,"labels.inputs."+t.getDateLabel(t.legalFormId,oe(12,$M)))),a(3),I(t.editClientForm.controls.fullname.hasError("required")?7:-1)}}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(),se(" ",m(2,3,"labels.inputs.Client first name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function T3e(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,P3e,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 M3e(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 D3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Client last name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function E3e(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,D3e,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 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-form-field",13)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",36),Se(5,I3e,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 A3e(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 F3e(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 k3e(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 B3e(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 R3e(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,k3e,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,B3e,2,2,"mat-option",9,Pe),r()(),l(15,"mat-form-field",16),R("click",function(){z(t);let i=xe(24);return H(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=xe(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 N3e(e,o){e&1&&(l(0,"mat-error"),c(1," Email not valid "),r())}function L3e(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 V3e(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 q3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Submitted Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var C2=(()=>{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(At),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:["",re.email],dateOfBirth:[""],clientTypeId:[""],clientClassificationId:[""],submittedOnDate:["",re.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,re.required)),this.editClientForm.addControl("middlename",new it(this.clientDataAndTemplate.middlename)),this.editClientForm.addControl("lastname",new it(this.clientDataAndTemplate.lastname,re.required))):(this.editClientForm.removeControl("firstname"),this.editClientForm.removeControl("middlename"),this.editClientForm.removeControl("lastname"),this.editClientForm.addControl("fullname",new it(this.clientDataAndTemplate.fullname,re.required)),this.editClientForm.addControl("clientNonPersonDetails",this.formBuilder.group({constitutionId:[this.clientDataAndTemplate.clientNonPersonDetails.constitution&&this.clientDataAndTemplate.clientNonPersonDetails.constitution.id,re.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,x3e,2,2,"mat-option",9,Pe),r(),E(12,b3e,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,y3e,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,w3e,8,13,"mat-form-field",13),E(36,T3e,8,10,"mat-form-field",14),E(37,M3e,7,9,"mat-form-field",14),E(38,E3e,8,10,"mat-form-field",14),r(),b(39,"mat-divider",15),l(40,"div",6)(41,"mat-form-field",16),R("click",function(){z(s);let u=xe(50);return H(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,O3e,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,A3e,2,2,"mat-option",9,Pe),r()(),E(60,F3e,3,3,"mat-checkbox",21),r(),E(61,R3e,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,N3e,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,L3e,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,V3e,2,2,"mat-option",9,Pe),r()()(),l(93,"div",6)(94,"mat-form-field",16),R("click",function(){z(s);let u=xe(103);return H(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,q3e,7,9,"mat-error"),r(),l(105,"mat-form-field",16),R("click",function(){z(s);let u=xe(114);return H(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 z(s),H(i.submit())}),c(120),p(121,"translate"),r()()()()()}if(n&2){let s=xe(50),d=xe(103),u=xe(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,jM)))),a(2),g("max",i.maxDate)("matDatepicker",s)("placeholder",m(46,70,"labels.inputs."+i.getDateLabel(i.legalFormId,oe(109,jM))))("title",m(47,72,"labels.inputs."+i.getDateLabel(i.legalFormId,oe(110,jM)))),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,v3e)),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,Ue,Xe,dt,Ze,et,la,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,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 z3e=()=>["Date of Birth","Incorporation Date"],H3e=()=>["Name","Entity Name"];function G3e(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 j3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $3e(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(" ",Ot(2,2,t.value,"inputs")," ")}}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(),se(" ",m(2,3,"labels.inputs.Client 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 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,U3e,7,9,"mat-error"),E(6,W3e,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,H3e)))," "),a(3),I(t.createClientForm.controls.fullname.hasError("required")?5:-1),a(),I(t.createClientForm.controls.fullname.hasError("pattern")?6:-1)}}function Y3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Client first name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}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 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 K3e(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,Y3e,7,9,"mat-error"),E(6,J3e,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 X3e(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 Z3e(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,X3e,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 eSe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Client last name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function tSe(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 iSe(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,eSe,7,9,"mat-error"),E(6,tSe,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 nSe(e,o){if(e&1&&(l(0,"div",12),E(1,K3e,7,5,"mat-form-field",33),E(2,Z3e,6,4,"mat-form-field",34),E(3,iSe,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 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){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,oSe,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,aSe,2,2,"mat-option",8,Pe),r()(),l(15,"mat-form-field",13),R("click",function(){z(t);let i=xe(22);return H(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=xe(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 lSe(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 sSe(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,lSe,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 cSe(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 pSe(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 mSe(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 dSe(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 uSe(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 fSe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Activation Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function hSe(e,o){if(e&1){let t=Y();l(0,"mat-form-field",13),R("click",function(){z(t);let i=xe(7);return H(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,fSe,7,9,"mat-error"),r()}if(e&2){let t=xe(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 gSe(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 _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(),se(" ",m(2,3,"labels.inputs.Savings Product")," ",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-form-field",11)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",46),Se(5,gSe,2,2,"mat-option",8,Pe),r(),E(7,_Se,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 Kf=(()=>{class e{constructor(){this.formBuilder=T(nt),this.dateUtils=T(Zt),this.settingsService=T(At),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:["",re.required],staffId:[""],legalFormId:["",re.required],isStaff:[!1],active:[!1],addSavings:[!1],accountNo:[""],externalId:[""],genderId:[""],mobileNo:[""],emailAddress:["",re.email],dateOfBirth:[""],clientTypeId:[""],clientClassificationId:[""],submittedOnDate:[this.settingsService.businessDate,re.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("",[re.required,re.pattern("(^[A-z]).*")])),this.createClientForm.addControl("middlename",new it("",re.pattern("(^[A-z]).*"))),this.createClientForm.addControl("lastname",new it("",[re.required,re.pattern("(^[A-z]).*")]))):(this.createClientForm.removeControl("firstname"),this.createClientForm.removeControl("middlename"),this.createClientForm.removeControl("lastname"),this.createClientForm.addControl("fullname",new it("",[re.required,re.pattern("(^[A-z]).*")])),this.createClientForm.addControl("clientNonPersonDetails",this.formBuilder.group({constitutionId:["",re.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("",re.required)):this.createClientForm.removeControl("activationDate")}),this.createClientForm.get("addSavings").valueChanges.subscribe(t=>{t?this.createClientForm.addControl("savingsProductId",new it("",re.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,G3e,2,2,"mat-option",8,Pe),r(),E(9,j3e,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,$3e,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,nSe,4,3,"div",12),b(24,"mat-divider"),l(25,"mat-form-field",13),R("click",function(){z(s);let u=xe(32);return H(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,rSe,33,19,"div",16),E(34,sSe,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,cSe,2,2,"mat-option",8,Pe),r()(),E(42,pSe,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,mSe,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,dSe,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,uSe,2,2,"mat-option",8,Pe),r()(),l(69,"mat-form-field",13),R("click",function(){z(s);let u=xe(76);return H(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,hSe,9,8,"mat-form-field",11),l(82,"mat-checkbox",26),c(83),p(84,"translate"),r(),E(85,CSe,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=xe(32),d=xe(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,z3e)))," "),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,Ue,Xe,dt,Ze,et,la,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,fi,Ri,Ln,qi,ke,Ji,he,Fi],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 vSe=e=>({member:e});function xSe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.First Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function bSe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Last Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ySe(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(" ",Ot(2,2,t.name,"catalogs")," ")}}function SSe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Relationship")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wSe(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(" ",Ot(2,2,t.name,"catalogs")," ")}}function PSe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Gender")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function TSe(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(" ",Ot(2,2,t.name,"catalogs")," ")}}function MSe(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(" ",Ot(2,2,t.name,"catalogs")," ")}}var Xf=(()=>{class e{constructor(){this.dialogRef=T(eo),this.formBuilder=T(nt),this.dateUtils=T(Zt),this.data=T(Po),this.settingsService=T(At),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(Xf,{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(Xf,{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,DSe,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,ve,ke,Dr,Pr,Tr,Mr,ac,Ri,qi,Ji,Pi,he,Wn],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 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(),se("",m(2,2,"labels.inputs.Street")," : ",t.street)}}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(),se("",m(2,2,"labels.inputs.Address Line")," 1 : ",t.addressLine1)}}function OSe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Address Line")," 2 : ",t.addressLine2)}}function ASe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Address Line")," 3 : ",t.addressLine3)}}function FSe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Town / Village")," : ",t.townVillage)}}function kSe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.City")," : ",t.city)}}function BSe(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(),se("",m(2,2,"labels.inputs.State / Province")," : ",(t=i.getSelectedValue("stateProvinceIdOptions",n.stateProvinceId))==null?null:t.name)}}function RSe(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(),se("",m(2,2,"labels.inputs.Country")," : ",(t=i.getSelectedValue("countryIdOptions",n.countryId))==null?null:t.name)}}function NSe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Postal Code")," : ",t.postalCode)}}function LSe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Active Status")," : ",t.isActive)}}function VSe(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=z(t),s=i.$implicit,d=i.$index,u=w(2);return H(u.editAddress(s,d))}),b(9,"fa-icon",12),r(),l(10,"button",13),R("click",function(){let i=z(t),s=i.$implicit,d=i.$index,u=w(2);return H(u.deleteAddress(s,d))}),b(11,"fa-icon",14),r(),l(12,"mat-slide-toggle",15),R("change",function(){let i=z(t).$implicit,s=w(2);return H(s.toggleAddress(i))}),r()(),l(13,"p"),E(14,ESe,4,4,"span"),E(15,ISe,4,4,"span"),E(16,OSe,4,4,"span"),E(17,ASe,4,4,"span"),E(18,FSe,4,4,"span"),E(19,kSe,4,4,"span"),E(20,BSe,4,4,"span"),E(21,RSe,4,4,"span"),E(22,NSe,4,4,"span"),E(23,LSe,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 qSe(e,o){if(e&1&&(l(0,"mat-accordion"),Se(1,VSe,24,13,"mat-expansion-panel",9,Pe),r()),e&2){let t=w();a(),we(t.clientAddressData)}}var x2=(()=>{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,qSe,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,ve,ke,Dr,Pr,Tr,Mr,ac,Ri,Bp,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 zSe(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 HSe(e,o){if(e&1&&(l(0,"mat-select",11),Se(1,zSe,2,2,"mat-option",14,Pe),r()),e&2){let t=w(2).$implicit;g("formControlName",Le(t.controlName)),a(),we(t.columnValues)}}function GSe(e,o){if(e&1&&b(0,"input",12),e&2){let t=w(2).$implicit;g("formControlName",Le(t.controlName))}}function jSe(e,o){if(e&1&&b(0,"input",13),e&2){let t=w(2).$implicit;g("formControlName",Le(t.controlName))}}function $Se(e,o){if(e&1&&b(0,"textarea",13),e&2){let t=w(2).$implicit;g("formControlName",Le(t.controlName))}}function USe(e,o){if(e&1){let t=Y();l(0,"span",15),R("click",function(){z(t);let i=xe(4);return H(i.open())}),b(1,"input",16)(2,"mat-datepicker-toggle",17)(3,"mat-datepicker",null,0),r()}if(e&2){let t=xe(4),n=w(2).$implicit;a(),g("formControlName",Le(n.controlName))("matDatepicker",t),a(),g("for",t)}}function WSe(e,o){if(e&1&&(l(0,"mat-form-field",9)(1,"mat-label"),c(2),r(),E(3,HSe,3,2,"mat-select",11),E(4,GSe,1,2,"input",12),E(5,jSe,1,2,"input",13),E(6,$Se,1,2,"textarea",13),E(7,USe,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 YSe(e,o){if(e&1&&(l(0,"div",3),E(1,WSe,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 b2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.settingsService=T(At),this.datatableService=T(Jg),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,[re.required]):t[n.controlName]=new it("",[re.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,YSe,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,Ue,Xe,Ze,et,Fe,Be,ai,ze,gt,ft,mi,di,pi,ve,fi,qi,ke,Ji,he],styles:[".date-picker[_ngcontent-%COMP%]{width:92%}mat-checkbox[_ngcontent-%COMP%]{margin-top:30px}"]})}}return e})();var JSe=()=>["../"];function KSe(e,o){if(e&1&&(l(0,"span",4),c(1),r()),e&2){let t=w();a(),h(t.client.fullname)}}function XSe(e,o){if(e&1&&(l(0,"span",4),c(1),r()),e&2){let t=w();a(),se("",t.client.firstname," ",t.client.middlename?t.client.middlename+" "+t.client.lastname:t.client.lastname)}}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,"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 ewe(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 twe(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 iwe(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 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),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Email Address")),a(3),h(t.client.emailAddress)}}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();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 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();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 rwe(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 lwe(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 swe(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 cwe(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 pwe(e,o){if(e&1&&(E(0,cwe,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 mwe(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 dwe(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 uwe(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 fwe(e,o){if(e&1&&(E(0,mwe,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,dwe,7,9,"div",2),E(8,uwe,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 hwe(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),se(" ",t.firstName," ",t.middleName?t.middleName+" "+t.lastName:t.lastName," "),a(2),v(" ",t.relationship," "),a(3),se(" ",m(9,25,"labels.inputs.First Name")," : ",t.firstName),a(3),se(" ",m(12,27,"labels.inputs.Middle Name")," : ",t.middleName),a(3),se(" ",m(15,29,"labels.inputs.Last Name")," : ",t.lastName),a(3),se(" ",m(18,31,"labels.inputs.Qualification")," : ",t.qualification),a(3),se(" ",m(21,33,"labels.inputs.Relationship")," : ",$t(22,35,t.relationshipId,n.clientTemplate.familyMemberOptions.relationshipIdOptions,"id","name")),a(4),se(" ",m(25,40,"labels.inputs.Age")," : ",t.age),a(3),se(" ",m(28,42,"labels.inputs.Is Dependent")," : ",t.isDependent?"Yes":"No"),a(3),se(" ",m(31,44,"labels.inputs.Marital Status")," : ",$t(32,46,t.maritalStatusId,n.clientTemplate.familyMemberOptions.maritalStatusIdOptions,"id","name")),a(4),se(" ",m(35,51,"labels.inputs.Gender")," : ",$t(36,53,t.genderId,n.clientTemplate.familyMemberOptions.genderIdOptions,"id","name")),a(4),se(" ",m(39,58,"labels.inputs.Profession")," : ",$t(40,60,t.professionId,n.clientTemplate.familyMemberOptions.professionIdOptions,"id","name")),a(4),se(" ",m(43,65,"labels.inputs.Date Of Birth")," : ",m(44,67,t.dateOfBirth))}}function gwe(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,hwe,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 _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(),se("",m(2,2,"labels.inputs.Street")," : ",t.street)}}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(),se("",m(2,2,"labels.inputs.Address Line")," 1 : ",t.addressLine1)}}function vwe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Address Line")," 2 : ",t.addressLine2)}}function xwe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Address Line")," 3 : ",t.addressLine3)}}function bwe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Town / Village")," : ",t.townVillage)}}function ywe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.City")," : ",t.city)}}function Swe(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(),se("",m(2,2,"labels.inputs.State / Province")," : ",(t=i.getSelectedValue("stateProvinceIdOptions",n.stateProvinceId))==null?null:t.name)}}function wwe(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(),se("",m(2,2,"labels.inputs.Country")," : ",(t=i.getSelectedValue("countryIdOptions",n.countryId))==null?null:t.name)}}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(),se("",m(2,2,"labels.inputs.Postal Code")," : ",t.postalCode)}}function Twe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),se("",m(2,2,"labels.inputs.Active Status")," : ",t.isActive)}}function Mwe(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,_we,4,4,"span"),E(9,Cwe,4,4,"span"),E(10,vwe,4,4,"span"),E(11,xwe,4,4,"span"),E(12,bwe,4,4,"span"),E(13,ywe,4,4,"span"),E(14,Swe,4,4,"span"),E(15,wwe,4,4,"span"),E(16,Pwe,4,4,"span"),E(17,Twe,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 Dwe(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,Mwe,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 y2=(()=>{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,KSe,2,1,"span",4),E(10,XSe,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,ZSe,7,9,"div",2),E(26,ewe,6,4,"div",2),E(27,twe,6,5,"div",2),E(28,iwe,6,4,"div",2),E(29,nwe,6,4,"div",2),E(30,owe,7,9,"div",2),E(31,awe,7,9,"div",2),E(32,rwe,7,9,"div",2),E(33,lwe,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,swe,7,6,"div",2),E(42,pwe,8,7),E(43,fwe,15,11),E(44,gwe,8,3,"div",5),E(45,Dwe,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,JSe)),a(),v(" ",m(53,53,"labels.buttons.Cancel")," "),a(3),v(" ",m(56,55,"labels.buttons.Submit")," "))},dependencies:[ue,fe,Ae,ve,Ri,Ea,Dr,Pr,Tr,Mr,ac,qi,ke,Pi,he,Wn,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 Ewe=["clientFamily"],Iwe=["clientAddress"],Owe=["dtclient"];function Awe(e,o){e&1&&b(0,"fa-icon",16)}function Fwe(e,o){e&1&&b(0,"fa-icon",16)}function kwe(e,o){e&1&&b(0,"fa-icon",17)}function Bwe(e,o){e&1&&b(0,"fa-icon",18)}function Rwe(e,o){e&1&&b(0,"fa-icon",19)}function Nwe(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.GENERAL"))}function Lwe(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.FAMILY MEMBERS"))}function Vwe(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.ADDRESS"))}function qwe(e,o){if(e&1&&(l(0,"mat-step"),F(1,Vwe,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 zwe(e,o){if(e&1&&c(0),e&2){let t=w().$implicit;h(t.registeredTableName)}}function Hwe(e,o){if(e&1&&(l(0,"mat-step"),F(1,zwe,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 Gwe(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function jwe(e,o){if(e&1){let t=Y();l(0,"mat-step",15),F(1,Gwe,2,3,"ng-template",12),l(2,"mifosx-client-preview-step",22),R("submitEvent",function(){z(t);let i=w();return H(i.submit())}),r()()}if(e&2){let t=w();a(2),g("clientTemplate",t.clientTemplate)("clientAddressFieldConfig",t.clientAddressFieldConfig)("client",t.client)}}var S2=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.clientsService=T(Oi),this.settingsService=T(At),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(Kf,7),Ee(Ewe,5),Ee(Iwe,5),Ee(Owe,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,Awe,1,0,"ng-template",6)(4,Fwe,1,0,"ng-template",7)(5,kwe,1,0,"ng-template",8)(6,Bwe,1,0,"ng-template",9)(7,Rwe,1,0,"ng-template",10),l(8,"mat-step",11),F(9,Nwe,2,3,"ng-template",12),l(10,"mifosx-client-general-step",13),R("legalFormChangeEvent",function(u){return z(s),H(i.legalFormChange(u))}),r()(),l(11,"mat-step"),F(12,Lwe,2,3,"ng-template",12),b(13,"mifosx-client-family-members-step",14,1),r(),E(15,qwe,4,2,"mat-step"),Se(16,Hwe,4,1,"mat-step",null,Pe),E(18,jwe,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,Kf,v2,x2,b2,y2,he],encapsulation:2})}}return e})();var w2=(()=>{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 UM=(()=>{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 WM=(()=>{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 QM=(()=>{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 K9=(()=>{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 YM=(()=>{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 JM=(()=>{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 iu=(()=>{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 KM=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.paramMap.get("clientId"),i;return this.clientsService.getClientIdentifiers(n).pipe(Dn(s=>{i=s;let d=[];return s.forEach(u=>{d.push(this.clientsService.getClientIdentificationDocuments(u.id))}),g0(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 XM=(()=>{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 ZM=(()=>{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 e5=(()=>{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 t5=(()=>{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 i5=(()=>{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 P2=(()=>{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 n5=(()=>{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 $we=()=>[10,20,25];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.name")))}function Wwe(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 Ywe(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 Jwe(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 Kwe(e,o){if(e&1&&(l(0,"td",15),c(1),r()),e&2){let t=o.$implicit;a(),h(t.amount)}}function Xwe(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 Zwe(e,o){if(e&1&&(l(0,"td",15),c(1),r()),e&2){let t=o.$implicit;a(),h(t.amountPaid)}}function ePe(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 tPe(e,o){if(e&1&&(l(0,"td",15),c(1),r()),e&2){let t=o.$implicit;a(),h(t.amountWaived)}}function iPe(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 nPe(e,o){if(e&1&&(l(0,"td",15),c(1),r()),e&2){let t=o.$implicit;a(),h(t.amountOutstanding)}}function oPe(e,o){e&1&&b(0,"tr",17)}function aPe(e,o){e&1&&b(0,"tr",18)}var T2=(()=>{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,Uwe,3,3,"th",4)(8,Wwe,4,4,"td",5),Z(),X(9,6),F(10,Qwe,3,3,"th",4)(11,Ywe,3,3,"td",5),Z(),X(12,7),F(13,Jwe,3,3,"th",4)(14,Kwe,2,1,"td",5),Z(),X(15,8),F(16,Xwe,3,3,"th",4)(17,Zwe,2,1,"td",5),Z(),X(18,9),F(19,ePe,3,3,"th",4)(20,tPe,2,1,"td",5),Z(),X(21,10),F(22,iPe,3,3,"th",4)(23,nPe,2,1,"td",5),Z(),F(24,oPe,1,0,"tr",11)(25,aPe,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,$we)))},dependencies:[ue,co,fe,$e,_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 o5=(()=>{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 a5=(()=>{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 r5=(()=>{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 l5=(()=>{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 s5=(()=>{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 c5=(()=>{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 rPe=[_o.withShell([{path:"clients",data:{title:"Clients",breadcrumb:"Clients",routeParamBreadcrumb:!1},children:[{path:"",component:AC},{path:"create",data:{title:"Create Client",breadcrumb:"Create Client",routeParamBreadcrumb:!1},component:S2,resolve:{clientAddressFieldConfig:P2,clientTemplate:iu}},{path:":clientId",component:HC,data:{title:"Clients View",routeParamBreadcrumb:"clientId"},resolve:{clientViewData:w2,clientTemplateData:iu,clientDatatables:e5},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:GC,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{clientAccountsData:UM,clientChargesData:QM,clientCollateralData:c5}},{path:"address",component:KC,data:{title:"Address",breadcrumb:"Address",routeParamBreadcrumb:!1},resolve:{clientAddressFieldConfig:P2,clientAddressTemplateData:n5,clientAddressData:WM}},{path:"family-members",data:{title:"Family Members",breadcrumb:"Family Members",routeParamBreadcrumb:!1},children:[{path:"",component:jC,resolve:{clientFamilyMembers:YM}},{path:"add",component:$C,data:{title:"Add",breadcrumb:"Add",routeParamBreadcrumb:!1},resolve:{clientTemplate:iu}},{path:":familyMemberId",children:[{path:"edit",component:UC,data:{title:"Family Member View",routeParamBreadcrumb:"familyMemberId"},resolve:{clientTemplate:iu,editFamilyMember:JM}}]}]},{path:"identities",component:WC,data:{title:"Identities",breadcrumb:"Identities",routeParamBreadcrumb:!1},resolve:{clientIdentities:KM,clientIdentifierTemplate:i5}},{path:"documents",component:YC,data:{title:"Documents",breadcrumb:"Documents",routeParamBreadcrumb:!1},resolve:{clientDocuments:ZM}},{path:"notes",component:QC,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{clientNotes:XM}},{path:"datatables",children:[{path:":datatableName",component:JC,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{clientDatatable:t5}}]}]}]},{path:"clients",data:{title:"Clients",breadcrumb:"Clients",routeParamBreadcrumb:!1},children:[{path:":clientId",data:{title:"Clients View",routeParamBreadcrumb:"clientId"},resolve:{clientViewData:w2},children:[{path:"edit",data:{title:"Edit Client",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:C2,resolve:{clientDataAndTemplate:s5}},{path:"actions/:name",data:{title:"Client Actions",routeParamBreadcrumb:"name"},component:h2,resolve:{clientActionData:a5}},{path:"charges",children:[{path:"overview",data:{title:"Charges Overview",breadcrumb:"Charges Overview"},component:T2,resolve:{clientChargesData:o5}},{path:":chargeId",data:{title:"Charges",routeParamBreadcrumb:"chargeId"},children:[{path:"",component:g2,resolve:{clientChargeData:r5}},{path:"pay",data:{title:"Pay Charge",routeParamBreadcrumb:!1},component:_2,resolve:{transactionData:l5}}]}]},{path:"loans-accounts",loadChildren:()=>import("./loans.module-GHSYSBBB.js").then(e=>e.LoansModule)},{path:"client-collateral",loadChildren:()=>import("./collaterals.module-7IQT6HRT.js").then(e=>e.CollateralsModule)},{path:"fixed-deposits-accounts",loadChildren:()=>import("./fixed-deposits.module-PQ33HOCK.js").then(e=>e.FixedDepositsModule)},{path:"savings-accounts",loadChildren:()=>import("./savings.module-7RWCJ6VZ.js").then(e=>e.SavingsModule)},{path:"recurring-deposits-accounts",loadChildren:()=>import("./recurring-deposits.module-AYKF23UQ.js").then(e=>e.RecurringDepositsModule)},{path:"shares-accounts",loadChildren:()=>import("./shares.module-QULUHDBV.js").then(e=>e.SharesModule)},{path:"standing-instructions",loadChildren:()=>import("./account-transfers.module-BYH7T3AF.js").then(e=>e.AccountTransfersModule)}]}]}])],X9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[w2,UM,WM,QM,K9,YM,JM,iu,KM,XM,ZM,e5,t5,i5,P2,n5,o5,a5,r5,l5,s5,c5],imports:[hn.forChild(rPe),hn]})}}return e})();var lPe=e=>({editForm:e}),Z9=(()=>{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,re.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,lPe,i.noteForm)),a(),v(" ",m(14,10,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,tt,st,Ue,Xe,Ze,et,Fe,ze,ve,Un,Nn,$n,he],encapsulation:2})}}return e})();var eN=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,X9,ha,Er,AC,HC,GC,jC,$C,UC,WC,Qg,QC,Z9,YC,JC,KC,T2,h2,XC,FC,ZC,e2,t2,i2,n2,d2,o2,a2,r2,l2,s2,c2,p2,m2,g2,_2,LC,kC,VC,qC,u2,C2,S2,Kf,v2,y2,x2,Xf,zC,f2,b2]})}}return e})();var M2=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 sPe=["showClosedGroups"],cPe=()=>["../","organization","bulk-import","Groups"],pPe=()=>[10,25,50,100],mPe=()=>["create"],dPe=e=>[e,"general"];function uPe(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,mPe)),a(2),v("",m(3,2,"labels.buttons.Create Group")," "))}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.name")))}function hPe(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function gPe(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 _Pe(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function CPe(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 vPe(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.externalId)}}function xPe(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 bPe(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 yPe(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 SPe(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function wPe(e,o){e&1&&b(0,"tr",29)}function PPe(e,o){if(e&1&&b(0,"tr",30),e&2){let t=o.$implicit;g("routerLink",Nt(1,dPe,t.id))}}var D2=(()=>{class e{constructor(){this.groupsService=T(An),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),fl(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 M2(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(sPe,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 z(s),H(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,uPe,4,5,"button",10),r()(),l(15,"table",11),X(16,12),F(17,fPe,3,3,"th",13)(18,hPe,2,1,"td",14),Z(),X(19,15),F(20,gPe,3,3,"th",16)(21,_Pe,2,1,"td",14),Z(),X(22,17),F(23,CPe,3,3,"th",16)(24,vPe,2,1,"td",14),Z(),X(25,18),F(26,xPe,3,3,"th",16)(27,bPe,4,3,"td",14),Z(),X(28,19),F(29,yPe,3,3,"th",13)(30,SPe,2,1,"td",14),Z(),F(31,wPe,1,0,"tr",20)(32,PPe,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,cPe)),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,pPe)))},dependencies:[ue,co,fe,st,Ue,gn,Ae,$e,Fe,ze,ve,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 TPe=()=>({confirm:!0}),E2=(()=>{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,TPe)),a(),v(" ",m(13,11,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,ve,Un,ho,Nn,$n,he],encapsulation:2})}}return e})();var MPe=()=>["./general"],DPe=()=>["./committee"],EPe=()=>["savings-accounts","create"],IPe=()=>["loans-accounts","create"],OPe=()=>["loans-accounts","glim-account","create"],APe=()=>["savings-accounts","gsim-account","create"],FPe=()=>["./notes"],kPe=e=>["./datatables",e];function BPe(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 RPe(e,o){if(e&1){let t=Y();l(0,"i",30),R("click",function(){z(t);let i=w(2);return H(i.doAction("Edit Meeting"))}),r()}}function NPe(e,o){if(e&1&&(l(0,"div")(1,"p"),c(2),p(3,"translate"),p(4,"dateFormat"),E(5,RPe,1,0,"i",29),b(6,"br"),c(7),p(8,"translate"),p(9,"lowercase"),r()()),e&2){let t=w();a(2),se(" ",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),se(" ",m(8,9,"labels.inputs.Meeting Frequency"),": ",m(9,11,t.groupViewData.collectionMeetingCalendar==null?null:t.groupViewData.collectionMeetingCalendar.frequency.value)," ")}}function LPe(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),se(" ",m(3,4,"labels.inputs.Next Meeting on"),": ",m(4,6,"labels.inputs.Unassigned")," "),a(5),se(" ",m(8,8,"labels.inputs.Meeting Frequency"),": ",m(9,10,"labels.inputs.N/A")," "))}function VPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){z(t);let i=w(2);return H(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 qPe(e,o){e&1&&(l(0,"span"),F(1,VPe,6,3,"button",23),r()),e&2&&(a(),g("mifosxHasPermission","UPDATE_GROUP"))}function zPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){z(t);let i=w();return H(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 HPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){z(t);let i=w();return H(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 GPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){z(t);let i=w();return H(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 jPe(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=xe(55);g("matMenuTriggerFor",t),a(4),h(m(5,2,"labels.buttons.Applications"))}}function $Pe(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 UPe(e,o){e&1&&(l(0,"span"),F(1,$Pe,3,3,"button",39),r()),e&2&&(a(),g("mifosxHasPermission","CREATE_LOAN"))}function WPe(e,o){e&1&&(l(0,"button",41),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,EPe)),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,IPe)),a(),v(" ",m(2,2,"labels.buttons.Group Loan Application")," "))}function YPe(e,o){e&1&&(l(0,"button",41),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,OPe)),a(),v(" ",m(2,2,"labels.buttons.GLIM Application")," "))}function JPe(e,o){e&1&&(l(0,"span"),F(1,YPe,3,5,"button",25),r()),e&2&&(a(),g("mifosxHasPermission","CREATE_LOAN"))}function KPe(e,o){e&1&&(l(0,"button",41),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,APe)),a(),v(" ",m(2,2,"labels.buttons.GSIM Application")," "))}function XPe(e,o){e&1&&(l(0,"span"),F(1,KPe,3,5,"button",25),r()),e&2&&(a(),g("mifosxHasPermission","CREATE_GSIMACCOUNT"))}function ZPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){z(t);let i=w(2);return H(i.doAction("Attendance"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Attendance")," "))}function eTe(e,o){e&1&&(l(0,"span"),F(1,ZPe,3,3,"button",23),r()),e&2&&(a(),g("mifosxHasPermission","SAVEORUPDATEATTENDANCE_MEETING"))}function tTe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){z(t);let i=w(2);return H(i.doAction("Assign Staff"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Assign Staff")," "))}function iTe(e,o){e&1&&(l(0,"span"),F(1,tTe,3,3,"button",23),r()),e&2&&(a(),g("mifosxHasPermission","ASSIGNSTAFF_GROUP"))}function nTe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){z(t);let i=w(2);return H(i.doAction("Unassign Staff"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Unassign Staff")," "))}function oTe(e,o){e&1&&(l(0,"span"),F(1,nTe,3,3,"button",23),r()),e&2&&(a(),g("mifosxHasPermission","UNASSIGNSTAFF_GROUP"))}function aTe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){z(t);let i=w(2);return H(i.doAction("Attach Meeting"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Attach Meeting")," "))}function rTe(e,o){e&1&&(l(0,"span"),F(1,aTe,3,3,"button",23),r()),e&2&&(a(),g("mifosxHasPermission","CREATE_MEETING"))}function lTe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){z(t);let i=w();return H(i.doAction("Close"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Close")," "))}function sTe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){z(t);let i=w();return H(i.doAction("Delete"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Delete")," "))}function cTe(e,o){if(e&1&&(l(0,"a",27,6),c(2),p(3,"translate"),r()),e&2){let t=xe(1);g("routerLink",oe(5,FPe))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Notes")," ")}}function pTe(e,o){if(e&1&&(l(0,"a",27,7),c(2),r()),e&2){let t=xe(1),n=w().$implicit;g("routerLink",Nt(3,kPe,n.registeredTableName))("active",t.isActive),a(2),v(" ",n.registeredTableName," ")}}function mTe(e,o){if(e&1&&(l(0,"span"),F(1,pTe,3,5,"a",28),r()),e&2){let t=o.$implicit;a(),g("mifosxHasPermission","READ_"+t.registeredTableName)}}var I2=(()=>{class e{constructor(){this.route=T(Ie),this.groupsService=T(An),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(E2).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,BPe,6,6,"span"),r(),l(44,"div",22),E(45,NPe,10,13,"div")(46,LPe,10,12,"div"),r()()(),l(47,"mat-menu",null,0),E(49,qPe,2,1,"span"),F(50,zPe,6,3,"button",23)(51,HPe,6,3,"button",23)(52,GPe,6,3,"button",23),E(53,jPe,6,4,"button",24),l(54,"mat-menu",null,1),E(56,UPe,2,1,"span"),F(57,WPe,3,5,"button",25)(58,QPe,3,5,"button",25),E(59,JPe,2,1,"span"),E(60,XPe,2,1,"span"),r(),l(61,"button",24),c(62),p(63,"translate"),r(),l(64,"mat-menu",null,2),E(66,eTe,2,1,"span"),E(67,iTe,2,1,"span"),E(68,oTe,2,1,"span"),E(69,rTe,2,1,"span"),F(70,lTe,3,3,"button",23)(71,sTe,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,cTe,4,6,"a",28),l(79,"a",27,4),c(81),p(82,"translate"),r(),Se(83,mTe,2,1,"span",null,Pe),r(),l(85,"mat-tab-nav-panel",null,5),b(87,"router-outlet"),r()()()),n&2){let s=xe(48),d=xe(65),u=xe(75),f=xe(80),_=xe(86);a(9),g("ngClass",m(10,43,i.groupViewData.status.code))("matTooltip",i.groupViewData.status.value),a(2),se(" ",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,MPe))("active",u.isActive),a(2),v(" ",m(77,61,"labels.inputs.General")," "),a(2),g("mifosxHasPermission","READ_GROUPNOTE"),a(),g("routerLink",oe(66,DPe))("active",f.isActive),a(2),v(" ",m(82,63,"labels.inputs.Committee")," "),a(2),we(i.groupDatatables)}},dependencies:[ue,co,fe,Ae,$e,Je,Ke,sa,Wr,S0,Yo,si,wi,oc,Jo,ke,vl,nc,ic,ir,nr,Na,or,ra,Sg,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 dTe=e=>["/clients",e,"general"],tN=e=>["../","loans-accounts",e,"general"],uTe=e=>["../","savings-accounts","gsim-account",e],fTe=e=>["../","loans-accounts","glim-account",e],hTe=e=>["../","savings-accounts",e,"actions","Deposit"],gTe=e=>["../","savings-accounts",e,"actions","Withdrawal"],_Te=e=>["../","savings-accounts",e,"actions","Approve"],CTe=e=>["../","savings-accounts",e,"actions","Undo Approval"],vTe=e=>["../","savings-accounts",e,"actions","Activate"],iN=e=>["../","savings-accounts",e,"transactions"];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.name")))}function bTe(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 yTe(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 STe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function wTe(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 PTe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function TTe(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 MTe(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 DTe(e,o){if(e&1&&(l(0,"td",12),E(1,MTe,4,4,"div",14),r()),e&2){let t=o.$implicit;a(),I(t.status.code!=="clientStatusType.closed"?1:-1)}}function ETe(e,o){e&1&&b(0,"tr",17)}function ITe(e,o){if(e&1&&b(0,"tr",18),e&2){let t=o.$implicit;g("routerLink",Nt(1,dTe,t.id))}}function OTe(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,xTe,3,3,"th",4)(7,bTe,4,5,"td",5),Z(),X(8,6),F(9,yTe,3,3,"th",4)(10,STe,2,1,"td",5),Z(),X(11,7),F(12,wTe,3,3,"th",4)(13,PTe,2,1,"td",5),Z(),X(14,8),F(15,TTe,3,3,"th",4)(16,DTe,2,1,"td",5),Z(),F(17,ETe,1,0,"tr",9)(18,ITe,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 ATe(e,o){if(e&1){let t=Y();l(0,"div",21)(1,"button",22),R("click",function(){z(t);let i=w(2);return H(i.toggleLoanAccountsOverview())}),c(2),r()()}if(e&2){let t=w(2);a(2),v(" ",t.showClosedLoanAccounts?"View Active Accounts":"View Closed Accounts"," ")}}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 kTe(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 BTe(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 RTe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}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.Original Loan")))}function LTe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.originalLoan)}}function VTe(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 qTe(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 zTe(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 HTe(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 GTe(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 jTe(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 $Te(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 UTe(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 WTe(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 YTe(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 JTe(e,o){if(e&1&&(l(0,"td",12),E(1,UTe,3,4,"button",31),E(2,WTe,3,4,"button",31),E(3,QTe,3,4,"button",31),E(4,YTe,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 KTe(e,o){e&1&&b(0,"tr",17)}function XTe(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,tN,t.id))}}function ZTe(e,o){if(e&1&&(l(0,"table",2),p(1,"accountsFilter"),X(2,6),F(3,FTe,3,3,"th",4)(4,kTe,4,5,"td",5),Z(),X(5,23),F(6,BTe,3,3,"th",4)(7,RTe,2,1,"td",5),Z(),X(8,24),F(9,NTe,3,3,"th",4)(10,LTe,2,1,"td",5),Z(),X(11,25),F(12,VTe,3,3,"th",4)(13,qTe,3,6,"td",5),Z(),X(14,26),F(15,zTe,3,3,"th",4)(16,HTe,3,6,"td",5),Z(),X(17,27),F(18,GTe,3,3,"th",4)(19,jTe,2,2,"td",5),Z(),X(20,28),F(21,$Te,3,3,"th",4)(22,JTe,5,4,"td",5),Z(),F(23,KTe,1,0,"tr",9)(24,XTe,1,3,"tr",29),r()),e&2){let t=w(2);g("dataSource",Ot(1,3,t.loanAccounts,"loan")),a(23),g("matHeaderRowDef",t.openLoansColumns),a(),g("matRowDefColumns",t.openLoansColumns)}}function e4e(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 t4e(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 i4e(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 n4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}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.Original Loan")))}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.lastActiveTransactionDate))}}function r4e(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 l4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.loanBalance)}}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.Amount Paid")))}function c4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountBalance)}}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.Type")))}function m4e(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 d4e(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 u4e(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 f4e(e,o){e&1&&b(0,"tr",17)}function h4e(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,tN,t.id))}}function g4e(e,o){if(e&1&&(l(0,"table",2),p(1,"accountsFilter"),X(2,6),F(3,e4e,3,3,"th",4)(4,t4e,4,5,"td",5),Z(),X(5,23),F(6,i4e,3,3,"th",4)(7,n4e,2,1,"td",5),Z(),X(8,24),F(9,o4e,3,3,"th",4)(10,a4e,3,3,"td",5),Z(),X(11,25),F(12,r4e,3,3,"th",4)(13,l4e,2,1,"td",5),Z(),X(14,26),F(15,s4e,3,3,"th",4)(16,c4e,2,1,"td",5),Z(),X(17,27),F(18,p4e,3,3,"th",4)(19,m4e,2,2,"td",5),Z(),X(20,37),F(21,d4e,3,3,"th",4)(22,u4e,3,3,"td",5),Z(),F(23,f4e,1,0,"tr",9)(24,h4e,1,3,"tr",29),r()),e&2){let t=w(2);g("dataSource",br(1,3,t.loanAccounts,"loan","closed")),a(23),g("matHeaderRowDef",t.closedLoansColumns),a(),g("matRowDefColumns",t.closedLoansColumns)}}function _4e(e,o){if(e&1&&(l(0,"div")(1,"div",19)(2,"div",20)(3,"h3"),c(4),p(5,"translate"),r()(),E(6,ATe,3,1,"div",21),p(7,"accountsFilter"),r(),E(8,ZTe,25,6,"table",2),E(9,g4e,25,7,"table",2),r()),e&2){let t=w();a(4),h(m(5,4,"labels.heading.Loan Accounts")),a(2),I(br(7,6,t.loanAccounts,"loan","closed").length?6:-1),a(2),I(t.showClosedLoanAccounts?-1:8),a(),I(t.showClosedLoanAccounts?9:-1)}}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.GSIM Id")))}function v4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.gsimId," ")}}function x4e(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 b4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNumber)}}function y4e(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 S4e(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 w4e(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 P4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.parentBalance)}}function T4e(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 M4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.savingsStatus)}}function D4e(e,o){e&1&&b(0,"tr",17)}function E4e(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,uTe,t.accountNumber))}}function I4e(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,C4e,3,3,"th",4)(9,v4e,2,1,"td",5),Z(),X(10,39),F(11,x4e,3,3,"th",4)(12,b4e,2,1,"td",5),Z(),X(13,40),F(14,y4e,3,3,"th",4)(15,S4e,2,1,"td",5),Z(),X(16,41),F(17,w4e,3,3,"th",4)(18,P4e,2,1,"td",5),Z(),X(19,42),F(20,T4e,3,3,"th",4)(21,M4e,2,1,"td",5),Z(),F(22,D4e,1,0,"tr",9)(23,E4e,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 O4e(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 A4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.glimId," ")}}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.Account Number")))}function k4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNumber)}}function B4e(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 R4e(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 N4e(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 L4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.parentPrincipalAmount)}}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.Status")))}function q4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.loanStatus)}}function z4e(e,o){e&1&&b(0,"tr",17)}function H4e(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,fTe,t.glimId))}}function G4e(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,O4e,3,3,"th",4)(9,A4e,2,1,"td",5),Z(),X(10,39),F(11,F4e,3,3,"th",4)(12,k4e,2,1,"td",5),Z(),X(13,40),F(14,B4e,3,3,"th",4)(15,R4e,2,1,"td",5),Z(),X(16,24),F(17,N4e,3,3,"th",4)(18,L4e,2,1,"td",5),Z(),X(19,42),F(20,V4e,3,3,"th",4)(21,q4e,2,1,"td",5),Z(),F(22,z4e,1,0,"tr",9)(23,H4e,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 j4e(e,o){if(e&1){let t=Y();l(0,"button",22),R("click",function(){z(t);let i=w(2);return H(i.toggleSavingAccountsOverview())}),c(1),r()}if(e&2){let t=w(2);a(),v(" ",t.showClosedSavingAccounts?"View Active Accounts":"View Closed Accounts"," ")}}function $4e(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 U4e(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 W4e(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 Y4e(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 J4e(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 K4e(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 X4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountBalance)}}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.Actions")))}function eMe(e,o){if(e&1){let t=Y();l(0,"button",48),R("click",function(i){z(t);let s=w(4);return H(s.routeEdit(i))}),b(1,"i",49),p(2,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(5,hTe,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Deposit")))}}function tMe(e,o){if(e&1){let t=Y();l(0,"button",48),R("click",function(i){z(t);let s=w(4);return H(s.routeEdit(i))}),b(1,"i",50),p(2,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(5,gTe,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Withdraw")))}}function iMe(e,o){if(e&1){let t=Y();l(0,"button",48),R("click",function(i){z(t);let s=w(4);return H(s.routeEdit(i))}),b(1,"i",33),p(2,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(5,_Te,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Approve")))}}function nMe(e,o){if(e&1){let t=Y();l(0,"button",48),R("click",function(i){z(t);let s=w(4);return H(s.routeEdit(i))}),b(1,"i",51),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.Undo Approval")))}}function oMe(e,o){if(e&1){let t=Y();l(0,"button",48),R("click",function(i){z(t);let s=w(4);return H(s.routeEdit(i))}),b(1,"i",52),p(2,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(5,vTe,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Activate")))}}function aMe(e,o){if(e&1&&(l(0,"td",12),E(1,eMe,3,7,"button",47),E(2,tMe,3,7,"button",47),E(3,iMe,3,7,"button",47),E(4,nMe,3,7,"button",47),E(5,oMe,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 rMe(e,o){e&1&&b(0,"tr",17)}function lMe(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,iN,t.id))}}function sMe(e,o){if(e&1&&(l(0,"table",2),p(1,"accountsFilter"),X(2,6),F(3,$4e,3,3,"th",4)(4,U4e,4,5,"td",5),Z(),X(5,45),F(6,W4e,3,3,"th",4)(7,Q4e,2,1,"td",5),Z(),X(8,46),F(9,Y4e,3,3,"th",4)(10,J4e,3,3,"td",5),Z(),X(11,41),F(12,K4e,3,3,"th",4)(13,X4e,2,1,"td",5),Z(),X(14,28),F(15,Z4e,3,3,"th",4)(16,aMe,6,5,"td",5),Z(),F(17,rMe,1,0,"tr",9)(18,lMe,1,3,"tr",29),r()),e&2){let t=w(2);g("dataSource",Ot(1,3,t.savingAccounts,"saving")),a(17),g("matHeaderRowDef",t.openSavingsColumns),a(),g("matRowDefColumns",t.openSavingsColumns)}}function cMe(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 pMe(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 mMe(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 dMe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function uMe(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 fMe(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 hMe(e,o){e&1&&b(0,"tr",17)}function gMe(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,iN,t.id))}}function _Me(e,o){if(e&1&&(l(0,"table",2),p(1,"accountsFilter"),X(2,6),F(3,cMe,3,3,"th",4)(4,pMe,4,5,"td",5),Z(),X(5,45),F(6,mMe,3,3,"th",4)(7,dMe,2,1,"td",5),Z(),X(8,37),F(9,uMe,3,3,"th",4)(10,fMe,3,3,"td",5),Z(),F(11,hMe,1,0,"tr",9)(12,gMe,1,3,"tr",29),r()),e&2){let t=w(2);g("dataSource",br(1,3,t.savingAccounts,"saving","closed")),a(11),g("matHeaderRowDef",t.closedSavingsColumns),a(),g("matRowDefColumns",t.closedSavingsColumns)}}function CMe(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,j4e,2,1,"button",44),p(8,"accountsFilter"),r()(),E(9,sMe,19,6,"table",2),E(10,_Me,13,7,"table",2),r()),e&2){let t=w();a(4),h(m(5,4,"labels.heading.Saving Accounts")),a(3),I(br(8,6,t.savingAccounts,"saving","closed").length?7:-1),a(2),I(t.showClosedSavingAccounts?-1:9),a(),I(t.showClosedSavingAccounts?10:-1)}}var O2=(()=>{class e{constructor(){this.route=T(Ie),this.groupsService=T(An),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,OTe,19,6,"div"),E(30,_4e,10,10,"div"),E(31,I4e,24,6,"div"),E(32,G4e,24,6,"div"),E(33,CMe,11,10,"div"),r()),n&2&&(a(2),h(m(3,20,"labels.heading.Group Details")),a(4),se(" ",m(7,22,"labels.inputs.Active Client Loans"),": ",i.groupSummary==null?null:i.groupSummary.activeClientLoans),a(3),se(" ",m(10,24,"labels.inputs.Active Client Borrowers"),": ",i.groupSummary==null?null:i.groupSummary.activeClientBorrowers),a(3),se(" ",m(13,26,"labels.inputs.Active Overdue Client Loans"),": ",i.groupSummary==null?null:i.groupSummary.overdueClientLoans),a(4),se(" ",m(17,28,"labels.inputs.Active Group Loans"),": ",i.groupSummary==null?null:i.groupSummary.activeGroupLoans),a(3),se(" ",m(20,30,"labels.inputs.Active Group Borrowers"),": ",i.groupSummary==null?null:i.groupSummary.activeGroupBorrowers),a(3),se(" ",m(23,32,"labels.inputs.Active Overdue Group Loans"),": ",i.groupSummary==null?null:i.groupSummary.overdueGroupLoans),a(4),se("",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,Ae,ve,_t,xt,vt,bt,Ct,yt,si,St,Pt,wt,Tt,Tg,Pi,he,go,rs],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 A2=(()=>{class e{constructor(){this.route=T(Ie),this.authenticationService=T(Qo),this.groupsService=T(An),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,A0],encapsulation:2})}}return e})();var vMe=()=>({confirm:!0}),F2=(()=>{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),se("",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,vMe)),a(),v(" ",m(13,12,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,ve,Un,ho,Nn,$n,he],encapsulation:2})}}return e})();var xMe=["rolesTable"],bMe=()=>["add-role"];function yMe(e,o){e&1&&(l(0,"button",6),b(1,"i",7),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,bMe)),a(2),v("\xA0 ",m(3,2,"labels.buttons.Add")," "))}function SMe(e,o){e&1&&(l(0,"div",4),F(1,yMe,4,5,"button",5),r()),e&2&&(a(),g("mifosxHasPermission","ASSIGNROLE_GROUP"))}function wMe(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 PMe(e,o){if(e&1&&(l(0,"td",18),c(1),r()),e&2){let t=o.$implicit;a(),h(t.clientName)}}function TMe(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 MMe(e,o){if(e&1&&(l(0,"td",18),c(1),r()),e&2){let t=o.$implicit;a(),h(t.role.name)}}function DMe(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 EMe(e,o){if(e&1&&(l(0,"td",18),c(1),r()),e&2){let t=o.$implicit;a(),h(t.clientId)}}function IMe(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 OMe(e,o){if(e&1){let t=Y();l(0,"button",20),R("click",function(){z(t);let i=w(2).$implicit,s=w(2);return H(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 AMe(e,o){e&1&&(l(0,"span"),F(1,OMe,3,4,"button",19),r()),e&2&&(a(),g("mifosxHasPermission","UNASSIGNROLE_GROUP"))}function FMe(e,o){if(e&1&&(l(0,"td",18),E(1,AMe,2,1,"span"),r()),e&2){let t=w(2);a(),I(t.groupStatus!=="Closed"?1:-1)}}function kMe(e,o){e&1&&b(0,"tr",22)}function BMe(e,o){e&1&&b(0,"tr",23)}function RMe(e,o){if(e&1&&(l(0,"div")(1,"table",8,0),X(3,9),F(4,wMe,3,3,"th",10)(5,PMe,2,1,"td",11),Z(),X(6,12),F(7,TMe,3,3,"th",10)(8,MMe,2,1,"td",11),Z(),X(9,13),F(10,DMe,3,3,"th",10)(11,EMe,2,1,"td",11),Z(),X(12,14),F(13,IMe,3,3,"th",10)(14,FMe,2,1,"td",11),Z(),F(15,kMe,1,0,"tr",15)(16,BMe,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 k2=(()=>{class e{constructor(){this.route=T(Ie),this.groupsService=T(An),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(F2,{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(xMe,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,SMe,2,1,"div",4),r(),E(7,RMe,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,Ae,ve,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 NMe=()=>["../"];function LMe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Group Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function VMe(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 qMe(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 zMe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function HMe(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 GMe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Submission Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}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(),se(" ",m(2,3,"labels.inputs.Activation Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $Me(e,o){if(e&1){let t=Y();l(0,"mat-form-field",10),R("click",function(){z(t);let i=xe(7);return H(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,jMe,7,9,"mat-error"),r()}if(e&2){let t=xe(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 UMe(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 WMe(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(){z(t);let i=w();return H(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=z(t).$index,s=w(2);return H(s.removeClient(i))}),b(4,"fa-icon",33),r()()}if(e&2){let t=o.$implicit;a(2),h(t.displayName)}}function YMe(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 B2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.clientsService=T(Oi),this.groupService=T(An),this.dateUtils=T(Zt),this.settingsService=T(At),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:["",[re.required,re.pattern("(^[A-z]).*")]],officeId:["",re.required],submittedOnDate:[this.settingsService.businessDate,re.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("",re.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,LMe,7,9,"mat-error"),E(11,VMe,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,qMe,2,2,"mat-option",8,Pe),r(),E(19,zMe,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,HMe,2,2,"mat-option",8,Pe),r()(),l(27,"mat-form-field",10),R("click",function(){z(s);let u=xe(34);return H(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,GMe,7,9,"mat-error"),r(),l(36,"mat-checkbox",13),c(37),p(38,"translate"),r(),E(39,$Me,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,UMe,2,2,"mat-option",8,Pe),r(),l(54,"div",17),E(55,WMe,25,15,"div",18),E(56,YMe,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 z(s),H(i.submit())}),c(62),p(63,"translate"),r()()()()()}if(n&2){let s=xe(34),d=xe(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,NMe)),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,Ue,Xe,dt,gn,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,fi,Za,Xa,wi,ke,pa,kp,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 R2=(()=>{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 JMe=()=>["../"];function KMe(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 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(),se(" ",m(2,3,"labels.inputs.Client Member")," ",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",4),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(),se(" ",m(2,3,"labels.inputs.Role")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function t5e(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 N2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(An),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:["",re.required],role:["",re.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,KMe,2,2,"mat-option",4,Pe),r(),E(12,XMe,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,ZMe,2,2,"mat-option",4,Pe),r(),E(20,e5e,7,9,"mat-error"),r()()(),l(21,"mat-card-actions",6)(22,"button",7),c(23),p(24,"translate"),r(),F(25,t5e,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,JMe)),a(),v(" ",m(24,12,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","ASSIGNROLE_GROUP"))},dependencies:[ue,fe,tt,Ue,Xe,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,gt,ft,ve,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var i5e=()=>["../../"];function n5e(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 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(),se(" ",m(2,3,"labels.inputs.Staff")," ",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(An),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,n5e,2,2,"mat-option",5,Pe),r(),E(12,o5e,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,i5e)),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,Ue,Xe,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,gt,ft,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var a5e=()=>["../../"];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(),se(" ",m(2,3,"labels.inputs.Closed On Date")," ",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-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function s5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Closure Reason")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var V2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(An),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(At),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:["",re.required],closureReasonId:["",re.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 z(s),H(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){z(s);let u=xe(12);return H(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,r5e,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,l5e,2,2,"mat-option",9,Pe),r(),E(21,s5e,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=xe(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,a5e)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var c5e=()=>["../../"];function p5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Activated On Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var q2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(An),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(At),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:["",re.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 z(s),H(i.submit())}),l(3,"mat-card-content")(4,"mat-form-field",3),R("click",function(){z(s);let u=xe(11);return H(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,p5e,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=xe(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,c5e)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var m5e=()=>["../../"];function d5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Start Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function u5e(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 f5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Repetition Frequency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function h5e(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,u5e,2,2,"mat-option",12,Pe),r(),E(7,f5e,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 g5e(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 _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(),se(" ",m(2,3,"labels.inputs.Repeition Interval")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function C5e(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,g5e,2,2,"mat-option",12,Pe),r(),E(7,_5e,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 v5e(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 x5e(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 b5e(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,v5e,2,2,"mat-option",12,Pe),r(),E(7,x5e,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 y5e(e,o){if(e&1){let t=Y();l(0,"button",15),R("click",function(){z(t);let i=w();return H(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 z2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(An),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(At),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:["",re.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("",re.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(){z(s);let u=xe(12);return H(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,d5e,7,9,"mat-error"),r(),l(14,"mat-checkbox",7),c(15),p(16,"translate"),r(),E(17,h5e,8,4,"mat-form-field"),E(18,C5e,8,4,"mat-form-field"),E(19,b5e,8,4,"mat-form-field"),r()(),l(20,"mat-card-actions",8)(21,"button",9),c(22),p(23,"translate"),r(),F(24,y5e,3,4,"button",10),r()()()()}if(n&2){let s=xe(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,m5e)),a(),v(" ",m(23,18,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_MEETING")}},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,fi,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var S5e=()=>["../../"];function w5e(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 P5e(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 T5e(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 M5e(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 D5e(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Present")))}function E5e(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Absent")))}function I5e(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Approved")))}function O5e(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Leave")))}function A5e(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Late")))}function F5e(e,o){if(e&1){let t=Y();l(0,"td",19),F(1,D5e,3,3,"span",20)(2,E5e,3,3,"span",20)(3,I5e,3,3,"span",20)(4,O5e,3,3,"span",20)(5,A5e,3,3,"span",20),l(6,"button",21),R("click",function(){let i=z(t).$implicit,s=w();return H(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 k5e(e,o){e&1&&b(0,"tr",23)}function B5e(e,o){e&1&&b(0,"tr",24)}function R5e(e,o){if(e&1){let t=Y();l(0,"button",25),R("click",function(){z(t);let i=w();return H(i.submit())}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Confirm")," "))}var H2=(()=>{class e{constructor(){this.route=T(Ie),this.dateUtils=T(Zt),this.router=T(qe),this.groupsService=T(An),this.dialog=T(Ht),this.settingsService=T(At),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,w5e,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,P5e,3,3,"th",7)(15,T5e,3,6,"td",8),Z(),X(16,9),F(17,M5e,3,3,"th",7)(18,F5e,8,6,"td",10),Z(),F(19,k5e,1,0,"tr",11)(20,B5e,1,0,"tr",12),r(),l(21,"mat-card-actions",13)(22,"button",14),c(23),p(24,"translate"),r(),F(25,R5e,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),se("",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,S5e)),a(),v(" ",m(24,17,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","SAVEORUPDATEATTENDANCE_MEETING"))},dependencies:[ue,ns,Xs,Zs,fe,Ue,gn,Ae,$e,Et,Fe,Be,qa,gt,ft,ve,Ke,_t,xt,vt,bt,Ct,yt,wi,ke,St,Pt,wt,Tt,Pi,he,Wn],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();function N5e(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 L5e(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=z(t),s=i.$implicit,d=i.$index,u=w(2);return H(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 V5e(e,o){if(e&1&&(l(0,"mat-nav-list"),Se(1,L5e,7,5,"div",16,Pe),r()),e&2){let t=w();a(),we(t.clientMembers)}}var G2=(()=>{class e{constructor(){this.route=T(Ie),this.groupsService=T(An),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,N5e,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 z(s),H(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,V5e,3,0,"mat-nav-list"),r()()}if(n&2){let s=xe(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,Ue,gn,$e,Fe,Be,ze,ft,Za,Xa,wi,ke,kp,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 q5e=()=>["../../"];function z5e(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 H5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Repetition Frequency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function G5e(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 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(),se(" ",m(2,3,"labels.inputs.Repeition Interval")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $5e(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 U5e(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 W5e(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,$5e,2,2,"mat-option",8,Pe),r(),E(7,U5e,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(),se(" ",m(2,3,"labels.inputs.Changes Affection Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Y5e(e,o){if(e&1){let t=Y();l(0,"button",17),R("click",function(){z(t);let i=w();return H(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 j2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(An),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(At),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:["",re.required],frequency:["",re.required],interval:["",re.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("",re.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-30",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 z(s),H(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,z5e,2,2,"mat-option",8,Pe),r(),E(17,H5e,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,G5e,2,2,"mat-option",8,Pe),r(),E(25,j5e,7,9,"mat-error"),r(),E(26,W5e,8,4,"mat-form-field"),l(27,"mat-form-field",10),R("click",function(){z(s);let u=xe(34);return H(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,Y5e,3,4,"button",15),r()()()()}if(n&2){let s=xe(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,q5e)),a(),v(" ",m(42,27,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_MEETING")}},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,qa,ze,gt,ft,mi,di,pi,ve,Ke,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:32rem}"]})}}return e})();var J5e=()=>["../../"];function K5e(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 X5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Existing Meeting Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Z5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Revised Meeting Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function eDe(e,o){if(e&1){let t=Y();l(0,"button",12),R("click",function(){z(t);let i=w();return H(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 $2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(An),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(At),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:["",re.required],newMeetingDate:["",re.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,K5e,3,4,"mat-option",5,Pe),r(),E(12,X5e,7,9,"mat-error"),r(),l(13,"mat-form-field",6),R("click",function(){z(s);let u=xe(20);return H(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,Z5e,7,9,"mat-error"),r()()(),l(22,"mat-card-actions",9)(23,"button",10),c(24),p(25,"translate"),r(),F(26,eDe,3,4,"button",11),r()()()()}if(n&2){let s=xe(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,J5e)),a(),v(" ",m(25,16,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_MEETING")}},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,Ke,Pi,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var tDe=()=>["../../"],iDe=e=>({id:e});function nDe(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",Nt(2,iDe,t.id)),a(),v(" ",t.displayName," ")}}function oDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Destination Group")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function aDe(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 rDe(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 lDe(e,o){if(e&1){let t=Y();l(0,"button",17),R("click",function(){z(t);let i=w();return H(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 U2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.groupsService=T(An),this.settingsService=T(At),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:["",re.required],inheritDestinationGroupLoanOfficer:[!1],destinationGroupId:["",re.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,nDe,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,oDe,7,9,"mat-error"),r()(),l(21,"mat-autocomplete",8,0),Se(23,aDe,2,2,"mat-option",5,Pe),r(),E(25,rDe,36,25,"div",9),r(),l(26,"mat-card-actions",10)(27,"button",11),c(28),p(29,"translate"),r(),F(30,lDe,3,4,"button",12),r()()()()),n&2){let s,d=xe(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,tDe)),a(),v(" ",m(29,17,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","TRANSFERCLIENTS_GROUP")}},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ze,gt,ft,ve,fi,Ke,Za,Xa,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 sDe(e,o){e&1&&b(0,"mifosx-group-assign-staff")}function cDe(e,o){e&1&&b(0,"mifosx-close-group")}function pDe(e,o){e&1&&b(0,"mifosx-activate-group")}function mDe(e,o){e&1&&b(0,"mifosx-attach-group-meeting")}function dDe(e,o){e&1&&b(0,"mifosx-group-attendance")}function uDe(e,o){e&1&&b(0,"mifosx-manage-group-members")}function fDe(e,o){e&1&&b(0,"mifosx-edit-group-meeting")}function hDe(e,o){e&1&&b(0,"mifosx-edit-group-meeting-schedule")}function gDe(e,o){e&1&&b(0,"mifosx-group-transfer-clients")}var W2=(()=>{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,sDe,1,0,"mifosx-group-assign-staff"),E(1,cDe,1,0,"mifosx-close-group"),E(2,pDe,1,0,"mifosx-activate-group"),E(3,mDe,1,0,"mifosx-attach-group-meeting"),E(4,dDe,1,0,"mifosx-group-attendance"),E(5,uDe,1,0,"mifosx-manage-group-members"),E(6,fDe,1,0,"mifosx-edit-group-meeting"),E(7,hDe,1,0,"mifosx-edit-group-meeting-schedule"),E(8,gDe,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,L2,V2,q2,z2,H2,G2,j2,$2,U2],encapsulation:2})}}return e})();var _De=()=>["../"];function CDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Group Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function vDe(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 xDe(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 bDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Submission Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function yDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Activation Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function SDe(e,o){if(e&1){let t=Y();l(0,"mat-form-field",8),R("click",function(){z(t);let i=xe(7);return H(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,yDe,7,9,"mat-error"),r()}if(e&2){let t=xe(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 Q2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.groupService=T(An),this.dateUtils=T(Zt),this.settingsService=T(At),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:["",[re.required,re.pattern("(^[A-z]).*")]],submittedOnDate:["",re.required],staffId:[""],externalId:[""]}),this.buildDependencies()}buildDependencies(){this.groupData.active?(this.editGroupForm.addControl("activationDate",new it("",re.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,CDe,7,9,"mat-error"),E(11,vDe,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,xDe,2,2,"mat-option",7,Pe),r()(),l(19,"mat-form-field",8),R("click",function(){z(s);let u=xe(26);return H(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,bDe,7,9,"mat-error"),r(),E(28,SDe,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 z(s),H(i.submit())}),c(39),p(40,"translate"),r()()()()()}if(n&2){let s=xe(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,_De)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:50rem}"]})}}return e})();var p5=(()=>{class e{constructor(){this.groupsService=T(An)}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 m5=(()=>{class e{constructor(){this.groupsService=T(An)}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 d5=(()=>{class e{constructor(){this.groupsService=T(An)}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 u5=(()=>{class e{constructor(){this.groupsService=T(An)}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 Y2=(()=>{class e{constructor(){this.groupsService=T(An)}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 f5=(()=>{class e{constructor(){this.groupsService=T(An)}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 h5=(()=>{class e{constructor(){this.groupsService=T(An)}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 wDe=[_o.withShell([{path:"groups",data:{title:"Groups",breadcrumb:"Groups",routeParamBreadcrumb:!1},children:[{path:"",component:D2},{path:"create",component:B2,data:{title:"Create Group",breadcrumb:"Create",routeParamBreadcrumb:!1},resolve:{offices:zr}},{path:":groupId",data:{title:"View Group",routeParamBreadcrumb:"groupId"},resolve:{groupViewData:uf},children:[{path:"",component:I2,resolve:{groupViewData:uf,groupDatatables:d5},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:O2,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{groupAccountsData:NT,groupSummary:p5,gsimData:LT,glimData:h5}},{path:"notes",component:A2,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{groupNotes:m5}},{path:"committee",component:k2,data:{title:"Committee",breadcrumb:"Committee",routeParamBreadcrumb:!1}},{path:"datatables",children:[{path:":datatableName",component:R2,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{groupDatatable:u5}}]}]},{path:"edit",component:Q2,data:{title:"Edit Group",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{groupAndTemplateData:Y2,groupViewData:uf}},{path:"committee",children:[{path:"",redirectTo:"../committee",pathMatch:"prefix"},{path:"add-role",data:{title:"Add Role",breadcrumb:"Add Role",routeParamBreadcrumb:!1},component:N2,resolve:{groupAndTemplateData:Y2}}]},{path:"actions/:action",data:{title:"Group Actions",breadcrumb:"action",routeParamBreadcrumb:"action"},component:W2,resolve:{groupActionData:f5}},{path:"loans-accounts",loadChildren:()=>import("./loans.module-GHSYSBBB.js").then(e=>e.LoansModule)},{path:"savings-accounts",loadChildren:()=>import("./savings.module-7RWCJ6VZ.js").then(e=>e.SavingsModule)}]}]}])],nN=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[uf,NT,p5,m5,d5,u5,Y2,f5,LT,h5],imports:[hn.forChild(wDe),hn]})}}return e})();var oN=(()=>{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,nN,D2,I2,O2,A2,k2,B2,R2,N2,F2,W2,L2,E2,V2,q2,Q2,z2,H2,G2,j2,$2,U2]})}}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 J2=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 PDe=["showClosedCenters"],TDe=()=>[10,25,50,100],MDe=()=>["../","organization","bulk-import","Centers"],DDe=()=>["create"],EDe=e=>[e,"general"];function IDe(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,MDe)),a(2),v("",m(3,2,"labels.buttons.Import Center")," "))}function ODe(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,DDe)),a(2),v("",m(3,2,"labels.buttons.Create Center")," "))}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.name")))}function FDe(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function kDe(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 BDe(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function RDe(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 NDe(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.externalId)}}function LDe(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 VDe(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 qDe(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 zDe(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function HDe(e,o){e&1&&b(0,"tr",30)}function GDe(e,o){if(e&1&&b(0,"tr",31),e&2){let t=o.$implicit;g("routerLink",Nt(1,EDe,t.id))}}var K2=(()=>{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),fl(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 J2(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(PDe,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 z(s),H(i.changeShowClosedCenters())}),c(9),p(10,"translate"),r()(),l(11,"div",8),F(12,IDe,4,5,"button",9)(13,ODe,4,5,"button",9),r()(),l(14,"table",10),X(15,11),F(16,ADe,3,3,"th",12)(17,FDe,2,1,"td",13),Z(),X(18,14),F(19,kDe,3,3,"th",15)(20,BDe,2,1,"td",13),Z(),X(21,16),F(22,RDe,3,3,"th",15)(23,NDe,2,1,"td",13),Z(),X(24,17),F(25,LDe,3,3,"th",15)(26,VDe,4,3,"td",13),Z(),X(27,18),F(28,qDe,3,3,"th",12)(29,zDe,2,1,"td",13),Z(),F(30,HDe,1,0,"tr",19)(31,GDe,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,TDe)))},dependencies:[ue,co,fe,st,Ue,gn,Ae,$e,Fe,ze,ve,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 jDe=()=>["../"];function $De(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Center Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function UDe(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 WDe(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(),se(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function YDe(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 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(),se(" ",m(2,3,"labels.inputs.Activation Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function KDe(e,o){if(e&1){let t=Y();l(0,"mat-form-field",11),R("click",function(){z(t);let i=xe(7);return H(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,JDe,7,9,"mat-error"),r()}if(e&2){let t=xe(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 XDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Submission Date")," ",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),a(),v(" ",t.name," ")}}function eEe(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(){z(t);let i=w();return H(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 tEe(e,o){if(e&1){let t=Y();l(0,"div",28)(1,"button",23),R("click",function(){let i=z(t).$index,s=w(2);return H(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 iEe(e,o){if(e&1&&(l(0,"mat-nav-list")(1,"h3",27),c(2),p(3,"translate"),r(),Se(4,tEe,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 nEe(e,o){if(e&1){let t=Y();l(0,"button",31),R("click",function(){z(t);let i=w();return H(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 X2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.centerService=T(Jn),this.settingsService=T(At),this.groupService=T(An),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:["",[re.required,re.pattern("(^[A-z]).*")]],officeId:["",re.required],submittedOnDate:["",re.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("",re.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,$De,7,9,"mat-error"),E(11,UDe,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,WDe,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,YDe,2,2,"mat-option",7,Pe),r()(),l(27,"mat-checkbox",9),c(28),p(29,"translate"),r(),E(30,KDe,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(){z(s);let u=xe(43);return H(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,XDe,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,ZDe,2,2,"mat-option",7,Pe),r()()(),l(52,"div",15),E(53,eEe,25,15,"div",16),E(54,iEe,6,3,"mat-nav-list"),r()(),l(55,"mat-card-actions",17)(56,"button",18),c(57),p(58,"translate"),r(),F(59,nEe,3,4,"button",19),r()()()()}if(n&2){let s=xe(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,jDe)),a(),v(" ",m(58,37,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_CENTER")}},dependencies:[ue,fe,tt,st,Ue,Xe,dt,gn,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,fi,Ke,wi,ke,pa,kp,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 oEe=()=>["./general"],aEe=()=>["savings-accounts","create"],rEe=()=>["./notes"],lEe=e=>["./datatables",e];function sEe(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=xe(36);a(),g("matMenuTriggerFor",t)}}function cEe(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 pEe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w();a(),se(" ",m(2,2,"labels.inputs.Staff"),": ",t.centerViewData.staffName," ")}}function mEe(e,o){if(e&1){let t=Y();l(0,"i",28),R("click",function(){z(t);let i=w(3);return H(i.doAction("Edit Meeting"))}),r()}}function dEe(e,o){e&1&&(l(0,"span"),F(1,mEe,1,0,"i",27),b(2,"br"),r()),e&2&&(a(),g("mifosxHasPermission","UPDATE_MEETING"))}function uEe(e,o){if(e&1&&(l(0,"div")(1,"p"),c(2),p(3,"translate"),p(4,"dateFormat"),E(5,dEe,3,1,"span"),c(6),p(7,"translate"),p(8,"lowercase"),r()()),e&2){let t=w();a(2),se(" ",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(),se(" ",m(7,9,"labels.inputs.Meeting Frequency"),": ",m(8,11,t.centerViewData.collectionMeetingCalendar==null?null:t.centerViewData.collectionMeetingCalendar.frequency.value)," ")}}function fEe(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),se(" ",m(3,4,"labels.inputs.Next Meeting on"),": ",m(4,6,"labels.text.Unassigned")," "),a(5),se(" ",m(8,8,"labels.inputs.Meeting Frequency"),": ",m(9,10,"labels.text.N/A")," "))}function hEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){z(t);let i=w(2);return H(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 gEe(e,o){e&1&&(l(0,"span"),F(1,hEe,6,3,"button",17),r()),e&2&&(a(),g("mifosxHasPermission","ACTIVATE_CENTER"))}function _Ee(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){z(t);let i=w();return H(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 CEe(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 vEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){z(t);let i=w();return H(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 xEe(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,aEe)),a(4),h(m(5,3,"labels.buttons.Centers Saving Application")))}function bEe(e,o){e&1&&(l(0,"span"),F(1,xEe,6,6,"button",36),r()),e&2&&(a(),g("mifosxHasPermission","CREATE_SAVINGSACCOUNT"))}function yEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){z(t);let i=w(2);return H(i.doAction("Attendance"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Attendance")," "))}function SEe(e,o){e&1&&(l(0,"span"),F(1,yEe,3,3,"button",17),r()),e&2&&(a(),g("mifosxHasPermission","SAVEORUPDATEATTENDANCE_MEETING"))}function wEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){z(t);let i=w(2);return H(i.doAction("Assign Staff"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Assign Staff")," "))}function PEe(e,o){e&1&&(l(0,"span"),F(1,wEe,3,3,"button",17),r()),e&2&&(a(),g("mifosxHasPermission","ASSIGNSTAFF_GROUP"))}function TEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){z(t);let i=w(2);return H(i.doAction("Unassign Staff"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Unassign Staff")," "))}function MEe(e,o){e&1&&(l(0,"span"),F(1,TEe,3,3,"button",17),r()),e&2&&(a(),g("mifosxHasPermission","UNASSIGNSTAFF_GROUP"))}function DEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){z(t);let i=w(2);return H(i.doAction("Delete"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Delete")," "))}function EEe(e,o){e&1&&(l(0,"span"),F(1,DEe,3,3,"button",17),r()),e&2&&(a(),g("mifosxHasPermission","DELETE_CENTER"))}function IEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){z(t);let i=w();return H(i.doAction("Close"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Close")," "))}function OEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){z(t);let i=w(2);return H(i.doAction("Attach Meeting"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Attach Meeting")," "))}function AEe(e,o){e&1&&(l(0,"span"),F(1,OEe,3,3,"button",17),r()),e&2&&(a(),g("mifosxHasPermission","CREATE_MEETING"))}function FEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){z(t);let i=w();return H(i.doAction("Staff Assignment History"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Staff Assignment History")," "))}function kEe(e,o){if(e&1&&(l(0,"a",21,4),c(2),p(3,"translate"),r()),e&2){let t=xe(1);g("routerLink",oe(5,rEe))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Notes")," ")}}function BEe(e,o){if(e&1&&(l(0,"a",21,5),c(2),r()),e&2){let t=xe(1),n=w().$implicit;g("routerLink",Nt(3,lEe,n.registeredTableName))("active",t.isActive),a(2),v(" ",n.registeredTableName," ")}}function REe(e,o){if(e&1&&(l(0,"span"),F(1,BEe,3,5,"a",22),r()),e&2){let t=o.$implicit;a(),g("mifosxHasPermission","READ_"+t.registeredTableName)}}var Z2=(()=>{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,sEe,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,cEe,5,5,"span"),E(27,pEe,4,4,"span"),c(28),p(29,"translate"),p(30,"dateFormat"),b(31,"br"),r()(),l(32,"div",16),E(33,uEe,9,13,"div")(34,fEe,10,12,"div"),r()()()(),l(35,"mat-menu",null,0),E(37,gEe,2,1,"span"),F(38,_Ee,6,3,"button",17)(39,CEe,6,4,"button",18)(40,vEe,6,3,"button",17),E(41,bEe,2,1,"span"),l(42,"button",19),c(43),p(44,"translate"),r(),l(45,"mat-menu",null,1),E(47,SEe,2,1,"span"),E(48,PEe,2,1,"span"),E(49,MEe,2,1,"span"),E(50,EEe,2,1,"span"),F(51,IEe,3,3,"button",17),E(52,AEe,2,1,"span"),F(53,FEe,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,kEe,4,6,"a",22),Se(61,REe,2,1,"span",null,Pe),r(),l(63,"mat-tab-nav-panel",null,3),b(65,"router-outlet"),r()()()),n&2){let s=xe(46),d=xe(57),u=xe(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),se(" ",m(21,38,"labels.inputs.Account")," #:",i.centerViewData.accountNo," "),a(3),se(" ",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(),se(" ",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,oEe))("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,Ae,$e,Je,Ke,sa,Wr,S0,Yo,si,wi,oc,Jo,ke,vl,Ea,nc,ic,ir,nr,Na,or,ra,Sg,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 NEe=e=>["/groups",e,"general"],aN=e=>["../","savings-accounts",e,"actions","Deposit"],rN=e=>["../","savings-accounts",e,"actions","Withdrawal"],LEe=e=>["../","savings-accounts",e,"actions","Approve"],VEe=e=>["../","savings-accounts",e,"actions","Undo Approval"],qEe=e=>["../","savings-accounts",e,"actions","Activate"],zEe=e=>["../","savings-accounts",e,"transactions"];function HEe(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 GEe(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 jEe(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 $Ee(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 UEe(e,o){if(e&1&&(l(0,"td",13),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function WEe(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 YEe(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 JEe(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 KEe(e,o){e&1&&b(0,"tr",15)}function XEe(e,o){if(e&1&&b(0,"tr",16),e&2){let t=o.$implicit;g("routerLink",Nt(1,NEe,t.id))}}function ZEe(e,o){if(e&1&&(l(0,"h3"),c(1),p(2,"translate"),r(),l(3,"table",3),X(4,4),F(5,GEe,3,3,"th",5)(6,jEe,4,6,"td",6),Z(),X(7,7),F(8,$Ee,3,3,"th",5)(9,UEe,2,1,"td",6),Z(),X(10,8),F(11,WEe,3,3,"th",5)(12,QEe,2,1,"td",6),Z(),X(13,9),F(14,YEe,3,3,"th",5)(15,JEe,3,3,"td",6),Z(),F(16,KEe,1,0,"tr",10)(17,XEe,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 eIe(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 tIe(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 iIe(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 nIe(e,o){if(e&1&&(l(0,"td",13),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function oIe(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 aIe(e,o){if(e&1&&(l(0,"td",13),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountBalance)}}function rIe(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 lIe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(i){z(t);let s=w(5);return H(s.routeEdit(i))}),b(1,"i",22),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.Deposit")))}}function sIe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(i){z(t);let s=w(5);return H(s.routeEdit(i))}),b(1,"i",22),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.Deposit")))}}function cIe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(i){z(t);let s=w(5);return H(s.routeEdit(i))}),b(1,"i",23),p(2,"translate"),r()}if(e&2){let t=w(2).$implicit;g("routerLink",Nt(5,rN,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Withdraw")))}}function pIe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(i){z(t);let s=w(5);return H(s.routeEdit(i))}),b(1,"i",23),p(2,"translate"),r()}if(e&2){let t=w(2).$implicit;g("routerLink",Nt(5,rN,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Withdraw")))}}function mIe(e,o){if(e&1&&(E(0,lIe,3,7,"button",20),E(1,sIe,3,7,"button",20),E(2,cIe,3,7,"button",20),E(3,pIe,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 dIe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(i){z(t);let s=w(4);return H(s.routeEdit(i))}),b(1,"i",24),p(2,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(5,LEe,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Approve")))}}function uIe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(i){z(t);let s=w(4);return H(s.routeEdit(i))}),b(1,"i",25),p(2,"translate"),r(),l(3,"button",21),R("click",function(i){z(t);let s=w(4);return H(s.routeEdit(i))}),b(4,"i",26),p(5,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(10,VEe,t.id)),a(),g("matTooltip",Le(m(2,6,"tooltips.Undo Approve"))),a(2),g("routerLink",Nt(12,qEe,t.id)),a(),g("matTooltip",Le(m(5,8,"tooltips.Activate")))}}function fIe(e,o){if(e&1&&(l(0,"td",13),E(1,mIe,4,4),E(2,dIe,3,7,"button",20),E(3,uIe,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 hIe(e,o){e&1&&b(0,"tr",15)}function gIe(e,o){if(e&1&&b(0,"tr",16),e&2){let t=o.$implicit;g("routerLink",Nt(1,zEe,t.id))}}function _Ie(e,o){if(e&1&&(l(0,"h3"),c(1),p(2,"translate"),r(),l(3,"table",3),X(4,4),F(5,eIe,3,3,"th",5)(6,tIe,4,6,"td",6),Z(),X(7,17),F(8,iIe,3,3,"th",5)(9,nIe,2,1,"td",6),Z(),X(10,18),F(11,oIe,3,3,"th",5)(12,aIe,2,1,"td",6),Z(),X(13,19),F(14,rIe,3,3,"th",5)(15,fIe,4,3,"td",6),Z(),F(16,hIe,1,0,"tr",10)(17,gIe,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 CIe(e,o){if(e&1&&E(0,_Ie,18,6),e&2){let t=w();I(t.savingsAccountData.length>0?0:-1)}}var ev=(()=>{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,HEe,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,ZEe,18,6),E(30,CIe,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),se(" ",m(8,20,"labels.inputs.Active Clients"),": ",i.centerSummaryData.activeClients),a(3),se(" ",m(11,22,"labels.inputs.Active Group Loans"),": ",i.centerSummaryData.activeGroupLoans),a(3),se(" ",m(14,24,"labels.inputs.Active Client Loans"),": ",i.centerSummaryData.activeClientLoans),a(3),se(" ",m(17,26,"labels.inputs.Active Overdue Group Loans"),": ",i.centerSummaryData.overdueGroupLoans),a(4),se(" ",m(21,28,"labels.inputs.Active Group Borrowers"),": ",i.centerSummaryData.activeGroupBorrowers),a(3),se(" ",m(24,30,"labels.inputs.Active Client Borrowers"),": ",i.centerSummaryData.activeClientBorrowers),a(3),se(" ",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,Ae,ve,_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 tv=(()=>{class e{constructor(){this.route=T(Ie),this.authenticationService=T(Qo),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,A0],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}"]})}}return e})();var iv=(()=>{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 vIe=()=>["../general"];function xIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Center Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function bIe(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 yIe(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 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(),se(" ",m(2,3,"labels.inputs.Activation Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wIe(e,o){if(e&1){let t=Y();X(0,11),R("click",function(){z(t);let i=xe(8);return H(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,SIe,7,9,"mat-error"),r(),Z()}if(e&2){let t=xe(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 nv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.centersService=T(Jn),this.settingsService=T(At),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,[re.required,re.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,re.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,xIe,7,9,"mat-error"),E(11,bIe,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,yIe,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,wIe,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,vIe)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var PIe=()=>["../../"];function TIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Activated On Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var ov=(()=>{class e{constructor(){this.formBuilder=T(nt),this.centersService=T(Jn),this.settingsService=T(At),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,re.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 z(s),H(i.submit())}),l(3,"mat-card-content")(4,"mat-form-field",3),R("click",function(){z(s);let u=xe(11);return H(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,TIe,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=xe(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,PIe)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var MIe=()=>["../../"];function DIe(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 EIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Staff")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var av=(()=>{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,DIe,2,2,"mat-option",5,Pe),r(),E(12,EIe,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,MIe)),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,Ue,Xe,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,gt,ft,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var IIe=()=>["../../"];function OIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Closed On Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function AIe(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 FIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Closure Reason")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function kIe(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 rv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.centersService=T(Jn),this.settingsService=T(At),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:["",re.required],closureReasonId:["",re.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 z(s),H(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){z(s);let u=xe(12);return H(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,OIe,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,AIe,2,2,"mat-option",9,Pe),r(),E(21,FIe,7,9,"mat-error"),r()()(),l(22,"mat-card-actions",10)(23,"button",11),c(24),p(25,"translate"),r(),F(26,kIe,3,4,"button",12),r()()()()}if(n&2){let s=xe(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,IIe)),a(),v(" ",m(25,16,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CLOSE_CENTER")}},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var BIe=()=>["../../"];function RIe(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 NIe(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 LIe(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 VIe(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 qIe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Present")))}function zIe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Absent")))}function HIe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Approved")))}function GIe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Leave")))}function jIe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Late")))}function $Ie(e,o){if(e&1){let t=Y();l(0,"td",19),F(1,qIe,3,3,"span",20)(2,zIe,3,3,"span",20)(3,HIe,3,3,"span",20)(4,GIe,3,3,"span",20)(5,jIe,3,3,"span",20),l(6,"button",21),R("click",function(){let i=z(t).$implicit,s=w();return H(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 UIe(e,o){e&1&&b(0,"tr",23)}function WIe(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(){z(t);let i=w();return H(i.submit())}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Confirm")," "))}var lv=(()=>{class e{constructor(){this.route=T(Ie),this.dateUtils=T(Zt),this.router=T(qe),this.centersService=T(Jn),this.settingsService=T(At),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,RIe,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,NIe,3,3,"th",7)(15,LIe,3,6,"td",8),Z(),X(16,9),F(17,VIe,3,3,"th",7)(18,$Ie,8,6,"td",10),Z(),F(19,UIe,1,0,"tr",11)(20,WIe,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),se("",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,BIe)),a(),v(" ",m(24,17,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_MEETING"))},dependencies:[ue,ns,Xs,Zs,fe,Ue,gn,Ae,$e,Et,Fe,Be,qa,gt,ft,ve,Ke,_t,xt,vt,bt,Ct,yt,wi,ke,St,Pt,wt,Tt,Pi,he,Wn],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var YIe=()=>["../../"];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(),se(" ",m(2,3,"labels.inputs.Start Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function KIe(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 XIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Repetition Frequency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ZIe(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,KIe,2,2,"mat-option",12,Pe),r(),E(7,XIe,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 e6e(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 t6e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Repetition Interval")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function i6e(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,e6e,2,2,"mat-option",12,Pe),r(),E(7,t6e,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 n6e(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 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",14),Se(5,n6e,2,2,"mat-option",12,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.centerMeetingForm.controls.repeatsOnDay.hasError("repeatsOnDay")?7:-1)}}var sv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.centersService=T(Jn),this.settingsService=T(At),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:["",re.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("",re.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(){z(s);let u=xe(12);return H(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,JIe,7,9,"mat-error"),r(),l(14,"mat-checkbox",7),c(15),p(16,"translate"),r(),E(17,ZIe,8,4,"mat-form-field"),E(18,i6e,8,4,"mat-form-field"),E(19,a6e,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 z(s),H(i.submit())}),c(25),p(26,"translate"),r()()()()()}if(n&2){let s=xe(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,YIe)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,fi,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var r6e=()=>["../../"];function l6e(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 s6e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Repetition Frequency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function c6e(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 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(),se(" ",m(2,3,"labels.inputs.Repetition Interval")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function m6e(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 d6e(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 u6e(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,m6e,2,2,"mat-option",8,Pe),r(),E(7,d6e,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 f6e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Changes Affection Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var cv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.centersService=T(Jn),this.settingsService=T(At),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:["",re.required],frequency:["",re.required],interval:["",re.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("",re.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 z(s),H(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,l6e,2,2,"mat-option",8,Pe),r(),E(17,s6e,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,c6e,2,2,"mat-option",8,Pe),r(),E(25,p6e,7,9,"mat-error"),r(),E(26,u6e,8,4,"mat-form-field"),l(27,"mat-form-field",10),R("click",function(){z(s);let u=xe(34);return H(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,f6e,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 z(s),H(i.submit())}),c(44),p(45,"translate"),r()()()()()}if(n&2){let s=xe(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,r6e)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,qa,ze,gt,ft,mi,di,pi,ve,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var h6e=()=>["../../"];function g6e(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 _6e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Existing Meeting Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}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(),se(" ",m(2,3,"labels.inputs.Revised Meeting Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var pv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.centersService=T(Jn),this.settingsService=T(At),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:["",re.required],newMeetingDate:["",re.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,g6e,3,4,"mat-option",5,Pe),r(),E(12,_6e,7,9,"mat-error"),r(),l(13,"mat-form-field",6),R("click",function(){z(s);let u=xe(20);return H(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,C6e,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 z(s),H(i.submit())}),c(27),p(28,"translate"),r()()()()()}if(n&2){let s=xe(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,h6e)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,Pi,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();function v6e(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 x6e(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=z(t),s=i.$implicit,d=i.$index,u=w(2);return H(u.removeGroup(d,s))}),b(4,"fa-icon",19),r()()}if(e&2){let t=o.$implicit;a(2),h(t.name)}}function b6e(e,o){if(e&1&&(l(0,"mat-nav-list"),Se(1,x6e,5,1,"div",16,Pe),r()),e&2){let t=w();a(),we(t.groupMembers)}}var mv=(()=>{class e{constructor(){this.route=T(Ie),this.centersService=T(Jn),this.groupsService=T(An),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,v6e,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 z(s),H(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,b6e,3,0,"mat-nav-list"),r()()}if(n&2){let s=xe(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,Ue,gn,$e,Fe,Be,ze,ft,Za,Xa,wi,ke,kp,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 y6e=()=>["../../"],dv=(()=>{class e{constructor(){this.sanitizer=T(ec),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,y6e)),a(2),v("",m(5,3,"labels.buttons.Back")," "),a(2),g("src",i.pentahoUrl,_g))},dependencies:[ue,fe,Ae,$e,ve,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 S6e(e,o){e&1&&b(0,"mifosx-activate-center")}function w6e(e,o){e&1&&b(0,"mifosx-center-assign-staff")}function P6e(e,o){e&1&&b(0,"mifosx-close-center")}function T6e(e,o){e&1&&b(0,"mifosx-center-attendance")}function M6e(e,o){e&1&&b(0,"mifosx-attach-center-meeting")}function D6e(e,o){e&1&&b(0,"mifosx-edit-center-meeting")}function E6e(e,o){e&1&&b(0,"mifosx-edit-center-meeting-schedule")}function I6e(e,o){e&1&&b(0,"mifosx-manage-groups")}function O6e(e,o){e&1&&b(0,"mifosx-staff-assignment-history")}var uv=(()=>{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,S6e,1,0,"mifosx-activate-center"),E(1,w6e,1,0,"mifosx-center-assign-staff"),E(2,P6e,1,0,"mifosx-close-center"),E(3,T6e,1,0,"mifosx-center-attendance"),E(4,M6e,1,0,"mifosx-attach-center-meeting"),E(5,D6e,1,0,"mifosx-edit-center-meeting"),E(6,E6e,1,0,"mifosx-edit-center-meeting-schedule"),E(7,I6e,1,0,"mifosx-manage-groups"),E(8,O6e,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,ov,av,rv,lv,sv,cv,pv,mv,dv],encapsulation:2})}}return e})();var Zf=(()=>{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 e1=(()=>{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 t1=(()=>{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 i1=(()=>{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 n1=(()=>{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 o1=(()=>{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 a1=(()=>{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 g5=(()=>{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 _5=(()=>{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 A6e=[_o.withShell([{path:"centers",data:{title:"Centers",breadcrumb:"Centers"},children:[{path:"",component:K2},{path:"create",component:X2,data:{title:"Create Center",breadcrumb:"Create"},resolve:{offices:zr}},{path:":centerId",data:{title:"Centers View",routeParamBreadcrumb:"centerId"},resolve:{centerViewData:Zf},children:[{path:"",component:Z2,resolve:{centerDatatables:a1},children:[{path:"general",component:ev,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{centerSummaryData:i1,centerViewData:t1,savingsAccountData:e1}},{path:"notes",component:tv,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{centerNotes:n1}},{path:"datatables",children:[{path:":datatableName",component:iv,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{centerDatatable:o1}}]}]},{path:"actions/:action",data:{title:"Center Actions",breadcrumb:"action",routeParamBreadcrumb:"action"},component:uv,resolve:{centersActionData:g5}},{path:"edit",component:nv,data:{title:"Edit Center",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{centerData:_5}}]}]}])],lN=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[zr,Zf,e1,t1,i1,n1,o1,a1,g5,_5],imports:[hn.forChild(A6e),hn]})}}return e})();var sN=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[Zf,o1,a1,i1,t1,e1,n1],imports:[oo,lN,ha,Er,K2,X2,Z2,ev,tv,iv,uv,ov,av,rv,lv,sv,cv,pv,mv,dv,nv]})}}return e})();var F6e=["chartofAccounts"],k6e=["templateChartofAccounts"],B6e=["accountsLinked"],R6e=["templateAccountsLinked"],N6e=["migrateOpeningBalances"],L6e=["templateMigrateOpeningBalances"],V6e=["closingEntries"],q6e=["templateClosingEntries"],z6e=["createJournalEntries"],H6e=["templateCreateJournalEntries"],cN=()=>["journal-entries/frequent-postings"],pN=()=>["journal-entries/create"],mN=()=>["journal-entries"],dN=()=>["financial-activity-mappings"],uN=()=>["migrate-opening-balances"],fN=()=>["chart-of-accounts"],hN=()=>["closing-entries"],gN=()=>["accounting-rules"],_N=()=>["periodic-accruals"],CN=()=>["provisioning-entries"];function G6e(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.These are predefined postings")," "))}function j6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(0))}),r()}}function $6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(0))}),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",17),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,cN)),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 W6e(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.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(){z(t);let i=w(2);return H(i.arrowBooleansToggle(1))}),r()}}function Y6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(1))}),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",25),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,pN)),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 K6e(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.Advanced search option for journal entries")," "))}function X6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(2))}),r()}}function Z6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(2))}),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",26),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,mN)),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 tOe(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.List of Financial Activities and GL Account Mappings")," "))}function iOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(3))}),r()}}function nOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(3))}),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",27),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,dN)),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 aOe(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.Set or update office-level opening balances for GL accounts")," "))}function rOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(4))}),r()}}function lOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(4))}),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",28),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,uN)),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 cOe(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.List of accounts used by the organization")," "))}function pOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(5))}),r()}}function mOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(5))}),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",29),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,fN)),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 uOe(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.Journal entries made at the end of accounting period")," "))}function fOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(6))}),r()}}function hOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(6))}),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",30),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,hN)),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 _Oe(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.List of all accounting rules")," "))}function COe(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(7))}),r()}}function vOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(7))}),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",31),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,gN)),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 bOe(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.Accrues income, expenses and liabilities")," "))}function yOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(8))}),r()}}function SOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(8))}),r()}}function wOe(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,bOe,3,5,"p",19),r()(),l(9,"div",20),E(10,yOe,1,0,"fa-icon",21),E(11,SOe,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.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 POe(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.Create provisioning entries")," "))}function TOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(9))}),r()}}function MOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){z(t);let i=w(2);return H(i.arrowBooleansToggle(9))}),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",33),r(),l(5,"div",18),c(6),p(7,"translate"),E(8,POe,3,5,"p",19),r()(),l(9,"div",20),E(10,TOe,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,CN)),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 EOe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStepChartofAccounts())}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 IOe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStepAccountsLinked())}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 OOe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStepMigrateOpeningBalances())}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 AOe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStepClosingEntries())}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 FOe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStepCreateJournalEntries())}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 fv=(()=>{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(F6e,5),Ee(k6e,5),Ee(B6e,5),Ee(R6e,5),Ee(N6e,5),Ee(L6e,5),Ee(V6e,5),Ee(q6e,5),Ee(z6e,5),Ee(H6e,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,U6e,12,8,"mat-list-item",13),l(6,"div",null,0),F(8,J6e,12,8,"mat-list-item",13),r(),F(9,eOe,12,8,"mat-list-item",13),l(10,"div",null,1),F(12,oOe,12,8,"mat-list-item",13),r(),l(13,"div",null,2),F(15,sOe,12,8,"mat-list-item",13),r()()(),l(16,"div",12)(17,"mat-nav-list")(18,"div",null,3),F(20,dOe,12,8,"mat-list-item",13),r(),l(21,"div",null,4),F(23,gOe,12,8,"mat-list-item",13),r(),F(24,xOe,12,8,"mat-list-item",13)(25,wOe,12,8,"mat-list-item",13)(26,DOe,12,8,"mat-list-item",13),r()()()()(),F(27,EOe,16,15,"ng-template",null,5,ti)(29,IOe,16,15,"ng-template",null,6,ti)(31,OOe,16,15,"ng-template",null,7,ti)(33,AOe,16,15,"ng-template",null,8,ti)(35,FOe,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,Ae,$e,ve,Ke,pa,Vo,Jo,ke,ca,he],styles:["mat-card[_ngcontent-%COMP%]{overflow:hidden}.layout-row.responsive-column[_ngcontent-%COMP%]{overflow:hidden}.layout-row.responsive-column[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{overflow:hidden}"]})}}return e})();var kOe=()=>["../../"];function BOe(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 ROe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function NOe(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 LOe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Accounting Rule")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function VOe(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 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(),se(" ",m(2,3,"labels.inputs.Currency")," ",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",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function HOe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",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 GOe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Debit Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function jOe(e,o){if(e&1){let t=Y();l(0,"button",34),R("click",function(){z(t);let i=w().$index,s=w();return H(s.removeAffectedGLEntry(s.debits,i))}),b(1,"fa-icon",35),r()}}function $Oe(e,o){if(e&1){let t=Y();l(0,"button",36),R("click",function(){z(t);let i=w(2);return H(i.addAffectedGLEntry(i.debits))}),b(1,"fa-icon",37),r()}}function UOe(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,zOe,2,2,"mat-option",6,Pe),r(),E(9,HOe,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,GOe,7,9,"mat-error"),r(),l(16,"span",31),E(17,jOe,2,0,"button",32),E(18,$Oe,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 WOe(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(),se(" ",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 YOe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Credit Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function JOe(e,o){if(e&1){let t=Y();l(0,"button",34),R("click",function(){z(t);let i=w().$index,s=w();return H(s.removeAffectedGLEntry(s.credits,i))}),b(1,"fa-icon",35),r()}}function KOe(e,o){if(e&1){let t=Y();l(0,"button",36),R("click",function(){z(t);let i=w(2);return H(i.addAffectedGLEntry(i.credits))}),b(1,"fa-icon",37),r()}}function XOe(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,WOe,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,YOe,7,9,"mat-error"),r(),l(16,"span",31),E(17,JOe,2,0,"button",32),E(18,KOe,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 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(),se(" ",m(2,3,"labels.inputs.Transaction Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function eAe(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 tAe(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 hv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.settingsService=T(At),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:["",re.required],accountingRule:["",re.required],currencyCode:["",re.required],debits:this.formBuilder.array([]),credits:this.formBuilder.array([]),referenceNumber:[""],transactionDate:["",re.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:["",re.required],amount:["",re.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 z(s),H(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,BOe,2,2,"mat-option",6,Pe),r(),E(12,ROe,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,NOe,2,2,"mat-option",6,Pe),r(),E(20,LOe,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,VOe,2,2,"mat-option",6,Pe),r(),E(28,qOe,7,9,"mat-error"),r(),b(29,"span",9),Se(30,UOe,19,11,"div",10,Pe),Se(32,XOe,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(){z(s);let u=xe(46);return H(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,ZOe,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,eAe,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,tAe,3,4,"button",26),r()()()()}if(n&2){let s=xe(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,kOe)),a(),v(" ",m(88,48,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_JOURNALENTRY")}},dependencies:[ue,fe,tt,st,tn,Ue,Xe,dt,Ze,et,la,La,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,Ke,wi,ke,Ln,he],encapsulation:2})}}return e})();var iAe=["createJournalFormRef"],nAe=["templateCreateJournalFormRef"],oAe=()=>["../../"];function aAe(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 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(),se(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function lAe(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 sAe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Currency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function cAe(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 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(),se(" ",m(2,3,"labels.inputs.Debit Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function mAe(e,o){if(e&1){let t=Y();l(0,"button",36),R("click",function(){z(t);let i=w().$index,s=w();return H(s.removeAffectedGLEntry(s.debits,i))}),b(1,"fa-icon",37),r()}}function dAe(e,o){if(e&1){let t=Y();l(0,"button",38),R("click",function(){z(t);let i=w(2);return H(i.addAffectedGLEntry(i.debits))}),b(1,"fa-icon",39),r()}}function uAe(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){z(t);let s=w();return H(s.onAmountInput(i))}),r(),E(8,pAe,7,9,"mat-error"),r(),l(9,"span",33),E(10,mAe,2,0,"button",34),E(11,dAe,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 fAe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Credit Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function hAe(e,o){if(e&1){let t=Y();l(0,"button",36),R("click",function(){z(t);let i=w().$index,s=w();return H(s.removeAffectedGLEntry(s.credits,i))}),b(1,"fa-icon",37),r()}}function gAe(e,o){if(e&1){let t=Y();l(0,"button",38),R("click",function(){z(t);let i=w(2);return H(i.addAffectedGLEntry(i.credits))}),b(1,"fa-icon",39),r()}}function _Ae(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){z(t);let s=w();return H(s.onAmountInput(i))}),r(),E(8,fAe,7,9,"mat-error"),r(),l(9,"span",33),E(10,hAe,2,0,"button",34),E(11,gAe,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 CAe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Transaction Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function vAe(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 xAe(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 bAe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(11),p(12,"translate"),r(),l(13,"button",45),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStep())}),c(14),p(15,"translate"),r(),l(16,"button",45),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 gv=(()=>{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(At),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:["",re.required],currencyCode:["",re.required],debits:this.formBuilder.array([this.createAffectedGLEntryForm()]),credits:this.formBuilder.array([this.createAffectedGLEntryForm()]),referenceNumber:[""],transactionDate:["",re.required],paymentTypeId:[""],accountNumber:[""],checkNumber:[""],routingCode:[""],receiptNumber:[""],bankNumber:[""],comments:[""]})}createAffectedGLEntryForm(){return this.formBuilder.group({glAccountId:["",re.required],amount:["",[re.required,re.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(ps,{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(iAe,5),Ee(nAe,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 z(s),H(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,aAe,2,2,"mat-option",8,Pe),r(),E(13,rAe,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,lAe,2,2,"mat-option",8,Pe),r(),E(21,sAe,7,9,"mat-error"),r(),E(22,cAe,5,3,"mat-form-field",9),Se(23,uAe,12,11,"div",11,Pe),Se(25,_Ae,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(){z(s);let u=xe(39);return H(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,CAe,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,vAe,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,xAe,3,4,"button",27),r()()()(),F(83,bAe,19,18,"ng-template",null,2,ti)}if(n&2){let s=xe(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,oAe)),a(),v(" ",m(81,45,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_JOURNALENTRY")}},dependencies:[ue,fe,tt,st,tn,Ue,Xe,dt,Da,Ze,et,la,La,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,Ke,ea,wi,ke,Ln,he],encapsulation:2})}}return e})();var _v=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 yAe=()=>[10,25,50,100],SAe=(e,o)=>({id:e,name:o}),wAe=e=>["transactions/view",e];function PAe(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 TAe(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",Ja(2,SAe,t.id,t.name)),a(),v(" ",t.name," ")}}function MAe(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 DAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.id)}}function EAe(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 IAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function OAe(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 AAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.transactionId)}}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.Transaction Date")))}function kAe(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 BAe(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 RAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountType.value)}}function NAe(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 LAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdByUserName)}}function VAe(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 qAe(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 zAe(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 HAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountCode)}}function GAe(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 jAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountName)}}function $Ae(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 UAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.currency.code)}}function WAe(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 YAe(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 JAe(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 KAe(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 XAe(e,o){if(e&1&&(l(0,"td",39),E(1,KAe,3,3,"span"),r()),e&2){let t=o.$implicit;a(),I(t.entryType.value==="CREDIT"?1:-1)}}function ZAe(e,o){e&1&&b(0,"tr",41)}function e7e(e,o){if(e&1&&b(0,"tr",42),e&2){let t=o.$implicit;g("routerLink",Nt(1,wAe,t.transactionId))}}var Cv=(()=>{class e{constructor(){this.accountingService=T(Ui),this.settingsService=T(At),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(Dn(t=>t.id?t.id:""),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"officeId")})).subscribe(),this.glAccount.valueChanges.pipe(Dn(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),fl(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(hl(""),Dn(t=>typeof t=="string"?t:t.name),Dn(t=>t?this.filterOfficeAutocompleteData(t):this.officeData))}setFilteredGlAccounts(){this.filteredGLAccountData=this.glAccount.valueChanges.pipe(hl(""),Dn(t=>typeof t=="string"?t:t.name+" ("+t.glCode+")"),Dn(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 _v(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 z(s),H(i.applyFilter(u.value,"manualEntriesOnly"))}),Se(12,PAe,2,2,"mat-option",10,Pe),r()(),l(14,"mat-form-field",11),R("click",function(){z(s);let u=xe(21);return H(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(){z(s);let u=xe(29);return H(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(){z(s);let u=xe(42);return H(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(){z(s);let u=xe(50);return H(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,TAe,2,5,"mat-option",10,Pe),p(55,"async"),r(),l(56,"div",18)(57,"table",19),X(58,20),F(59,MAe,3,3,"th",21)(60,DAe,2,1,"td",22),Z(),X(61,23),F(62,EAe,3,3,"th",21)(63,IAe,2,1,"td",22),Z(),X(64,24),F(65,OAe,3,3,"th",21)(66,AAe,2,1,"td",22),Z(),X(67,25),F(68,FAe,3,3,"th",21)(69,kAe,3,3,"td",22),Z(),X(70,26),F(71,BAe,3,3,"th",27)(72,RAe,2,1,"td",22),Z(),X(73,28),F(74,NAe,3,3,"th",27)(75,LAe,2,1,"td",22),Z(),X(76,29),F(77,VAe,3,3,"th",27)(78,qAe,3,3,"td",22),Z(),X(79,30),F(80,zAe,3,3,"th",21)(81,HAe,2,1,"td",22),Z(),X(82,31),F(83,GAe,3,3,"th",21)(84,jAe,2,1,"td",22),Z(),X(85,32),F(86,$Ae,3,3,"th",21)(87,UAe,2,1,"td",22),Z(),X(88,33),F(89,WAe,3,3,"th",21)(90,YAe,2,1,"td",22),Z(),X(91,34),F(92,JAe,3,3,"th",21)(93,XAe,2,1,"td",22),Z(),F(94,ZAe,1,0,"tr",35)(95,e7e,1,3,"tr",36),r(),b(96,"mat-paginator",37),p(97,"async"),r()}if(n&2){let s=xe(21),d=xe(29),u=xe(42),f=xe(50),_=xe(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,yAe))}},dependencies:[ue,fe,st,Ue,gn,Ae,Fe,Be,ai,ze,gt,ft,mi,di,pi,Za,ea,Xa,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,Ka,Pi,he,Yr,On],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 t7e=["buttonDefineMapping"],i7e=["templateButtonDefineMapping"],n7e=["activitiesTable"],o7e=["templateActivitiesTable"],a7e=()=>[10,25],r7e=()=>["create"],l7e=e=>["view",e];function s7e(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,r7e)),a(2),v(" ",m(3,2,"labels.buttons.Define New Mapping")," "))}function c7e(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 p7e(e,o){if(e&1&&(l(0,"td",20),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;a(),se(" (",t.financialActivityData.id,") ",m(2,2,"labels.accounting.financialActivity."+t.financialActivityData.name)," ")}}function m7e(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 d7e(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 u7e(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 f7e(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountData.glCode)}}function h7e(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 g7e(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountData.name)}}function _7e(e,o){e&1&&b(0,"tr",21)}function C7e(e,o){if(e&1&&b(0,"tr",22),e&2){let t=o.$implicit;g("routerLink",Nt(1,l7e,t.id))}}function v7e(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",26),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",26),R("click",function(){let i=z(t).popover,s=w(),d=xe(5),u=xe(25);return i.close(),H(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 x7e(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",26),R("click",function(){let i=z(t).popover,s=w(),d=xe(2),u=xe(23);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",26),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 vv=(()=>{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(t7e,5),Ee(i7e,5),Ee(n7e,5),Ee(o7e,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,s7e,4,5,"button",5),r()(),l(4,"div",6,1)(6,"table",7),X(7,8),F(8,c7e,3,3,"th",9)(9,p7e,3,4,"td",10),Z(),X(10,11),F(11,m7e,3,3,"th",9)(12,d7e,3,3,"td",10),Z(),X(13,12),F(14,u7e,3,3,"th",9)(15,f7e,2,1,"td",10),Z(),X(16,13),F(17,h7e,3,3,"th",9)(18,g7e,2,1,"td",10),Z(),F(19,_7e,1,0,"tr",14)(20,C7e,1,3,"tr",15),r(),b(21,"mat-paginator",16),r(),F(22,v7e,16,15,"ng-template",null,2,ti)(24,x7e,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,a7e)))},dependencies:[ue,fe,Ae,ve,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 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(),se(" (",t.id,") ",m(2,3,"labels.accounting.financialActivity."+t.name)," ")}}function S7e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Financial Activity")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function w7e(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 xv=(()=>{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:["",re.required],glAccountId:["",re.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,y7e,3,5,"mat-option",4,Pe),r(),E(12,S7e,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,w7e,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,b7e)),a(),v(" ",m(17,12,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_FINANCIALACTIVITYACCOUNT"))},dependencies:[ue,fe,tt,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,gt,ft,ve,Ke,ea,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var P7e=()=>["../.."],T7e=()=>["edit"];function M7e(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,T7e)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function D7e(e,o){if(e&1){let t=Y();l(0,"button",12),R("click",function(){z(t);let i=w();return H(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 bv=(()=>{class e{constructor(){this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.location=T(b0),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,M7e,4,5,"button",1)(2,D7e,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),se(" (",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,P7e)),a(),v(" ",m(23,19,"labels.buttons.Back")," "))},dependencies:[ue,fe,Ae,$e,Je,Et,ve,Ke,ke,ls,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 E7e=()=>["../"];function I7e(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(),se(" (",t.id,") ",m(2,3,"labels.accounting.financialActivity."+t.name)," ")}}function O7e(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 yv=(()=>{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:["",re.required],glAccountId:["",re.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,I7e,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,O7e,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,E7e)),a(),v(" ",m(16,11,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_FINANCIALACTIVITYACCOUNT"))},dependencies:[ue,fe,tt,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,gt,ft,ve,Ke,ea,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var vN=e=>{let o=e.controls.debit.value,t=e.controls.credit.value;return o&&t&&o>0&&t>0?{error:!0}:null};var A7e=["searchFormRef"],F7e=["templateSearchFormRef"],k7e=()=>["../"];function B7e(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 R7e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function N7e(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 L7e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Currency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function V7e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Opening Balances Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function q7e(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 z7e(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,N7e,2,2,"mat-option",9,Pe),r(),E(9,L7e,7,9,"mat-error"),r(),l(10,"mat-form-field",17),R("click",function(){z(t);let i=xe(17);return H(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,V7e,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,q7e,20,10,"div",25,Pe),r()}if(e&2){let t=xe(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),se(" ",m(28,27,"labels.inputs.GL Name")," ",m(29,29,"labels.inputs.Account")," "),a(4),se(" ",m(32,31,"labels.inputs.Total Debit"),": ",$t(33,33,n.debitsSum,n.currencyCode,"symbol-narrow","1.2-2")," "),a(4),se(" ",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 H7e(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 G7e(e,o){e&1&&(l(0,"mat-card-actions",13)(1,"button",33),c(2),p(3,"translate"),r(),F(4,H7e,3,4,"button",34),r()),e&2&&(a(),g("routerLink",oe(5,k7e)),a(),v(" ",m(3,3,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","DEFINEOPENINGBALANCE_JOURNALENTRY"))}function j7e(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(11),p(12,"translate"),r(),l(13,"button",11),R("click",function(){let i=z(t).popover,s=w();return i.close(),i.close(),H(s.previousStep())}),c(14),p(15,"translate"),r(),l(16,"button",11),R("click",function(){let i=z(t).popover,s=w();return i.close(),i.close(),H(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 Sv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.settingsService=T(At),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:["",re.required],currencyCode:["",re.required],transactionDate:["",re.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:vN})}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(A7e,5),Ee(F7e,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 z(s),H(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,B7e,2,2,"mat-option",9,Pe),r(),E(14,R7e,7,9,"mat-error"),r()(),l(15,"div",10)(16,"button",11),R("click",function(){return z(s),H(i.retrieveOpeningBalances())}),c(17),p(18,"translate"),r()()(),E(19,z7e,40,45,"div",12),r(),E(20,G7e,5,6,"mat-card-actions",13),r()()(),F(21,j7e,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,Ue,Xe,dt,Ze,et,la,La,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,Ke,ls,Tg,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 Cc=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 xN=(()=>{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 Cc("ACCOUNTS")),n[0].children.push(new Cc(this.translateService.instant("labels.inputs.accounting.ASSET"))),n[0].children.push(new Cc(this.translateService.instant("labels.inputs.accounting.EQUITY"))),n[0].children.push(new Cc(this.translateService.instant("labels.inputs.accounting.EXPENSE"))),n[0].children.push(new Cc(this.translateService.instant("labels.inputs.accounting.INCOME"))),n[0].children.push(new Cc(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 Cc(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 wv=(()=>{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 $7e=["buttonTreeView"],U7e=["templateButtonTreeView"],W7e=["accountsTable"],Q7e=["templateAccountsTable"],Y7e=()=>[10,25,50,100],J7e=()=>["gl-accounts/create"],K7e=e=>["gl-accounts/view",e];function X7e(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,J7e)),a(2),v(" ",m(3,2,"labels.buttons.Add Account")," "))}function Z7e(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 eFe(e,o){if(e&1&&(l(0,"td",43),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function tFe(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 iFe(e,o){if(e&1&&(l(0,"td",43),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glCode)}}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.Type")))}function oFe(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 aFe(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 rFe(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 lFe(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 sFe(e,o){e&1&&(b(0,"fa-icon",46),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Allowed")))}function cFe(e,o){e&1&&(b(0,"fa-icon",47),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.")))}function pFe(e,o){if(e&1&&(l(0,"td",43),E(1,sFe,2,4,"fa-icon",46),E(2,cFe,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 mFe(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 dFe(e,o){if(e&1&&(l(0,"td",43),c(1),r()),e&2){let t=o.$implicit;a(),h(t.usage.value)}}function uFe(e,o){e&1&&b(0,"tr",48)}function fFe(e,o){if(e&1&&b(0,"tr",49),e&2){let t=o.$implicit;g("routerLink",Nt(1,K7e,t.id))}}function hFe(e,o){if(e&1&&(l(0,"span",54),c(1),r()),e&2){let t=w().$implicit;a(),h("("+t.glCode+")")}}function gFe(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=z(t).$implicit,s=w();return H(s.viewGLAccountNode(i))}),E(4,hFe,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 _Fe(e,o){if(e&1&&(l(0,"span",54),c(1),r()),e&2){let t=w().$implicit;a(),h("("+t.glCode+")")}}function CFe(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=z(t).$implicit,s=w();return H(s.viewGLAccountNode(i))}),E(6,_Fe,2,1,"span",54),c(7),r()(),l(8,"ul"),_l(9,57),r()()()}if(e&2){let t=o.$implicit,n=w();a(3),wn("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(),Cl("gl-account-tree-invisible",!n.nestedTreeControl.isExpanded(t))}}function vFe(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 xFe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",64),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",64),R("click",function(){let i=z(t).popover,s=w(),d=xe(9),u=xe(57);return i.close(),H(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 bFe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",64),R("click",function(){let i=z(t).popover,s=w(),d=xe(2),u=xe(55);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",64),R("click",function(){let i=z(t).popover,s=w(),d=xe(13),u=xe(59);return i.close(),H(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 yFe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",64),R("click",function(){let i=z(t).popover,s=w(),d=xe(9),u=xe(57);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",64),R("click",function(){let i=z(t).popover,s=w(),d=xe(20),u=xe(61);return i.close(),H(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 SFe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",64),R("click",function(){let i=z(t).popover,s=w(),d=xe(13),u=xe(59);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",64),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 Pv=(()=>{class e{constructor(){this.glAccountTreeService=T(xN),this.route=T(Ie),this.router=T(qe),this.treeControlService=T(wv),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=>Os(n.children);let t=this.glAccountTreeService;this.route.data.subscribe(n=>{this.glAccountData=n.chartOfAccounts,t.initialize(this.glAccountData)}),this.nestedTreeControl=new Gg(this._getChildren),this.nestedTreeDataSource=new Ug}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($7e,5),Ee(U7e,5),Ee(W7e,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,X7e,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 z(s),H(i.applyFilter(u.target.value))}),r()()(),l(19,"div",19,3)(21,"table",20),X(22,21),F(23,Z7e,3,3,"th",22)(24,eFe,2,1,"td",23),Z(),X(25,24),F(26,tFe,3,3,"th",22)(27,iFe,2,1,"td",23),Z(),X(28,25),F(29,nFe,3,3,"th",22)(30,oFe,3,3,"td",23),Z(),X(31,26),F(32,aFe,3,3,"th",22)(33,rFe,3,3,"td",23),Z(),X(34,27),F(35,lFe,3,3,"th",22)(36,pFe,3,2,"td",23),Z(),X(37,28),F(38,mFe,3,3,"th",22)(39,dFe,2,1,"td",23),Z(),F(40,uFe,1,0,"tr",29)(41,fFe,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 z(s),H(i.toggleExpandCollapse())}),c(46),p(47,"translate"),r()(),l(48,"div",34)(49,"div",35)(50,"mat-tree",36),F(51,gFe,6,2,"mat-tree-node",37)(52,CFe,10,7,"mat-nested-tree-node",38),r()(),E(53,vFe,35,26,"div",39),r()(),F(54,xFe,16,15,"ng-template",null,4,ti)(56,bFe,16,15,"ng-template",null,5,ti)(58,yFe,13,12,"ng-template",null,6,ti)(60,SFe,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,Y7e)),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,Ue,gn,Ae,$e,Je,Fe,Be,ze,ve,Ke,Ap,Fp,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,I0,E0,D0,O0,wi,jg,$g,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 wFe=()=>({step:1}),PFe=()=>({step:2}),TFe=()=>({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),Wo(" ",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,wFe)),a(),v(" ",m(11,17,"labels.buttons.Close Configuration Wizard")," "),a(2),g("mat-dialog-close",oe(24,PFe)),a(),se(" ",m(14,19,"labels.buttons.Create more")," ",i.stepName," "),a(2),g("mat-dialog-close",oe(25,TFe)),a(),v(" ",m(17,21,"labels.buttons.Go to next step")," "))},dependencies:[ue,fe,ve,Un,ho,Nn,$n,he],encapsulation:2})}}return e})();var MFe=["accountFormRef"],DFe=["templateAccountFormRef"],EFe=e=>[e];function IFe(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 OFe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Account Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function AFe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Account Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function FFe(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 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(),se(" ",m(2,3,"labels.inputs.Account Usage")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function BFe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.GL Code")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function RFe(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 NFe(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 LFe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(11),p(12,"translate"),r(),l(13,"button",26),R("click",function(){let i=z(t).popover;return H(i.close())}),c(14),p(15,"translate"),r(),l(16,"button",26),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStep())}),c(17),p(18,"translate"),r(),l(19,"button",26),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 Tv=(()=>{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:["",re.required],name:["",re.required],usage:["",re.required],glCode:["",re.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(MFe,5),Ee(DFe,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 z(s),H(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,IFe,3,4,"mat-option",7,Pe),r(),E(13,OFe,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,AFe,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,FFe,2,2,"mat-option",7,Pe),r(),E(27,kFe,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,BFe,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,RFe,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,NFe,3,4,"button",20),r()()()(),F(56,LFe,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,EFe,i.cancelRoute)),a(),v(" ",m(54,33,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_GLACCOUNT"))},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ze,gt,ft,ve,fi,Ke,ea,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 VFe=()=>["/accounting/chart-of-accounts/gl-accounts/create"],qFe=(e,o)=>({parent:e,accountType:o}),zFe=()=>["edit"],HFe=e=>[e];function GFe(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,VFe))("queryParams",Ja(6,qFe,t.glAccount.id,t.glAccount.type.id)),a(2),v(" ",m(3,3,"labels.buttons.Subledger Account")," ")}}function jFe(e,o){if(e&1&&(l(0,"span"),E(1,GFe,4,9,"button",10),r()),e&2){let t=w();a(),I(t.glAccount.usage.value==="HEADER"?1:-1)}}function $Fe(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,zFe)),a(2),v(" ",m(4,2,"labels.buttons.Edit")," "))}function UFe(e,o){if(e&1){let t=Y();l(0,"button",15),R("click",function(){z(t);let i=w(2);return H(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 WFe(e,o){if(e&1&&(l(0,"span"),E(1,UFe,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(){z(t);let i=w(2);return H(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 YFe(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 JFe(e,o){if(e&1){let t=Y();l(0,"button",15),R("click",function(){z(t);let i=w();return H(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 KFe(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,HFe,"/accounting/chart-of-accounts/gl-accounts/view/"+t.glAccount.parent.id)),a(),g("glAccount",t.glAccount.parent)}}function XFe(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 ZFe(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 Mv=(()=>{class e{constructor(){this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.location=T(b0),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,jFe,2,1,"span",1)(2,$Fe,5,5,"span",1)(3,WFe,2,1,"span",1)(4,YFe,2,1,"span",1)(5,JFe,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,KFe,7,7,"div",5),E(24,XFe,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,ZFe,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,Ae,$e,Je,Et,ve,Ke,ke,ls,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 eke=()=>["../"];function tke(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 ike(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Account Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function nke(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Account Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function oke(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 ake(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Account Usage")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function rke(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.GL Code")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function lke(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 ske(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 Dv=(()=>{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:["",re.required],name:[this.glAccount.name,re.required],usage:[this.glAccount.usage.id,re.required],glCode:[this.glAccount.glCode,re.required],parentId:[this.glAccount.parentId],tagId:[this.glAccount.tagId.id],manualEntriesAllowed:[this.glAccount.manualEntriesAllowed,re.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,tke,2,2,"mat-option",5,Pe),r(),E(12,ike,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,nke,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,oke,2,2,"mat-option",5,Pe),r(),E(26,ake,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,rke,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,lke,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,ske,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,eke)),a(),v(" ",m(53,33,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_GLACCOUNT"))},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ze,gt,ft,ve,fi,Ke,ea,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 cke=["buttonCreateClosure"],pke=["templateButtonCreateClosure"],mke=["closuresTable"],dke=["templateClosuresTable"],uke=()=>[10,25,50,100],fke=()=>["create"],hke=e=>["view",e];function gke(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,fke)),a(2),v(" ",m(3,2,"labels.buttons.Create Closure")," "))}function _ke(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 Cke(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 vke(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function xke(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 bke(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),h(t.closingDate)}}function yke(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 Ske(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),h(t.comments)}}function wke(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 Pke(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdByUsername)}}function Tke(e,o){e&1&&b(0,"tr",30)}function Mke(e,o){if(e&1&&b(0,"tr",31),e&2){let t=o.$implicit;g("routerLink",Nt(1,hke,t.id))}}function Dke(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",35),R("click",function(){let i=z(t).popover,s=w(),d=xe(5),u=xe(38);return i.close(),H(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 Eke(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",35),R("click",function(){let i=z(t).popover,s=w(),d=xe(2),u=xe(36);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=z(t).popover,s=w(),d=xe(18),u=xe(40);return i.close(),H(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 Ike(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=z(t).popover,s=w(),d=xe(5),u=xe(38);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",35),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 Ev=(()=>{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(hl(""),Dn(t=>typeof t=="string"?t:t.name),Dn(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(cke,5),Ee(pke,5),Ee(mke,5),Ee(dke,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,gke,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,_ke,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,Cke,3,3,"th",18)(22,vke,2,1,"td",19),Z(),X(23,20),F(24,xke,3,3,"th",18)(25,bke,2,1,"td",19),Z(),X(26,21),F(27,yke,3,3,"th",18)(28,Ske,2,1,"td",19),Z(),X(29,22),F(30,wke,3,3,"th",18)(31,Pke,2,1,"td",19),Z(),F(32,Tke,1,0,"tr",23)(33,Mke,1,3,"tr",24),r(),b(34,"mat-paginator",25),r()(),F(35,Dke,16,15,"ng-template",null,4,ti)(37,Eke,13,12,"ng-template",null,5,ti)(39,Ike,16,15,"ng-template",null,6,ti)),n&2){let s=xe(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,uke))}},dependencies:[ue,fe,st,Ue,gn,Ae,Fe,Be,ze,ft,ve,Ke,ke,Za,Xa,_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 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," ")}}function Fke(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function kke(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Closing Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Bke(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 Iv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.settingsService=T(At),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:["",re.required],closingDate:["",re.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 z(s),H(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(),E(12,Fke,7,9,"mat-error"),r(),l(13,"mat-form-field",6),R("click",function(){z(s);let u=xe(20);return H(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,kke,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,Bke,3,4,"button",12),r()()()()}if(n&2){let s=xe(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,Oke)),a(),v(" ",m(30,19,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_GLCLOSURE")}},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,ve,Ke,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Rke=()=>["edit"];function Nke(e,o){if(e&1){let t=Y();l(0,"button",5),R("click",function(){z(t);let i=w();return H(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 Lke(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 Ov=(()=>{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,Nke,4,3,"button",3),r(),E(6,Lke,39,28,"div",4)),n&2&&(a(),g("routerLink",oe(6,Rke)),a(2),v(" ",m(4,4,"labels.buttons.Edit")," "),a(2),g("mifosxHasPermission","DELETE_GLCLOSURE"),a(),I(i.glAccountClosure?6:-1))},dependencies:[ue,fe,Ae,$e,Je,ve,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 Vke=()=>["../"];function qke(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 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.glAccountClosure=t.glAccountClosure})}ngOnInit(){this.createAccountingClosureForm(),this.setAccountingClosure()}createAccountingClosureForm(){this.accountingClosureForm=this.formBuilder.group({officeId:[{value:"",disabled:!0},re.required],closingDate:[{value:"",disabled:!0},re.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 z(s),H(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,qke,2,2,"mat-option",5,Pe),r()(),l(12,"mat-form-field",6),R("click",function(){z(s);let u=xe(19);return H(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=xe(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,Vke)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ai,ze,gt,ft,mi,di,pi,ve,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var zke=()=>[10,25,50,100],Hke=()=>["create"],Gke=e=>["view",e];function jke(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,Hke)),a(2),v(" ",m(3,2,"labels.buttons.Add Rule")," "))}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.name")))}function Uke(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}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.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 Yke(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 Jke(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.debitTags)}}function Kke(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 Xke(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 Zke(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 e8e(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.creditTags)}}function t8e(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 i8e(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 n8e(e,o){e&1&&b(0,"tr",23)}function o8e(e,o){if(e&1&&b(0,"tr",24),e&2){let t=o.$implicit;g("routerLink",Nt(1,Gke,t.id))}}var Fv=(()=>{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,jke,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,$ke,3,3,"th",9)(13,Uke,2,1,"td",10),Z(),X(14,11),F(15,Wke,3,3,"th",9)(16,Qke,2,1,"td",10),Z(),X(17,12),F(18,Yke,3,3,"th",9)(19,Jke,2,1,"td",10),Z(),X(20,13),F(21,Kke,3,3,"th",9)(22,Xke,2,1,"td",10),Z(),X(23,14),F(24,Zke,3,3,"th",9)(25,e8e,2,1,"td",10),Z(),X(26,15),F(27,t8e,3,3,"th",9)(28,i8e,2,1,"td",10),Z(),F(29,n8e,1,0,"tr",16)(30,o8e,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,zke)))},dependencies:[ue,fe,Ae,Fe,Be,ze,ve,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 kv=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 a8e=()=>["../../"];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(),se(" ",m(2,3,"labels.inputs.Accounting Rule Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}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){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function c8e(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){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,c8e,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 m8e(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 d8e(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,m8e,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 u8e(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,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",23),Se(5,u8e,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 h8e(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 g8e(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,h8e,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 _8e(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 Bv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.snackBar=T(y0),this.translateService=T(yi),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:["",re.required],officeId:["",re.required],debitRuleType:["fixedAccount"],accountToDebit:[""],debitTags:[""],allowMultipleDebitEntries:[""],creditRuleType:["fixedAccount"],accountToCredit:[""],creditTags:[""],allowMultipleCreditEntries:[""],description:[""]},{validator:kv})}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({next:n=>{this.router.navigate(["../view",n.resourceId],{relativeTo:this.route})},error:n=>{let i=this.translateService.instant("errors.accountingRule.duplicateName");n?.error?.defaultUserMessage?.includes("Duplicate entry")||typeof n?.error?.message=="string"&&n.error.message.includes("Duplicate entry")||typeof n?.error=="string"&&n.error.includes("Duplicate entry")?this.snackBar.open(i,"Close",{duration:7e3,verticalPosition:"top",horizontalPosition:"right",panelClass:"custom-snackbar-top-right"}):this.snackBar.open(n?.error?.defaultUserMessage||n?.error?.message||"An error occurred. Please try again.","Close",{duration:7e3,verticalPosition:"top",horizontalPosition:"right",panelClass:"custom-snackbar-top-right"})}})}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,r8e,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,l8e,2,2,"mat-option",6,Pe),r(),E(18,s8e,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,p8e,7,3,"mat-form-field",3),E(31,d8e,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,f8e,7,3,"mat-form-field",3),E(44,g8e,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,_8e,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,a8e)),a(),v(" ",m(53,37,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_ACCOUNTINGRULE"))},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ze,gt,ft,ve,fi,Ke,er,tr,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 C8e=()=>["edit"];function v8e(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,C8e)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function x8e(e,o){if(e&1){let t=Y();l(0,"button",10),R("click",function(){z(t);let i=w();return H(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 b8e(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 y8e(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=o.$implicit;a(),h(t.tag.name)}}function S8e(e,o){if(e&1&&(l(0,"div",5)(1,"div",6),c(2),p(3,"translate"),r(),l(4,"div",7),Se(5,y8e,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 w8e(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name+" ("+t.glCode+")")}}function P8e(e,o){if(e&1&&(l(0,"div",5)(1,"div",6),c(2),p(3,"translate"),r(),l(4,"div",7),Se(5,w8e,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 T8e(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=o.$implicit;a(),h(t.tag.name)}}function M8e(e,o){if(e&1&&(l(0,"div",5)(1,"div",6),c(2),p(3,"translate"),r(),l(4,"div",7),Se(5,T8e,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 D8e(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name+" ("+t.glCode+")")}}function E8e(e,o){if(e&1&&(l(0,"div",5)(1,"div",6),c(2),p(3,"translate"),r(),l(4,"div",7),Se(5,D8e,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 Rv=(()=>{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,v8e,4,5,"button",2)(3,x8e,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,b8e,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,S8e,7,3,"div",5),E(28,P8e,7,3,"div",5),E(29,M8e,7,3,"div",5),E(30,E8e,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,Ae,$e,Je,ve,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 I8e=()=>["../"];function O8e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Accounting Rule Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}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){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function k8e(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 B8e(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,k8e,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 R8e(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 N8e(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,R8e,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 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 V8e(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,L8e,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 q8e(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 z8e(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,q8e,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 H8e(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 Nv=(()=>{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,re.required],officeId:[this.accountingRule.officeId,re.required],debitRuleType:[""],accountToDebit:[""],debitTags:[""],allowMultipleDebitEntries:[""],creditRuleType:[""],accountToCredit:[""],creditTags:[""],allowMultipleCreditEntries:[""],description:[this.accountingRule.description]},{validator:kv})}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,O8e,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,A8e,2,2,"mat-option",6,Pe),r(),E(18,F8e,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,B8e,7,3,"mat-form-field",3),E(31,N8e,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,V8e,7,3,"mat-form-field",3),E(44,z8e,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,H8e,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,I8e)),a(),v(" ",m(53,37,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_ACCOUNTINGRULE"))},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ze,gt,ft,ve,fi,Ke,er,tr,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 G8e=()=>["../"];function j8e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Accrue Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $8e(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 Lv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.settingsService=T(At),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:["",re.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 z(s),H(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){z(s);let u=xe(12);return H(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,j8e,7,9,"mat-error"),r()()(),l(14,"mat-card-actions",7)(15,"button",8),c(16),p(17,"translate"),r(),F(18,$8e,4,4,"button",9),r()()()()}if(n&2){let s=xe(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,G8e)),a(),v(" ",m(17,12,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","EXECUTE_PERIODICACCRUALACCOUNTING")}},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,ve,Ke,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var U8e=()=>[10,25,50,100],W8e=()=>["create"],Q8e=e=>["view",e];function Y8e(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,W8e)),a(2),v(" ",m(3,2,"labels.buttons.Create Provisioning Entry")," "))}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 By")))}function K8e(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdUser)}}function X8e(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 Z8e(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdDate)}}function eBe(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 tBe(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 iBe(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 nBe(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 oBe(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 aBe(e,o){if(e&1){let t=Y();l(0,"td",23)(1,"button",28),R("click",function(i){let s=z(t).$implicit,d=w();return H(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 rBe(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 lBe(e,o){if(e&1){let t=Y();l(0,"td",23)(1,"button",28),R("click",function(i){let s=z(t).$implicit,d=w();return H(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 sBe(e,o){e&1&&b(0,"tr",30)}function cBe(e,o){e&1&&b(0,"tr",31)}var Vv=(()=>{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,Y8e,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,J8e,3,3,"th",9)(13,K8e,2,1,"td",10),Z(),X(14,11),F(15,X8e,3,3,"th",9)(16,Z8e,2,1,"td",10),Z(),X(17,12),F(18,eBe,3,3,"th",9)(19,tBe,2,2,"td",10),Z(),X(20,13),F(21,iBe,3,3,"th",14)(22,nBe,5,6,"td",10),Z(),X(23,15),F(24,oBe,3,3,"th",14)(25,aBe,5,4,"td",10),Z(),X(26,16),F(27,rBe,3,3,"th",14)(28,lBe,5,4,"td",10),Z(),F(29,sBe,1,0,"tr",17)(30,cBe,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,U8e)))},dependencies:[ue,fe,Ae,Fe,Be,ze,ve,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 pBe=()=>["../"];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(),se(" ",m(2,3,"labels.inputs.Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function dBe(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 qv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.settingsService=T(At),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:["",re.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 z(s),H(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){z(s);let u=xe(12);return H(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,mBe,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,dBe,3,4,"button",11),r()()()()}if(n&2){let s=xe(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,pBe)),a(),v(" ",m(21,15,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_PROVISIONING_ENTRIES")}},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,ve,fi,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var uBe=()=>[10,25,50,100];function fBe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){z(t);let i=w(2);return H(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 hBe(e,o){if(e&1&&(l(0,"div",3)(1,"div",23),F(2,fBe,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 gBe(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 _Be(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.categoryName),a(),v(" ",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.Office Name")))}function xBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function bBe(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 yBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}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.Currency Code")))}function wBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.currencyCode)}}function PBe(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 TBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(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.Provisioning Amount")))}function DBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.amountreserved)}}function EBe(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 IBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.liabilityAccountName)}}function OBe(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 ABe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.expenseAccountName)}}function FBe(e,o){e&1&&b(0,"tr",34)}function kBe(e,o){e&1&&b(0,"tr",35)}var zv=(()=>{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(Dn(t=>t.toLowerCase()),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"officeName")})).subscribe(),this.loanProduct.valueChanges.pipe(Dn(t=>t.toLowerCase()),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"productName")})).subscribe(),this.provisioningCategory.valueChanges.pipe(Dn(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(hl(""),Dn(t=>typeof t=="string"?t:t.name),Dn(t=>t?this.filterOfficeAutocompleteData(t):this.officeData))}setFilteredLoanProducts(){this.filteredLoanProductData=this.loanProduct.valueChanges.pipe(hl(""),Dn(t=>typeof t=="string"?t:t.name),Dn(t=>t?this.filterLoanProductAutocompleteData(t):this.loanProductData))}setFilteredProvisioningCategories(){this.filteredProvisioningCategoryData=this.provisioningCategory.valueChanges.pipe(hl(""),Dn(t=>typeof t=="string"?t:t.categoryName),Dn(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,hBe,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,gBe,2,2,"mat-option",8,Pe),p(21,"async"),r(),l(22,"mat-autocomplete",7,1),Se(24,_Be,2,2,"mat-option",8,Pe),p(26,"async"),r(),l(27,"mat-autocomplete",7,2),Se(29,CBe,2,2,"mat-option",8,Pe),p(31,"async"),r(),l(32,"div",9)(33,"table",10),X(34,11),F(35,vBe,3,3,"th",12)(36,xBe,2,1,"td",13),Z(),X(37,14),F(38,bBe,3,3,"th",12)(39,yBe,2,1,"td",13),Z(),X(40,15),F(41,SBe,3,3,"th",12)(42,wBe,2,1,"td",13),Z(),X(43,16),F(44,PBe,3,3,"th",12)(45,TBe,2,1,"td",13),Z(),X(46,17),F(47,MBe,3,3,"th",12)(48,DBe,2,1,"td",13),Z(),X(49,18),F(50,EBe,3,3,"th",12)(51,IBe,2,1,"td",13),Z(),X(52,19),F(53,OBe,3,3,"th",12)(54,ABe,2,1,"td",13),Z(),F(55,FBe,1,0,"tr",20)(56,kBe,1,0,"tr",21),r(),b(57,"mat-paginator",22),r()),n&2){let s=xe(18),d=xe(23),u=xe(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,uBe))}},dependencies:[ue,fe,st,Ue,gn,$e,Je,Fe,Be,ze,ft,ve,Ke,ke,Za,Xa,_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 BBe=()=>[10,25,50,100];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.Entry ID")))}function NBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.id)}}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.Office")))}function VBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}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.Transaction Date")))}function zBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.transactionDate)}}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.Transaction ID")))}function GBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.transactionId)}}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.Type")))}function $Be(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountType.value)}}function UBe(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 WBe(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 YBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountCode)}}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.Account Name")))}function KBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountName)}}function XBe(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 ZBe(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 eRe(e,o){if(e&1&&(l(0,"td",22),E(1,ZBe,2,1,"span"),r()),e&2){let t=o.$implicit;a(),I(t.entryType.value==="DEBIT"?1:-1)}}function tRe(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 iRe(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 nRe(e,o){if(e&1&&(l(0,"td",22),E(1,iRe,2,1,"span"),r()),e&2){let t=o.$implicit;a(),I(t.entryType.value==="CREDIT"?1:-1)}}function oRe(e,o){e&1&&b(0,"tr",23)}function aRe(e,o){e&1&&b(0,"tr",24)}var Hv=(()=>{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,RBe,3,3,"th",7)(11,NBe,2,1,"td",8),Z(),X(12,9),F(13,LBe,3,3,"th",7)(14,VBe,2,1,"td",8),Z(),X(15,10),F(16,qBe,3,3,"th",7)(17,zBe,2,1,"td",8),Z(),X(18,11),F(19,HBe,3,3,"th",7)(20,GBe,2,1,"td",8),Z(),X(21,12),F(22,jBe,3,3,"th",7)(23,$Be,2,1,"td",8),Z(),X(24,13),F(25,UBe,3,3,"th",7)(26,WBe,2,1,"td",8),Z(),X(27,14),F(28,QBe,3,3,"th",7)(29,YBe,2,1,"td",8),Z(),X(30,15),F(31,JBe,3,3,"th",7)(32,KBe,2,1,"td",8),Z(),X(33,16),F(34,XBe,3,3,"th",7)(35,eRe,2,1,"td",8),Z(),X(36,17),F(37,tRe,3,3,"th",7)(38,nRe,2,1,"td",8),Z(),F(39,oRe,1,0,"tr",18)(40,aRe,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,BBe)))},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 C5=(()=>{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 r1=(()=>{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 Gv=(()=>{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 nu=(()=>{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 v5=(()=>{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 x5=(()=>{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 b5=(()=>{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 y5=(()=>{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 S5=(()=>{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 w5=(()=>{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 P5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(t){let n=t.paramMap.get("id");return this.accountingService.getGlAccount(n,!0).pipe(Dn(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 T5=(()=>{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 M5=(()=>{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 D5=(()=>{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 jv=(()=>{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 E5=(()=>{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 I5=(()=>{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 O5=(()=>{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 A5=(()=>{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 F5=(()=>{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 k5=(()=>{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 B5=(()=>{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 $v=(()=>{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 bN=(()=>{class e{constructor(){this.externalAssetOwnerService=T(e_)}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 R5=(()=>{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 rRe=[_o.withShell([{path:"accounting",data:{title:"Accounting",breadcrumb:"Accounting"},children:[{path:"",component:fv},{path:"journal-entries",data:{title:"Search Journal Entry",breadcrumb:"Journal Entries"},children:[{path:"",component:Cv,resolve:{offices:zr,glAccounts:nu}},{path:"frequent-postings",component:hv,data:{title:"Frequent Postings",breadcrumb:"Frequent Postings"},resolve:{offices:zr,accountingRules:C5,currencies:r1,paymentTypes:Gv}},{path:"create",component:gv,data:{title:"Create Journal Entry",breadcrumb:"Create"},resolve:{offices:zr,currencies:r1,paymentTypes:Gv,glAccounts:nu,globalConfig:R5}},{path:"transactions",data:{title:"Transactions",breadcrumb:"Transactions",addBreadcrumbLink:!1},children:[{path:"view/:id",component:Kg,data:{title:"View Transaction",routeParamBreadcrumb:"id"},resolve:{transaction:$v}}]}]},{path:"financial-activity-mappings",data:{title:"Financial Activity Mappings",breadcrumb:"Financial Activity Mappings"},children:[{path:"",component:vv,resolve:{financialActivityAccounts:v5}},{path:"create",component:xv,data:{title:"Create Financial Activity Mapping",breadcrumb:"Create"},resolve:{financialActivityAccountsTemplate:x5}},{path:"view/:id",data:{title:"View Financial Activity Mapping",routeParamBreadcrumb:"id"},children:[{path:"",component:bv,resolve:{financialActivityAccount:b5}},{path:"edit",component:yv,data:{title:"Edit Financial Activity Mapping",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{financialActivityAccountAndTemplate:y5}}]}]},{path:"migrate-opening-balances",component:Sv,data:{title:"Migrate Opening Balances",breadcrumb:"Migrate Opening Balances"},resolve:{offices:zr,currencies:r1}},{path:"chart-of-accounts",data:{title:"Chart of Accounts",breadcrumb:"Chart of Accounts"},children:[{path:"",component:Pv,resolve:{chartOfAccounts:S5}},{path:"gl-accounts",children:[{path:"create",component:Tv,data:{title:"Create GL Account",breadcrumb:"Create GL Account"},resolve:{chartOfAccountsTemplate:w5}},{path:"view/:id",data:{title:"View GL Account",routeResolveBreadcrumb:["glAccountAndChartOfAccountsTemplate","name"]},resolve:{glAccountAndChartOfAccountsTemplate:P5},runGuardsAndResolvers:"always",children:[{path:"",component:Mv},{path:"edit",component:Dv,data:{title:"Edit GL Account",breadcrumb:"Edit",routeResolveBreadcrumb:!1}}]}]}]},{path:"closing-entries",data:{title:"Accounting Closures",breadcrumb:"Closing Entries"},children:[{path:"",component:Ev,resolve:{offices:zr,glAccountClosures:T5}},{path:"create",component:Iv,data:{title:"Create Accounting Closure",breadcrumb:"Create"},resolve:{offices:zr}},{path:"view/:id",data:{title:"View Accounting Closure",routeParamBreadcrumb:"id"},resolve:{glAccountClosure:M5},runGuardsAndResolvers:"always",children:[{path:"",component:Ov},{path:"edit",component:Av,data:{title:"Edit Accounting Closure",breadcrumb:"Edit",routeParamBreadcrumb:!1}}]}]},{path:"accounting-rules",data:{title:"Accounting Rules",breadcrumb:"Accounting Rules"},children:[{path:"",component:Fv,resolve:{accountingRules:D5}},{path:"create",component:Bv,data:{title:"Create Accounting Rule",breadcrumb:"Create"},resolve:{accountingRulesTemplate:jv}},{path:"view/:id",data:{title:"View Accounting Rule",routeResolveBreadcrumb:["accountingRule","name"]},resolve:{accountingRule:E5},runGuardsAndResolvers:"always",children:[{path:"",component:Rv},{path:"edit",component:Nv,data:{title:"Edit Accounting Rules",breadcrumb:"Edit",routeResolveBreadcrumb:!1},resolve:{accountingRulesTemplate:jv}}]}]},{path:"periodic-accruals",component:Lv,data:{title:"Periodic Accrual Accounting",breadcrumb:"Execute Periodic Accrual Accounting"}},{path:"provisioning-entries",data:{title:"Provisioning Entries",breadcrumb:"Provisioning Entries"},children:[{path:"",component:Vv,resolve:{provisioningEntries:I5}},{path:"create",component:qv,data:{title:"Create Provisioning Entry",breadcrumb:"Create"}},{path:"view/:id",component:zv,data:{title:"View Provisioning Entry",routeParamBreadcrumb:"id"},resolve:{provisioningEntry:O5,provisioningEntryEntries:A5,office:zr,loanProducts:F5,provisioningCategories:k5}},{path:"journal-entries",data:{breadcrumb:"Journal Entries",addBreadcrumbLink:!1},children:[{path:"view/:id",component:Hv,data:{title:"View Provisioning Journal Entry",routeParamBreadcrumb:"id"},resolve:{provisioningJournalEntries:B5}}]}]}]},{path:"journal-entry",data:{title:"Journal Entries",breadcrumb:"Journal Entries"},children:[{path:"view/:id",component:Kg,data:{title:"View Transaction",routeParamBreadcrumb:"id"},resolve:{transaction:$v}},{path:"view-transfer/:transferId",component:Kg,data:{title:"View Transfer",routeParamBreadcrumb:"transferId"},resolve:{transferJournalEntryData:bN}}]}])],yN=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[zr,C5,r1,Gv,nu,$v,v5,x5,b5,y5,S5,w5,P5,T5,M5,D5,jv,E5,I5,O5,A5,F5,k5,B5,R5],imports:[hn.forChild(rRe),hn]})}}return e})();var SN=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,Er,yN,ha,fv,hv,gv,Cv,kk,vv,xv,bv,yv,Sv,Pv,Tv,Mv,Dv,Ev,Iv,Ov,Av,Fv,Bv,Rv,Nv,Lv,Vv,qv,zv,Hv]})}}return e})();var lRe=()=>[10,25,50,100],sRe=()=>["create"],cRe=e=>[e];function pRe(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,sRe)),a(2),v(" ",m(3,2,"labels.buttons.Create Preference")," "))}function mRe(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 dRe(e,o){if(e&1&&(l(0,"td",17),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ot(2,1,t.accountType.value,"catalogs")," ")}}function uRe(e,o){e&1&&b(0,"tr",18)}function fRe(e,o){if(e&1&&b(0,"tr",19),e&2){let t=o.$implicit;g("routerLink",Nt(1,cRe,t.id))}}var Uv=(()=>{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,pRe,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,mRe,3,3,"th",9)(13,dRe,3,4,"td",10),Z(),F(14,uRe,1,0,"tr",11)(15,fRe,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,lRe)))},dependencies:[ue,fe,Ae,Fe,Be,ze,ve,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he,Fi],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var hRe=()=>["../"];function gRe(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(" ",Ot(2,2,t.value,"catalogs")," ")}}function _Re(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Account Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function CRe(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 vRe(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 Wv=(()=>{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:["",re.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,gRe,3,5,"mat-option",4,Pe),r(),E(12,_Re,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,CRe,2,2,"mat-option",4,Pe),r()()()(),l(20,"mat-card-actions",6)(21,"button",7),c(22),p(23,"translate"),r(),F(24,vRe,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,hRe)),a(),v(" ",m(23,11,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_ACCOUNTNUMBERFORMAT"))},dependencies:[ue,fe,tt,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,gt,ft,ve,Ke,he,Fi],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var xRe=()=>["../"];function bRe(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(" ",Ot(2,2,t.value,"catalogs")," ")}}function yRe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Account Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function SRe(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 wRe(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 Qv=(()=>{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},re.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,bRe,3,5,"mat-option",4,Pe),r(),E(12,yRe,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,SRe,2,2,"mat-option",4,Pe),r()()()(),l(20,"mat-card-actions",6)(21,"button",7),c(22),p(23,"translate"),r(),F(24,wRe,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,xRe)),a(),v(" ",m(23,11,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_ACCOUNTNUMBERFORMAT"))},dependencies:[ue,fe,tt,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,gt,ft,ve,Ke,he,Fi],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var PRe=()=>["edit"];function TRe(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,PRe)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function MRe(e,o){if(e&1){let t=Y();l(0,"button",9),R("click",function(){z(t);let i=w();return H(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 DRe(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 ERe(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.accountNumberPreferenceData.prefixType.value," ")}}var Yv=(()=>{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,TRe,4,5,"button",1)(2,MRe,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,DRe,3,3,"div",5),E(14,ERe,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(" ",Ot(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,Ae,$e,Je,ve,Ke,ke,he,Fi],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 Jv=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 wN=(e,o)=>({id:e,name:o}),IRe=e=>[e],ORe=()=>[10,25,50,100];function ARe(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.processingResult," ")}}function FRe(e,o){if(e&1&&(l(0,"mat-option",16),c(1),r()),e&2){let t=o.$implicit;g("value",Ja(2,wN,t.id,t.username)),a(),v(" ",t.username," ")}}function kRe(e,o){if(e&1&&(l(0,"mat-option",16),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function BRe(e,o){if(e&1&&(l(0,"mat-option",16),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function RRe(e,o){if(e&1&&(l(0,"mat-option",16),c(1),r()),e&2){let t=o.$implicit;g("value",Ja(2,wN,t.id,t.username)),a(),v(" ",t.username," ")}}function NRe(e,o){e&1&&(l(0,"div"),b(1,"mat-progress-bar",28),r())}function LRe(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Trail ID")))}function VRe(e,o){if(e&1&&(l(0,"td",45),c(1),r()),e&2){let t=o.$implicit;a(),h(t.id)}}function qRe(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Resource ID")))}function zRe(e,o){if(e&1&&(l(0,"td",45),c(1),r()),e&2){let t=o.$implicit;a(),h(t.resourceId)}}function HRe(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function GRe(e,o){if(e&1&&(l(0,"td",45),c(1),r()),e&2){let t=o.$implicit;a(),h(t.processingResult)}}function jRe(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Made By")))}function $Re(e,o){if(e&1&&(l(0,"td",45),c(1),r()),e&2){let t=o.$implicit;a(),h(t.maker)}}function URe(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Action")))}function WRe(e,o){if(e&1&&(l(0,"td",45),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ot(2,1,t.actionName,"auditTrail.actions"))}}function QRe(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity")))}function YRe(e,o){if(e&1&&(l(0,"td",45),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ot(2,1,t.entityName,"auditTrail.entities"))}}function JRe(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office")))}function KRe(e,o){if(e&1&&(l(0,"td",45),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function XRe(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Made Date")))}function ZRe(e,o){if(e&1&&(l(0,"td",45),c(1),p(2,"datetimeFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.madeOnDate))}}function e9e(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Checker")))}function t9e(e,o){if(e&1&&(l(0,"td",45),c(1),r()),e&2){let t=o.$implicit;a(),h(t.checker)}}function i9e(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Checked Date")))}function n9e(e,o){if(e&1&&(l(0,"td",45),c(1),p(2,"datetimeFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.checkedOnDate))}}function o9e(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Client Ip")))}function a9e(e,o){if(e&1&&(l(0,"td",45),c(1),r()),e&2){let t=o.$implicit;a(),h(t.ip)}}function r9e(e,o){e&1&&b(0,"tr",46)}function l9e(e,o){if(e&1&&b(0,"tr",47),e&2){let t=o.$implicit;g("routerLink",Nt(1,IRe,t.id))}}function s9e(e,o){if(e&1&&(l(0,"table",26),X(1,29),F(2,LRe,3,3,"th",30)(3,VRe,2,1,"td",31),Z(),X(4,32),F(5,qRe,3,3,"th",30)(6,zRe,2,1,"td",31),Z(),X(7,33),F(8,HRe,3,3,"th",30)(9,GRe,2,1,"td",31),Z(),X(10,34),F(11,jRe,3,3,"th",30)(12,$Re,2,1,"td",31),Z(),X(13,35),F(14,URe,3,3,"th",30)(15,WRe,3,4,"td",31),Z(),X(16,36),F(17,QRe,3,3,"th",30)(18,YRe,3,4,"td",31),Z(),X(19,37),F(20,JRe,3,3,"th",30)(21,KRe,2,1,"td",31),Z(),X(22,38),F(23,XRe,3,3,"th",30)(24,ZRe,3,3,"td",31),Z(),X(25,39),F(26,e9e,3,3,"th",30)(27,t9e,2,1,"td",31),Z(),X(28,40),F(29,i9e,3,3,"th",30)(30,n9e,3,3,"td",31),Z(),X(31,41),F(32,o9e,3,3,"th",30)(33,a9e,2,1,"td",31),Z(),F(34,r9e,1,0,"tr",42)(35,l9e,1,3,"tr",43),r()),e&2){let t=w();g("dataSource",t.dataSource),a(34),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns)}}function c9e(e,o){if(e&1&&(b(0,"mat-paginator",27),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,ORe))}}var Kv=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.dateUtils=T(Zt),this.settingsService=T(At),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 Jv(this.systemService),this.getAuditTrails()}ngAfterViewInit(){this.user.valueChanges.pipe(Dn(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(Dn(t=>t||""),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"actionName")})).subscribe(),this.entityName.valueChanges.pipe(Dn(t=>t||""),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"entityName")})).subscribe(),this.checker.valueChanges.pipe(Dn(t=>t||""),Oo(500),Ao(),Eo(t=>{this.applyFilter(t.id,"checkerId")})).subscribe(),this.sort&&this.paginator&&fl(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(hl(""),Dn(t=>typeof t=="string"?t:t.name),Dn(t=>t?this.filterUserAutocompleteData(t):this.auditTrailSearchTemplateData.appUsers))}setFilteredCheckers(){this.filteredCheckerData=this.checker.valueChanges.pipe(hl(""),Dn(t=>typeof t=="string"?t:t.name),Dn(t=>t?this.filterUserAutocompleteData(t):this.auditTrailSearchTemplateData.appUsers))}setFilteredActions(){this.filteredActionData=this.actionName.valueChanges.pipe(hl(""),Dn(t=>typeof t=="string"?t:""),Dn(t=>t?this.filterActionAutocompleteData(t):this.auditTrailSearchTemplateData.actionNames))}setFilteredEntities(){this.filteredEntityData=this.entityName.valueChanges.pipe(hl(""),Dn(t=>typeof t=="string"?t:""),Dn(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:120,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","audit-filters-card"],[1,"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 z(s),H(i.downloadCSV())}),b(2,"fa-icon",10),c(3),p(4,"translate"),r()(),l(5,"mat-card",11)(6,"mat-card-content")(7,"div",12)(8,"mat-form-field",13)(9,"mat-label"),c(10),p(11,"translate"),r(),b(12,"input",14),r(),l(13,"mat-form-field",13)(14,"mat-label"),c(15),p(16,"translate"),r(),l(17,"mat-select",15),R("selectionChange",function(u){return z(s),H(i.applyFilter(u.value,"processingResult"))}),Se(18,ARe,2,2,"mat-option",16,Pe),r()(),l(20,"mat-form-field",13)(21,"mat-label"),c(22),p(23,"translate"),r(),b(24,"input",17),r(),l(25,"mat-form-field",13)(26,"mat-label"),c(27),p(28,"translate"),r(),b(29,"input",17),r(),l(30,"mat-form-field",13)(31,"mat-label"),c(32),p(33,"translate"),r(),b(34,"input",17),r(),l(35,"mat-form-field",13)(36,"mat-label"),c(37),p(38,"translate"),r(),b(39,"input",17),r(),l(40,"div",18)(41,"mat-form-field",19),R("click",function(){z(s);let u=xe(48);return H(u.open())}),l(42,"mat-label"),c(43),p(44,"translate"),r(),b(45,"input",20)(46,"mat-datepicker-toggle",21)(47,"mat-datepicker",null,0),r(),l(49,"mat-form-field",22)(50,"mat-label"),c(51),p(52,"translate"),r(),b(53,"input",23),r()(),l(54,"div",18)(55,"mat-form-field",19),R("click",function(){z(s);let u=xe(62);return H(u.open())}),l(56,"mat-label"),c(57),p(58,"translate"),r(),b(59,"input",20)(60,"mat-datepicker-toggle",21)(61,"mat-datepicker",null,1),r(),l(63,"mat-form-field",22)(64,"mat-label"),c(65),p(66,"translate"),r(),b(67,"input",23),r()(),l(68,"div",18)(69,"mat-form-field",19),R("click",function(){z(s);let u=xe(76);return H(u.open())}),l(70,"mat-label"),c(71),p(72,"translate"),r(),b(73,"input",20)(74,"mat-datepicker-toggle",21)(75,"mat-datepicker",null,2),r(),l(77,"mat-form-field",22)(78,"mat-label"),c(79),p(80,"translate"),r(),b(81,"input",23),r()(),l(82,"div",18)(83,"mat-form-field",19),R("click",function(){z(s);let u=xe(90);return H(u.open())}),l(84,"mat-label"),c(85),p(86,"translate"),r(),b(87,"input",20)(88,"mat-datepicker-toggle",21)(89,"mat-datepicker",null,3),r(),l(91,"mat-form-field",22)(92,"mat-label"),c(93),p(94,"translate"),r(),b(95,"input",23),r()()()()(),l(96,"mat-autocomplete",24,4),Se(98,FRe,2,5,"mat-option",16,Pe),p(100,"async"),r(),l(101,"mat-autocomplete",24,5),Se(103,kRe,2,2,"mat-option",16,Pe),p(105,"async"),r(),l(106,"mat-autocomplete",24,6),Se(108,BRe,2,2,"mat-option",16,Pe),p(110,"async"),r(),l(111,"mat-autocomplete",24,7),Se(113,RRe,2,5,"mat-option",16,Pe),p(115,"async"),r(),l(116,"div",25),E(117,NRe,2,0,"div"),E(118,s9e,36,3,"table",26),E(119,c9e,2,6,"mat-paginator",27),r()}if(n&2){let s=xe(48),d=xe(62),u=xe(76),f=xe(90),_=xe(97),C=xe(102),x=xe(107),y=xe(112);a(3),v(" ",m(4,56,"labels.buttons.Download CSV")," "),a(7),h(m(11,58,"labels.inputs.Resource ID")),a(2),g("formControl",i.resourceId),a(3),h(m(16,60,"labels.inputs.Status")),a(2),g("formControl",i.processingResult),a(),we(i.auditTrailSearchTemplateData.processingResults),a(4),h(m(23,62,"labels.inputs.User")),a(2),g("formControl",i.user)("matAutocomplete",_),a(3),h(m(28,64,"labels.inputs.Action")),a(2),g("formControl",i.actionName)("matAutocomplete",C),a(3),h(m(33,66,"labels.inputs.Entity")),a(2),g("formControl",i.entityName)("matAutocomplete",x),a(3),h(m(38,68,"labels.inputs.Checker")),a(2),g("formControl",i.checker)("matAutocomplete",y),a(4),h(m(44,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(52,72,"labels.inputs.Time")),a(2),g("formControl",i.fromTime),a(4),h(m(58,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(66,76,"labels.inputs.Time")),a(2),g("formControl",i.toTime),a(4),h(m(72,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(80,80,"labels.inputs.Time")),a(2),g("formControl",i.checkedFromTime),a(4),h(m(86,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(94,84,"labels.inputs.Time")),a(2),g("formControl",i.checkedToTime),a(),g("displayWith",i.displayUserName),a(2),we(m(100,86,i.filteredUserData)),a(3),g("displayWith",i.displayActionName),a(2),we(m(105,88,i.filteredActionData)),a(3),g("displayWith",i.displayEntityName),a(2),we(m(110,90,i.filteredEntityData)),a(3),g("displayWith",i.displayUserName),a(2),we(m(115,92,i.filteredCheckerData)),a(4),I(i.isLoading?117:-1),a(),I(i.isLoading?-1:118),a(),I(i.isLoading?-1:119)}},dependencies:[ue,fe,st,Ue,gn,Ae,$e,Je,Fe,Be,ai,ze,gt,ft,mi,di,pi,ve,ke,Za,Xa,as,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,Ka,he,Fi,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}.audit-filters-card[_ngcontent-%COMP%]{margin-bottom:1.5rem;padding:.75rem 1rem}"]})}}return e})();var p9e=()=>["../"];function m9e(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 d9e(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.auditTrailData.officeName," ")}}function u9e(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 f9e(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.auditTrailData.savingsAccountNo," ")}}function h9e(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 g9e(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.auditTrailData.groupLevelName," ")}}function _9e(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 C9e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.auditTrailData.ip," ")}}function v9e(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 x9e(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.command)}}function b9e(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 y9e(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.commandValue," ")}}function S9e(e,o){e&1&&b(0,"tr",25)}function w9e(e,o){e&1&&b(0,"tr",26)}var Xv=(()=>{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:66,vars:52,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),p(26,"translateKey"),r(),l(27,"div",5),c(28),p(29,"translate"),r(),l(30,"div",6),c(31),p(32,"translateKey"),r(),l(33,"div",5),c(34),p(35,"translate"),r(),l(36,"div",6),c(37),r(),l(38,"div",5),c(39),p(40,"translate"),r(),l(41,"div",6),c(42),p(43,"datetimeFormat"),r(),E(44,m9e,3,3,"div",5),E(45,d9e,2,1,"div",6),E(46,u9e,3,3,"div",5),E(47,f9e,2,1,"div",6),E(48,h9e,3,3,"div",5),E(49,g9e,2,1,"div",6),r(),E(50,_9e,3,3,"div",7),E(51,C9e,2,1,"div",8),r(),l(52,"div",9)(53,"table",10),X(54,11),F(55,v9e,3,3,"th",12)(56,x9e,2,1,"td",13),Z(),X(57,14),F(58,b9e,3,3,"th",15)(59,y9e,2,1,"td",16),Z(),F(60,S9e,1,0,"tr",17)(61,w9e,1,0,"tr",18),r()()(),l(62,"div",19)(63,"button",20),c(64),p(65,"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(" ",Ot(26,35,i.auditTrailData.actionName,"auditTrail.actions")," "),a(3),v(" ",m(29,38,"labels.inputs.Entity")," "),a(3),v(" ",Ot(32,40,i.auditTrailData.entityName,"auditTrail.entities")," "),a(3),v(" ",m(35,43,"labels.inputs.Resource ID")," "),a(3),v(" ",i.auditTrailData.resourceId," "),a(2),v(" ",m(40,45,"labels.inputs.Date")," "),a(3),v(" ",m(43,47,i.auditTrailData.madeOnDate)," "),a(2),I(i.auditTrailData.officeName?44:-1),a(),I(i.auditTrailData.officeName?45:-1),a(),I(i.auditTrailData.savingsAccountNo?46:-1),a(),I(i.auditTrailData.savingsAccountNo?47:-1),a(),I(i.auditTrailData.groupLevelName?48:-1),a(),I(i.auditTrailData.groupLevelName?49:-1),a(),I(i.auditTrailData.ip?50:-1),a(),I(i.auditTrailData.ip?51:-1),a(2),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(2),g("routerLink",oe(51,p9e)),a(),v(" ",m(65,49,"labels.buttons.Back")," "))},dependencies:[ue,fe,Ae,$e,Je,ve,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,he,Fi,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 P9e=["buttonCreateCode"],T9e=["templateButtonCreateCode"],M9e=["tableCodes"],D9e=["templateTableCodes"],E9e=()=>[10,25,50,100],I9e=()=>["create"],O9e=e=>[e];function A9e(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,I9e)),a(2),v(" ",m(3,2,"labels.buttons.Create Code")," "))}function F9e(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 k9e(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function B9e(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 R9e(e,o){e&1&&(b(0,"fa-icon",25),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function N9e(e,o){e&1&&(b(0,"fa-icon",26),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function L9e(e,o){if(e&1&&(l(0,"td",24),E(1,R9e,2,4,"fa-icon",25),E(2,N9e,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 V9e(e,o){e&1&&b(0,"tr",27)}function q9e(e,o){if(e&1&&b(0,"tr",28),e&2){let t=o.$implicit;g("routerLink",Nt(1,O9e,t.id))}}function z9e(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",32),R("click",function(){let i=z(t).popover,s=w(),d=xe(6),u=xe(27);return i.close(),H(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 H9e(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",32),R("click",function(){let i=z(t).popover,s=w(),d=xe(2),u=xe(25);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=z(t).popover,s=w(),d=xe(13),u=xe(29);return i.close(),H(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 G9e(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",32),R("click",function(){let i=z(t).popover,s=w(),d=xe(6),u=xe(27);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 Zv=(()=>{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(P9e,5),Ee(T9e,5),Ee(M9e,5),Ee(D9e,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,A9e,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 z(s),H(i.applyFilter(u.target.value))}),r()()(),l(12,"div",12,2)(14,"table",13),X(15,14),F(16,F9e,3,3,"th",15)(17,k9e,2,1,"td",16),Z(),X(18,17),F(19,B9e,3,3,"th",15)(20,L9e,3,2,"td",16),Z(),F(21,V9e,1,0,"tr",18)(22,q9e,1,3,"tr",19),r(),b(23,"mat-paginator",20),r()(),F(24,z9e,16,15,"ng-template",null,3,ti)(26,H9e,13,12,"ng-template",null,4,ti)(28,G9e,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,E9e)))},dependencies:[ue,fe,Ae,Fe,Be,ze,ve,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 j9e=["codeFormRef"],$9e=["templateCodeFormRef"],U9e=()=>["../"];function W9e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",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 Y9e(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(14),p(15,"translate"),r(),l(16,"button",14),R("click",function(){let i=z(t).popover;return H(i.close())}),c(17),p(18,"translate"),r(),l(19,"button",14),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStep())}),c(20),p(21,"translate"),r(),l(22,"button",14),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 ex=(()=>{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:["",re.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(j9e,5),Ee($9e,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 z(s),H(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,W9e,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,Y9e,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,U9e)),a(),v(" ",m(15,8,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_CODE"))},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ze,ve,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var J9e=()=>["../"];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(),se(" ",m(2,3,"labels.inputs.Code Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function X9e(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 tx=(()=>{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,re.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,K9e,7,9,"mat-error"),r()()(),l(11,"mat-card-actions",4)(12,"button",5),c(13),p(14,"translate"),r(),F(15,X9e,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,J9e)),a(),v(" ",m(14,8,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_CODE"))},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ze,ve,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Z9e=()=>["edit"];function eNe(e,o){if(e&1){let t=Y();l(0,"button",6),R("click",function(){z(t);let i=w();return H(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 tNe(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,Z9e)),a(2),v(" ",m(3,2,"labels.buttons.Edit Code")," "))}function iNe(e,o){e&1&&(l(0,"span"),F(1,tNe,4,5,"button",8),r()),e&2&&(a(),g("mifosxHasPermission","UPDATE_CODE"))}function nNe(e,o){if(e&1){let t=Y();l(0,"button",12),R("click",function(){z(t);let i=w(2);return H(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 oNe(e,o){e&1&&(l(0,"span"),F(1,nNe,4,3,"button",11),r()),e&2&&(a(),g("mifosxHasPermission","DELETE_CODEVALUE"))}function aNe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function rNe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function lNe(e,o){if(e&1){let t=Y();l(0,"button",29),R("click",function(){z(t);let i=w(2).$index,s=w();return H(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 sNe(e,o){e&1&&(l(0,"span"),F(1,lNe,3,4,"button",28),r()),e&2&&(a(),g("mifosxHasPermission","UPDATE_CODEVALUE"))}function cNe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){z(t);let i=w().$index,s=w();return H(s.disableRow(i))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Cancel")," "))}function pNe(e,o){if(e&1){let t=Y();l(0,"button",31),p(1,"translate"),p(2,"translate"),R("click",function(){z(t);let i=w().$index,s=w();return H(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 mNe(e,o){if(e&1){let t=Y();l(0,"button",33),p(1,"translate"),p(2,"translate"),R("click",function(){z(t);let i=w().$index,s=w();return H(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 dNe(e,o){if(e&1){let t=Y();l(0,"button",35),p(1,"translate"),p(2,"translate"),R("click",function(){z(t);let i=w().$index,s=w();return H(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 uNe(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,aNe,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,rNe,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,sNe,2,1,"span"),E(28,cNe,3,3,"button",24),E(29,pNe,4,9,"button",25),E(30,mNe,4,8,"button",26),F(31,dNe,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 ix=(()=>{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},re.required],description:[{value:t?t.description:"",disabled:!0}],position:[{value:t?t.position:0,disabled:!0},re.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,eNe,4,3,"button",1),E(2,iNe,2,1,"span"),E(3,oNe,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,uNe,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,Ue,Xe,dt,Ze,et,la,La,Ae,$e,Je,Fe,Be,ut,ze,ve,fi,Ke,ke,Yo,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 fNe=()=>[10,25,50,100];function hNe(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 gNe(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 _Ne(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 CNe(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 vNe(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 xNe(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 bNe(e,o){if(e&1){let t=Y();l(0,"td",9),R("click",function(){let i=z(t).$implicit,s=w();return H(s.showFilters(i.id))}),E(1,gNe,3,3,"span"),E(2,_Ne,3,3,"span"),E(3,CNe,3,3,"span"),E(4,vNe,3,3,"span"),E(5,xNe,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 yNe(e,o){e&1&&b(0,"tr",10)}function SNe(e,o){e&1&&b(0,"tr",11)}function wNe(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 PNe(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(),se(" ",Ot(2,3,t.firstMappingEntity,"inputs")," ",m(3,6,"labels.commons.is")," "),a(4),h(m(6,8,"labels.commons.required"))}}function TNe(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 MNe(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(),se(" ",Ot(2,3,t.secondMappingEntity,"text")," ",m(3,6,"labels.commons.is")," "),a(4),h(m(6,8,"labels.commons.required"))}}function DNe(e,o){if(e&1){let t=Y();l(0,"button",20),R("click",function(){z(t);let i=w(2);return H(i.showAddScreen(i.selectedMappingType))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Add")," "))}function ENe(e,o){if(e&1&&(l(0,"th",8),c(1),p(2,"translateKey"),r()),e&2){let t=w(3);a(),h(Ot(2,1,t.firstMappingEntity,"inputs"))}}function INe(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),h(t.fromEntity)}}function ONe(e,o){if(e&1&&(l(0,"th",8),c(1),p(2,"translateKey"),r()),e&2){let t=w(3);a(),h(Ot(2,1,t.secondMappingEntity,"text"))}}function ANe(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),h(t.toEntity)}}function FNe(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 kNe(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 BNe(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 RNe(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 NNe(e,o){e&1&&b(0,"th",8)}function LNe(e,o){if(e&1){let t=Y();l(0,"button",31),p(1,"translate"),R("click",function(){z(t);let i=w().$implicit,s=w(3);return H(s.showEditScreen(i.mapId,s.selectedMappingType))}),b(2,"fa-icon",32),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Edit")))}function VNe(e,o){e&1&&(l(0,"td",29),F(1,LNe,3,4,"button",30),r()),e&2&&(a(),g("mifosxHasPermission","UPDATE_ENTITYMAPPING"))}function qNe(e,o){e&1&&b(0,"th",8)}function zNe(e,o){if(e&1){let t=Y();l(0,"button",34),p(1,"translate"),R("click",function(){z(t);let i=w().$implicit,s=w(3);return H(s.delete(i.mapId))}),b(2,"fa-icon",35),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Delete")))}function HNe(e,o){e&1&&(l(0,"td",29),F(1,zNe,3,4,"button",33),r()),e&2&&(a(),g("mifosxHasPermission","DELETE_ENTITYMAPPING"))}function GNe(e,o){e&1&&b(0,"tr",10)}function jNe(e,o){e&1&&b(0,"tr",11)}function $Ne(e,o){if(e&1&&(l(0,"div")(1,"table",2),X(2,21),F(3,ENe,3,4,"th",4)(4,INe,2,1,"td",22),Z(),X(5,23),F(6,ONe,3,4,"th",4)(7,ANe,2,1,"td",22),Z(),X(8,24),F(9,FNe,3,3,"th",4)(10,kNe,3,3,"td",22),Z(),X(11,25),F(12,BNe,3,3,"th",4)(13,RNe,3,3,"td",22),Z(),X(14,26),F(15,NNe,1,0,"th",4)(16,VNe,2,1,"td",22),Z(),X(17,27),F(18,qNe,1,0,"th",4)(19,HNe,2,1,"td",22),Z(),F(20,GNe,1,0,"tr",6)(21,jNe,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,fNe))}}function UNe(e,o){if(e&1){let t=Y();l(0,"mat-card")(1,"form",12),R("ngSubmit",function(){z(t);let i=w();return H(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,wNe,2,2,"mat-option",15,Pe),r(),E(19,PNe,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,TNe,2,2,"mat-option",15,Pe),r(),E(30,MNe,7,10,"mat-error"),r(),l(31,"mat-card-actions",17)(32,"button",18),c(33),p(34,"translate"),r(),E(35,DNe,3,3,"button",19),r()()()(),E(36,$Ne,23,5,"div"),r()}if(e&2){let t=w();a(),g("formGroup",t.filterPreferenceForm),a(2),Wo(" ",Ot(4,16,t.firstMappingEntity,"inputs")," ",m(5,19,"labels.text.access to")," ",Ot(6,21,t.secondMappingEntity,"text")," "),a(8),h(Ot(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(Ot(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 nx=(()=>{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(At),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:["",re.required],mappingSecondParamId:["",re.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 ar({controlName:"startDate",label:this.translateService.instant("labels.inputs.Start Date"),type:"date",required:!1}),new ar({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 ar({controlName:"startDate",label:this.translateService.instant("labels.inputs.Start Date"),type:"date",required:!1}),new ar({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,hNe,3,3,"th",4)(5,bNe,6,5,"td",5),Z(),F(6,yNe,1,0,"tr",6)(7,SNe,1,0,"tr",7),r(),E(8,UNe,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,Ue,Xe,dt,Ze,et,$e,Je,Et,Fe,Be,ut,gt,ft,ve,Ke,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,Yo,wi,si,ke,kt,Pi,he,Fi],styles:["table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]{cursor:pointer}"]})}}return e})();var WNe=()=>["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 YNe(e,o){if(e&1&&(l(0,"td",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ot(2,1,t.name,"inputs"))}}function JNe(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 KNe(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 XNe(e,o){e&1&&b(0,"tr",13)}function ZNe(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.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,YNe,3,4,"td",7),Z(),X(10,8),F(11,JNe,3,3,"th",6)(12,KNe,2,1,"td",7),Z(),F(13,XNe,1,0,"tr",9)(14,ZNe,1,0,"tr",10),r()()),n&2&&(a(),g("routerLink",oe(7,WNe)),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,Ae,ve,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,he,Fi],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var eLe=()=>["../"];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(),se(" ",m(2,3,"labels.inputs.S3 Bucket Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function iLe(e,o){e&1&&b(0,"fa-icon",11)}function nLe(e,o){e&1&&b(0,"fa-icon",12)}function oLe(e,o){if(e&1){let t=Y();l(0,"button",10),R("mousedown",function(){z(t);let i=w();return H(i.accessKeyInputType="text")})("mouseup",function(){z(t);let i=w();return H(i.accessKeyInputType="password")}),E(1,iLe,1,0,"fa-icon",11),E(2,nLe,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 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(),se(" ",m(2,3,"labels.inputs.S3 Access Key")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function rLe(e,o){e&1&&b(0,"fa-icon",11)}function lLe(e,o){e&1&&b(0,"fa-icon",12)}function sLe(e,o){if(e&1){let t=Y();l(0,"button",10),R("mousedown",function(){z(t);let i=w();return H(i.secretKeyInputType="text")})("mouseup",function(){z(t);let i=w();return H(i.secretKeyInputType="password")}),E(1,rLe,1,0,"fa-icon",11),E(2,lLe,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 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(),se(" ",m(2,3,"labels.inputs.S3 Secret Key")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var ax=(()=>{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,re.required],s3_access_key:[this.amazonS3ConfigurationData[0].value,re.required],s3_secret_key:[this.amazonS3ConfigurationData[2].value,re.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,tLe,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,oLe,3,2,"button",5),E(17,aLe,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,3,2,"button",5),E(24,cLe,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,eLe)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,ve,wi,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var pLe=()=>["../"];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(),se(" ",m(2,3,"labels.inputs.Username")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function dLe(e,o){e&1&&b(0,"fa-icon",15)}function uLe(e,o){e&1&&b(0,"fa-icon",16)}function fLe(e,o){if(e&1){let t=Y();l(0,"button",14),R("mousedown",function(){z(t);let i=w();return H(i.passwordInputType="text")})("mouseup",function(){z(t);let i=w();return H(i.passwordInputType="password")}),E(1,dLe,1,0,"fa-icon",15),E(2,uLe,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 hLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Password")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}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(),se(" ",m(2,3,"labels.inputs.Host")," ",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(),se(" ",m(2,3,"labels.inputs.Port")," ",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(),se(" ",m(2,3,"labels.inputs.From Email")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function vLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.From Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var rx=(()=>{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,re.required],password:[this.emailConfigurationData[1].value,re.required],host:[this.emailConfigurationData[2].value,re.required],port:[this.emailConfigurationData[3].value,re.required],useTLS:[this.emailConfigurationData[4].value,re.required],fromEmail:[this.emailConfigurationData[5].value,re.required],fromName:[this.emailConfigurationData[6].value,re.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,mLe,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,3,2,"button",5),E(17,hLe,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,gLe,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,_Le,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,CLe,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,vLe,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,pLe)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ai,ze,ve,fi,wi,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var xLe=()=>["edit"];function bLe(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(Ot(2,1,t.name,"text"))}}function SLe(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 wLe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.value)}}function PLe(e,o){e&1&&b(0,"tr",13)}function TLe(e,o){e&1&&b(0,"tr",14)}var lx=(()=>{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,bLe,3,3,"th",6)(9,yLe,3,4,"td",7),Z(),X(10,8),F(11,SLe,3,3,"th",6)(12,wLe,2,1,"td",7),Z(),F(13,PLe,1,0,"tr",9)(14,TLe,1,0,"tr",10),r()()),n&2&&(a(),g("routerLink",oe(7,xLe)),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,Ae,ve,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,he,Fi],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var sx=()=>["amazon-s3"],cx=()=>["sms"],px=()=>["email"],mx=()=>["notification"];function MLe(e,o){if(e&1){let t=Y();l(0,"fa-icon",12),R("click",function(i){return z(t),w().arrowBooleansToggle(0),H(i.stopPropagation())}),r()}}function DLe(e,o){if(e&1){let t=Y();l(0,"fa-icon",13),R("click",function(i){return z(t),w().arrowBooleansToggle(0),H(i.stopPropagation())}),r()}}function ELe(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.S3 Amazon Service Configuration")," "))}function ILe(e,o){if(e&1){let t=Y();l(0,"fa-icon",12),R("click",function(i){return z(t),w().arrowBooleansToggle(1),H(i.stopPropagation())}),r()}}function OLe(e,o){if(e&1){let t=Y();l(0,"fa-icon",13),R("click",function(i){return z(t),w().arrowBooleansToggle(1),H(i.stopPropagation())}),r()}}function ALe(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.SMS Service Configuration")," "))}function FLe(e,o){if(e&1){let t=Y();l(0,"fa-icon",12),R("click",function(i){return z(t),w().arrowBooleansToggle(2),H(i.stopPropagation())}),r()}}function kLe(e,o){if(e&1){let t=Y();l(0,"fa-icon",13),R("click",function(i){return z(t),w().arrowBooleansToggle(2),H(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,px)),a(),v(" ",m(2,2,"labels.text.Email Service Configuration")," "))}function RLe(e,o){if(e&1){let t=Y();l(0,"fa-icon",12),R("click",function(i){return z(t),w().arrowBooleansToggle(3),H(i.stopPropagation())}),r()}}function NLe(e,o){if(e&1){let t=Y();l(0,"fa-icon",13),R("click",function(i){return z(t),w().arrowBooleansToggle(3),H(i.stopPropagation())}),r()}}function LLe(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,mx)),a(),v(" ",m(2,2,"labels.text.Notification Service Configuration")," "))}var dx=(()=>{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,MLe,1,0,"fa-icon",7),E(12,DLe,1,0,"fa-icon",8),E(13,ELe,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,ILe,1,0,"fa-icon",7),E(21,OLe,1,0,"fa-icon",8),E(22,ALe,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,FLe,1,0,"fa-icon",7),E(32,kLe,1,0,"fa-icon",8),E(33,BLe,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,RLe,1,0,"fa-icon",7),E(41,NLe,1,0,"fa-icon",8),E(42,LLe,3,5,"p",6),r()()()()()()),n&2&&(a(5),g("routerLink",oe(36,sx)),a(),g("routerLink",oe(37,sx)),a(2),g("routerLink",oe(38,sx)),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,cx)),a(),g("routerLink",oe(40,cx)),a(2),g("routerLink",oe(41,cx)),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,px)),a(),g("routerLink",oe(43,px)),a(2),g("routerLink",oe(44,px)),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,mx)),a(),g("routerLink",oe(46,mx)),a(2),g("routerLink",oe(47,mx)),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,Ae,$e,pa,Vo,Jo,ke,ca,he],encapsulation:2})}}return e})();var VLe=()=>["../"];function qLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Server Key")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function zLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.GCM End Point")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function HLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.FCM End Point")," ",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.notificationConfigurationData=t.notificationConfiguration})}ngOnInit(){this.setNotificationConfigurationForm()}setNotificationConfigurationForm(){this.notificationConfigurationForm=this.formBuilder.group({server_key:[this.notificationConfigurationData[0].value,re.required],gcm_end_point:[this.notificationConfigurationData[1].value,re.required],fcm_end_point:[this.notificationConfigurationData[2].value,re.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,qLe,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,zLe,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,HLe,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,VLe)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ze,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var GLe=()=>["edit"];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.name")))}function $Le(e,o){if(e&1&&(l(0,"td",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ot(2,1,t.name,"text"))}}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.Value")))}function WLe(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 YLe(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.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,jLe,3,3,"th",6)(9,$Le,3,4,"td",7),Z(),X(10,8),F(11,ULe,3,3,"th",6)(12,WLe,2,1,"td",7),Z(),F(13,QLe,1,0,"tr",9)(14,YLe,1,0,"tr",10),r()()),n&2&&(a(),g("routerLink",oe(7,GLe)),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,Ae,ve,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,he,Fi],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var JLe=()=>["../"];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(),se(" ",m(2,3,"labels.inputs.Host Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function XLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Port Number")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ZLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.End Point")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}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(),se(" ",m(2,3,"labels.inputs.Tenant App Key")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var hx=(()=>{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,re.required],port_number:[this.smsConfigurationData[1].value,re.required],end_point:[this.smsConfigurationData[2].value,re.required],tenant_app_key:[this.smsConfigurationData[3].value,re.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,KLe,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,XLe,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,ZLe,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,eVe,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,JLe)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ze,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var tVe=()=>["edit"];function iVe(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 nVe(e,o){if(e&1&&(l(0,"td",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ot(2,1,t.name,"text"))}}function oVe(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 aVe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.value)}}function rVe(e,o){e&1&&b(0,"tr",13)}function lVe(e,o){e&1&&b(0,"tr",14)}var gx=(()=>{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,iVe,3,3,"th",6)(9,nVe,3,4,"td",7),Z(),X(10,8),F(11,oVe,3,3,"th",6)(12,aVe,2,1,"td",7),Z(),F(13,rVe,1,0,"tr",9)(14,lVe,1,0,"tr",10),r()()),n&2&&(a(),g("routerLink",oe(7,tVe)),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,Ae,ve,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,he,Fi],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var _x=[{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"}],Cx=[{displayValue:"Person",value:"Person"},{displayValue:"Entity",value:"Entity"}],PN=[{displayValue:"Savings Product",value:"Savings Product"},{displayValue:"Fixed Deposit",value:"Fixed Deposit"},{displayValue:"Recurring Deposit",value:"Recurring Deposit"}];var TN=[{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 sVe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Column Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function cVe(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(" ",Ot(2,2,t.displayValue,"inputs")," ")}}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(),se(" ",m(2,3,"labels.inputs.Column Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function mVe(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 dVe(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 uVe(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,dVe,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 Jp=(()=>{class e{constructor(){this.dialogRef=T(eo),this.formBuilder=T(nt),this.data=T(Po),this.columnTypeData=TN}ngOnInit(){this.columnForm=this.formBuilder.group({name:[this.data?this.data.columnName:"",re.required],type:[{value:this.data?this.data.columnDisplayType===""?"":this.getColumnType(this.data.columnDisplayType):"",disabled:this.data.type==="existing"},re.required],length:[{value:this.data?+this.data.columnLength:"",disabled:this.getColumnType(this.data.columnDisplayType)!=="String"||this.data.type==="existing"},re.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"},re.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,sVe,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,cVe,3,5,"mat-option",5,Pe),r(),E(22,pVe,7,9,"mat-error"),r(),E(23,mVe,6,7,"mat-form-field"),E(24,uVe,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(),se(" ",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,Ue,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,ve,fi,Un,ho,Nn,$n,he,Fi],encapsulation:2})}}return e})();var fVe=["dataTableFormRef"],hVe=["templateDataTableFormRef"],gVe=()=>[10,25,50,100],_Ve=()=>["../"];function CVe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Data Table Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function vVe(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(" ",Ot(2,2,t.displayValue,"inputs")," ")}}function xVe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Application Table Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function bVe(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(" ",Ot(2,2,t.displayValue,"inputs")," ")}}function yVe(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,bVe,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 SVe(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(" ",Ot(2,2,t.displayValue,"inputs")," ")}}function wVe(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,SVe,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 PVe(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 TVe(e,o){e&1&&(b(0,"fa-icon",39),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Primary Key")))}function MVe(e,o){if(e&1&&(l(0,"td",38),c(1),E(2,TVe,2,4,"fa-icon",39),r()),e&2){let t=o.$implicit;a(),v(" ",t.columnName," "),a(),I(t.isColumnPrimaryKey?2:-1)}}function DVe(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 EVe(e,o){if(e&1&&(l(0,"td",38),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnDisplayType)}}function IVe(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 OVe(e,o){if(e&1&&(l(0,"td",38),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnLength)}}function AVe(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 FVe(e,o){if(e&1&&(l(0,"td",38),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnCode)}}function kVe(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 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",40),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.isColumnNullable?-1:1),a(),I(t.isColumnNullable?2:-1)}}function LVe(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 VVe(e,o){e&1&&(b(0,"fa-icon",39),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function qVe(e,o){e&1&&(b(0,"fa-icon",43),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function zVe(e,o){if(e&1&&(l(0,"td",38),E(1,VVe,2,4,"fa-icon",39),E(2,qVe,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 HVe(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 GVe(e,o){e&1&&(b(0,"fa-icon",39),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function jVe(e,o){e&1&&(b(0,"fa-icon",41),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function $Ve(e,o){if(e&1&&(l(0,"td",38),E(1,GVe,2,4,"fa-icon",39),E(2,jVe,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 UVe(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 WVe(e,o){if(e&1){let t=Y();l(0,"td",44)(1,"button",45),R("click",function(){let i=z(t).$implicit,s=w();return H(s.editColumn(i))}),b(2,"fa-icon",46),r(),l(3,"button",47),R("click",function(){let i=z(t).$implicit,s=w();return H(s.deleteColumn(i))}),b(4,"fa-icon",48),r()()}}function QVe(e,o){e&1&&b(0,"tr",49)}function YVe(e,o){e&1&&b(0,"tr",50)}function JVe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(11),p(12,"translate"),r(),l(13,"button",55),R("click",function(){let i=z(t).popover;return H(i.close())}),c(14),p(15,"translate"),r(),l(16,"button",55),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStep())}),c(17),p(18,"translate"),r(),l(19,"button",55),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 vx=(()=>{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=_x,this.entitySubTypeData=Cx,this.savingsSubTypeData=PN,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:["",re.required],apptableName:["",re.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(Jp,{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(Jp,{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(fVe,5),Ee(hVe,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 z(s),H(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,CVe,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,vVe,3,5,"mat-option",9,Pe),r(),E(19,xVe,7,9,"mat-error"),r(),E(20,yVe,7,3,"mat-form-field",7),E(21,wVe,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 z(s),H(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,PVe,3,3,"th",18)(40,MVe,3,2,"td",19),Z(),X(41,20),F(42,DVe,3,3,"th",18)(43,EVe,2,1,"td",19),Z(),X(44,21),F(45,IVe,3,3,"th",18)(46,OVe,2,1,"td",19),Z(),X(47,22),F(48,AVe,3,3,"th",18)(49,FVe,2,1,"td",19),Z(),X(50,23),F(51,kVe,3,3,"th",18)(52,NVe,3,2,"td",24),Z(),X(53,25),F(54,LVe,3,3,"th",26)(55,zVe,3,2,"td",19),Z(),X(56,27),F(57,HVe,3,3,"th",26)(58,$Ve,3,2,"td",19),Z(),X(59,28),F(60,UVe,3,3,"th",18)(61,WVe,5,0,"td",29),Z(),F(62,QVe,1,0,"tr",30)(63,YVe,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,JVe,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),se(" ",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,gVe)),a(2),g("routerLink",oe(36,_Ve)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ze,gt,ft,ve,fi,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,wi,St,Pt,wt,Tt,kt,he,Fi],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 KVe=()=>[10,25],XVe=()=>["../"];function ZVe(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(" ",Ot(2,2,t.displayValue,"inputs")," ")}}function eqe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Application Table Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function tqe(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(" ",Ot(2,2,t.displayValue,"inputs")," ")}}function iqe(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,tqe,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 nqe(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 oqe(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnName)}}function aqe(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 rqe(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnDisplayType)}}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.Length")," "))}function sqe(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnLength)}}function cqe(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 pqe(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnCode)}}function mqe(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 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.isColumnNullable?-1:1),a(),I(t.isColumnNullable?2:-1)}}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.Unique")," "))}function gqe(e,o){e&1&&(b(0,"fa-icon",33),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function _qe(e,o){e&1&&(b(0,"fa-icon",35),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function Cqe(e,o){if(e&1&&(l(0,"td",32),E(1,gqe,2,4,"fa-icon",33),E(2,_qe,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 vqe(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 xqe(e,o){e&1&&(b(0,"fa-icon",33),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function bqe(e,o){e&1&&(b(0,"fa-icon",34),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function yqe(e,o){if(e&1&&(l(0,"td",32),E(1,xqe,2,4,"fa-icon",33),E(2,bqe,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 Sqe(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 wqe(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){z(t);let i=w().$implicit,s=w();return H(s.editColumn(i))}),b(1,"fa-icon",40),r()}}function Pqe(e,o){if(e&1){let t=Y();l(0,"button",41),R("click",function(){z(t);let i=w().$implicit,s=w();return H(s.deleteColumn(i))}),b(1,"fa-icon",42),r()}}function Tqe(e,o){if(e&1&&(l(0,"td",36),E(1,wqe,2,0,"button",37),E(2,Pqe,2,0,"button",38),r()),e&2){let t=o.$implicit;a(),I(t.system?-1:1),a(),I(t.system?-1:2)}}function Mqe(e,o){e&1&&b(0,"tr",43)}function Dqe(e,o){e&1&&b(0,"tr",44)}function Eqe(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 xx=(()=>{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=Cx,this.appTableData=_x,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(Jp,{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,ZVe,3,5,"mat-option",7,Pe),r(),E(17,eqe,7,9,"mat-error"),r(),E(18,iqe,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,nqe,3,3,"th",14)(33,oqe,2,1,"td",15),Z(),X(34,16),F(35,aqe,3,3,"th",14)(36,rqe,2,1,"td",15),Z(),X(37,17),F(38,lqe,3,3,"th",14)(39,sqe,2,1,"td",15),Z(),X(40,18),F(41,cqe,3,3,"th",14)(42,pqe,2,1,"td",15),Z(),X(43,19),F(44,mqe,3,3,"th",14)(45,fqe,3,2,"td",15),Z(),X(46,20),F(47,hqe,3,3,"th",14)(48,Cqe,3,2,"td",15),Z(),X(49,21),F(50,vqe,3,3,"th",14)(51,yqe,3,2,"td",15),Z(),X(52,22),F(53,Sqe,3,3,"th",14)(54,Tqe,3,2,"td",23),Z(),F(55,Mqe,1,0,"tr",24)(56,Dqe,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,Eqe,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),se(" ",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,KVe)),a(2),g("routerLink",oe(28,XVe)),a(),v(" ",m(61,25,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_DATATABLE"))},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ze,gt,ft,ve,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,wi,St,Pt,wt,Tt,kt,he,Fi],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var Iqe=["createDatatableRef"],Oqe=["templateCreateDatatableRef"],Aqe=["datatablesList"],Fqe=["templateDatatablesList"],kqe=()=>[10,25,50,100],Bqe=()=>["create"],Rqe=e=>[e];function Nqe(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,Bqe)),a(2),v(" ",m(3,2,"labels.buttons.Create Data Table")," "))}function Lqe(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 Vqe(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.registeredTableName)}}function qqe(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 zqe(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.applicationTableName)}}function Hqe(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 Gqe(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.entitySubType)}}function jqe(e,o){e&1&&b(0,"tr",27)}function $qe(e,o){if(e&1&&b(0,"tr",28),e&2){let t=o.$implicit;g("routerLink",Nt(1,Rqe,t.registeredTableName))}}function Uqe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",32),R("click",function(){let i=z(t).popover,s=w(),d=xe(6),u=xe(30);return i.close(),H(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 Wqe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",32),R("click",function(){let i=z(t).popover,s=w(),d=xe(2),u=xe(28);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=z(t).popover,s=w(),d=xe(13),u=xe(32);return i.close(),H(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",32),R("click",function(){let i=z(t).popover,s=w(),d=xe(6),u=xe(30);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 bx=(()=>{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(Iqe,5),Ee(Oqe,5),Ee(Aqe,5),Ee(Fqe,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,Nqe,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 z(s),H(i.applyFilter(u.target.value))}),r()()(),l(12,"div",13,2)(14,"table",14),X(15,15),F(16,Lqe,3,3,"th",16)(17,Vqe,2,1,"td",17),Z(),X(18,18),F(19,qqe,3,3,"th",16)(20,zqe,2,1,"td",17),Z(),X(21,19),F(22,Hqe,3,3,"th",16)(23,Gqe,2,1,"td",17),Z(),F(24,jqe,1,0,"tr",20)(25,$qe,1,3,"tr",21),r(),b(26,"mat-paginator",22),r()(),F(27,Uqe,16,15,"ng-template",null,3,ti)(29,Wqe,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,kqe)))},dependencies:[ue,fe,Ae,Fe,Be,ze,ve,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 Yqe=()=>[10,25,50,100],Jqe=()=>["edit"];function Kqe(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,Jqe)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function Xqe(e,o){if(e&1){let t=Y();l(0,"button",22),R("click",function(){z(t);let i=w();return H(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 Zqe(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 eze(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 tze(e,o){if(e&1&&(l(0,"td",25),c(1),E(2,eze,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 ize(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 nze(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnDisplayType)}}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.Length")))}function aze(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnLength)}}function rze(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 lze(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnCode)}}function sze(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 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.isColumnNullable?-1:1),a(),I(t.isColumnNullable?2:-1)}}function dze(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 uze(e,o){e&1&&(b(0,"fa-icon",27),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function fze(e,o){e&1&&(b(0,"fa-icon",28),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function hze(e,o){if(e&1&&(l(0,"td",25),E(1,uze,2,4,"fa-icon",27),E(2,fze,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 gze(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 _ze(e,o){e&1&&(b(0,"fa-icon",27),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function Cze(e,o){e&1&&(b(0,"fa-icon",28),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function vze(e,o){if(e&1&&(l(0,"td",25),E(1,_ze,2,4,"fa-icon",27),E(2,Cze,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 xze(e,o){e&1&&b(0,"tr",29)}function bze(e,o){e&1&&b(0,"tr",30)}var yx=(()=>{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(Jg),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,Kqe,4,5,"button",1)(2,Xqe,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,Zqe,3,3,"th",9)(16,tze,3,2,"td",10),Z(),X(17,11),F(18,ize,3,3,"th",9)(19,nze,2,1,"td",10),Z(),X(20,12),F(21,oze,3,3,"th",9)(22,aze,2,1,"td",10),Z(),X(23,13),F(24,rze,3,3,"th",9)(25,lze,2,1,"td",10),Z(),X(26,14),F(27,sze,3,3,"th",9)(28,mze,3,2,"td",10),Z(),X(29,15),F(30,dze,3,3,"th",9)(31,hze,3,2,"td",10),Z(),X(32,16),F(33,gze,3,3,"th",9)(34,vze,3,2,"td",10),Z(),F(35,xze,1,0,"tr",17)(36,bze,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,Yqe)))},dependencies:[ue,fe,Ae,$e,Je,ve,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 yze(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(" ",Ot(2,2,t.name,"catalogs")," ")}}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(),se(" ",m(2,3,"labels.inputs.Grouping")," ",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-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.name),a(),v(" ",t.name," ")}}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(),se(" ",m(2,3,"labels.inputs.Entity")," ",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-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}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(),se(" ",m(2,3,"labels.inputs.Action")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var ou=(()=>{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:["",re.required],entity:["",re.required],action:["",re.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,yze,3,5,"mat-option",4,Pe),r(),E(13,Sze,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,wze,2,2,"mat-option",4,Pe),r(),E(21,Pze,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,Tze,2,2,"mat-option",4,Pe),r(),E(29,Mze,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,Ue,Xe,dt,Ze,et,Fe,Be,ut,gt,ft,ve,Un,ho,Nn,$n,he,Fi],encapsulation:2})}}return e})();var Dze=()=>["../"];function Eze(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(" ",Ot(2,2,t.name,"text")," ")}}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(),se(" ",m(2,3,"labels.inputs.Hook Template")," ",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(),se(" ",m(2,3,"labels.inputs.Display Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Aze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Content Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Fze(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,Aze,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 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(),se(" ",m(2,3,"labels.inputs.Payload URL")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Bze(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,kze,7,9,"mat-error"),r()),e&2){let t=xe(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 Rze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Payload URL")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Nze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.SMS Provider")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Lze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",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 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(),se(" ",m(2,3,"labels.inputs.SMS Provider Token")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function qze(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,Nze,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,Lze,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,Vze,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 zze(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 Hze(e,o){if(e&1&&(l(0,"td",37),c(1),r()),e&2){let t=o.$implicit;a(),h(t.entityName)}}function Gze(e,o){e&1&&(l(0,"th",36),c(1),p(2,"translate"),p(3,"translate"),r()),e&2&&(a(),se(" ",m(2,2,"labels.inputs.Action")," ",m(3,4,"labels.inputs.Name")," "))}function jze(e,o){if(e&1&&(l(0,"td",37),c(1),r()),e&2){let t=o.$implicit;a(),h(t.actionName)}}function $ze(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 Uze(e,o){if(e&1){let t=Y();l(0,"td",39)(1,"button",40),R("click",function(){let i=z(t).index,s=w();return H(s.deleteEvent(i))}),b(2,"fa-icon",41),r()()}}function Wze(e,o){e&1&&b(0,"tr",42)}function Qze(e,o){e&1&&b(0,"tr",43)}function Yze(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 Sx=(()=>{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",re.required],displayName:["",re.required],isActive:[""],phoneNumber:[{value:"",disabled:!0},re.required],smsProvider:[{value:"",disabled:!0},re.required],smsProviderAccountId:[{value:"",disabled:!0},re.required],smsProviderToken:[{value:"",disabled:!0},re.required],contentType:["",re.required],payloadUrl:["",re.required]})}addEvent(){this.dialog.open(ou,{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,Eze,3,5,"mat-option",6,Pe),r(),E(12,Ize,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,Oze,7,9,"mat-error"),r()(),l(19,"div",3),E(20,Fze,12,12,"mat-form-field",4),E(21,Bze,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,Rze,7,9,"mat-error"),r()(),E(28,qze,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,zze,3,3,"th",18)(48,Hze,2,1,"td",19),Z(),X(49,20),F(50,Gze,4,6,"th",18)(51,jze,2,1,"td",19),Z(),X(52,21),F(53,$ze,3,3,"th",22)(54,Uze,3,0,"td",23),Z(),F(55,Wze,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,Yze,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),se(" ",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,Dze)),a(),v(" ",m(60,34,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_HOOK"))},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Va,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,qa,ze,gt,ft,ve,fi,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,wi,St,Pt,wt,Tt,he,Fi],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 Jze=()=>["../"];function Kze(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(" ",Ot(2,2,t.name,"text")," ")}}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(),se(" ",m(2,3,"labels.inputs.Hook Template")," ",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(),se(" ",m(2,3,"labels.inputs.Display Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function eHe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Content Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function tHe(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,eHe,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 iHe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Payload URL")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function nHe(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,iHe,7,9,"mat-error"),r()),e&2){let t=xe(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 oHe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Payload URL")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function aHe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.SMS Provider")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function rHe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",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 lHe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.SMS Provider Token")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function sHe(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,aHe,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,rHe,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,lHe,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 cHe(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 pHe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.entityName)}}function mHe(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),p(3,"translate"),r()),e&2&&(a(),se(" ",m(2,2,"labels.inputs.Action")," ",m(3,4,"labels.inputs.Name")," "))}function dHe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.actionName)}}function uHe(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 fHe(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 hHe(e,o){if(e&1){let t=Y();l(0,"td",39)(1,"button",41),R("click",function(){let i=z(t).index,s=w();return H(s.deleteEvent(i))}),b(2,"fa-icon",42),r()()}}function gHe(e,o){e&1&&b(0,"tr",43)}function _He(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 wx=(()=>{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(y0),this.cdr=T(is),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},re.required],displayName:[this.hookData.displayName,re.required],isActive:[this.hookData.isActive],phoneNumber:[{value:this.hookData.name==="SMS Bridge"?this.hookData.config[1].fieldValue:"",disabled:this.hookData.name!=="SMS Bridge"},re.required],smsProvider:[{value:this.hookData.name==="SMS Bridge"?this.hookData.config[2].fieldValue:"",disabled:this.hookData.name!=="SMS Bridge"},re.required],smsProviderAccountId:[{value:this.hookData.name==="SMS Bridge"?this.hookData.config[3].fieldValue:"",disabled:this.hookData.name!=="SMS Bridge"},re.required],smsProviderToken:[{value:this.hookData.name==="SMS Bridge"?this.hookData.config[4].fieldValue:"",disabled:this.hookData.name!=="SMS Bridge"},re.required],contentType:[{value:this.hookData.name==="Web"?this.hookData.config[0].fieldValue:"",disabled:this.hookData.name!=="Web"},re.required],payloadUrl:[this.hookData.name==="Web"?this.hookData.config[1].fieldValue:this.hookData.config[0].fieldValue,re.required]})}addEvent(){this.dialog.open(ou,{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,Kze,3,5,"mat-option",6,Pe),r(),E(12,Xze,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,Zze,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,tHe,12,12,"mat-form-field",10),E(25,nHe,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,oHe,7,9,"mat-error"),r()(),E(32,sHe,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,cHe,3,3,"th",20)(50,pHe,2,1,"td",21),Z(),X(51,22),F(52,mHe,4,6,"th",20)(53,dHe,2,1,"td",21),Z(),E(54,uHe,3,0,"div",23),X(55,24),F(56,fHe,3,3,"th",25)(57,hHe,3,0,"td",21),Z(),F(58,gHe,1,0,"tr",26)(59,_He,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),se(" ",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,Jze)),a(),v(" ",m(63,36,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_HOOK"))},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Va,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,qa,ze,gt,ft,ve,fi,Ke,Ri,ke,_t,It,xt,vt,bt,ri,Ct,yt,wi,St,Pt,wt,Tt,he,Fi],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 vHe=()=>[10,25,50,100],xHe=()=>["create"],bHe=e=>[e];function yHe(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,xHe)),a(2),v(" ",m(3,2,"labels.buttons.Create Hook")," "))}function SHe(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 wHe(e,o){if(e&1&&(l(0,"td",19),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ot(2,1,t.name,"text"))}}function PHe(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 THe(e,o){if(e&1&&(l(0,"td",19),c(1),r()),e&2){let t=o.$implicit;a(),h(t.displayName)}}function MHe(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 DHe(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 EHe(e,o){e&1&&b(0,"tr",22)}function IHe(e,o){if(e&1&&b(0,"tr",23),e&2){let t=o.$implicit;g("routerLink",Nt(1,bHe,t.id))}}var Px=(()=>{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,yHe,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,SHe,3,3,"th",9)(13,wHe,3,4,"td",10),Z(),X(14,11),F(15,PHe,3,3,"th",9)(16,THe,2,1,"td",10),Z(),X(17,12),F(18,MHe,3,3,"th",9)(19,DHe,5,7,"td",10),Z(),F(20,EHe,1,0,"tr",13)(21,IHe,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,vHe)))},dependencies:[ue,fe,Ae,Fe,Be,ze,ve,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,he,Fi],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 OHe=()=>["edit"];function AHe(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,OHe)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function FHe(e,o){if(e&1){let t=Y();l(0,"button",9),R("click",function(){z(t);let i=w();return H(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 kHe(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 BHe(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 RHe(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 NHe(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 LHe(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 VHe(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 qHe(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 zHe(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 HHe(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 GHe(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 jHe(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 $He(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 UHe(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 Tx=(()=>{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,AHe,4,5,"button",1)(2,FHe,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,kHe,3,1,"mat-label",null,Pe),r(),E(37,BHe,3,3,"div",5),E(38,RHe,2,1,"div",6),l(39,"div",5),c(40),p(41,"translate"),r(),E(42,NHe,2,1,"div",6),E(43,LHe,2,1,"div",6),E(44,VHe,3,3,"div",5),E(45,qHe,2,1,"div",6),E(46,zHe,3,3,"div",5),E(47,HHe,2,1,"div",6),E(48,GHe,3,3,"div",5),E(49,jHe,2,1,"div",6),E(50,$He,3,3,"div",5),E(51,UHe,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,Ae,$e,Je,Be,ve,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 WHe(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(),se(" ",m(2,3,"labels.inputs.Report Parameters")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var Kp=(()=>{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,re.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,WHe,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(),se(" ",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,Ue,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,ve,Un,ho,Nn,$n,he],encapsulation:2})}}return e})();var YHe=()=>[10,25,50,100],JHe=()=>["../"];function KHe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Report Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function XHe(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(" ",Ot(2,2,t,"text")," ")}}function ZHe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Report Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function eGe(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(" ",Ot(2,2,t,"text")," ")}}function tGe(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(" ",Ot(2,2,t,"catalogs")," ")}}function iGe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.SQL")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function nGe(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 oGe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.parameterName," ")}}function aGe(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 rGe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.reportParameterName," ")}}function lGe(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 sGe(e,o){if(e&1){let t=Y();l(0,"td",33)(1,"div",35)(2,"button",36),R("click",function(){let i=z(t).$implicit,s=w();return H(s.editReportParameter(i))}),b(3,"fa-icon",37),r(),l(4,"button",38),R("click",function(){let i=z(t).$implicit,s=w();return H(s.deleteReportParameter(i))}),b(5,"fa-icon",39),r()()()}}function cGe(e,o){e&1&&b(0,"tr",40)}function pGe(e,o){e&1&&b(0,"tr",41)}function mGe(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 Mx=(()=>{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:["",re.required],reportCategory:[""],description:[""],reportType:["",re.required],reportSubType:[{value:"",disabled:!0}],useReport:[!1],reportSql:["",re.required]})}addReportParameter(){this.dataForDialog.parameterName=void 0,this.dataForDialog.reportParameterName=void 0,this.dialog.open(Kp,{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(Kp,{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,KHe,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,XHe,3,5,"mat-option",7,Pe),r(),E(18,ZHe,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,eGe,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,tGe,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,iGe,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,nGe,3,3,"th",21)(60,oGe,2,1,"td",22),Z(),X(61,23),F(62,aGe,3,3,"th",21)(63,rGe,2,1,"td",22),Z(),X(64,24),F(65,lGe,3,3,"th",25)(66,sGe,6,0,"td",22),Z(),F(67,cGe,1,0,"tr",26)(68,pGe,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,mGe,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,YHe)),a(2),g("routerLink",oe(41,JHe)),a(),v(" ",m(73,38,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_REPORT"))},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ze,gt,ft,ve,fi,Ke,Ln,ke,_t,It,xt,vt,bt,ri,Ct,yt,wi,St,Pt,wt,Tt,kt,he,Fi],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 dGe=()=>[10,25,50,100],uGe=()=>["../"];function fGe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Report Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function hGe(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(" ",Ot(2,2,t,"text")," ")}}function gGe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Report Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function _Ge(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(" ",Ot(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(" ",Ot(2,2,t,"catalogs")," ")}}function vGe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.SQL")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function xGe(e,o){if(e&1){let t=Y();l(0,"button",31),R("click",function(){z(t);let i=w();return H(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 bGe(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 yGe(e,o){if(e&1&&(l(0,"td",34),c(1),r()),e&2){let t=o.$implicit;a(),h(t.parameterName)}}function SGe(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 wGe(e,o){if(e&1&&(l(0,"td",34),c(1),r()),e&2){let t=o.$implicit;a(),h(t.reportParameterName)}}function PGe(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 TGe(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){z(t);let i=w().$implicit,s=w();return H(s.editReportParameter(i))}),b(1,"fa-icon",40),r()}}function MGe(e,o){if(e&1){let t=Y();l(0,"button",41),R("click",function(){z(t);let i=w().$implicit,s=w();return H(s.deleteReportParameter(i))}),b(1,"fa-icon",42),r()}}function DGe(e,o){if(e&1&&(l(0,"td",36),E(1,TGe,2,0,"button",37),E(2,MGe,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 EGe(e,o){e&1&&b(0,"tr",43)}function IGe(e,o){e&1&&b(0,"tr",44)}function OGe(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 Dx=(()=>{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},re.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},re.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"},re.required]})}addReportParameter(){this.dataForDialog.parameterName=void 0,this.dataForDialog.reportParameterName=void 0,this.dialog.open(Kp,{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(Kp,{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,fGe,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,hGe,3,5,"mat-option",7,Pe),r(),E(18,gGe,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,_Ge,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,vGe,7,9,"mat-error"),r()(),b(48,"br"),l(49,"div",14)(50,"p",15),c(51),p(52,"translate"),r(),E(53,xGe,4,3,"button",16),r(),l(54,"table",17),X(55,18),F(56,bGe,3,3,"th",19)(57,yGe,2,1,"td",20),Z(),X(58,21),F(59,SGe,3,3,"th",19)(60,wGe,2,1,"td",20),Z(),X(61,22),F(62,PGe,3,3,"th",23)(63,DGe,3,2,"td",24),Z(),F(64,EGe,1,0,"tr",25)(65,IGe,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,OGe,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,dGe)),a(2),g("routerLink",oe(39,uGe)),a(),v(" ",m(70,36,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_REPORT"))},dependencies:[ue,fe,tt,st,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ze,gt,ft,ve,fi,Ke,Ln,ke,_t,It,xt,vt,bt,ri,Ct,yt,wi,St,Pt,wt,Tt,kt,he,Fi],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 Ex=(()=>{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,ve,Un,ho,as,Nn,$n,he],encapsulation:2})}}return e})();var AGe=["buttonCreateReport"],FGe=["templateButtonCreateReport"],kGe=()=>[10,25,50,100],BGe=()=>["create"],RGe=e=>[e];function NGe(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,BGe)),a(2),v(" ",m(3,2,"labels.buttons.Create Report")," "))}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.Report Name")))}function VGe(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),h(t.reportName)}}function qGe(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 zGe(e,o){if(e&1&&(l(0,"td",29),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ot(2,1,t.reportType,"text"))}}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.Report Sub Type")))}function GGe(e,o){if(e&1&&(l(0,"td",29),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ot(2,1,t.reportSubType,"text"))}}function jGe(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 $Ge(e,o){if(e&1&&(l(0,"td",29),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ot(2,1,t.reportCategory,"catalogs"))}}function UGe(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 WGe(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 YGe(e,o){if(e&1&&(l(0,"td",29),E(1,WGe,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 JGe(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 KGe(e,o){e&1&&(b(0,"fa-icon",30),p(1,"translate")),e&2&&g("matTooltip",m(1,1,"tooltips.Yes"))}function XGe(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,KGe,2,3,"fa-icon",30),E(2,XGe,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 eje(e,o){e&1&&b(0,"tr",32)}function tje(e,o){if(e&1&&b(0,"tr",33),e&2){let t=o.$implicit;g("routerLink",Nt(1,RGe,t.id))}}function ije(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=z(t).popover,s=w(),d=xe(6),u=xe(39);return i.close(),H(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 nje(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",37),R("click",function(){let i=z(t).popover,s=w(),d=xe(2),u=xe(37);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=z(t).popover,s=w(),d=xe(13),u=xe(41);return i.close(),H(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 oje(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=z(t).popover,s=w(),d=xe(6),u=xe(39);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 Ix=(()=>{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(Ex).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(AGe,5),Ee(FGe,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,NGe,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 z(s),H(i.applyFilter(u.target.value))}),r()()(),l(12,"div",13,2)(14,"table",14),X(15,15),F(16,LGe,3,3,"th",16)(17,VGe,2,1,"td",17),Z(),X(18,18),F(19,qGe,3,3,"th",16)(20,zGe,3,4,"td",17),Z(),X(21,19),F(22,HGe,3,3,"th",16)(23,GGe,3,4,"td",17),Z(),X(24,20),F(25,jGe,3,3,"th",16)(26,$Ge,3,4,"td",17),Z(),X(27,21),F(28,UGe,3,3,"th",16)(29,YGe,3,2,"td",17),Z(),X(30,22),F(31,JGe,3,3,"th",16)(32,ZGe,3,2,"td",17),Z(),F(33,eje,1,0,"tr",23)(34,tje,1,3,"tr",24),r(),b(35,"mat-paginator",25),r()(),F(36,ije,16,15,"ng-template",null,3,ti)(38,nje,13,12,"ng-template",null,4,ti)(40,oje,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,kGe)))},dependencies:[ue,fe,Ae,Fe,Be,ze,ve,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,he,Fi],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 aje=()=>["edit"];function rje(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,aje)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function lje(e,o){if(e&1){let t=Y();l(0,"button",12),R("click",function(){z(t);let i=w(2);return H(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 sje(e,o){e&1&&(l(0,"span"),F(1,lje,4,3,"button",11),r()),e&2&&(a(),g("mifosxHasPermission","DELETE_REPORT"))}function cje(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 pje(e,o){if(e&1&&(l(0,"div",7),c(1),p(2,"translateKey"),r()),e&2){let t=w();a(),v(" ",Ot(2,1,t.reportData.reportSubType,"text")," ")}}var Ox=(()=>{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,rje,4,5,"button",1),E(2,sje,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,cje,3,3,"div",8),E(20,pje,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(" ",Ot(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(" ",Ot(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,Ae,$e,Je,ve,Ke,ke,Yo,he,Fi,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 mje=()=>["../"];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(),se(" ",m(2,3,"labels.inputs.Key")," ",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"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function fje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Country Code")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function hje(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 gje(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(){z(t);let i=w();return H(i.addQuestion())}),c(5),p(6,"translate"),r()()}if(e&2){let t=w();a(),g("routerLink",oe(8,mje)),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 _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(),se(" ",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(),se(" ",m(2,3,"labels.inputs.Text")," ",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(),se(" ",m(2,3,"labels.inputs.Text")," ",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"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Value")," ",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"),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 yje(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,vje,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,xje,7,9,"mat-error"),E(14,bje,6,6,"mat-error"),r(),l(15,"div",33)(16,"div",34)(17,"button",35),p(18,"translate"),R("click",function(){let i=z(t).$index,s=w().$index,d=w();return H(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 Sje(e,o){if(e&1){let t=Y();l(0,"mat-card-actions",28)(1,"button",37),R("click",function(){z(t);let i=w(2);return H(i.cancelSurvey())}),c(2),p(3,"translate"),r(),l(4,"button",24),R("click",function(){z(t);let i=w(2);return H(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),se(" ",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 wje(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=z(t).$index,s=w();return H(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,_je,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=z(t).$index,s=w();return H(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=z(t).$index,d=w();return H(d.dropResponse(i,s))}),Se(40,yje,20,14,"div",27,Pe),r()()(),l(42,"div"),E(43,Sje,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),se("",m(6,16,"labels.heading.Question")," ",n+1),a(2),g("disabled",s.questionDatas.controls.length===1),a(2),se(" ",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),se(" ",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 Ax=(()=>{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:["",re.required],name:["",re.required],countryCode:["",[re.required,re.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:["",re.required],text:["",re.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:["",re.required],value:["",[re.required,re.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){ks(this.questionDatas.controls,t.previousIndex,t.currentIndex),this.updateSequenceNumber()}dropResponse(t,n){ks(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,dje,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,uje,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,fje,7,9,"mat-error"),E(24,hje,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,gje,7,9,"div",10),r()()(),l(31,"div",11),R("cdkDropListDropped",function(d){return i.dropQuestion(d)}),Se(32,wje,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,Ue,Xe,dt,Va,Ze,et,la,La,Ae,$e,Je,Et,Fe,Be,ut,ze,ve,Ln,Op,Ip,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 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(),se(" ",m(2,3,"labels.inputs.Key")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Tje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Name")," ",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(),se(" ",m(2,3,"labels.inputs.Country Code")," ",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.Country Code")," "),a(3),h(m(5,4,"labels.commons.must consist of 2 alphabetic characters")))}function Eje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Key")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Ije(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Text")," ",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(),se(" ",m(2,3,"labels.inputs.Text")," ",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(),se(" ",m(2,3,"labels.inputs.Value")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Fje(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 kje(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,Oje,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,Aje,7,9,"mat-error"),E(14,Fje,6,6,"mat-error"),r(),l(15,"div",30)(16,"div",31)(17,"button",32),p(18,"translate"),R("click",function(){let i=z(t).$index,s=w().$index,d=w();return H(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 Bje(e,o){if(e&1){let t=Y();l(0,"mat-card-actions",25)(1,"button",34),R("click",function(){z(t);let i=w(2);return H(i.cancelSurvey())}),c(2),p(3,"translate"),r(),l(4,"button",21),R("click",function(){z(t);let i=w(2);return H(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),se(" ",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 Rje(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=z(t).$index,s=w();return H(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,Eje,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,Ije,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=z(t).$index,s=w();return H(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=z(t).$index,d=w();return H(d.dropResponse(i,s))}),Se(40,kje,20,14,"div",24,Pe),r()()(),l(42,"div"),E(43,Bje,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),se("",m(6,16,"labels.heading.Question")," ",n+1),a(2),g("disabled",s.questionDatas.controls.length===1),a(2),se(" ",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),se(" ",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 Fx=(()=>{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:["",re.required],name:["",re.required],countryCode:["",[re.required,re.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:["",re.required],text:["",re.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:["",re.required],value:["",[re.required,re.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){ks(this.questionDatas.controls,t.previousIndex,t.currentIndex),this.updateSequenceNumber()}dropResponse(t,n){ks(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,Pje,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,Tje,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,Mje,7,9,"mat-error"),E(24,Dje,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,Rje,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,Ue,Xe,dt,Va,Ze,et,la,La,$e,Je,Et,Fe,Be,ut,ze,ve,Ln,Op,Ip,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 Nje=()=>["create"],Lje=()=>[10,25,50,100],Vje=e=>[e];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.Key")))}function zje(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.key)}}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.Name")))}function Gje(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function jje(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 $je(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.description)}}function Uje(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 Wje(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 Yje(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 Jje(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 Kje(e,o){if(e&1){let t=Y();l(0,"button",26),R("click",function(i){z(t);let s=w().$implicit;return w().activate(s),H(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 Xje(e,o){if(e&1){let t=Y();l(0,"button",28),R("click",function(i){z(t);let s=w().$implicit;return w().deactivate(s),H(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 Zje(e,o){if(e&1&&(l(0,"td",21),E(1,Kje,4,3,"button",24),E(2,Xje,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 e$e(e,o){e&1&&b(0,"tr",30)}function t$e(e,o){if(e&1&&b(0,"tr",31),e&2){let t=o.$implicit;g("routerLink",Nt(1,Vje,t.id))}}var kx=(()=>{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,qje,3,3,"th",10)(16,zje,2,1,"td",11),Z(),X(17,12),F(18,Hje,3,3,"th",10)(19,Gje,2,1,"td",11),Z(),X(20,13),F(21,jje,3,3,"th",10)(22,$je,2,1,"td",11),Z(),X(23,14),F(24,Uje,3,3,"th",10)(25,Wje,2,1,"td",11),Z(),X(26,15),F(27,Qje,3,3,"th",10)(28,Yje,5,7,"td",11),Z(),X(29,16),F(30,Jje,3,3,"th",10)(31,Zje,3,2,"td",11),Z(),F(32,e$e,1,0,"tr",17)(33,t$e,1,3,"tr",18),r(),b(34,"mat-paginator",19),r()()),n&2&&(a(),g("routerLink",oe(11,Nje)),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,Lje)))},dependencies:[ue,fe,Ae,Fe,Be,ze,ve,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 i$e(e,o){if(e&1){let t=Y();l(0,"button",10),R("click",function(){z(t);let i=w();return H(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 n$e(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 o$e(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 a$e(e,o){if(e&1&&(l(0,"tr"),Se(1,o$e,2,1,"td",null,Pe),r()),e&2){let t=w(2);a(),we(t.displayedColumns)}}function r$e(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,n$e,3,3,"th",null,Pe),r(),Se(35,a$e,3,0,"tr",null,Pe),r()()()()()),e&2){let t=o.$implicit,n=o.$index,i=w();a(4),se("",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 Bx=(()=>{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,i$e,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,r$e,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,$e,Je,ve,Ke,ke,sa,Yo,Ri,wp,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 Dl=(()=>{class e{constructor(){this.http=T(ko),this.router=T(qe),this.oauthService=T(jF),this.api=xn.OIDC.oidcApiUrl}getAccessToken(){return this.oauthService.getAccessToken()}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 Yn(this,null,function*(){try{yield this.oauthService.refreshToken()}catch(t){throw t}})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var l$e=()=>["../"];function s$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(),se(" ",m(2,3,"labels.inputs.Role Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function c$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(),se(" ",m(2,3,"labels.inputs.Role Description")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var Rx=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.authService=T(Dl)}ngOnInit(){this.createRoleForm()}createRoleForm(){this.roleForm=this.formBuilder.group({name:["",re.required],description:["",re.required]})}submit(){this.systemService.createRole(this.roleForm.value).subscribe(t=>{xn.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,s$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,c$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,l$e)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ze,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var p$e=()=>["../../"];function m$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(),se(" ",m(2,3,"labels.inputs.Description")," ",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.authService=T(Dl),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},re.required],description:[this.roleData.description,re.required]})}submit(){this.systemService.updateRole(this.roleForm.value,this.roleData.id).subscribe(()=>{xn.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,m$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,p$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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ut,ze,ve,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}span[_ngcontent-%COMP%]{font-size:1rem}.roleName[_ngcontent-%COMP%]{line-height:3rem}"]})}}return e})();var d$e=["buttonAddRole"],u$e=["templateButtonAddRole"],f$e=["tableRolesandPermissions"],h$e=["templateTableRolesandPermissions"],g$e=()=>["add"],_$e=()=>[10,25,50,100],C$e=e=>[e,"edit"],v$e=e=>[e];function x$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 b$e(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function y$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 S$e(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),h(t.description)}}function w$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 P$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 T$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 M$e(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(i){z(t);let s=w(2);return H(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 D$e(e,o){if(e&1&&(l(0,"td",27),E(1,M$e,4,6,"button",31),r()),e&2){let t=o.$implicit;a(),I(t.name!=="Super user"?1:-1)}}function E$e(e,o){e&1&&b(0,"tr",34)}function I$e(e,o){if(e&1&&b(0,"tr",35),e&2){let t=o.$implicit;g("routerLink",Nt(1,v$e,t.id))}}function O$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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",39),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",39),R("click",function(){let i=z(t).popover,s=w(),d=xe(9),u=xe(36);return i.close(),H(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 A$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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",39),R("click",function(){let i=z(t).popover,s=w(),d=xe(2),u=xe(34);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",39),R("click",function(){let i=z(t).popover,s=w(),d=xe(16),u=xe(38);return i.close(),H(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 F$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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",39),R("click",function(){let i=z(t).popover,s=w(),d=xe(9),u=xe(36);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",39),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 Lx=(()=>{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(d$e,5),Ee(u$e,5),Ee(f$e,5),Ee(h$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 z(s),H(i.applyFilter(u.target.value))}),r()()(),l(15,"div",14,2)(17,"table",15),X(18,16),F(19,x$e,3,3,"th",17)(20,b$e,2,1,"td",18),Z(),X(21,19),F(22,y$e,3,3,"th",17)(23,S$e,2,1,"td",18),Z(),X(24,20),F(25,w$e,3,3,"th",17)(26,P$e,5,6,"td",18),Z(),X(27,21),F(28,T$e,3,3,"th",22)(29,D$e,2,1,"td",18),Z(),F(30,E$e,1,0,"tr",23)(31,I$e,1,3,"tr",24),r(),b(32,"mat-paginator",25),r()(),F(33,O$e,16,15,"ng-template",null,3,ti)(35,A$e,13,12,"ng-template",null,4,ti)(37,F$e,16,15,"ng-template",null,5,ti)}n&2&&(g("routerLink",oe(11,g$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,_$e)))},dependencies:[ue,fe,Ae,Fe,Be,ze,ve,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 N5=Is(Sd());function k$e(e,o){if(e&1){let t=Y();l(0,"button",24),R("click",function(){z(t);let i=w();return H(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),se(" ",m(3,3,"labels.buttons.Disable")," ",m(4,5,"labels.inputs.Role")," ")}}function B$e(e,o){if(e&1){let t=Y();l(0,"button",1),R("click",function(){z(t);let i=w();return H(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),se(" ",m(3,3,"labels.buttons.Enable")," ",m(4,5,"labels.inputs.Role")," ")}}function R$e(e,o){if(e&1){let t=Y();l(0,"div",15)(1,"button",27),R("click",function(){z(t);let i=w();return H(i.selectAll())}),c(2),p(3,"translate"),r(),l(4,"button",28),R("click",function(){z(t);let i=w();return H(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 N$e(e,o){if(e&1){let t=Y();l(0,"mat-list-item",29),R("click",function(){let i=z(t).$implicit,s=w();return H(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 L$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 V$e(e,o){if(e&1){let t=Y();l(0,"div",23)(1,"mat-card-actions")(2,"button",34),R("click",function(){z(t);let i=w();return i.cancel(),H(i.restoreCheckboxes())}),c(3),p(4,"translate"),r(),l(5,"button",27),R("click",function(){z(t);let i=w();return H(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 Vx=(()=>{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(Dl),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,re.required],selected:[{value:t.selected,disabled:!0},re.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=N5.cloneDeep(this.formGroup)}restoreCheckboxes(){this.formGroup=N5.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(()=>{xn.OIDC.oidcServerEnabled&&this.authService.deleteRole(this.roleId),this.router.navigate(["/system/roles-and-permissions"])})})}enableRolesConfirmation(){this.dialog.open(ik,{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(nk,{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,k$e,5,7,"button",3),E(6,B$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,R$e,7,6,"div",15),r(),l(39,"div",16)(40,"div",17)(41,"mat-list"),Se(42,N$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,L$e,5,4,"div",22,Pe),r()()(),Z(),E(49,V$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),se(" ",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,Ue,Xe,Ze,et,la,La,$e,Je,Et,ve,fi,ke,xl,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 q$e=["datatables"],z$e=["templateDatatables"],H$e=["codes"],G$e=["templateCodes"],j$e=["rolesandpermission"],$$e=["templateRolesandPermission"],U$e=["makerCheckerTable"],W$e=["templateMakerCheckerTable"],Q$e=["configurations"],Y$e=["templateConfigurations"],J$e=["schedulerJobs"],K$e=["templateSchedulerJobs"],X$e=["manageReports"],Z$e=["templateManageReports"],L5=()=>["data-tables"],V5=()=>["codes"],q5=()=>["roles-and-permissions"],qx=()=>["configure-mc-tasks"],z5=()=>["hooks"],H5=()=>["entity-to-entity-mapping"],MN=e=>({"disabled-item":e}),G5=()=>["audit-trails"],j5=()=>["reports"],$5=()=>["manage-jobs"],U5=()=>["configurations"],W5=()=>["account-number-preferences"],Q5=()=>["external-services"],Y5=()=>["external-events"];function eUe(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.Add new extra fields to any entity")," "))}function tUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return z(t),w().arrowBooleansToggle(0),H(i.stopPropagation())}),r()}}function iUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return z(t),w().arrowBooleansToggle(0),H(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,V5)),a(),v(" ",m(2,2,"labels.text.Codes are used to define drop down values")," "))}function oUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return z(t),w().arrowBooleansToggle(1),H(i.stopPropagation())}),r()}}function aUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return z(t),w().arrowBooleansToggle(1),H(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,q5)),a(),v(" ",m(2,2,"labels.text.Define or modify roles and associated permissions")," "))}function lUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return z(t),w().arrowBooleansToggle(2),H(i.stopPropagation())}),r()}}function sUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return z(t),w().arrowBooleansToggle(2),H(i.stopPropagation())}),r()}}function cUe(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,qx)),a(),v(" ",m(2,2,"labels.text.Define or modify Maker Checker tasks")," "))}function pUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return z(t),w().arrowBooleansToggle(3),H(i.stopPropagation())}),r()}}function mUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return z(t),w().arrowBooleansToggle(3),H(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,z5)),a(),v(" ",m(2,2,"labels.text.Define Hooks")," "))}function uUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return z(t),w().arrowBooleansToggle(4),H(i.stopPropagation())}),r()}}function fUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return z(t),w().arrowBooleansToggle(4),H(i.stopPropagation())}),r()}}function hUe(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.Define or modify entity to entity mappings")," "))}function gUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return z(t),w().arrowBooleansToggle(5),H(i.stopPropagation())}),r()}}function _Ue(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return z(t),w().arrowBooleansToggle(5),H(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 vUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return z(t),w().arrowBooleansToggle(6),H(i.stopPropagation())}),r()}}function xUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return z(t),w().arrowBooleansToggle(6),H(i.stopPropagation())}),r()}}function bUe(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,Y5)),a(),v(" ",m(2,2,"labels.text.External Events configuration, to enable or disable")," "))}function yUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return z(t),w(2).arrowBooleansToggle(7),H(i.stopPropagation())}),r()}}function SUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return z(t),w(2).arrowBooleansToggle(7),H(i.stopPropagation())}),r()}}function wUe(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,bUe,3,5,"p",21),r()(),l(9,"div",22),E(10,yUe,1,0,"fa-icon",23),E(11,SUe,1,0,"fa-icon",24),r()()()),e&2){let t=w();g("routerLink",oe(8,Y5)),a(2),g("routerLink",oe(9,Y5)),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 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.Audit logs of all the activities")," "))}function TUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return z(t),w().arrowBooleansToggle(8),H(i.stopPropagation())}),r()}}function MUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return z(t),w().arrowBooleansToggle(8),H(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.Add new report and classify reports")," "))}function EUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return z(t),w().arrowBooleansToggle(9),H(i.stopPropagation())}),r()}}function IUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return z(t),w().arrowBooleansToggle(9),H(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.Manage Schedule and Workflow jobs, modify jobs")," "))}function AUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return z(t),w().arrowBooleansToggle(10),H(i.stopPropagation())}),r()}}function FUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return z(t),w().arrowBooleansToggle(10),H(i.stopPropagation())}),r()}}function kUe(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.Global configurations, Cache and Business Date")," "))}function BUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return z(t),w().arrowBooleansToggle(11),H(i.stopPropagation())}),r()}}function RUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return z(t),w().arrowBooleansToggle(11),H(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,W5)),a(),v(" ",m(2,2,"labels.text.Preferences for generating account numbers for client")," "))}function LUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return z(t),w().arrowBooleansToggle(12),H(i.stopPropagation())}),r()}}function VUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return z(t),w().arrowBooleansToggle(12),H(i.stopPropagation())}),r()}}function qUe(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.External Services Configuration")," "))}function zUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return z(t),w().arrowBooleansToggle(13),H(i.stopPropagation())}),r()}}function HUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return z(t),w().arrowBooleansToggle(13),H(i.stopPropagation())}),r()}}function GUe(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 jUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return z(t),w().arrowBooleansToggle(14),H(i.stopPropagation())}),r()}}function $Ue(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return z(t),w().arrowBooleansToggle(14),H(i.stopPropagation())}),r()}}function UUe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStepDatatables())}),c(11),p(12,"translate"),r(),l(13,"button",47),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 WUe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStepCodes())}),c(11),p(12,"translate"),r(),l(13,"button",47),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStepRolesandPermission())}),c(11),p(12,"translate"),r(),l(13,"button",47),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 YUe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStepMakerCheckerTable())}),c(11),p(12,"translate"),r(),l(13,"button",47),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStepConfigurations())}),c(11),p(12,"translate"),r(),l(13,"button",47),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 KUe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStepSchedulerJobs())}),c(11),p(12,"translate"),r(),l(13,"button",47),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 XUe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStepManageReports())}),c(11),p(12,"translate"),r(),l(13,"button",47),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 zx=(()=>{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(q$e,5),Ee(z$e,5),Ee(H$e,5),Ee(G$e,5),Ee(j$e,5),Ee($$e,5),Ee(U$e,5),Ee(W$e,5),Ee(Q$e,5),Ee(Y$e,5),Ee(J$e,5),Ee(K$e,5),Ee(X$e,5),Ee(Z$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,eUe,3,5,"p",21),r()(),l(16,"div",22),E(17,tUe,1,0,"fa-icon",23),E(18,iUe,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,nUe,3,5,"p",21),r()(),l(30,"div",22),E(31,oUe,1,0,"fa-icon",23),E(32,aUe,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,rUe,3,5,"p",21),r()(),l(44,"div",22),E(45,lUe,1,0,"fa-icon",23),E(46,sUe,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,cUe,3,5,"p",21),r()(),l(58,"div",22),E(59,pUe,1,0,"fa-icon",23),E(60,mUe,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,dUe,3,5,"p",21),r()(),l(70,"div",22),E(71,uUe,1,0,"fa-icon",23),E(72,fUe,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,hUe,3,5,"p",21),r()(),l(82,"div",22),E(83,gUe,1,0,"fa-icon",23),E(84,_Ue,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,vUe,1,0,"fa-icon",23),E(96,xUe,1,0,"fa-icon",24),r()()(),F(97,wUe,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,PUe,3,5,"p",21),r()(),l(109,"div",22),E(110,TUe,1,0,"fa-icon",23),E(111,MUe,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,DUe,3,5,"p",21),r()(),l(123,"div",22),E(124,EUe,1,0,"fa-icon",23),E(125,IUe,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,OUe,3,5,"p",21),r()(),l(135,"div",22),E(136,AUe,1,0,"fa-icon",23),E(137,FUe,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,kUe,3,5,"p",21),r()(),l(147,"div",22),E(148,BUe,1,0,"fa-icon",23),E(149,RUe,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,NUe,3,5,"p",21),r()(),l(159,"div",22),E(160,LUe,1,0,"fa-icon",23),E(161,VUe,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,qUe,3,5,"p",21),r()(),l(171,"div",22),E(172,zUe,1,0,"fa-icon",23),E(173,HUe,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,GUe,3,3,"p",35),r()(),l(183,"div",22),E(184,jUe,1,0,"fa-icon",23),E(185,$Ue,1,0,"fa-icon",24),r()()()()()()()(),F(186,UUe,16,15,"ng-template",null,5,ti)(188,WUe,16,15,"ng-template",null,6,ti)(190,QUe,16,15,"ng-template",null,7,ti)(192,YUe,16,15,"ng-template",null,8,ti)(194,JUe,16,15,"ng-template",null,9,ti)(196,KUe,16,15,"ng-template",null,10,ti)(198,XUe,16,15,"ng-template",null,11,ti)),n&2&&(a(7),g("routerLink",oe(112,L5)),a(2),g("routerLink",oe(113,L5)),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,V5)),a(2),g("routerLink",oe(115,V5)),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,q5)),a(2),g("routerLink",oe(117,q5)),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,qx)),a(2),g("routerLink",oe(119,qx)),a(3),g("routerLink",oe(120,qx)),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,z5)),a(2),g("routerLink",oe(122,z5)),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,H5)),a(2),g("routerLink",oe(124,H5)),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,MN,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,G5)),a(2),g("routerLink",oe(128,G5)),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,j5)),a(2),g("routerLink",oe(130,j5)),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,$5)),a(2),g("routerLink",oe(132,$5)),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,U5)),a(2),g("routerLink",oe(134,U5)),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,W5)),a(2),g("routerLink",oe(136,W5)),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,Q5)),a(2),g("routerLink",oe(138,Q5)),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,MN,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,Ae,$e,ve,Ke,pa,Vo,Jo,ke,ca,he],styles:[".disabled-item[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}"]})}}return e})();var J5=(()=>{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 Hx=(()=>{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 Gx=(()=>{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 K5=(()=>{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 X5=(()=>{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 jx=(()=>{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 l1=(()=>{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 Z5=(()=>{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 ZUe=["filter"],eWe=["templateFilter"],tWe=["configurationsTable"],iWe=["templateConfigurationsTable"],nWe=()=>[10,25,50,100],oWe=e=>[e,"edit"];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.name")))}function rWe(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 lWe(e,o){if(e&1&&(l(0,"td",23)(1,"span",24),c(2),r(),E(3,rWe,2,4,"fa-icon",25),r()),e&2){let t=o.$implicit;a(2),h(t.name),a(),I(t.description?3:-1)}}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.Status")))}function cWe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Enabled")))}function pWe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Disabled")))}function mWe(e,o){if(e&1){let t=Y();l(0,"td",23)(1,"mat-slide-toggle",26),Nc("ngModelChange",function(i){let s=z(t).$implicit;return Rc(s.enabled,i)||(s.enabled=i),H(i)}),R("click",function(){let i=z(t).$implicit,s=w();return H(s.toggleStatus(i))}),l(2,"div",27),E(3,cWe,3,3,"span"),E(4,pWe,3,3,"span"),r()()()}if(e&2){let t=o.$implicit;a(),g("name",Le(t.name)),Bc("ngModel",t.enabled),a(),g("className",t.enabled?"enabled":"disabled"),a(),I(t.enabled?3:-1),a(),I(t.enabled?-1:4)}}function dWe(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 uWe(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.value)}}function fWe(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 hWe(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.stringValue)}}function gWe(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 _We(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 vWe(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,oWe,t.id))}}function xWe(e,o){e&1&&b(0,"tr",31)}function bWe(e,o){e&1&&b(0,"tr",32)}function yWe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",35),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStep())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=z(t).popover,s=w(),d=xe(9),u=xe(35);return i.close(),H(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 SWe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=z(t).popover,s=w(),d=xe(2),u=xe(33);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",35),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 $x=(()=>{class e{constructor(){this.route=T(Ie),this.alertService=T(Sr),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===At.businessDateConfigName){let i=t.enabled?"enabled":"disabled";this.alertService.alert({type:At.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(ZUe,5),Ee(eWe,5),Ee(tWe,5),Ee(iWe,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 z(s),H(i.applyFilter(u.target.value))}),r()()(),l(8,"div",8,1)(10,"table",9),X(11,10),F(12,aWe,3,3,"th",11)(13,lWe,4,2,"td",12),Z(),X(14,13),F(15,sWe,3,3,"th",11)(16,mWe,5,6,"td",12),Z(),X(17,14),F(18,dWe,3,3,"th",11)(19,uWe,2,1,"td",12),Z(),X(20,15),F(21,fWe,3,3,"th",11)(22,hWe,2,1,"td",12),Z(),X(23,16),F(24,gWe,3,3,"th",11)(25,_We,3,3,"td",12),Z(),X(26,17),F(27,CWe,3,3,"th",18)(28,vWe,3,3,"td",12),Z(),F(29,xWe,1,0,"tr",19)(30,bWe,1,0,"tr",20),r(),b(31,"mat-paginator",21),r()(),F(32,yWe,13,12,"ng-template",null,2,ti)(34,SWe,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,nWe)))},dependencies:[ue,fe,Ue,Ae,Fe,Be,ze,ve,_t,It,xt,vt,bt,ri,Ct,yt,ke,si,Bp,tc,Dp,St,Pt,wt,Tt,kt,Pi,he],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();function wWe(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 PWe(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 TWe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.Business Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function MWe(e,o){if(e&1){let t=Y();l(0,"mat-form-field",16),R("click",function(){z(t);let i=xe(7);return H(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,TWe,7,9,"mat-error"),r()}if(e&2){let t=xe(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 DWe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(){z(t);let i=w(3);return H(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 EWe(e,o){if(e&1){let t=Y();l(0,"span"),F(1,DWe,3,4,"button",19),l(2,"button",20),R("click",function(){z(t);let i=w(2);return H(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 IWe(e,o){if(e&1){let t=Y();l(0,"button",22),p(1,"translate"),R("click",function(){z(t);let i=w(2);return H(i.editInProgressToggle(0))}),b(2,"fa-icon",23),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Edit the Business Date")))}function OWe(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 AWe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),se(" ",m(2,3,"labels.inputs.COB Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function FWe(e,o){if(e&1){let t=Y();l(0,"mat-form-field",16),R("click",function(){z(t);let i=xe(7);return H(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,AWe,7,9,"mat-error"),r()}if(e&2){let t=xe(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 kWe(e,o){if(e&1){let t=Y();l(0,"button",27),R("click",function(){z(t);let i=w(3);return H(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){e&1&&(l(0,"span"),F(1,kWe,3,4,"button",26),r()),e&2&&(a(),g("mifosxHasPermission","UPDATE_BUSINESSDATE"))}function RWe(e,o){if(e&1){let t=Y();l(0,"button",28),R("click",function(){z(t);let i=w(2);return H(i.editInProgressToggle(1))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Cancel")," "))}function NWe(e,o){if(e&1){let t=Y();l(0,"button",22),p(1,"translate"),R("click",function(){z(t);let i=w(2);return H(i.editInProgressToggle(1))}),b(2,"fa-icon",23),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Edit the COB Date")))}function LWe(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,PWe,7,6,"div",10),E(13,MWe,9,8,"mat-form-field"),l(14,"div",11),E(15,EWe,5,4,"span"),E(16,IWe,3,4,"button",12),r()(),l(17,"div",9),E(18,OWe,7,6,"div",10),E(19,FWe,9,8,"mat-form-field"),l(20,"div",13),E(21,BWe,2,1,"span"),E(22,RWe,3,3,"button",14),E(23,NWe,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 Ux=(()=>{class e{constructor(){this.systemService=T(ii),this.settingsService=T(At),this.formBuilder=T(nt),this.dateUtils=T(Zt),this.alertService=T(Sr),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===At.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(At.businessDateConfigName).subscribe(t=>{this.isBusinessDateEnabled=t.enabled,this.isBusinessDateEnabled&&this.setBusinessDates()})}setBusinessDates(){this.systemService.getBusinessDates().subscribe(t=>{t.forEach(n=>{n.type===At.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,re.required],cobDate:[new Date,re.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=At.businessDateType;this.dateIndex===1&&(s=At.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,wWe,6,4,"div"),E(3,LWe,24,14,"div"),r()()),n&2&&(a(2),I(i.isBusinessDateEnabled?-1:2),a(),I(i.isBusinessDateEnabled?3:-1))},dependencies:[ue,fe,tt,st,Ue,Xe,Ze,et,$e,Je,Fe,Be,ut,ai,ze,mi,di,pi,ve,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 VWe(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 Wx=(()=>{class e{constructor(){this.alertService=T(Sr),this.systemService=T(ii),this.isBusinessDateEnabled=!1}ngOnInit(){this.alert$=this.alertService.alertEvent.subscribe(t=>{t.type===At.businessDateType+" Set Config"&&(this.isBusinessDateEnabled=t.message==="enabled")}),this.getConfigurations()}getConfigurations(){this.systemService.getConfigurationByName(At.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,VWe,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,$e,Je,Nr,Qr,$x,Ux,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 qWe=()=>["../.."],Qx=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.settingsService=T(At),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},re.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 z(s),H(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(){z(s);let u=xe(32);return H(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=xe(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,qWe)),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,Ue,Xe,dt,Ze,et,Ae,$e,Je,Et,Fe,Be,ai,ze,mi,di,pi,ve,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.space[_ngcontent-%COMP%]{padding-bottom:40px}"]})}}return e})();var eD=(()=>{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 Xp=(()=>{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 tD=Is(Sd());var zWe=["buttonEdit"],HWe=["templateButtonEdit"],GWe=["mcTable"],jWe=["templateMcTable"];function $We(e,o){if(e&1){let t=Y();l(0,"button",17),R("click",function(){z(t);let i=w();return i.editTask(),H(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 UWe(e,o){if(e&1){let t=Y();l(0,"mat-list-item",19),R("click",function(){let i=z(t).$implicit,s=w();return H(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 WWe(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(){z(t);let i=w(2);return H(i.submit())}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Submit")," "))}function YWe(e,o){if(e&1){let t=Y();l(0,"div",16)(1,"mat-card-actions")(2,"button",23),R("click",function(){z(t);let i=w();return i.cancel(),H(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 JWe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",17),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",17),R("click",function(){let i=z(t).popover,s=w(),d=xe(9),u=xe(23);return i.close(),H(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 KWe(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=z(t).popover,s=w();return i.close(),H(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",17),R("click",function(){let i=z(t).popover,s=w(),d=xe(2),u=xe(21);return i.close(),H(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",17),R("click",function(){let i=z(t).popover,s=w();return i.close(),H(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 Yx=(()=>{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,re.required],selected:[{value:t.selected,disabled:!0},re.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=tD.cloneDeep(this.formGroup)}restoreCheckboxes(){this.formGroup=tD.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(zWe,5),Ee(HWe,5),Ee(GWe,5),Ee(jWe,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,$We,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,UWe,3,2,"mat-list-item",10,Pe),r()(),b(13,"mat-divider",11),l(14,"div",12)(15,"form",13),R("submit",function(){return z(s),H(i.submit())}),l(16,"div",14),Se(17,WWe,4,4,"div",15,Pe),r()()()(),Z(),E(19,YWe,6,4,"div",16),r()(),F(20,JWe,16,15,"ng-template",null,2,ti)(22,KWe,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,Ue,Xe,Ze,et,la,La,$e,Et,ve,fi,Ke,ke,xl,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 iD=(()=>{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 nD=(()=>{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 Jx=(()=>{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 Kx=(()=>{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 Xx=(()=>{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 Zx=(()=>{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 eb=(()=>{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 oD=(()=>{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 XWe=()=>[10,25,50,100];function ZWe(e,o){if(e&1){let t=Y();l(0,"button",17),R("click",function(){z(t);let i=w();return H(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 eQe(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 tQe(e,o){if(e&1&&(l(0,"td",19),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ot(2,1,t.type,"text"))}}function iQe(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 nQe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Enabled")))}function oQe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Disabled")))}function aQe(e,o){if(e&1){let t=Y();l(0,"td",19)(1,"mat-slide-toggle",20),Nc("ngModelChange",function(i){let s=z(t).$implicit;return Rc(s.enabled,i)||(s.enabled=i),H(i)}),R("click",function(){let i=z(t).$implicit,s=w();return H(s.toggleStatus(i))}),l(2,"div",21),E(3,nQe,3,3,"span"),E(4,oQe,3,3,"span"),r()()()}if(e&2){let t=o.$implicit;a(),g("name",Le(t.type)),Bc("ngModel",t.enabled),a(),g("className",t.enabled?"enabled":"disabled"),a(),I(t.enabled?3:-1),a(),I(t.enabled?-1:4)}}function rQe(e,o){e&1&&b(0,"tr",22)}function lQe(e,o){e&1&&b(0,"tr",23)}var tb=(()=>{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 z(s),H(i.applyFilter(u.target.value))}),r()(),l(8,"div",6),F(9,ZWe,3,4,"button",7),r()(),l(10,"div",8,1)(12,"table",9),X(13,10),F(14,eQe,3,3,"th",11)(15,tQe,3,4,"td",12),Z(),X(16,13),F(17,iQe,3,3,"th",11)(18,aQe,5,6,"td",12),Z(),F(19,rQe,1,0,"tr",14)(20,lQe,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,XWe)))},dependencies:[ue,fe,Ue,Fe,Be,ze,ve,Ke,_t,It,xt,vt,bt,ri,Ct,yt,Bp,tc,Dp,St,Pt,wt,Tt,kt,he,Fi],styles:[".container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.table-container[_ngcontent-%COMP%]{padding-bottom:10px}"]})}}return e})();var DN=(()=>{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 ib=(()=>{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 aD=(()=>{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 nb=(()=>{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 sQe(e,o){e&1&&(l(0,"th",10),c(1),p(2,"translate"),p(3,"translate"),r()),e&2&&(a(),se(" ",m(2,2,"labels.inputs.Parameter")," ",m(3,4,"labels.inputs.Name")," "))}function cQe(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"),Nc("ngModelChange",function(i){let s=z(t).$implicit;return Rc(s.parameterName,i)||(s.parameterName=i),H(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")),Bc("ngModel",t.parameterName)}}function pQe(e,o){e&1&&(l(0,"th",10),c(1),p(2,"translate"),p(3,"translate"),r()),e&2&&(a(),se(" ",m(2,2,"labels.inputs.Parameter")," ",m(3,4,"labels.inputs.Value")," "))}function mQe(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"),Nc("ngModelChange",function(i){let s=z(t).$implicit;return Rc(s.parameterValue,i)||(s.parameterValue=i),H(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")),Bc("ngModel",t.parameterValue)}}function dQe(e,o){e&1&&b(0,"th",10)}function uQe(e,o){if(e&1){let t=Y();l(0,"td",11)(1,"button",13),p(2,"translate"),R("click",function(){let i=z(t).index,s=w();return H(s.deleteParameter(i))}),b(3,"fa-icon",14),r()()}e&2&&(a(),g("matTooltip",m(2,1,"labels.buttons.Delete")))}function fQe(e,o){e&1&&b(0,"tr",15)}function hQe(e,o){e&1&&b(0,"tr",16)}var s1=(()=>{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}),_Qe=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){z(t);let s=w();return H(s.runSelectedJobs(i))}),r()()}if(e&2){let t=o.$implicit;a(),g("displayName",t.displayName)("jobId",t.jobId)("jobParameters",t.jobParameters)}}function vQe(e,o){if(e&1&&(l(0,"mat-list-item",2),c(1),r()),e&2){let t=o.$implicit;g("ngClass",Nt(2,_Qe,t.status)),a(),v(" ",t.message," ")}}var ob=(()=>{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(s1,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,vQe,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,gQe)),a(),v(" ",m(17,8,"labels.buttons.Close Custom Parameters")," "))},dependencies:[ue,co,fe,ve,Un,ho,s1,xl,Vo,Nn,ke,$n,he],styles:[".message[_ngcontent-%COMP%]{height:auto;font-weight:500;color:#f44366}.message.green[_ngcontent-%COMP%]{color:#32cd32}"]})}}return e})();function xQe(e,o){if(e&1){let t=Y();l(0,"button",11),R("click",function(){z(t);let i=w();return H(i.show=!i.show)}),c(1),r()}if(e&2){let t=w();a(),v(" ",t.buttonLabel()," ")}}var ab=(()=>{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,xQe,2,1,"button",8),r()()()()(),l(28,"mat-dialog-actions",9)(29,"button",10),c(30),p(31,"translate"),r()()),n&2){let s=xe(24);a(2),v("",m(3,13,"labels.inputs.Job Name"),":"),a(2),v("",i.job.displayName,` diff --git a/browser/recurring-deposits.module-HZHXUGE6.js b/browser/recurring-deposits.module-AYKF23UQ.js similarity index 99% rename from browser/recurring-deposits.module-HZHXUGE6.js rename to browser/recurring-deposits.module-AYKF23UQ.js index 9ee83d177..fcb1e5a55 100644 --- a/browser/recurring-deposits.module-HZHXUGE6.js +++ b/browser/recurring-deposits.module-AYKF23UQ.js @@ -1 +1 @@ -import{a as Tn,b as Sn}from"./chunk-G63A5RIG.js";import{a as si}from"./chunk-FHWYEHGD.js";import{$b as ee,$d as Ce,$e as Yn,$f as Wt,Ac as Vn,Ag as ri,Bc as qn,Bd as Kn,Cb as Ge,Cc as Xt,Cd as et,Cg as ci,Da as v,Db as Se,Dc as Gn,Dd as gt,Df as Jn,Ea as P,Eb as I,Ec as Hn,Ef as Xn,Fc as Un,Ff as Zn,G as At,Ga as y,Gc as $n,Gd as ht,H as Ne,Hd as nt,Ia as T,Id as Lt,Ja as f,Jd as Ct,K as _,Kc as Ie,Kd as yt,Kg as Ee,L as S,Lc as w,Lg as pi,M,Md as Ot,Na as Pt,Nb as Jt,Oa as Tt,Od as oe,Pa as St,Pd as xt,Qa as E,Qb as Fn,Qd as Dt,Rd as bt,Re as Qn,Sc as X,Sd as He,T as Yt,Tc as $,Td as It,Ua as o,Ud as Rt,Va as m,Vd as re,Vf as ti,Wa as u,Xa as A,Xc as mt,Ya as ae,Yb as Me,Yc as q,Yd as _t,Zb as Ae,Zc as Z,_ as En,_c as ot,_e as We,_f as ei,ac as ne,ae as ce,ag as ni,bb as Mt,bc as ye,bd as tt,bg as Xe,ca as n,cf as Ke,cg as ii,da as Ve,dd as rt,df as Qe,eb as K,ed as Re,ee as Ue,ef as Ye,fb as ge,fd as zn,ff as Je,gc as N,gd as ct,gf as Zt,gg as pe,hb as r,hc as kn,he as $e,hf as jt,ib as c,ie as ze,if as wt,ja as O,jb as B,jc as W,jd as pt,je as Le,jf as Et,ka as qe,kc as Q,kf as Bt,lb as U,lc as Nn,mc as Pn,md as dt,mf as Ft,na as h,nf as kt,oe as je,pa as De,pb as Bn,pc as Oe,pf as Nt,qb as be,qc as V,qd as st,qf as Vt,qg as ai,ra as x,rg as Ze,sa as D,sb as ve,sd as R,sf as qt,sg as we,ta as z,tb as Pe,td as Y,tf as Gt,ua as L,ud as Ln,va as j,vd as jn,vf as Ht,vg as oi,wa as d,wd as ut,xa as a,ya as i,yd as ft,yf as _e,za as C,zb as Te,zd as Wn}from"./chunk-24R2X6HR.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-XUJ6S2O7.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-XUJ6S2O7.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-RPHEO6YW.js";import{a as si}from"./chunk-DZIULWL5.js";import{$b as ee,$d as Ce,$e as Yn,$f as Wt,Ac as Vn,Ag as ri,Bc as qn,Bd as Kn,Cb as Ge,Cc as Xt,Cd as et,Cg as ci,Da as v,Db as Se,Dc as Gn,Dd as gt,Df as Jn,Ea as P,Eb as I,Ec as Hn,Ef as Xn,Fc as Un,Ff as Zn,G as At,Ga as y,Gc as $n,Gd as ht,H as Ne,Hd as nt,Ia as T,Id as Lt,Ja as f,Jd as Ct,K as _,Kc as Ie,Kd as yt,Kg as Ee,L as S,Lc as w,Lg as pi,M,Md as Ot,Na as Pt,Nb as Jt,Oa as Tt,Od as oe,Pa as St,Pd as xt,Qa as E,Qb as Fn,Qd as Dt,Rd as bt,Re as Qn,Sc as X,Sd as He,T as Yt,Tc as $,Td as It,Ua as o,Ud as Rt,Va as m,Vd as re,Vf as ti,Wa as u,Xa as A,Xc as mt,Ya as ae,Yb as Me,Yc as q,Yd as _t,Zb as Ae,Zc as Z,_ as En,_c as ot,_e as We,_f as ei,ac as ne,ae as ce,ag as ni,bb as Mt,bc as ye,bd as tt,bg as Xe,ca as n,cf as Ke,cg as ii,da as Ve,dd as rt,df as Qe,eb as K,ed as Re,ee as Ue,ef as Ye,fb as ge,fd as zn,ff as Je,gc as N,gd as ct,gf as Zt,gg as pe,hb as r,hc as kn,he as $e,hf as jt,ib as c,ie as ze,if as wt,ja as O,jb as B,jc as W,jd as pt,je as Le,jf as Et,ka as qe,kc as Q,kf as Bt,lb as U,lc as Nn,mc as Pn,md as dt,mf as Ft,na as h,nf as kt,oe as je,pa as De,pb as Bn,pc as Oe,pf as Nt,qb as be,qc as V,qd as st,qf as Vt,qg as ai,ra as x,rg as Ze,sa as D,sb as ve,sd as R,sf as qt,sg as we,ta as z,tb as Pe,td as Y,tf as Gt,ua as L,ud as Ln,va as j,vd as jn,vf as Ht,vg as oi,wa as d,wd as ut,xa as a,ya as i,yd as ft,yf as _e,za as C,zb as Te,zd as Wn}from"./chunk-MTXV3AZ2.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-BYH7T3AF.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-BYH7T3AF.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-NVUDJ6BQ.js b/browser/savings.module-7RWCJ6VZ.js similarity index 99% rename from browser/savings.module-NVUDJ6BQ.js rename to browser/savings.module-7RWCJ6VZ.js index f4c87345e..37081d40e 100644 --- a/browser/savings.module-NVUDJ6BQ.js +++ b/browser/savings.module-7RWCJ6VZ.js @@ -1,2 +1,2 @@ -import{a as qe}from"./chunk-JYAHZ2XX.js";import{a as dn,b as ni,c as Ui,d as qi}from"./chunk-3PHNJT7K.js";import{a as Ve}from"./chunk-PVX767FT.js";import{a as ii,b as ai}from"./chunk-G63A5RIG.js";import{a as Gi}from"./chunk-FHWYEHGD.js";import{$ as $e,$a as Xn,$d as se,$e as ei,$f as me,Aa as vi,Ac as Xt,Ag as Ni,Ba as _i,Bc as De,Bd as Pi,Cc as yt,Cd as X,Cg as Ri,Da as N,Db as ue,Dc as Zt,Dd as mt,Df as rn,Ea as R,Eb as P,Ec as te,Ef as cn,Fc as ee,Ff as sn,G as At,Ga as D,Gc as ne,Gd as vt,H as je,Hd as Z,Ia as b,Id as ae,Ja as h,Jd as st,Jg as Vi,K as g,Kc as ge,Kd as It,Kg as Re,L as S,Lc as y,Lg as Li,M,Md as wt,Na as Pt,Nc as Xe,Oa as Ot,Od as fe,Pa as Dt,Pd as _t,Qa as w,Qd as ht,Rd as xt,Re as ye,Sc as j,Sd as Ce,T as Te,Tc as U,Td as Bt,Ua as r,Ud as Nt,Va as p,Vb as Ke,Vc as xi,Vd as Rt,Vf as Be,Wa as f,Xa as V,Xc as et,Xf as Ii,Ya as Pe,Yc as H,Yd as St,Zc as K,_ as Ci,_a as Jn,_c as nt,_e as Ie,_f as wi,ab as Zn,ae as ve,af as yi,ag as ln,bb as ft,bd as Ct,bg as mn,ca as n,cd as bi,cf as we,cg as Ei,da as We,dd as it,de as Oi,df as Ee,eb as k,ed as ie,ee as tn,ef as Fe,fb as kt,fd as Si,ff as ke,gc as E,gd as at,gf as _e,gg as I,hb as c,hc as Ye,he as en,hf as le,hg as Fi,ib as l,ie as nn,if as Lt,ja as T,jb as Mt,jc as z,jd as ot,je as an,jf as Gt,ka as Qe,kb as hi,kc as q,kf as Ut,lb as tt,lc as Je,mc as ti,md as lt,mf as qt,n as fi,na as A,nf as Ht,oe as on,og as ki,pc as Oe,pf as zt,qb as de,qc as F,qd as rt,qf as jt,qg as Bi,ra as v,rd as Mi,rg as Ne,sa as _,sd as O,se as Di,sf as $t,sg as pe,ta as dt,td as J,tf as Wt,ua as ut,ud as Ze,va as gt,vd as Ai,vf as Qt,vg as pn,wa as d,wd as ct,xa as i,ya as a,yd as bt,yf as Jt,za as C,zd as Ti}from"./chunk-24R2X6HR.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-XUJ6S2O7.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-TR4JWVAF.js";import{a as dn,b as ni,c as Ui,d as qi}from"./chunk-NJTLAUS7.js";import{a as Ve}from"./chunk-AIIL3QLG.js";import{a as ii,b as ai}from"./chunk-RPHEO6YW.js";import{a as Gi}from"./chunk-DZIULWL5.js";import{$ as $e,$a as Xn,$d as se,$e as ei,$f as me,Aa as vi,Ac as Xt,Ag as Ni,Ba as _i,Bc as De,Bd as Pi,Cc as yt,Cd as X,Cg as Ri,Da as N,Db as ue,Dc as Zt,Dd as mt,Df as rn,Ea as R,Eb as P,Ec as te,Ef as cn,Fc as ee,Ff as sn,G as At,Ga as D,Gc as ne,Gd as vt,H as je,Hd as Z,Ia as b,Id as ae,Ja as h,Jd as st,Jg as Vi,K as g,Kc as ge,Kd as It,Kg as Re,L as S,Lc as y,Lg as Li,M,Md as wt,Na as Pt,Nc as Xe,Oa as Ot,Od as fe,Pa as Dt,Pd as _t,Qa as w,Qd as ht,Rd as xt,Re as ye,Sc as j,Sd as Ce,T as Te,Tc as U,Td as Bt,Ua as r,Ud as Nt,Va as p,Vb as Ke,Vc as xi,Vd as Rt,Vf as Be,Wa as f,Xa as V,Xc as et,Xf as Ii,Ya as Pe,Yc as H,Yd as St,Zc as K,_ as Ci,_a as Jn,_c as nt,_e as Ie,_f as wi,ab as Zn,ae as ve,af as yi,ag as ln,bb as ft,bd as Ct,bg as mn,ca as n,cd as bi,cf as we,cg as Ei,da as We,dd as it,de as Oi,df as Ee,eb as k,ed as ie,ee as tn,ef as Fe,fb as kt,fd as Si,ff as ke,gc as E,gd as at,gf as _e,gg as I,hb as c,hc as Ye,he as en,hf as le,hg as Fi,ib as l,ie as nn,if as Lt,ja as T,jb as Mt,jc as z,jd as ot,je as an,jf as Gt,ka as Qe,kb as hi,kc as q,kf as Ut,lb as tt,lc as Je,mc as ti,md as lt,mf as qt,n as fi,na as A,nf as Ht,oe as on,og as ki,pc as Oe,pf as zt,qb as de,qc as F,qd as rt,qf as jt,qg as Bi,ra as v,rd as Mi,rg as Ne,sa as _,sd as O,se as Di,sf as $t,sg as pe,ta as dt,td as J,tf as Wt,ua as ut,ud as Ze,va as gt,vd as Ai,vf as Qt,vg as pn,wa as d,wd as ct,xa as i,ya as a,yd as bt,yf as Jt,za as C,zd as Ti}from"./chunk-MTXV3AZ2.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-BYH7T3AF.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-OWTP5I4O.js b/browser/shares.module-QULUHDBV.js similarity index 99% rename from browser/shares.module-OWTP5I4O.js rename to browser/shares.module-QULUHDBV.js index bc2cc97b9..d18efc4d7 100644 --- a/browser/shares.module-OWTP5I4O.js +++ b/browser/shares.module-QULUHDBV.js @@ -1 +1 @@ -import{$d as _i,$e as at,$f as rt,Ac as ft,Ag as Mt,Bc as St,Bd as Ci,Cc as He,Cd as X,Da as y,Db as Xe,Dc as Ct,Dd as ue,Df as Di,Ea as E,Eb as T,Ec as vt,Ef as yi,Fc as _t,Ff as Ei,G as Oe,Ga as R,Gc as At,Gd as he,H as mt,Hd as Z,Ia as b,Id as Ze,Ja as A,Jd as fe,Jg as Bi,K as f,Kc as pi,Kd as et,L as I,Lc as P,Lg as ki,M,Md as tt,Na as ee,Nb as ut,Oa as te,Od as je,Pa as ie,Pd as Se,Qa as F,Qb as si,Qd as Ce,Rd as ve,Re as it,Sc as ne,Sd as vi,T as pt,Tc as j,Td as Fe,Ua as s,Ud as Ve,Va as l,Vd as gt,Vf as It,Wa as S,Xa as w,Xc as re,Xf as Ii,Yc as G,Yd as be,Zc as oe,_c as Y,_f as Mi,ad as li,ae as bt,af as xt,ag as ot,bb as L,bg as Pi,ca as t,cf as Tt,cg as wi,da as lt,dd as J,df as Dt,eb as O,ed as di,ee as Ai,ef as yt,fb as ri,ff as Et,gc as B,gd as se,gf as nt,hb as o,hc as ci,he as gi,hf as Le,ib as c,ie as bi,if as xe,ja as x,jb as ae,jc as Q,jd as ce,je as xi,jf as Te,ka as dt,kb as oi,kc as W,kf as De,lb as _e,lc as mi,mc as ti,md as me,mf as ye,na as C,nf as Ee,oe as Ti,pc as ht,pf as Ie,qb as Je,qc as N,qd as pe,qf as Me,qg as Ri,ra as v,rd as ui,sa as _,sd as D,sf as Pe,sg as Fi,ta as Be,td as le,tf as we,ua as ke,ud as hi,va as Ne,vd as fi,vf as Re,wa as d,wd as de,xa as a,ya as n,yd as ge,yf as qe,za as h,zd as Si}from"./chunk-24R2X6HR.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{$d as _i,$e as at,$f as rt,Ac as ft,Ag as Mt,Bc as St,Bd as Ci,Cc as He,Cd as X,Da as y,Db as Xe,Dc as Ct,Dd as ue,Df as Di,Ea as E,Eb as T,Ec as vt,Ef as yi,Fc as _t,Ff as Ei,G as Oe,Ga as R,Gc as At,Gd as he,H as mt,Hd as Z,Ia as b,Id as Ze,Ja as A,Jd as fe,Jg as Bi,K as f,Kc as pi,Kd as et,L as I,Lc as P,Lg as ki,M,Md as tt,Na as ee,Nb as ut,Oa as te,Od as je,Pa as ie,Pd as Se,Qa as F,Qb as si,Qd as Ce,Rd as ve,Re as it,Sc as ne,Sd as vi,T as pt,Tc as j,Td as Fe,Ua as s,Ud as Ve,Va as l,Vd as gt,Vf as It,Wa as S,Xa as w,Xc as re,Xf as Ii,Yc as G,Yd as be,Zc as oe,_c as Y,_f as Mi,ad as li,ae as bt,af as xt,ag as ot,bb as L,bg as Pi,ca as t,cf as Tt,cg as wi,da as lt,dd as J,df as Dt,eb as O,ed as di,ee as Ai,ef as yt,fb as ri,ff as Et,gc as B,gd as se,gf as nt,hb as o,hc as ci,he as gi,hf as Le,ib as c,ie as bi,if as xe,ja as x,jb as ae,jc as Q,jd as ce,je as xi,jf as Te,ka as dt,kb as oi,kc as W,kf as De,lb as _e,lc as mi,mc as ti,md as me,mf as ye,na as C,nf as Ee,oe as Ti,pc as ht,pf as Ie,qb as Je,qc as N,qd as pe,qf as Me,qg as Ri,ra as v,rd as ui,sa as _,sd as D,sf as Pe,sg as Fi,ta as Be,td as le,tf as we,ua as ke,ud as hi,va as Ne,vd as fi,vf as Re,wa as d,wd as de,xa as a,ya as n,yd as ge,yf as qe,za as h,zd as Si}from"./chunk-MTXV3AZ2.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};