web-app/browser/savings.module-RVKIUDTW.js

3 lines
286 KiB
JavaScript

import{a as qe}from"./chunk-5FAW3TVF.js";import{a as dn,b as ni,c as Hi,d as zi}from"./chunk-EYLCELJ5.js";import{a as Ve}from"./chunk-YYO6OWED.js";import{a as ii,b as ai}from"./chunk-SQJRZQ4Z.js";import{a as qi}from"./chunk-PNSQTJEK.js";import{$ as $e,$a as Xn,$c as nt,$d as St,Aa as vi,Ac as Xt,Ad as Oi,Ae as on,Af as Qt,Ba as _i,Bc as ye,Bg as pn,Cc as Dt,Cd as yi,Da as N,Db as se,Dc as Zt,Dd as Z,Df as Jt,Ea as R,Eb as P,Ec as te,Ed as mt,Fc as ee,G as At,Ga as y,Gc as ne,Gg as Vi,H as je,Hd as vt,Ia as b,Id as tt,If as rn,Ig as Li,Ja as h,Jd as ae,Jf as cn,K as g,Kc as ue,Kd as st,Kf as sn,L as M,Lc as D,Ld as It,M as A,Na as Pt,Nc as Xe,Nd as wt,Oa as Ot,Pa as yt,Pd as ge,Pg as Gi,Qa as w,Qd as _t,Qg as Re,Rd as ht,Rg as Ui,Sc as j,Sd as xt,T as Te,Tc as U,Td as fe,Ua as r,Ud as Bt,Va as p,Vb as Ke,Vc as Si,Wa as f,Wd as Nt,We as De,Xa as V,Xd as Rt,Ya as Pe,Yc as et,Zc as H,_ as Ci,_a as Jn,_c as Y,_f as Be,ab as Zn,ag as Ei,bb as ft,ca as n,cd as Ct,ce as le,da as We,dd as Mi,de as Ce,df as Ie,dg as ki,eb as F,ed as it,ef as ei,eg as _e,fb as Ft,fd as ie,ff as wi,fg as ln,gc as E,gd as Ai,ge as Di,gg as mn,hb as s,hc as Ye,hd as at,hf as we,hg as Fi,ib as l,if as Ee,ja as T,jb as Mt,jc as z,jf as ke,ka as Qe,kb as hi,kc as q,kd as ot,ke as tn,kf as Fe,lb as K,lc as Je,le as en,lf as ve,lg as I,mb as xi,mc as ti,me as nn,mf as me,mg as Bi,n as fi,na as S,nd as lt,nf as Lt,of as Gt,pc as Oe,pf as Ut,qb as de,qc as k,ra as v,rd as rt,re as an,rf as qt,sa as _,sb as bi,sd as Ti,sf as Ht,ta as dt,td as O,tg as Ni,ua as ut,ud as X,uf as zt,va as gt,vd as Ze,ve as Ii,vf as jt,vg as Ri,wa as d,wd as Pi,xa as i,xd as ct,xf as $t,xg as Ne,ya as a,yf as Wt,yg as pe,za as C,zd as bt}from"./chunk-USJZIUIG.js";import{a as G,b as Q}from"./chunk-PHUH23IY.js";var Yi=()=>({confirm:!0}),un=(()=>{class t{constructor(){this.dialogRef=g(Xt)}static{this.\u0275fac=function(c){return new(c||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(c,o){c&1&&(i(0,"h1",0),r(1),s(2,"translate"),a(),i(3,"div",1)(4,"p"),r(5),s(6,"translate"),a()(),i(7,"mat-dialog-actions",2)(8,"button",3),r(9),s(10,"translate"),a(),i(11,"button",4),r(12),s(13,"translate"),a()()),c&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",F(13,Yi)),n(),f(" ",l(13,11,"labels.buttons.Confirm")," "))},dependencies:[P,O,k,te,ee,ne,Zt,D],encapsulation:2})}}return t})();var Ji=()=>({confirm:!0}),gn=(()=>{class t{constructor(){this.dialogRef=g(Xt)}static{this.\u0275fac=function(c){return new(c||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(c,o){c&1&&(i(0,"h1",0),r(1),s(2,"translate"),a(),i(3,"div",1)(4,"p"),r(5),s(6,"translate"),a()(),i(7,"mat-dialog-actions",2)(8,"button",3),r(9),s(10,"translate"),a(),i(11,"button",4),r(12),s(13,"translate"),a()()),c&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",F(13,Ji)),n(),f(" ",l(13,11,"labels.buttons.Confirm")," "))},dependencies:[P,O,k,te,ee,ne,Zt,D],encapsulation:2})}}return t})();var Xi=()=>({confirm:!0}),He=(()=>{class t{constructor(){this.dialogRef=g(Xt),this.data=g(ye)}static{this.\u0275fac=function(c){return new(c||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(c,o){c&1&&(i(0,"h1",0),r(1),s(2,"translate"),s(3,"translate"),a(),i(4,"div",1)(5,"p"),r(6),s(7,"translate"),s(8,"translate"),s(9,"translate"),a()(),i(10,"mat-dialog-actions",2)(11,"button",3),r(12),s(13,"translate"),a(),i(14,"button",4),r(15),s(16,"translate"),a()()),c&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",F(24,Xi)),n(),f(" ",l(16,22,"labels.buttons.Confirm")," "))},dependencies:[P,O,k,te,ee,ne,Zt,D],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 Zi=()=>["./general"],ta=()=>["./transactions"],ea=()=>["./charges"],na=()=>["./documents"],ia=()=>["./notes"],aa=()=>["./standing-instructions"],oa=t=>["./datatables",t];function ra(t,m){if(t&1&&(C(0,"i",18),s(1,"statusLookup")),t&2){let e=h();d("ngClass",l(1,2,e.savingsAccountData.status.code))("matTooltip",e.savingsAccountData.status.value)}}function ca(t,m){if(t&1&&(C(0,"i",18),s(1,"statusLookup")),t&2){let e=h();d("ngClass",l(1,2,e.savingsAccountData.subStatus.value))("matTooltip",e.savingsAccountData.subStatus.value)}}function sa(t,m){if(t&1&&(i(0,"span",22)(1,"span",19),r(2),s(3,"translate"),a(),i(4,"span"),r(5),a()()),t&2){let e=h();n(2),f("",l(3,2,"labels.inputs.External Id")," :"),n(3),p(e.savingsAccountData.externalId)}}function la(t,m){if(t&1&&(i(0,"span",24),C(1,"mifosx-account-number",33),a()),t&2){let e=h();n(),d("accountNo",ft(e.savingsAccountData.clientAccountNo))}}function ma(t,m){if(t&1&&(i(0,"div",25)(1,"h3"),r(2),s(3,"translate"),a(),i(4,"table",23)(5,"tbody")(6,"tr")(7,"td"),r(8),s(9,"translate"),a(),i(10,"td",34),r(11),s(12,"currency"),a()(),i(13,"tr")(14,"td"),r(15),s(16,"translate"),a(),i(17,"td",34),r(18),s(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(" ",K(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(" ",K(19,16,e.savingsAccountData.summary.availableBalance,e.currency.code,"symbol-narrow","1.2-2")," ")}}function pa(t,m){if(t&1){let e=y();i(0,"button",36),b("click",function(){M(e);let o=h().$implicit,u=h();return A(u.doAction(o.name))}),i(1,"mat-icon",37),C(2,"fa-icon",38),a(),i(3,"span"),r(4),s(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 da(t,m){if(t&1&&S(0,pa,6,5,"button",35),t&2){let e=m.$implicit;d("mifosxHasPermission",e.taskPermissionName)}}function ua(t,m){if(t&1){let e=y();i(0,"button",36),b("click",function(){M(e);let o=h().$implicit,u=h(2);return A(u.doAction(o.name))}),r(1),s(2,"translate"),a()}if(t&2){let e=h().$implicit;n(),f(" ",l(2,1,"labels.menus."+e.name)," ")}}function ga(t,m){if(t&1&&(i(0,"span"),S(1,ua,3,3,"button",35),a()),t&2){let e=m.$implicit;n(),d("mifosxHasPermission",e.taskPermissionName)}}function fa(t,m){if(t&1&&(i(0,"button",39),r(1),s(2,"translate"),a(),i(3,"mat-menu",null,2),ut(5,ga,2,1,"span",null,dt),a()),t&2){let e=w(4),c=h();d("matMenuTriggerFor",e),n(),p(l(2,2,"labels.menus.More")),n(4),gt(c.buttonConfig.options)}}function Ca(t,m){if(t&1&&(i(0,"a",40,7),r(2),s(3,"translate"),a()),t&2){let e=w(1);d("routerLink",F(5,ia))("active",e.isActive),n(2),f(" ",l(3,3,"labels.inputs.Notes")," ")}}function va(t,m){if(t&1&&(i(0,"a",40,8),r(2),s(3,"translate"),a()),t&2){let e=w(1);d("routerLink",F(5,aa))("active",e.isActive),n(2),f(" ",l(3,3,"labels.inputs.Standing Instructions")," ")}}function _a(t,m){if(t&1&&(N(0),v(1,va,4,6,"a",40),R()),t&2){let e=h(2);n(),_(e.savingsAccountData.clientId?1:-1)}}function ha(t,m){if(t&1&&(i(0,"a",40,9),r(2),a()),t&2){let e=w(1),c=h().$implicit;d("routerLink",Ft(3,oa,c.registeredTableName))("active",e.isActive),n(2),f(" ",c.registeredTableName," ")}}function xa(t,m){if(t&1&&S(0,ha,3,5,"a",41),t&2){let e=m.$implicit;d("mifosxHasPermission","READ_"+e.registeredTableName)}}function ba(t,m){if(t&1&&(i(0,"nav",32)(1,"a",40,3),r(3),s(4,"translate"),a(),i(5,"a",40,4),r(7),s(8,"translate"),a(),i(9,"a",40,5),r(11),s(12,"translate"),a(),i(13,"a",40,6),r(15),s(16,"translate"),a(),S(17,Ca,4,6,"a",41)(18,_a,2,1,"ng-container",42),ut(19,xa,1,1,"a",40,dt),a()),t&2){let e=w(2),c=w(6),o=w(10),u=w(14),x=h(),B=w(38);d("tabPanel",B),n(),d("routerLink",F(23,Zi))("active",e.isActive),n(2),f(" ",l(4,15,"labels.inputs.General")," "),n(2),d("routerLink",F(24,ta))("active",c.isActive),n(2),f(" ",l(8,17,"labels.inputs.Transactions")," "),n(2),d("routerLink",F(25,ea))("active",o.isActive),n(2),f(" ",l(12,19,"labels.inputs.Charges")," "),n(2),d("routerLink",F(26,na))("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(ue),this.dialog=g(Dt),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 c=this.savingsAccountData.subStatus;this.buttonConfig=new fn(e,c),this.savingsAccountData.clientId&&this.buttonConfig.addOption({name:"Transfer Funds",taskPermissionName:"CREATE_ACCOUNTTRANSFER"}),this.savingsAccountData.externalId&&Xe.mifosInterbankTransfersEnabled&&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,c=this.router.url.slice(0,this.router.url.indexOf("savings-accounts")+16);this.router.navigateByUrl(c,{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 c={interbank:!1,savingsId:this.savingsAccountData.id,accountType:"fromsavings"};this.router.navigate(["transfer-funds/make-account-transfer"],{relativeTo:this.route,queryParams:c,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(Ce,{data:{deleteContext:`savings account with id: ${this.savingsAccountData.id}`}}).afterClosed().subscribe(c=>{c.delete&&this.savingsService.deleteSavingsAccount(this.savingsAccountData.id).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}calculateInterest(){this.dialog.open(un).afterClosed().subscribe(c=>{c.confirm&&this.savingsService.executeSavingsAccountCommand(this.savingsAccountData.id,"calculateInterest",{}).subscribe(()=>{this.reload()})})}postInterest(){this.dialog.open(gn).afterClosed().subscribe(c=>{c.confirm&&this.savingsService.executeSavingsAccountCommand(this.savingsAccountData.id,"postInterest",{}).subscribe(()=>{this.reload()})})}enableWithHoldTax(){this.dialog.open(He,{data:{isEnable:!0}}).afterClosed().subscribe(c=>{c.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.savingsAccountData.id,"updateWithHoldTax",{withHoldTax:!0}).subscribe(()=>{this.reload()})})}disableWithHoldTax(){this.dialog.open(He,{data:{isEnable:!1}}).afterClosed().subscribe(c=>{c.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.savingsAccountData.id,"updateWithHoldTax",{withHoldTax:!1}).subscribe(()=>{this.reload()})})}unblockSavingsAccount(e){let c=this.dialog.open(Ii,{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"),c.afterClosed().subscribe(u=>{u.confirm&&this.savingsService.executeSavingsAccountCommand(this.savingsAccountData.id,o,{}).subscribe(()=>{this.reload()})})}static{this.\u0275fac=function(c){return new(c||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-account-view"]],decls:40,vars:27,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,"external-id-row"],[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(c,o){if(c&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),s(6,"translate"),a()(),i(7,"div",15)(8,"mat-card-title",16)(9,"div",17)(10,"h3"),v(11,ra,2,4,"i",18),v(12,ca,2,4,"i",18),i(13,"span",19),r(14),s(15,"translate"),a(),i(16,"span",19),C(17,"mifosx-long-text",20),a(),C(18,"mifosx-account-number",21),v(19,sa,6,4,"span",22),a(),i(20,"span",23),r(21),s(22,"translate"),s(23,"translate"),v(24,la,2,2,"span",24),a()(),v(25,ma,20,21,"div",25),i(26,"div",26)(27,"button",27)(28,"mat-icon",28),C(29,"fa-icon",29),a()()()()(),i(30,"mat-menu",null,0),ut(32,da,1,1,"button",30,dt),v(34,fa,7,4),a()()(),i(35,"mat-card-content",31),v(36,ba,21,27,"nav",32),i(37,"mat-tab-nav-panel",null,1),C(39,"router-outlet"),a()()()),c&2){let u=w(31);n(5),d("matTooltip",ft(l(6,19,"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,21,"labels.inputs.Savings Product")," :"),n(3),d("textValue",ft(o.savingsAccountData.savingsProductName)),n(),d("accountNo",ft(o.savingsAccountData.accountNo)),n(),_(o.savingsAccountData.externalId?19:-1),n(2),Pe(" ",l(22,23,"labels.text."+o.entityType)," ",l(23,25,"labels.inputs.name"),": ",o.savingsAccountData.clientName||o.savingsAccountData.groupName," "),n(3),_(o.savingsAccountData.clientAccountNo?24:-1),n(),_(!o.savingsAccountData.status.rejected&&!o.savingsAccountData.status.submittedAndPendingApproval?25:-1),n(2),d("matMenuTriggerFor",u),n(5),gt(o.buttonConfig.singleButtons),n(2),_(o.buttonConfig.options&&!o.savingsAccountData.subStatus.block?34:-1),n(2),_(o.isActive?36:-1)}},dependencies:[P,de,O,q,X,ct,Rt,Oi,Pi,yi,ge,Ze,Gi,Vi,Oe,nn,an,St,en,tn,rn,cn,Je,sn,Ye,se,D,ln],styles:["mat-card-title[_ngcontent-%COMP%]{display:flex}"]})}}return t})();var Sa=()=>[50,100,200],Ma=()=>["export"],Aa=t=>[t,"reciept"],Ta=t=>["/","journal-entry","view",t];function Pa(t,m){if(t&1){let e=y();i(0,"div",4)(1,"mat-checkbox",31),b("click",function(){M(e);let o=h();return A(o.hideReversed())}),r(2),s(3,"translate"),a(),i(4,"mat-checkbox",31),b("click",function(){M(e);let o=h();return A(o.hideAccruals())}),r(5),s(6,"translate"),a(),i(7,"button",32),r(8),s(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",F(12,Ma)),n(),f(" ",l(9,10,"labels.buttons.Export")," ")}}function Oa(t,m){t&1&&(i(0,"th",33),r(1,"#"),a())}function ya(t,m){if(t&1){let e=y();i(0,"td",34),b("click",function(){let o=M(e).$implicit,u=h();return A(u.showTransactions(o))}),r(1),a()}if(t&2){let e=m.index;n(),f(" ",e+1," ")}}function Da(t,m){t&1&&(i(0,"th",33),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Id")))}function Ia(t,m){if(t&1){let e=y();i(0,"td",35),b("click",function(){let o=M(e).$implicit,u=h();return A(u.showTransactions(o))}),r(1),a()}if(t&2){let e=m.$implicit,c=h();d("ngClass",c.savingsTransactionColor(e)),n(),f(" ",e.id," ")}}function wa(t,m){t&1&&(i(0,"th",36),r(1),s(2,"translate"),a()),t&2&&(n(),f(" ",l(2,1,"labels.inputs.Transaction Date")," "))}function Ea(t,m){if(t&1){let e=y();i(0,"td",37),b("click",function(){let o=M(e).$implicit,u=h();return A(u.showTransactions(o))}),r(1),s(2,"dateFormat"),a()}if(t&2){let e=m.$implicit,c=h();d("ngClass",c.savingsTransactionColor(e)),n(),f(" ",l(2,2,e.date)," ")}}function ka(t,m){t&1&&(i(0,"th",33),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.External Id")))}function Fa(t,m){if(t&1&&(i(0,"td",38),C(1,"mifosx-external-identifier",39),a()),t&2){let e=m.$implicit,c=h();d("ngClass",c.savingsTransactionColor(e)),n(),d("externalId",ft(e.externalId))}}function Ba(t,m){t&1&&(i(0,"th",40),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Transaction Type")))}function Na(t,m){if(t&1){let e=y();i(0,"td",37),b("click",function(){let o=M(e).$implicit,u=h();return A(u.showTransactions(o))}),r(1),s(2,"translateKey"),a()}if(t&2){let e=m.$implicit,c=h();d("ngClass",c.savingsTransactionColor(e)),n(),f(" ",Mt(2,2,e.transactionType.value,"catalogs")," ")}}function Ra(t,m){t&1&&(i(0,"th",41),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Debit")))}function Va(t,m){if(t&1){let e=y();i(0,"td",42),b("click",function(){let o=M(e).$implicit,u=h();return A(u.showTransactions(o))}),r(1),s(2,"currency"),a()}if(t&2){let e=m.$implicit,c=h();d("ngClass",c.savingsTransactionColor(e)),n(),f(" ",c.isDebit(e.transactionType)?K(2,2,e.amount,(c.currency==null?null:c.currency.code)||"USD","symbol-narrow","1.2-2"):"N/A"," ")}}function La(t,m){t&1&&(i(0,"th",41),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Credit")))}function Ga(t,m){if(t&1){let e=y();i(0,"td",42),b("click",function(){let o=M(e).$implicit,u=h();return A(u.showTransactions(o))}),r(1),s(2,"currency"),a()}if(t&2){let e=m.$implicit,c=h();d("ngClass",c.savingsTransactionColor(e)),n(),f(" ",c.isDebit(e.transactionType)?"N/A":K(2,2,e.amount,(c.currency==null?null:c.currency.code)||"USD","symbol-narrow","1.2-2")," ")}}function Ua(t,m){t&1&&(i(0,"th",41),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Balance")))}function qa(t,m){if(t&1){let e=y();i(0,"td",42),b("click",function(){let o=M(e).$implicit,u=h();return A(u.showTransactions(o))}),r(1),s(2,"currency"),a()}if(t&2){let e=m.$implicit,c=h();d("ngClass",c.savingsTransactionColor(e)),n(),f(" ",K(2,2,e.runningBalance,(c.currency==null?null:c.currency.code)||"USD","symbol-narrow","1.2-2")," ")}}function Ha(t,m){t&1&&(i(0,"th",40),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Actions")))}function za(t,m){if(t&1){let e=y();i(0,"button",45),b("click",function(o){M(e);let u=h(2).$implicit,x=h();return A(x.undoTransaction(u,o))}),i(1,"mat-icon"),C(2,"fa-icon",52),a(),i(3,"span"),r(4),s(5,"translate"),a()()}t&2&&(n(4),p(l(5,1,"tooltips.Undo Transaction")))}function ja(t,m){t&1&&(i(0,"span"),S(1,za,6,3,"button",51),a()),t&2&&(n(),d("mifosxHasPermission","ADJUSTTRANSACTION_SAVINGSACCOUNT"))}function $a(t,m){if(t&1){let e=y();i(0,"td",43)(1,"button",44)(2,"mat-icon"),r(3,"more_vert"),a()(),i(4,"mat-menu",null,0)(6,"button",45),b("click",function(){let o=M(e).$implicit,u=h();return A(u.showTransactions(o))}),i(7,"mat-icon"),C(8,"fa-icon",46),a(),i(9,"span"),r(10),s(11,"translate"),a()(),v(12,ja,2,1,"span"),i(13,"button",47),b("click",function(o){M(e);let u=h();return A(u.routeEdit(o))}),i(14,"mat-icon"),C(15,"fa-icon",48),a(),i(16,"span"),r(17),s(18,"translate"),a()(),i(19,"button",49),b("click",function(o){M(e);let u=h();return A(u.routeEdit(o))}),i(20,"mat-icon"),C(21,"fa-icon",50),a(),i(22,"span"),r(23),s(24,"translate"),a()()()()}if(t&2){let e=m.$implicit,c=w(5);n(),d("matMenuTriggerFor",c),n(9),p(l(11,7,"labels.text.View Transaction")),n(2),_(e.reversed?-1:12),n(),d("routerLink",Ft(13,Aa,e.id)),n(4),p(l(18,9,"tooltips.View Receipts")),n(2),d("routerLink",Ft(15,Ta,"S"+e.id)),n(4),p(l(24,11,"tooltips.View Journal Entries"))}}function Wa(t,m){t&1&&C(0,"tr",53)}function Qa(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(Dt),this.dateUtils=g(j),this.currency=null,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.currency=e.savingsAccountData.currency||null}),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,c){let o=this.transactionsData;(c||e)&&(o=this.transactionsData.filter(u=>!(e&&u.reversed)&&!(c&&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,c=this.router.url;this.router.navigateByUrl(`/clients/${e}/savings-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([c]))}static{this.\u0275fac=function(c){return new(c||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-transactions-tab"]],viewQuery:function(c,o){if(c&1&&(Pt(De,7),Pt(ei,7)),c&2){let u;Ot(u=yt())&&(o.paginator=u.first),Ot(u=yt())&&(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(c,o){c&1&&(i(0,"div",1)(1,"div",2)(2,"div",3),v(3,Pa,10,13,"div",4),a(),i(4,"table",5),N(5,6),S(6,Oa,2,0,"th",7)(7,ya,2,1,"td",8),R(),N(8,9),S(9,Da,3,3,"th",7)(10,Ia,2,2,"td",10),R(),N(11,11),S(12,wa,3,3,"th",12)(13,Ea,3,4,"td",13),R(),N(14,14),S(15,ka,3,3,"th",7)(16,Fa,2,3,"td",15),R(),N(17,16),S(18,Ba,3,3,"th",17)(19,Na,3,5,"td",13),R(),N(20,18),S(21,Ra,3,3,"th",19)(22,Va,3,7,"td",20),R(),N(23,21),S(24,La,3,3,"th",19)(25,Ga,3,7,"td",20),R(),N(26,22),S(27,Ua,3,3,"th",19)(28,qa,3,7,"td",20),R(),N(29,23),S(30,Ha,3,3,"th",17)(31,$a,25,17,"td",24),R(),S(32,Wa,1,0,"tr",25)(33,Qa,1,0,"tr",26),a(),C(34,"mat-paginator",27),a(),i(35,"div",28)(36,"div",29),C(37,"i",30),r(38),s(39,"translate"),a()()()),c&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",F(11,Sa)),n(),d("hidden",o.accountWithTransactions),n(3),f(" ",l(39,9,"labels.text.No transaction was found")," "))},dependencies:[P,de,O,Y,Ai,q,k,fe,Rt,Lt,ei,qt,Ut,Ht,wi,Gt,zt,Be,Oe,nn,an,en,tn,St,jt,Wt,$t,Qt,De,se,Bt,D,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}.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(c){return new(c||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(c,o){c&1&&(i(0,"div",0),C(1,"mifosx-entity-datatable-tab",1),a()),c&2&&(n(),d("entityId",o.entityId)("multiRowDatatableFlag",o.multiRowDatatableFlag)("entityDatatable",o.entityDatatable))},dependencies:[P,O,pn],encapsulation:2})}}return t})();var Ka=()=>["../../"];function Ya(t,m){t&1&&(i(0,"mat-error"),r(1),s(2,"translate"),s(3,"translate"),i(4,"strong"),r(5),s(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,c=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:c});this.savingsService.executeSavingsAccountCommand(this.accountId,"approve",x).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(c){return new(c||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(c,o){if(c&1){let u=y();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return M(u),A(o.submit())}),i(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){M(u);let B=w(12);return A(B.open())}),i(6,"mat-label"),r(7),s(8,"translate"),a(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,Ya,7,9,"mat-error"),a(),i(14,"mat-form-field")(15,"mat-label"),r(16),s(17,"translate"),a(),C(18,"textarea",7),a()()(),i(19,"mat-card-actions",8)(20,"button",9),r(21),s(22,"translate"),a(),i(23,"button",10),r(24),s(25,"translate"),a()()()()()}if(c&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",F(20,Ka)),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,Y,nt,lt,at,ot,q,X,ct,bt,tt,Z,mt,vt,st,ht,xt,_t,k,ae,D],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var Ja=()=>["../../"];function Xa(t,m){t&1&&(i(0,"mat-error"),r(1),s(2,"translate"),s(3,"translate"),i(4,"strong"),r(5),s(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,c=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:c});this.savingsService.executeSavingsAccountCommand(this.accountId,"reject",x).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(c){return new(c||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(c,o){if(c&1){let u=y();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return M(u),A(o.submit())}),i(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){M(u);let B=w(12);return A(B.open())}),i(6,"mat-label"),r(7),s(8,"translate"),a(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,Xa,7,9,"mat-error"),a(),i(14,"mat-form-field")(15,"mat-label"),r(16),s(17,"translate"),a(),C(18,"textarea",7),a()()(),i(19,"mat-card-actions",8)(20,"button",9),r(21),s(22,"translate"),a(),i(23,"button",10),r(24),s(25,"translate"),a()()()()()}if(c&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",F(20,Ja)),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,Y,nt,lt,at,ot,q,X,ct,bt,tt,Z,mt,vt,st,ht,xt,_t,k,ae,D],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var Za=()=>["../../transactions"];function to(t,m){t&1&&(i(0,"mat-error"),r(1),s(2,"translate"),s(3,"translate"),i(4,"strong"),r(5),s(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,c=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:c});this.savingsService.executeSavingsAccountCommand(this.accountId,"activate",x).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(c){return new(c||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(c,o){if(c&1){let u=y();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return M(u),A(o.submit())}),i(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){M(u);let B=w(12);return A(B.open())}),i(6,"mat-label"),r(7),s(8,"translate"),a(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,to,7,9,"mat-error"),a()()(),i(14,"mat-card-actions",7)(15,"button",8),r(16),s(17,"translate"),a(),i(18,"button",9),r(19),s(20,"translate"),a()()()()()}if(c&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",F(17,Za)),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,Y,nt,lt,at,ot,q,X,ct,bt,tt,Z,mt,vt,st,ht,xt,_t,k,D],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var eo=()=>["../../"],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(c){return new(c||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(c,o){c&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),s(7,"translate"),a(),C(8,"textarea",3),a()(),i(9,"mat-card-actions",4)(10,"button",5),r(11),s(12,"translate"),a(),i(13,"button",6),r(14),s(15,"translate"),a()()()()()),c&2&&(n(2),d("formGroup",o.undoApprovalSavingsAccountForm),n(4),p(l(7,6,"labels.inputs.Note")),n(4),d("routerLink",F(12,eo)),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,Y,nt,at,ot,q,X,ct,bt,tt,Z,st,k,ae,D],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var no=()=>["../../"];function io(t,m){t&1&&(i(0,"mat-error"),r(1),s(2,"translate"),s(3,"translate"),i(4,"strong"),r(5),s(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,c=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:c});this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"postInterestAsOn",x).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(c){return new(c||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(c,o){if(c&1){let u=y();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return M(u),A(o.submit())}),i(3,"mat-card-content")(4,"mat-form-field",3),b("click",function(){M(u);let B=w(11);return A(B.open())}),i(5,"mat-label"),r(6),s(7,"translate"),a(),C(8,"input",4)(9,"mat-datepicker-toggle",5)(10,"mat-datepicker",null,0),v(12,io,7,9,"mat-error"),a()(),i(13,"mat-card-actions",6)(14,"button",7),r(15),s(16,"translate"),a(),i(17,"button",8),r(18),s(19,"translate"),a()()()()()}if(c&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",F(17,no)),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,Y,nt,lt,at,ot,q,X,ct,bt,tt,Z,mt,vt,st,ht,xt,_t,k,D],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var ao=()=>["../../"];function oo(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 ro(t,m){t&1&&(i(0,"mat-error"),r(1),s(2,"translate"),s(3,"translate"),i(4,"strong"),r(5),s(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,c=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:c});this.savingsService.executeSavingsAccountCommand(this.accountId,"assignSavingsOfficer",x).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(c){return new(c||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(c,o){if(c&1){let u=y();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return M(u),A(o.submit())}),i(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),r(7),s(8,"translate"),a(),i(9,"mat-select",5),ut(10,oo,2,2,"mat-option",6,dt),a()(),i(12,"mat-form-field",7),b("click",function(){M(u);let B=w(19);return A(B.open())}),i(13,"mat-label"),r(14),s(15,"translate"),a(),C(16,"input",8)(17,"mat-datepicker-toggle",9)(18,"mat-datepicker",null,0),v(20,ro,7,9,"mat-error"),a()()(),i(21,"mat-card-actions",10)(22,"button",11),r(23),s(24,"translate"),a(),i(25,"button",12),r(26),s(27,"translate"),a()()()()()}if(c&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",F(20,ao)),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,Y,nt,lt,at,ot,q,X,ct,bt,tt,Z,mt,vt,st,wt,It,ht,xt,_t,k,D],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var co=()=>["../../"];function so(t,m){t&1&&(i(0,"mat-error"),r(1),s(2,"translate"),s(3,"translate"),i(4,"strong"),r(5),s(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,c=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:c});this.savingsService.executeSavingsAccountCommand(this.accountId,"unassignSavingsOfficer",x).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(c){return new(c||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(c,o){if(c&1){let u=y();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return M(u),A(o.submit())}),i(3,"mat-card-content")(4,"mat-form-field",3),b("click",function(){M(u);let B=w(11);return A(B.open())}),i(5,"mat-label"),r(6),s(7,"translate"),a(),C(8,"input",4)(9,"mat-datepicker-toggle",5)(10,"mat-datepicker",null,0),v(12,so,7,9,"mat-error"),a()(),i(13,"mat-card-actions",6)(14,"button",7),r(15),s(16,"translate"),a(),i(17,"button",8),r(18),s(19,"translate"),a()()()()()}if(c&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",F(17,co)),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,Y,nt,lt,at,ot,q,X,ct,bt,tt,Z,mt,vt,st,ht,xt,_t,k,D],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var lo=()=>["../../"];function mo(t,m){t&1&&(i(0,"mat-error"),r(1),s(2,"translate"),s(3,"translate"),i(4,"strong"),r(5),s(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,c=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:c});this.savingsService.executeSavingsAccountCommand(this.accountId,"withdrawnByApplicant",x).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(c){return new(c||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(c,o){if(c&1){let u=y();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return M(u),A(o.submit())}),i(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){M(u);let B=w(12);return A(B.open())}),i(6,"mat-label"),r(7),s(8,"translate"),a(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,mo,7,9,"mat-error"),a(),i(14,"mat-form-field")(15,"mat-label"),r(16),s(17,"translate"),a(),C(18,"textarea",7),a()()(),i(19,"mat-card-actions",8)(20,"button",9),r(21),s(22,"translate"),a(),i(23,"button",10),r(24),s(25,"translate"),a()()()()()}if(c&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",F(20,lo)),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,Y,nt,lt,at,ot,q,X,ct,bt,tt,Z,mt,vt,st,ht,xt,_t,k,ae,D],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var po=()=>["../../transactions"];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.name+" ("+e.currency.name+")"," ")}}function go(t,m){t&1&&(i(0,"mat-error"),r(1),s(2,"translate"),s(3,"translate"),i(4,"strong"),r(5),s(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 fo(t,m){t&1&&(i(0,"mat-error"),r(1),s(2,"translate"),s(3,"translate"),i(4,"strong"),r(5),s(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 Co(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 vo(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 _o(t,m){t&1&&(i(0,"mat-error"),r(1),s(2,"translate"),s(3,"translate"),i(4,"strong"),r(5),s(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 ho(t,m){if(t&1){let e=y();i(0,"mat-form-field",13),b("click",function(){M(e);let o=w(7);return A(o.open())}),i(1,"mat-label"),r(2),s(3,"translate"),a(),C(4,"input",14)(5,"mat-datepicker-toggle",15)(6,"mat-datepicker",null,0),v(8,_o,7,9,"mat-error"),a()}if(t&2){let e=w(7),c=h(2);n(2),p(l(3,6,"labels.inputs.Due for collection on")),n(2),d("min",c.minDate)("max",c.maxDate)("matDatepicker",e),n(),d("for",e),n(3),_(c.savingsChargeForm.controls.dueDate.hasError("required")?8:-1)}}function xo(t,m){t&1&&(i(0,"mat-error"),r(1),s(2,"translate"),s(3,"translate"),i(4,"strong"),r(5),s(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 bo(t,m){if(t&1){let e=y();i(0,"mat-form-field",13),b("click",function(){M(e);let o=w(7);return A(o.open())}),i(1,"mat-label"),r(2),s(3,"translate"),a(),C(4,"input",16)(5,"mat-datepicker-toggle",15)(6,"mat-datepicker",null,1),v(8,xo,7,9,"mat-error"),a()}if(t&2){let e=w(7),c=h(2);n(2),p(l(3,6,"labels.inputs.Due On")),n(2),d("min",c.minDate)("max",c.maxDate)("matDatepicker",e),n(),d("for",e),n(3),_(c.savingsChargeForm.controls.feeOnMonthDay.hasError("required")?8:-1)}}function So(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),s(3,"translate"),a(),C(4,"input",17),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Repeats Every")))}function Mo(t,m){if(t&1&&(i(0,"div",4)(1,"mat-form-field")(2,"mat-label"),r(3),s(4,"translate"),a(),C(5,"input",10),v(6,fo,7,9,"mat-error"),a(),i(7,"mat-form-field")(8,"mat-label"),r(9),s(10,"translate"),a(),i(11,"mat-select",11),ut(12,Co,2,2,"mat-option",6,dt),a()(),i(14,"mat-form-field")(15,"mat-label"),r(16),s(17,"translate"),a(),i(18,"mat-select",12),ut(19,vo,2,2,"mat-option",6,dt),a()(),v(21,ho,9,8,"mat-form-field"),v(22,bo,9,8,"mat-form-field"),v(23,So,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(c=>{this.chargeDetails=c;let o=c.chargeTimeType.id;(c.chargeTimeType.value==="Withdrawal Fee"||c.chargeTimeType.value==="Saving No Activity Fee")&&(this.chargeDetails.dueDateNotRequired=!0),(c.chargeTimeType.value==="Annual Fee"||c.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(c.feeInterval,H.required)):this.savingsChargeForm.removeControl("feeInterval"),this.savingsChargeForm.patchValue({amount:c.amount,chargeCalculationType:c.chargeCalculationType.id,chargeTimeType:c.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 c="MMMM-dd";if(e.monthDayFormat=c,e.feeOnMonthDay){let o=this.savingsChargeForm.value.feeOnMonthDay;e.feeOnMonthDay=this.dateUtils.formatDate(o,c)}}else{let c=this.settingsService.dateFormat;if(e.dateFormat=c,e.dueDate){let o=this.savingsChargeForm.value.dueDate;e.dueDate=this.dateUtils.formatDate(o,c)}}this.savingsService.createSavingsCharge(this.savingAccountId,"charges",e).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(c){return new(c||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(c,o){c&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),s(8,"translate"),a(),i(9,"mat-select",5),ut(10,uo,2,2,"mat-option",6,dt),a(),v(12,go,7,9,"mat-error"),a(),v(13,Mo,24,13,"div",4),a(),i(14,"mat-card-actions",7)(15,"button",8),r(16),s(17,"translate"),a(),i(18,"button",9),r(19),s(20,"translate"),a()()()()()()),c&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",F(14,po)),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,Y,nt,lt,at,ot,q,X,ct,bt,tt,Z,mt,vt,st,wt,It,ht,xt,_t,k,D],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]})}}return t})();var Ao=()=>["../../transactions"];function To(t,m){t&1&&(i(0,"mat-card-title",2),r(1),s(2,"translate"),a()),t&2&&(n(),f(" ",l(2,1,"labels.heading.Withdraw Money From Saving Account")," "))}function Po(t,m){t&1&&(i(0,"mat-card-title",2),r(1),s(2,"translate"),a()),t&2&&(n(),f(" ",l(2,1,"labels.heading.Deposit Money To Saving Account")," "))}function Oo(t,m){t&1&&(i(0,"mat-error"),r(1),s(2,"translate"),s(3,"translate"),i(4,"strong"),r(5),s(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 yo(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 Do(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),s(3,"translate"),a(),C(4,"input",19),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Account Number")))}function Io(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),s(3,"translate"),a(),C(4,"input",20),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Cheque")))}function wo(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),s(3,"translate"),a(),C(4,"input",21),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Routing Code")))}function Eo(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),s(3,"translate"),a(),C(4,"input",22),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Receipt Number")))}function ko(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),s(3,"translate"),a(),C(4,"input",23),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Bank")))}var yn=(()=>{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,c=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:c});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(c){return new(c||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-transactions"]],decls:48,vars:39,consts:[["dueDatePicker",""],[1,"container","mat-elevation-z8"],[1,"form-heading"],[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(c,o){if(c&1){let u=y();i(0,"div",1)(1,"mat-card"),v(2,To,3,3,"mat-card-title",2),v(3,Po,3,3,"mat-card-title",2),i(4,"form",3),b("ngSubmit",function(){return M(u),A(o.submit())}),i(5,"mat-card-content")(6,"div",4)(7,"mat-form-field",5),b("click",function(){M(u);let B=w(14);return A(B.open())}),i(8,"mat-label"),r(9),s(10,"translate"),a(),C(11,"input",6)(12,"mat-datepicker-toggle",7)(13,"mat-datepicker",null,0),v(15,Oo,7,9,"mat-error"),a(),C(16,"mifosx-input-amount",8),i(17,"mat-form-field")(18,"mat-label"),r(19),s(20,"translate"),a(),i(21,"mat-select",9),ut(22,yo,2,2,"mat-option",10,dt),a()(),i(24,"div",11)(25,"span",12),b("click",function(){return M(u),A(o.addPaymentDetails())}),i(26,"mat-slide-toggle")(27,"div",13)(28,"span",14),r(29),s(30,"translate"),a()()()()(),v(31,Do,5,3,"mat-form-field"),v(32,Io,5,3,"mat-form-field"),v(33,wo,5,3,"mat-form-field"),v(34,Eo,5,3,"mat-form-field"),v(35,ko,5,3,"mat-form-field"),i(36,"mat-form-field")(37,"mat-label"),r(38),s(39,"translate"),a(),C(40,"textarea",15),a(),i(41,"mat-card-actions",16)(42,"button",17),r(43),s(44,"translate"),a(),i(45,"button",18),r(46),s(47,"translate"),a()()()()()()()}if(c&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",F(38,Ao)),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,Y,nt,lt,at,ot,q,X,ct,bt,tt,Z,mt,vt,st,wt,It,ht,xt,_t,k,Re,Ie,ae,D],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}.form-heading[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:500;margin-bottom:.5rem}"]})}}return t})();var Fo=()=>["../../"];function Bo(t,m){t&1&&(i(0,"mat-error"),r(1),s(2,"translate"),s(3,"translate"),i(4,"strong"),r(5),s(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 No(t,m){t&1&&(i(0,"mat-form-field",13)(1,"mat-label"),r(2),s(3,"translate"),a(),C(4,"input",18),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Transaction Amount")))}function Ro(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 Vo(t,m){if(t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),s(3,"translate"),a(),i(4,"mat-select",19),ut(5,Ro,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 Lo(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),s(3,"translate"),a(),C(4,"input",21),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Account Number")))}function Go(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),s(3,"translate"),a(),C(4,"input",22),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Cheque")))}function Uo(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),s(3,"translate"),a(),C(4,"input",23),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Routing Code")))}function qo(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),s(3,"translate"),a(),C(4,"input",24),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Receipt Number")))}function Ho(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),s(3,"translate"),a(),C(4,"input",25),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Bank")))}function zo(t,m){if(t&1){let e=y();i(0,"div",3),v(1,No,5,3,"mat-form-field",13),v(2,Vo,7,3,"mat-form-field"),i(3,"div",14)(4,"span",15),b("click",function(){M(e);let o=h();return A(o.addPaymentDetails())}),i(5,"mat-slide-toggle")(6,"div",16)(7,"span",17),r(8),s(9,"translate"),a()()()()(),v(10,Lo,5,3,"mat-form-field"),v(11,Go,5,3,"mat-form-field"),v(12,Uo,5,3,"mat-form-field"),v(13,qo,5,3,"mat-form-field"),v(14,Ho,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 Dn=(()=>{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,c=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:c});this.savingsService.executeSavingsAccountCommand(this.accountId,"close",x).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(c){return new(c||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(c,o){if(c&1){let u=y();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return M(u),A(o.submit())}),i(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){M(u);let B=w(12);return A(B.open())}),i(6,"mat-label"),r(7),s(8,"translate"),a(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,Bo,7,9,"mat-error"),a(),i(14,"mat-checkbox",7),r(15),s(16,"translate"),a(),i(17,"mat-checkbox",8),r(18),s(19,"translate"),a(),v(20,zo,15,11,"div",3),i(21,"mat-form-field")(22,"mat-label"),r(23),s(24,"translate"),a(),C(25,"textarea",9),a()()(),i(26,"mat-card-actions",10)(27,"button",11),r(28),s(29,"translate"),a(),i(30,"button",12),r(31),s(32,"translate"),a()()()()()}if(c&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",F(27,Fo)),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,Y,nt,lt,at,ot,q,X,ct,bt,tt,Z,mt,vt,st,wt,It,ht,xt,_t,k,fe,Ie,ae,D],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var jo=()=>["../../"];function $o(t,m){t&1&&(i(0,"mat-error"),r(1),s(2,"translate"),s(3,"translate"),i(4,"strong"),r(5),s(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 Wo(t,m){t&1&&(i(0,"mat-error"),r(1),s(2,"translate"),s(3,"translate"),i(4,"strong"),r(5),s(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(c=>{c.name==="Annual fee - INR"&&(this.chargeId=c.id,this.applyAnnualFeesForm.get("amount").patchValue(c.amount))})}submit(){let e=this.applyAnnualFeesForm.value,c=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:c});this.savingsService.executeSavingsAccountChargesCommand(this.accountId,"paycharge",x,this.chargeId).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(c){return new(c||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(c,o){if(c&1){let u=y();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return M(u),A(o.submit())}),i(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){M(u);let B=w(12);return A(B.open())}),i(6,"mat-label"),r(7),s(8,"translate"),a(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,$o,7,9,"mat-error"),a(),i(14,"mat-form-field")(15,"mat-label"),r(16),s(17,"translate"),a(),C(18,"input",7),v(19,Wo,7,9,"mat-error"),a()()(),i(20,"mat-card-actions",8)(21,"button",9),r(22),s(23,"translate"),a(),i(24,"button",10),r(25),s(26,"translate"),a()()()()()}if(c&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",F(21,jo)),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,Y,nt,lt,at,ot,q,X,ct,bt,tt,Z,mt,vt,st,ht,xt,_t,k,D],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var Qo=()=>["../../transactions"];function Ko(t,m){t&1&&(i(0,"mat-card-title"),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.heading.Hold Amount")))}function Yo(t,m){t&1&&(i(0,"mat-card-title"),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.heading.Block Savings Account")))}function Jo(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 Xo(t,m){t&1&&(i(0,"mat-error"),r(1),s(2,"translate"),s(3,"translate"),i(4,"strong"),r(5),s(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 Zo(t,m){t&1&&(i(0,"mat-error"),r(1),s(2,"translate"),s(3,"translate"),i(4,"strong"),r(5),s(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 tr(t,m){if(t&1){let e=y();i(0,"mat-form-field",11),b("click",function(){M(e);let o=w(7);return A(o.open())}),i(1,"mat-label"),r(2),s(3,"translate"),a(),C(4,"input",12)(5,"mat-datepicker-toggle",13)(6,"mat-datepicker",null,0),v(8,Zo,7,9,"mat-error"),a()}if(t&2){let e=w(7),c=h();n(2),p(l(3,6,"labels.inputs.Transaction Date")),n(2),d("min",c.minDate)("max",c.maxDate)("matDatepicker",e),n(),d("for",e),n(3),_(c.manageSavingsAccountForm.controls.transactionDate.hasError("required")?8:-1)}}function er(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(Di),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(c=>{c.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="",c={};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)),c=Q(G({},o),{dateFormat:x,locale:u}),e="holdAmount",c.transactionAmount=c.transactionAmount*1,this.savingsService.executeSavingsAccountTransactionsCommand(this.savingAccountId,e,c).subscribe(Yt=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}else c=G({},this.manageSavingsAccountForm.value),e="block",this.transactionType.blockdeposit?e="blockCredit":this.transactionType.blockwithdrawal&&(e="blockDebit"),this.savingsService.executeSavingsAccountCommand(this.savingAccountId,e,c).subscribe(o=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(c){return new(c||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(c,o){c&1&&(i(0,"div",1)(1,"mat-card"),v(2,Ko,3,3,"mat-card-title"),v(3,Yo,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),s(9,"translate"),a(),i(10,"mat-select",5),ut(11,Jo,2,2,"mat-option",6,dt),a(),v(13,Xo,7,9,"mat-error"),a(),v(14,tr,9,8,"mat-form-field",4),v(15,er,1,4,"mifosx-input-amount",7),a(),i(16,"mat-card-actions",8)(17,"button",9),r(18),s(19,"translate"),a(),i(20,"button",10),r(21),s(22,"translate"),a()()()()()),c&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",F(17,Qo)),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,Y,nt,lt,at,ot,q,X,ct,bt,tt,Z,mt,vt,st,wt,It,ht,xt,_t,k,Ze,Re,D],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]})}}return t})();function nr(t,m){t&1&&C(0,"mifosx-approve-savings-account")}function ir(t,m){t&1&&C(0,"mifosx-reject-savings-account")}function ar(t,m){t&1&&C(0,"mifosx-activate-savings-account")}function or(t,m){t&1&&C(0,"mifosx-undo-approval-savings-account")}function rr(t,m){t&1&&C(0,"mifosx-post-interest-as-on-savings-account")}function cr(t,m){t&1&&C(0,"mifosx-savings-account-assign-staff")}function sr(t,m){t&1&&C(0,"mifosx-savings-account-unassign-staff")}function lr(t,m){t&1&&C(0,"mifosx-withdraw-by-client-savings-account")}function mr(t,m){t&1&&C(0,"mifosx-add-charge-savings-account")}function pr(t,m){t&1&&C(0,"mifosx-savings-transactions")}function dr(t,m){t&1&&C(0,"mifosx-close-savings-account")}function ur(t,m){t&1&&C(0,"mifosx-apply-annual-fees-savings-account")}function gr(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(c=>{c.savingsAccountActionData&&(this.currency=c.savingsAccountActionData.currency)});let e=this.route.snapshot.params.name;e in this.actions&&(this.actions[e]=!0)}static{this.\u0275fac=function(c){return new(c||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-saving-account-actions"]],decls:13,vars:13,consts:[[3,"currency"]],template:function(c,o){c&1&&(v(0,nr,1,0,"mifosx-approve-savings-account"),v(1,ir,1,0,"mifosx-reject-savings-account"),v(2,ar,1,0,"mifosx-activate-savings-account"),v(3,or,1,0,"mifosx-undo-approval-savings-account"),v(4,rr,1,0,"mifosx-post-interest-as-on-savings-account"),v(5,cr,1,0,"mifosx-savings-account-assign-staff"),v(6,sr,1,0,"mifosx-savings-account-unassign-staff"),v(7,lr,1,0,"mifosx-withdraw-by-client-savings-account"),v(8,mr,1,0,"mifosx-add-charge-savings-account"),v(9,pr,1,0,"mifosx-savings-transactions"),v(10,dr,1,0,"mifosx-close-savings-account"),v(11,ur,1,0,"mifosx-apply-annual-fees-savings-account"),v(12,gr,1,1,"mifosx-manage-savings-account",0)),c&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,yn,Dn,In,wn],encapsulation:2})}}return t})();var fr=()=>({confirm:!0}),Le=(()=>{class t{constructor(){this.dialogRef=g(Xt),this.data=g(ye)}static{this.\u0275fac=function(c){return new(c||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(c,o){c&1&&(i(0,"h1",0),r(1),s(2,"translate"),a(),i(3,"div",1)(4,"p"),r(5),s(6,"translate"),a()(),i(7,"mat-dialog-actions",2)(8,"button",3),r(9),s(10,"translate"),a(),i(11,"button",4),r(12),s(13,"translate"),a()()),c&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",F(14,fr)),n(),f(" ",l(13,12,"labels.buttons.Confirm")," "))},dependencies:[P,O,k,te,ee,ne,Zt,D],encapsulation:2})}}return t})();var Cr=()=>({confirm:!0}),Ge=(()=>{class t{constructor(){this.dialogRef=g(Xt),this.data=g(ye)}static{this.\u0275fac=function(c){return new(c||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(c,o){c&1&&(i(0,"h1",0),r(1),s(2,"translate"),a(),i(3,"div",1)(4,"p"),r(5),s(6,"translate"),a()(),i(7,"mat-dialog-actions",2)(8,"button",3),r(9),s(10,"translate"),a(),i(11,"button",4),r(12),s(13,"translate"),a()()),c&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",F(14,Cr)),n(),f(" ",l(13,12,"labels.buttons.Confirm")," "))},dependencies:[P,O,k,te,ee,ne,Zt,D],encapsulation:2})}}return t})();var vr=["chargesTable"],_r=t=>[t];function hr(t,m){if(t&1){let e=y();i(0,"div",4)(1,"button",22),b("click",function(){M(e);let o=h();return A(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 xr(t,m){t&1&&(i(0,"th",23),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Name")))}function br(t,m){if(t&1&&(i(0,"td",24),r(1),a()),t&2){let e=m.$implicit;n(),p(e.name)}}function Sr(t,m){t&1&&(i(0,"th",23),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Charge Type")))}function Mr(t,m){if(t&1&&(i(0,"td",24),r(1),s(2,"translateKey"),a()),t&2){let e=m.$implicit;n(),p(e.penalty?"Penalty":Mt(2,1,"Fee","catalogs"))}}function Ar(t,m){t&1&&(i(0,"th",23),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Payment Due At")))}function Tr(t,m){if(t&1&&(i(0,"td",24),r(1),s(2,"translateKey"),a()),t&2){let e=m.$implicit;n(),p(Mt(2,1,e.chargeTimeType.value,"catalogs"))}}function Pr(t,m){t&1&&(i(0,"th",23),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Due As Of")))}function Or(t,m){if(t&1&&(i(0,"td",24),r(1),s(2,"dateFormat"),a()),t&2){let e=m.$implicit;n(),p(l(2,1,e.dueDate))}}function yr(t,m){t&1&&(i(0,"th",23),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Repeats On (M/d)")))}function Dr(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 Ir(t,m){t&1&&(i(0,"th",23),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Calculation Type")))}function wr(t,m){if(t&1&&(i(0,"td",24),r(1),s(2,"translateKey"),a()),t&2){let e=m.$implicit;n(),p(Mt(2,1,e.chargeCalculationType.value,"catalogs"))}}function Er(t,m){t&1&&(i(0,"th",23),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Due")))}function kr(t,m){if(t&1&&(i(0,"td",24),r(1),s(2,"currency"),a()),t&2){let e=m.$implicit;n(),f(" ",K(2,1,e.amount,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Fr(t,m){t&1&&(i(0,"th",23),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Paid")))}function Br(t,m){if(t&1&&(i(0,"td",24),r(1),s(2,"currency"),a()),t&2){let e=m.$implicit;n(),f(" ",K(2,1,e.amountPaid,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Nr(t,m){t&1&&(i(0,"th",23),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Waived")))}function Rr(t,m){if(t&1&&(i(0,"td",24),r(1),s(2,"currency"),a()),t&2){let e=m.$implicit;n(),f(" ",K(2,1,e.amountWaived,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Vr(t,m){t&1&&(i(0,"th",23),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Outstanding")))}function Lr(t,m){if(t&1&&(i(0,"td",24),r(1),s(2,"currency"),a()),t&2){let e=m.$implicit;n(),f(" ",K(2,1,e.amountOutstanding,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Gr(t,m){t&1&&(i(0,"th",23),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Actions")))}function Ur(t,m){if(t&1){let e=y();i(0,"button",27),s(1,"translate"),b("click",function(o){M(e);let u=h(2).$implicit,x=h();return x.routeEdit(o),A(x.editCharge(u))}),C(2,"i",28),a()}t&2&&d("matTooltip",ft(l(1,2,"tooltips.Edit Charge")))}function qr(t,m){if(t&1){let e=y();i(0,"button",29),s(1,"translate"),b("click",function(o){M(e);let u=h(2).$implicit,x=h();return x.routeEdit(o),A(x.deleteCharge(u.id))}),C(2,"i",30),a()}t&2&&d("matTooltip",ft(l(1,2,"tooltips.Delete Charge")))}function Hr(t,m){t&1&&(i(0,"span"),S(1,Ur,3,4,"button",25)(2,qr,3,4,"button",26),a()),t&2&&(n(),d("mifosxHasPermission","UPDATE_SAVINGSACCOUNTCHARGE"),n(),d("mifosxHasPermission","DELETE_SAVINGSACCOUNTCHARGE"))}function zr(t,m){if(t&1){let e=y();i(0,"button",27),s(1,"translate"),b("click",function(o){M(e);let u=h(2).$implicit,x=h();return x.routeEdit(o),A(x.payCharge(u.id))}),C(2,"i",32),a()}t&2&&d("matTooltip",ft(l(1,2,"tooltips.Pay Charge")))}function jr(t,m){if(t&1){let e=y();i(0,"button",27),s(1,"translate"),b("click",function(o){M(e);let u=h(2).$implicit,x=h();return x.routeEdit(o),A(x.waiveCharge(u.id))}),C(2,"i",33),a()}t&2&&d("matTooltip",ft(l(1,2,"tooltips.Waive Charge")))}function $r(t,m){if(t&1){let e=y();i(0,"button",27),s(1,"translate"),b("click",function(o){M(e);let u=h(3).$implicit,x=h();return x.routeEdit(o),A(x.inactivateCharge(u.id))}),C(2,"i",34),a()}t&2&&d("matTooltip",ft(l(1,2,"tooltips.Inactivate Charge")))}function Wr(t,m){t&1&&S(0,$r,3,4,"button",25),t&2&&d("mifosxHasPermission","INACTIVATE_SAVINGSACCOUNTCHARGE")}function Qr(t,m){if(t&1&&(i(0,"span"),S(1,zr,3,4,"button",25)(2,jr,3,4,"button",25),v(3,Wr,1,1,"button",31),a()),t&2){let e=h().$implicit,c=h();n(),d("mifosxHasPermission","PAY_SAVINGSACCOUNTCHARGE"),n(),d("mifosxHasPermission","WAIVE_SAVINGSACCOUNTCHARGE"),n(),_(c.isRecurringCharge(e)?3:-1)}}function Kr(t,m){if(t&1&&(i(0,"td",24),v(1,Hr,3,2,"span"),v(2,Qr,4,3,"span"),a()),t&2){let e=m.$implicit,c=h();n(),_(c.savingsAccountData.status.value==="Submitted and pending approval"?1:-1),n(),_(c.savingsAccountData.status.value==="Active"&&e.amountOutstanding!==0?2:-1)}}function Yr(t,m){t&1&&C(0,"tr",35)}function Jr(t,m){if(t&1&&C(0,"tr",36),t&2){let e=m.$implicit;d("routerLink",Ft(1,_r,e.id))}}var kn=(()=>{class t{constructor(){this.savingsService=g(I),this.route=g(E),this.dateUtils=g(j),this.router=g(z),this.dialog=g(Dt),this.settingsService=g(U),this.translateService=g(ue),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(c=>c.isActive):[];this.dataSource=new Jt(e)}toggleCharges(){if(this.showInactiveCharges=!this.showInactiveCharges,this.showInactiveCharges){let e=this.chargesData.filter(c=>!c.isActive);this.dataSource.data=e}else{let e=this.chargesData.filter(c=>c.isActive);this.dataSource.data=e}this.chargesTableRef.renderRows()}payCharge(e){let c=[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:c};this.dialog.open(le,{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 c=[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:c};this.dialog.open(le,{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(Ce,{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,c=this.router.url.slice(0,this.router.url.indexOf("savings-accounts")+16);this.router.navigateByUrl(c,{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}viewAllChargeButtons(e){return this.translateService.instant("labels.buttons."+e)}static{this.\u0275fac=function(c){return new(c||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-charges-tab"]],viewQuery:function(c,o){if(c&1&&Pt(vr,7),c&2){let u;Ot(u=yt())&&(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(c,o){c&1&&(i(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3"),r(4),s(5,"translate"),a()(),v(6,hr,3,1,"div",4),a(),i(7,"div",5)(8,"table",6,0),N(10,7),S(11,xr,3,3,"th",8)(12,br,2,1,"td",9),R(),N(13,10),S(14,Sr,3,3,"th",8)(15,Mr,3,4,"td",9),R(),N(16,11),S(17,Ar,3,3,"th",8)(18,Tr,3,4,"td",9),R(),N(19,12),S(20,Pr,3,3,"th",8)(21,Or,3,3,"td",9),R(),N(22,13),S(23,yr,3,3,"th",8)(24,Dr,2,1,"td",9),R(),N(25,14),S(26,Ir,3,3,"th",8)(27,wr,3,4,"td",9),R(),N(28,15),S(29,Er,3,3,"th",8)(30,kr,3,6,"td",9),R(),N(31,16),S(32,Fr,3,3,"th",8)(33,Br,3,6,"td",9),R(),N(34,17),S(35,Nr,3,3,"th",8)(36,Rr,3,6,"td",9),R(),N(37,18),S(38,Vr,3,3,"th",8)(39,Lr,3,6,"td",9),R(),N(40,19),S(41,Gr,3,3,"th",8)(42,Kr,3,2,"td",9),R(),S(43,Yr,1,0,"tr",20)(44,Jr,1,3,"tr",21),a()()()),c&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,k,Rt,Lt,qt,Ut,Ht,Gt,zt,ge,jt,Wt,$t,Qt,se,Bt,D,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 Xr=["instructionsTable"];function Zr(t,m){t&1&&(i(0,"th",16),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Client")))}function tc(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 ec(t,m){t&1&&(i(0,"th",16),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.From Account")))}function nc(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 ic(t,m){t&1&&(i(0,"th",16),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Beneficiary")))}function ac(t,m){if(t&1&&(i(0,"td",17),r(1),a()),t&2){let e=m.$implicit;n(),p(e.toClient.displayName)}}function oc(t,m){t&1&&(i(0,"th",16),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.To Account")))}function rc(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 cc(t,m){t&1&&(i(0,"th",16),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Amount")))}function sc(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 lc(t,m){t&1&&(i(0,"th",16),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Validity")))}function mc(t,m){if(t&1&&(i(0,"td",17),r(1),s(2,"dateFormat"),s(3,"translate"),s(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 pc(t,m){t&1&&(i(0,"th",16),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Actions")))}function dc(t,m){t&1&&(i(0,"button",19),s(1,"translate"),C(2,"i",20),a()),t&2&&d("matTooltip",ft(l(1,2,"tooltips.Edit Standing Instruction")))}function uc(t,m){t&1&&(i(0,"span"),S(1,dc,3,4,"button",18),a()),t&2&&(n(),d("mifosxHasPermission","UPDATE_STANDINGINSTRUCTION"))}function gc(t,m){if(t&1){let e=y();i(0,"button",22),s(1,"translate"),b("click",function(){M(e);let o=h(2).$implicit,u=h();return A(u.deleteStandingInstruction(o.id))}),C(2,"i",23),a()}t&2&&d("matTooltip",ft(l(1,2,"tooltips.Delete Standing Instruction")))}function fc(t,m){t&1&&(i(0,"span"),S(1,gc,3,4,"button",21),a()),t&2&&(n(),d("mifosxHasPermission","DELETE_STANDINGINSTRUCTION"))}function Cc(t,m){t&1&&(i(0,"button",19),s(1,"translate"),C(2,"i",24),a()),t&2&&d("matTooltip",ft(l(1,2,"tooltips.View Standing Instruction")))}function vc(t,m){if(t&1&&(i(0,"td",17),v(1,uc,2,1,"span"),v(2,fc,2,1,"span"),S(3,Cc,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 _c(t,m){t&1&&C(0,"tr",25)}function hc(t,m){t&1&&C(0,"tr",26)}var Fn=(()=>{class t{constructor(){this.route=g(E),this.savingsService=g(I),this.dialog=g(Dt),this.accountTransfersService=g(qi),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,c=this.savingsData.clientName,o=this.savingsData.id,u=this.settingsService.language.code,x=this.settingsService.dateFormat;this.savingsService.getStandingInstructions(e,c,o,u,x).subscribe(B=>{this.instructionsData=B.pageItems,this.dataSource.data=this.instructionsData,this.instructionTableRef.renderRows()})}deleteStandingInstruction(e){this.dialog.open(Ce,{data:{deleteContext:`standing instruction id: ${e}`}}).afterClosed().subscribe(o=>{o.delete&&this.accountTransfersService.deleteStandingInstrucions(e).subscribe(()=>{})})}static{this.\u0275fac=function(c){return new(c||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-standing-instructions-tab"]],viewQuery:function(c,o){if(c&1&&Pt(Xr,7),c&2){let u;Ot(u=yt())&&(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(c,o){c&1&&(i(0,"div",1)(1,"div",2)(2,"h3"),r(3),s(4,"translate"),a()(),i(5,"div",3)(6,"table",4,0),N(8,5),S(9,Zr,3,3,"th",6)(10,tc,2,2,"td",7),R(),N(11,8),S(12,ec,3,3,"th",6)(13,nc,2,2,"td",7),R(),N(14,9),S(15,ic,3,3,"th",6)(16,ac,2,1,"td",7),R(),N(17,10),S(18,oc,3,3,"th",6)(19,rc,2,2,"td",7),R(),N(20,11),S(21,cc,3,3,"th",6)(22,sc,2,2,"td",7),R(),N(23,12),S(24,lc,3,3,"th",6)(25,mc,5,9,"td",7),R(),N(26,13),S(27,pc,3,3,"th",6)(28,vc,4,3,"td",7),R(),S(29,_c,1,0,"tr",14)(30,hc,1,0,"tr",15),a()()()),c&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,k,Rt,Lt,qt,Ut,Ht,Gt,zt,ge,jt,Wt,$t,Qt,Bt,D],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(c){return new(c||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(c,o){c&1&&(i(0,"div",0),C(1,"mifosx-entity-datatable-tab",1),a()),c&2&&(n(),d("entityId",o.entityId)("multiRowDatatableFlag",o.multiRowDatatableFlag)("entityDatatable",o.entityDatatable))},dependencies:[P,O,pn],encapsulation:2})}}return t})();function xc(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 bc(t,m){if(t&1){let e=y();i(0,"mat-form-field",11),b("click",function(){M(e);let o=w(7);return A(o.open())}),i(1,"mat-label"),r(2),s(3,"translate"),a(),C(4,"input",12)(5,"mat-datepicker-toggle",13)(6,"mat-datepicker",null,0),i(8,"mat-error"),r(9),s(10,"translate"),s(11,"translate"),i(12,"strong"),r(13),s(14,"translate"),a()()()}if(t&2){let e=w(7),c=h();n(2),p(l(3,8,"labels.inputs.Submitted On")),n(2),d("min",c.minDate)("max",c.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 Sc(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 Mc(t,m){if(t&1&&(i(0,"mat-form-field",3)(1,"mat-label"),r(2),s(3,"translate"),a(),i(4,"mat-select",14),ut(5,Sc,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 Ac(t,m){t&1&&(i(0,"mat-form-field",3)(1,"mat-label"),r(2),s(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(c=>{this.savingsService.getSavingsAccountTemplate(e,c,!!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(c){return new(c||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(c,o){c&1&&(i(0,"form",1)(1,"div",2)(2,"mat-form-field",3)(3,"mat-label"),r(4),s(5,"translate"),a(),i(6,"mat-select",4),ut(7,xc,2,2,"mat-option",5,dt),a(),i(9,"mat-error"),r(10),s(11,"translate"),s(12,"translate"),i(13,"strong"),r(14),s(15,"translate"),a()()(),v(16,bc,15,16,"mat-form-field",3),v(17,Mc,7,3,"mat-form-field",3),v(18,Ac,5,3,"mat-form-field",3),a(),i(19,"div",6)(20,"button",7),C(21,"fa-icon",8),r(22),s(23,"translate"),a(),i(24,"button",9),r(25),s(26,"translate"),C(27,"fa-icon",10),a()()()),c&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,Y,nt,lt,at,ot,tt,Z,mt,vt,st,wt,It,ht,xt,_t,k,me,St,ve,D],encapsulation:2})}}return t})();function Tc(t,m){if(t&1&&(i(0,"mat-option",7),r(1),s(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),s(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){if(t&1&&(i(0,"mat-option",7),r(1),s(2,"translateKey"),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",Mt(2,2,e.value,"catalogs")," ")}}function yc(t,m){if(t&1&&(i(0,"mat-option",7),r(1),s(2,"translateKey"),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",Mt(2,2,e.value,"catalogs")," ")}}function Dc(t,m){if(t&1&&(i(0,"mat-option",7),r(1),s(2,"translateKey"),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",Mt(2,2,e.value,"catalogs")," ")}}function Ic(t,m){t&1&&(i(0,"div",19)(1,"mat-form-field",27)(2,"mat-label"),r(3),s(4,"translate"),a(),C(5,"input",28),a(),i(6,"mat-form-field",27)(7,"mat-label"),r(8),s(9,"translate"),a(),C(10,"input",29),a(),i(11,"mat-form-field",27)(12,"mat-label"),r(13),s(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 wc(t,m){t&1&&(i(0,"mat-form-field",2)(1,"mat-label"),r(2),s(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(c){return new(c||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(c,o){c&1&&(i(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),r(4),s(5,"translate"),a(),C(6,"input",3),a(),i(7,"mat-form-field",2)(8,"mat-label"),r(9),s(10,"translate"),a(),C(11,"input",4),a(),i(12,"mat-form-field",2)(13,"mat-label"),r(14),s(15,"translate"),a(),C(16,"input",5),i(17,"mat-error"),r(18),s(19,"translate"),s(20,"translate"),i(21,"strong"),r(22),s(23,"translate"),a()()(),i(24,"mat-form-field",2)(25,"mat-label"),r(26),s(27,"translate"),a(),i(28,"mat-select",6),ut(29,Tc,3,5,"mat-option",7,dt),a(),i(31,"mat-error"),r(32),s(33,"translate"),s(34,"translate"),i(35,"strong"),r(36),s(37,"translate"),a()()(),i(38,"mat-form-field",2)(39,"mat-label"),r(40),s(41,"translate"),a(),i(42,"mat-select",8),ut(43,Pc,3,5,"mat-option",7,dt),a(),i(45,"mat-error"),r(46),s(47,"translate"),s(48,"translate"),i(49,"strong"),r(50),s(51,"translate"),a()()(),i(52,"mat-form-field",2)(53,"mat-label"),r(54),s(55,"translate"),a(),i(56,"mat-select",9),ut(57,Oc,3,5,"mat-option",7,dt),a(),i(59,"mat-error"),r(60),s(61,"translate"),s(62,"translate"),i(63,"strong"),r(64),s(65,"translate"),a()()(),i(66,"mat-form-field",2)(67,"mat-label"),r(68),s(69,"translate"),a(),i(70,"mat-select",10),ut(71,yc,3,5,"mat-option",7,dt),a(),i(73,"mat-error"),r(74),s(75,"translate"),s(76,"translate"),i(77,"strong"),r(78),s(79,"translate"),a()()(),i(80,"mat-form-field",2)(81,"mat-label"),r(82),s(83,"translate"),a(),C(84,"input",11),a(),i(85,"mat-checkbox",12),r(86),s(87,"translate"),a(),i(88,"h4",13),r(89),s(90,"translate"),a(),i(91,"mat-form-field",2)(92,"mat-label"),r(93),s(94,"translate"),a(),C(95,"input",14),a(),i(96,"mat-form-field",2)(97,"mat-label"),r(98),s(99,"translate"),a(),i(100,"mat-select",15),ut(101,Dc,3,5,"mat-option",7,dt),a()(),C(103,"mat-divider",16),i(104,"h3",17),r(105),s(106,"translate"),a(),i(107,"mat-checkbox",18),r(108),s(109,"translate"),a(),v(110,Ic,16,9,"div",19),C(111,"mat-divider",16),i(112,"mat-checkbox",20),r(113),s(114,"translate"),a(),i(115,"mat-form-field",2)(116,"mat-label"),r(117),s(118,"translate"),a(),C(119,"input",21),a(),v(120,wc,5,3,"mat-form-field",2),a(),i(121,"div",22)(122,"button",23),C(123,"fa-icon",24),r(124),s(125,"translate"),a(),i(126,"button",25),r(127),s(128,"translate"),C(129,"fa-icon",26),a()()()),c&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,Y,nt,lt,at,ot,tt,Z,mt,st,wt,It,k,fe,on,me,St,ve,D,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 Ec(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 kc(t,m){t&1&&(i(0,"th",24),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Name")))}function Fc(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 Bc(t,m){t&1&&(i(0,"th",24),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Type")))}function Nc(t,m){if(t&1&&(i(0,"td",25),r(1),a()),t&2){let e=m.$implicit;n(),f(" ",e.chargeCalculationType.value," ")}}function Rc(t,m){t&1&&(i(0,"th",24),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Amount")))}function Vc(t,m){if(t&1){let e=y();i(0,"td",25),r(1),s(2,"formatNumber"),i(3,"button",26),b("click",function(){let o=M(e).$implicit,u=h(2);return A(u.editChargeAmount(o))}),C(4,"fa-icon",27),a()()}if(t&2){let e=m.$implicit;n(),f(" ",l(2,1,e.amount)," ")}}function Lc(t,m){t&1&&(i(0,"th",24),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Collected On")))}function Gc(t,m){if(t&1&&(i(0,"td",25),r(1),s(2,"translateKey"),a()),t&2){let e=m.$implicit;n(),f(" ",Mt(2,1,e.chargeTimeType.value,"catalogs")," ")}}function Uc(t,m){t&1&&(i(0,"th",24),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Date")))}function qc(t,m){if(t&1&&(i(0,"span"),r(1),s(2,"dateFormat"),a()),t&2){let e=h().$implicit;n(),f(" ",l(2,1,e.dueDate)||"Unassigned"," ")}}function Hc(t,m){if(t&1&&(i(0,"span"),r(1),s(2,"dateFormat"),a()),t&2){let e=h().$implicit;n(),f(" ",l(2,1,e.feeOnMonthDay)||"Unassigned"," ")}}function zc(t,m){t&1&&(i(0,"span"),r(1," N/A "),a())}function jc(t,m){if(t&1){let e=y();i(0,"button",26),b("click",function(){M(e);let o=h().$implicit,u=h(2);return A(u.editChargeDate(o))}),C(1,"fa-icon",27),a()}}function $c(t,m){if(t&1&&(i(0,"td",25),v(1,qc,3,3,"span"),v(2,Hc,3,3,"span"),v(3,zc,2,0,"span"),v(4,jc,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 Wc(t,m){t&1&&(i(0,"th",24),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Repayments Every")))}function Qc(t,m){if(t&1&&(i(0,"span"),r(1),a()),t&2){let e=h().$implicit;n(),p(e.feeInterval)}}function Kc(t,m){t&1&&(i(0,"span"),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Not Provided")))}function Yc(t,m){if(t&1){let e=y();i(0,"button",26),b("click",function(){M(e);let o=h().$implicit,u=h(2);return A(u.editChargeFeeInterval(o))}),C(1,"fa-icon",27),a()}}function Jc(t,m){if(t&1&&(i(0,"td",25),v(1,Qc,2,1,"span"),v(2,Kc,3,3,"span"),v(3,Yc,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 Xc(t,m){t&1&&(i(0,"th",24),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Actions")))}function Zc(t,m){if(t&1){let e=y();i(0,"td",25)(1,"button",29),b("click",function(){let o=M(e).$implicit,u=h(2);return A(u.deleteCharge(o))}),C(2,"fa-icon",30),a()()}}function ts(t,m){t&1&&C(0,"tr",31)}function es(t,m){t&1&&C(0,"tr",32)}function ns(t,m){if(t&1&&(i(0,"table",7),N(1,13),S(2,kc,3,3,"th",14)(3,Fc,2,1,"td",15),R(),N(4,16),S(5,Bc,3,3,"th",14)(6,Nc,2,1,"td",15),R(),N(7,17),S(8,Rc,3,3,"th",14)(9,Vc,5,3,"td",15),R(),N(10,18),S(11,Lc,3,3,"th",14)(12,Gc,3,4,"td",15),R(),N(13,19),S(14,Uc,3,3,"th",14)(15,$c,5,4,"td",15),R(),N(16,20),S(17,Wc,3,3,"th",14)(18,Jc,4,3,"td",15),R(),N(19,21),S(20,Xc,3,3,"th",14)(21,Zc,3,0,"td",15),R(),S(22,ts,1,0,"tr",22)(23,es,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(Dt),this.dateUtils=g(j),this.translateService=g(ue),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 c=[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:c};this.dialog.open(le,{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 c=[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:c};this.dialog.open(le,{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 Ki=this.dateUtils.formatDate(x.data.value.date,"dd MMMM");B=Q(G({},e),{feeOnMonthDay:Ki});break}this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,B),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeFeeInterval(e){let c=[new pe({controlName:"feeInterval",label:"Fee Interval",value:e.feeInterval,type:"text",required:!1})],o={title:"Edit Charge Fee Interval",layout:{addButtonText:"Confirm"},formfields:c};this.dialog.open(le,{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(c){return new(c||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(c,o){if(c&1){let u=y();i(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),r(3),s(4,"translate"),a(),i(5,"mat-select",null,0),ut(7,Ec,2,2,"mat-option",3,dt),s(9,"chargesFilter"),a()(),i(10,"div",4)(11,"button",5),b("click",function(){M(u);let B=w(6);return A(o.addCharge(B))}),C(12,"fa-icon",6),r(13),s(14,"translate"),a()(),v(15,ns,24,3,"table",7),i(16,"div",8)(17,"button",9),C(18,"fa-icon",10),r(19),s(20,"translate"),a(),i(21,"button",11),r(22),s(23,"translate"),C(24,"fa-icon",12),a()()()}if(c&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,tt,Z,wt,It,k,St,Lt,qt,Ut,Ht,Gt,zt,Oe,jt,Wt,$t,Qt,me,ve,Bt,D,Nt,Ei,_e],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 is=()=>["../.."];function as(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 os(t,m){t&1&&(i(0,"span",6),r(1),s(2,"translate"),a()),t&2&&(n(),f(" ",l(2,1,"labels.inputs.Unassigned")," "))}function rs(t,m){t&1&&(i(0,"th",22),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Client ID")))}function cs(t,m){if(t&1&&(i(0,"td",23),r(1),a()),t&2){let e=m.$implicit;n(),p(e.id)}}function ss(t,m){t&1&&(i(0,"th",22),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Client Name")))}function ls(t,m){if(t&1&&(i(0,"td",23),r(1),a()),t&2){let e=m.$implicit;n(),p(e.displayName)}}function ms(t,m){t&1&&C(0,"tr",24)}function ps(t,m){t&1&&C(0,"tr",25)}function ds(t,m){if(t&1&&(i(0,"h3",7),r(1),s(2,"translate"),a(),C(3,"mat-divider",3),i(4,"div",6)(5,"table",15,0),N(7,16),S(8,rs,3,3,"th",17)(9,cs,2,1,"td",18),R(),N(10,19),S(11,ss,3,3,"th",17)(12,ls,2,1,"td",18),R(),S(13,ms,1,0,"tr",20)(14,ps,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 us(t,m){if(t&1&&(i(0,"div",4)(1,"span",5),r(2),s(3,"translate"),a(),i(4,"span",6),r(5),s(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 gs(t,m){if(t&1&&(i(0,"div",4)(1,"span",5),r(2),s(3,"translate"),a(),i(4,"span",6),r(5),s(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+" "+K(6,4,e.savingsAccount.lockinPeriodFrequencyType,e.savingsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,"id","value")))}}function fs(t,m){if(t&1&&(i(0,"div",4)(1,"span",5),r(2),s(3,"translate"),a(),i(4,"span",6),r(5),s(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 Cs(t,m){if(t&1&&(i(0,"div",4)(1,"span",5),r(2),s(3,"translate"),a(),i(4,"span",6),r(5),s(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 vs(t,m){if(t&1&&(i(0,"div",4)(1,"span",5),r(2),s(3,"translate"),a(),i(4,"span",6),r(5),s(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 _s(t,m){if(t&1&&(i(0,"div",4)(1,"span",5),r(2),s(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 hs(t,m){t&1&&(i(0,"th",22),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Name")))}function xs(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 bs(t,m){t&1&&(i(0,"th",22),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Type")))}function Ss(t,m){if(t&1&&(i(0,"td",23),r(1),s(2,"translateKey"),a()),t&2){let e=m.$implicit;n(),f(" ",Mt(2,1,e.chargeCalculationType.value,"catalogs")," ")}}function Ms(t,m){t&1&&(i(0,"th",22),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Amount")))}function As(t,m){if(t&1&&(i(0,"td",23),r(1),s(2,"formatNumber"),a()),t&2){let e=m.$implicit;n(),f(" ",l(2,1,e.amount)," ")}}function Ts(t,m){t&1&&(i(0,"th",22),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Date")))}function Ps(t,m){if(t&1&&(i(0,"span"),r(1),s(2,"dateFormat"),a()),t&2){let e=h().$implicit;n(),f(" ",l(2,1,e.dueDate)||"Unassigned"," ")}}function Os(t,m){if(t&1&&(i(0,"span"),r(1),s(2,"dateFormat"),a()),t&2){let e=h().$implicit;n(),f(" ",l(2,1,e.feeOnMonthDay)||"Unassigned"," ")}}function ys(t,m){t&1&&(i(0,"span"),r(1," N/A "),a())}function Ds(t,m){if(t&1&&(i(0,"td",23),v(1,Ps,3,3,"span"),v(2,Os,3,3,"span"),v(3,ys,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 Is(t,m){t&1&&(i(0,"th",22),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Repayments Every")))}function ws(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 Es(t,m){t&1&&(i(0,"th",22),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Collected On")))}function ks(t,m){if(t&1&&(i(0,"td",23),r(1),a()),t&2){let e=m.$implicit;n(),f(" ",e.chargeTimeType.value," ")}}function Fs(t,m){t&1&&C(0,"tr",24)}function Bs(t,m){t&1&&C(0,"tr",25)}function Ns(t,m){if(t&1&&(i(0,"div",8)(1,"h3",2),r(2),s(3,"translate"),a(),C(4,"mat-divider",3),i(5,"table",26),N(6,19),S(7,hs,3,3,"th",17)(8,xs,2,1,"td",18),R(),N(9,27),S(10,bs,3,3,"th",17)(11,Ss,3,4,"td",18),R(),N(12,28),S(13,Ms,3,3,"th",17)(14,As,3,3,"td",18),R(),N(15,29),S(16,Ts,3,3,"th",17)(17,Ds,4,3,"td",18),R(),N(18,30),S(19,Is,3,3,"th",17)(20,ws,2,1,"td",18),R(),N(21,31),S(22,Es,3,3,"th",17)(23,ks,2,1,"td",18),R(),S(24,Fs,1,0,"tr",20)(25,Bs,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(ue),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(c){return new(c||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(c,o){c&1&&(i(0,"div",1)(1,"h3",2),r(2),s(3,"translate"),a(),C(4,"mat-divider",3),i(5,"div",4)(6,"span",5),r(7),s(8,"translate"),a(),i(9,"span",6),r(10),s(11,"find"),a()(),i(12,"div",4)(13,"span",5),r(14),s(15,"translate"),a(),i(16,"span",6),r(17),s(18,"dateFormat"),a()(),i(19,"div",4)(20,"span",5),r(21),s(22,"translate"),a(),v(23,as,2,2,"span",6),v(24,os,3,3,"span",6),a(),i(25,"div",4)(26,"span",5),r(27),s(28,"translate"),a(),i(29,"span",6),r(30),s(31,"find"),a()(),v(32,ds,15,6),i(33,"h3",7),r(34),s(35,"translate"),a(),C(36,"mat-divider",3),i(37,"div",4)(38,"span",5),r(39),s(40,"translate"),a(),i(41,"span",6),r(42),a()(),i(43,"div",4)(44,"span",5),r(45),s(46,"translate"),a(),i(47,"span",6),r(48),a()(),i(49,"div",4)(50,"span",5),r(51),s(52,"translate"),a(),i(53,"span",6),r(54),s(55,"formatNumber"),a()(),i(56,"div",4)(57,"span",5),r(58),s(59,"translate"),a(),i(60,"span",6),r(61),s(62,"find"),a()(),i(63,"div",4)(64,"span",5),r(65),s(66,"translate"),a(),i(67,"span",6),r(68),s(69,"find"),a()(),i(70,"div",4)(71,"span",5),r(72),s(73,"translate"),a(),i(74,"span",6),r(75),s(76,"find"),a()(),i(77,"div",4)(78,"span",5),r(79),s(80,"translate"),a(),i(81,"span",6),r(82),s(83,"find"),a()(),v(84,us,7,6,"div",4),i(85,"div",4)(86,"span",5),r(87),s(88,"translate"),a(),i(89,"span",6),r(90),s(91,"yesNo"),a()(),v(92,gs,7,9,"div",4),i(93,"div",4)(94,"span",5),r(95),s(96,"translate"),a(),i(97,"span",6),r(98),s(99,"yesNo"),a()(),v(100,fs,7,6,"div",4),v(101,Cs,7,6,"div",4),v(102,vs,7,6,"div",4),i(103,"div",4)(104,"span",5),r(105),s(106,"translate"),a(),i(107,"span",6),r(108),s(109,"yesNo"),a()(),v(110,_s,6,4,"div",4),v(111,Ns,26,6,"div",8),a(),i(112,"div",9)(113,"button",10),C(114,"fa-icon",11),r(115),s(116,"translate"),a(),i(117,"button",12),r(118),s(119,"translate"),a(),i(120,"button",13),b("click",function(){return o.submitEvent.emit()}),r(121),s(122,"translate"),a()()),c&2&&(n(2),p(l(3,43,"labels.heading.Details")),n(5),p(l(8,45,"labels.inputs.Product")),n(3),p(K(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(K(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(K(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(K(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(K(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(K(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",F(121,is)),n(),f(" ",l(119,117,"labels.buttons.Cancel")," "),n(3),f(" ",l(122,119,"labels.buttons.Submit")," "))},dependencies:[P,O,q,k,on,Be,Lt,qt,Ut,Ht,Gt,zt,jt,Wt,$t,Qt,me,St,Bt,D,Nt,ki,_e,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 Rs(t,m){t&1&&C(0,"fa-icon",14)}function Vs(t,m){t&1&&C(0,"fa-icon",14)}function Ls(t,m){t&1&&C(0,"fa-icon",15)}function Gs(t,m){t&1&&C(0,"fa-icon",16)}function Us(t,m){t&1&&C(0,"fa-icon",17)}function qs(t,m){t&1&&(r(0),s(1,"translate")),t&2&&p(l(1,1,"labels.inputs.DETAILS"))}function Hs(t,m){t&1&&(r(0),s(1,"translate")),t&2&&p(l(1,1,"labels.inputs.TERMS"))}function zs(t,m){t&1&&(r(0),s(1,"translate")),t&2&&p(l(1,1,"labels.inputs.CHARGES"))}function js(t,m){t&1&&(r(0),s(1,"translate")),t&2&&p(l(1,1,"labels.inputs.PREVIEW"))}function $s(t,m){if(t&1){let e=y();i(0,"mat-step",13),S(1,js,2,3,"ng-template",9),i(2,"mifosx-savings-account-preview-step",18),b("submitEvent",function(){M(e);let o=h();return A(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,c=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,c),dateFormat:c,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(c){return new(c||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-create-savings-account"]],viewQuery:function(c,o){if(c&1&&(Pt(oe,7),Pt(re,7),Pt(ce,7)),c&2){let u;Ot(u=yt())&&(o.savingsAccountDetailsStep=u.first),Ot(u=yt())&&(o.savingsAccountTermsStep=u.first),Ot(u=yt())&&(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(c,o){if(c&1){let u=y();i(0,"div",1)(1,"mat-stepper",2,0),S(3,Rs,1,0,"ng-template",3)(4,Vs,1,0,"ng-template",4)(5,Ls,1,0,"ng-template",5)(6,Gs,1,0,"ng-template",6)(7,Us,1,0,"ng-template",7),i(8,"mat-step",8),S(9,qs,2,3,"ng-template",9),i(10,"mifosx-savings-account-details-step",10),b("savingsAccountProductTemplate",function(B){return M(u),A(o.setTemplate(B))}),a()(),i(11,"mat-step",8),S(12,Hs,2,3,"ng-template",9),C(13,"mifosx-savings-account-terms-step",11),a(),i(14,"mat-step"),S(15,zs,2,3,"ng-template",9),C(16,"mifosx-savings-account-charges-step",12),a(),v(17,$s,3,4,"mat-step",13),a()()}c&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,Fe,Ee,St,ke,we,oe,re,ce,be,D],styles:[".container[_ngcontent-%COMP%]{margin:1.5rem auto;max-width:75rem;width:100%;padding:0 1.5rem;box-sizing:border-box}[_nghost-%COMP%] mat-stepper{background:transparent}[_nghost-%COMP%] mat-stepper .mat-step-header{padding:1rem 1.5rem;margin-bottom:.5rem}[_nghost-%COMP%] mat-stepper .mat-step-content{padding:1.5rem;margin:1rem 0}[_nghost-%COMP%] mat-step-content mat-form-field{margin-bottom:1rem;width:100%}[_nghost-%COMP%] mat-step-content .layout-row-wrap{gap:1rem;margin-bottom:1rem}@media (width <= 768px){.container[_ngcontent-%COMP%]{padding:0 1rem;margin:1rem auto}[_nghost-%COMP%] mat-stepper .mat-step-content{padding:1rem;margin:.75rem 0}[_nghost-%COMP%] mat-stepper .mat-step-header{padding:.75rem 1rem}}@media (width <= 480px){.container[_ngcontent-%COMP%]{padding:0 .75rem;margin:.75rem auto}[_nghost-%COMP%] mat-stepper .mat-step-content{padding:.75rem;margin:.5rem 0}}"]})}}return t})();function Ws(t,m){t&1&&C(0,"fa-icon",13)}function Qs(t,m){t&1&&C(0,"fa-icon",13)}function Ks(t,m){t&1&&C(0,"fa-icon",14)}function Ys(t,m){t&1&&C(0,"fa-icon",15)}function Js(t,m){t&1&&C(0,"fa-icon",16)}function Xs(t,m){t&1&&(r(0),s(1,"translate")),t&2&&p(l(1,1,"labels.inputs.DETAILS"))}function Zs(t,m){t&1&&(r(0),s(1,"translate")),t&2&&p(l(1,1,"labels.inputs.TERMS"))}function tl(t,m){t&1&&(r(0),s(1,"translate")),t&2&&p(l(1,1,"labels.inputs.CHARGES"))}function el(t,m){t&1&&(r(0),s(1,"translate")),t&2&&p(l(1,1,"labels.inputs.PREVIEW"))}function nl(t,m){if(t&1){let e=y();i(0,"mat-step",12),S(1,el,2,3,"ng-template",9),i(2,"mifosx-savings-account-preview-step",17),b("submitEvent",function(){M(e);let o=h();return A(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,c=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,c),feeOnMonthDay:this.dateUtils.formatDate(x.feeOnMonthDay,c),feeInterval:x.feeInterval})),submittedOnDate:this.dateUtils.formatDate(this.savingsAccount.submittedOnDate,c),dateFormat:c,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(c){return new(c||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-edit-savings-account"]],viewQuery:function(c,o){if(c&1&&(Pt(oe,7),Pt(re,7),Pt(ce,7)),c&2){let u;Ot(u=yt())&&(o.savingsAccountDetailsStep=u.first),Ot(u=yt())&&(o.savingsAccountTermsStep=u.first),Ot(u=yt())&&(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(c,o){if(c&1){let u=y();i(0,"div",1)(1,"mat-stepper",2,0),S(3,Ws,1,0,"ng-template",3)(4,Qs,1,0,"ng-template",4)(5,Ks,1,0,"ng-template",5)(6,Ys,1,0,"ng-template",6)(7,Js,1,0,"ng-template",7),i(8,"mat-step",8),S(9,Xs,2,3,"ng-template",9),i(10,"mifosx-savings-account-details-step",10),b("savingsAccountProductTemplate",function(B){return M(u),A(o.setTemplate(B))}),a()(),i(11,"mat-step",8),S(12,Zs,2,3,"ng-template",9),C(13,"mifosx-savings-account-terms-step",10),a(),i(14,"mat-step"),S(15,tl,2,3,"ng-template",9),C(16,"mifosx-savings-account-charges-step",11),a(),v(17,nl,3,4,"mat-step",12),a()()}c&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,Fe,Ee,St,ke,we,oe,re,ce,be,D],encapsulation:2})}}return t})();var il=()=>["./general"],al=t=>["./datatables",t];function ol(t,m){if(t&1&&(i(0,"a",5,2),r(2),a()),t&2){let e=w(1),c=h().$implicit;d("routerLink",Ft(3,al,c.registeredTableName))("active",e.isActive),n(2),f(" ",c.registeredTableName," ")}}function rl(t,m){if(t&1&&S(0,ol,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(Dt),this.route.data.subscribe(e=>{this.accountId=this.route.snapshot.params.savingAccountId,this.entityDatatables=e.transactionDatatables})}static{this.\u0275fac=function(c){return new(c||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(c,o){if(c&1&&(i(0,"div",3)(1,"nav",4)(2,"a",5,0),r(4),s(5,"translate"),a(),ut(6,rl,1,1,"a",5,dt),a(),i(8,"mat-tab-nav-panel",null,1),C(10,"router-outlet"),a()()),c&2){let u=w(3),x=w(9);n(),d("tabPanel",x),n(),d("routerLink",F(6,il))("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,D],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 cl=()=>["../"];function sl(t,m){if(t&1){let e=y();i(0,"button",9),b("click",function(){M(e);let o=h(2);return A(o.payCharge())}),C(1,"fa-icon",10),r(2," Pay "),a()}}function ll(t,m){if(t&1){let e=y();i(0,"button",11),b("click",function(){M(e);let o=h(2);return A(o.waiveCharge())}),C(1,"fa-icon",12),r(2," Waive "),a()}}function ml(t,m){if(t&1){let e=y();i(0,"button",14),b("click",function(){M(e);let o=h(3);return A(o.inactivateCharge())}),C(1,"fa-icon",15),r(2," Inactivate "),a()}}function pl(t,m){t&1&&(i(0,"span"),S(1,ml,3,0,"button",13),a()),t&2&&(n(),d("mifosxHasPermission","INACTIVATE_SAVINGSACCOUNTCHARGE"))}function dl(t,m){if(t&1&&(i(0,"div",0),S(1,sl,3,0,"button",7)(2,ll,3,0,"button",8),v(3,pl,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 ul(t,m){if(t&1){let e=y();i(0,"button",11),b("click",function(){M(e);let o=h(2);return A(o.editCharge())}),C(1,"fa-icon",16),r(2," Edit "),a()}}function gl(t,m){if(t&1){let e=y();i(0,"button",14),b("click",function(){M(e);let o=h(2);return A(o.deleteCharge())}),C(1,"fa-icon",15),r(2," Delete "),a()}}function fl(t,m){t&1&&(i(0,"div",0),S(1,ul,3,0,"button",8)(2,gl,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(Dt),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})],c={title:"Pay Charge",layout:{addButtonText:"Confirm"},formfields:e};this.dialog.open(le,{data:c}).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(c=>{c.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(c=>{c.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})],c={title:"Edit Charge",layout:{addButtonText:"Confirm"},formfields:e};this.dialog.open(le,{data:c}).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(Ce,{data:{deleteContext:`charge id:${this.chargeData.id}`}}).afterClosed().subscribe(c=>{c.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}`,""),c=this.router.url.slice(0,this.router.url.indexOf("savings-accounts")+16);this.router.navigateByUrl(c,{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}static{this.\u0275fac=function(c){return new(c||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(c,o){c&1&&(v(0,dl,4,3,"div",0),v(1,fl,3,2,"div",0),i(2,"div",1)(3,"mat-card")(4,"mat-card-content")(5,"div",2)(6,"div",3),r(7),s(8,"translate"),a(),i(9,"div",4),r(10),a(),i(11,"div",3),r(12),s(13,"translate"),a(),i(14,"div",4),r(15),s(16,"translateKey"),a(),i(17,"div",3),r(18),s(19,"translate"),a(),i(20,"div",4),r(21),a(),i(22,"div",3),r(23),s(24,"translate"),a(),i(25,"div",4),r(26),s(27,"translateKey"),a(),i(28,"div",3),r(29),s(30,"translate"),a(),i(31,"div",4),r(32),s(33,"dateFormat"),a(),i(34,"div",3),r(35),s(36,"translate"),a(),i(37,"div",4),r(38),s(39,"translateKey"),a(),i(40,"div",3),r(41),s(42,"translate"),a(),i(43,"div",4),r(44),s(45,"formatNumber"),a(),i(46,"div",3),r(47),s(48,"translate"),a(),i(49,"div",4),r(50),s(51,"formatNumber"),a(),i(52,"div",3),r(53),s(54,"translate"),a(),i(55,"div",4),r(56),s(57,"formatNumber"),a(),i(58,"div",3),r(59),s(60,"translate"),a(),i(61,"div",4),r(62),s(63,"formatNumber"),a()(),i(64,"div",5)(65,"button",6),r(66),s(67,"translate"),a()()()()()),c&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",F(65,cl)),n(),f(" ",l(67,63,"labels.buttons.Back")," "))},dependencies:[P,O,q,X,ct,k,Rt,St,Bt,D,Nt,_e],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 Cl=()=>["../../"];function vl(t,m){if(t&1&&(i(0,"div",6),C(1,"iframe",7),a()),t&2){let e=h();n(),d("src",e.pentahoUrl,$e)}}function _l(t,m){t&1&&(i(0,"div",8)(1,"h3"),r(2,"Unable to Load Receipt"),a(),i(3,"p"),r(4,"The transaction receipt could not be loaded. This may be due to:"),a(),i(5,"ul")(6,"li"),r(7,"Missing or incomplete report configuration"),a(),i(8,"li"),r(9,"Report generation service unavailable"),a(),i(10,"li"),r(11,"Invalid transaction data"),a()(),i(12,"p")(13,"strong"),r(14,"Please contact your system administrator for assistance."),a()(),i(15,"p",9),r(16,"Technical details may be available in the browser console (F12)."),a()())}var Gn=(()=>{class t{constructor(){this.sanitizer=g(Ke),this.route=g(E),this.pentahoUrl=null,this.blobUrl=null,this.route.data.subscribe(e=>{this.transactionRecieptData=e.savingsTransactionReciept})}ngOnInit(){if(!this.transactionRecieptData||!this.transactionRecieptData.body)return;let e=this.transactionRecieptData.headers.get("Content-Type"),c=new Blob([this.transactionRecieptData.body],{type:e});c.size!==0&&(this.blobUrl=URL.createObjectURL(c),this.pentahoUrl=this.sanitizer.bypassSecurityTrustResourceUrl(this.blobUrl))}ngOnDestroy(){this.blobUrl&&URL.revokeObjectURL(this.blobUrl)}static{this.\u0275fac=function(c){return new(c||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-view-reciept"]],decls:8,vars:4,consts:[["noData",""],[1,"container"],[1,"back-button"],["type","button","color","primary","mat-raised-button","",3,"routerLink"],["icon","arrow-left",1,"m-r-10"],["class","pdf-container",4,"ngIf","ngIfElse"],[1,"pdf-container"],[1,"pdf-iframe",3,"src"],[1,"error-message"],[1,"console-hint"]],template:function(c,o){if(c&1&&(i(0,"mat-card",1)(1,"div",2)(2,"button",3),C(3,"fa-icon",4),r(4,"Back "),a()(),S(5,vl,2,1,"div",5)(6,_l,17,0,"ng-template",null,0,xi),a()),c&2){let u=w(7);n(2),d("routerLink",F(3,Cl)),n(3),d("ngIf",o.pentahoUrl)("ngIfElse",u)}},dependencies:[P,bi,O,q,X,k,St],styles:[".container[_ngcontent-%COMP%]{max-width:50rem;margin:0 auto}.container[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{margin-bottom:1rem}.container[_ngcontent-%COMP%] .pdf-container[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 250px);min-height:600px;display:flex;justify-content:center;align-items:center;background-color:#525659}.container[_ngcontent-%COMP%] .pdf-container[_ngcontent-%COMP%] .pdf-iframe[_ngcontent-%COMP%]{width:100%;height:100%;border:none}.container[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{padding:2rem;text-align:center;background-color:#fff3cd;border:1px solid #ffc107;border-radius:4px;margin:1rem 0}.container[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#856404;margin-bottom:1rem}.container[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{text-align:left;display:inline-block;margin:1rem 0}.container[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%] .console-hint[_ngcontent-%COMP%]{font-size:.875rem;color:#6c757d;margin-top:1rem}"]})}}return t})();var hl=()=>["../"];function xl(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(c=>{let o=c.headers.get("Content-Type"),u=new Blob([c.body],{type:o}),x=URL.createObjectURL(u);this.pentahoUrl=this.sanitizer.bypassSecurityTrustResourceUrl(x),this.hideOutput=!1})}static{this.\u0275fac=function(c){return new(c||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(c,o){if(c&1){let u=y();i(0,"form",2),b("ngSubmit",function(){return M(u),A(o.generate())}),i(1,"div",3)(2,"mat-form-field",4),b("click",function(){M(u);let B=w(9);return A(B.open())}),i(3,"mat-label"),r(4),s(5,"translate"),a(),C(6,"input",5)(7,"mat-datepicker-toggle",6)(8,"mat-datepicker",null,0),i(10,"mat-error"),r(11),s(12,"translate"),s(13,"translate"),i(14,"strong"),r(15),s(16,"translate"),a()()(),i(17,"mat-form-field",4),b("click",function(){M(u);let B=w(24);return A(B.open())}),i(18,"mat-label"),r(19),s(20,"translate"),a(),C(21,"input",7)(22,"mat-datepicker-toggle",6)(23,"mat-datepicker",null,1),i(25,"mat-error"),r(26),s(27,"translate"),s(28,"translate"),i(29,"strong"),r(30),s(31,"translate"),a()()()(),i(32,"div",8)(33,"button",9),r(34),s(35,"translate"),a(),i(36,"button",10),C(37,"fa-icon",11),r(38),s(39,"translate"),a()()(),v(40,xl,1,1,"iframe",12)}if(c&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",F(42,hl)),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,Y,nt,lt,at,ot,q,tt,Z,mt,vt,st,ht,xt,_t,k,St,D],styles:[".generate-button[_ngcontent-%COMP%]{max-height:2%;padding:1% 0 2% 6%;align-self:center}"]})}}return t})();var bl=()=>["../"];function Sl(t,m){t&1&&(i(0,"mat-error"),r(1),s(2,"translate"),s(3,"translate"),i(4,"strong"),r(5),s(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 Ml(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 Al(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),s(3,"translate"),a(),C(4,"input",17),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Account Number")))}function Tl(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),s(3,"translate"),a(),C(4,"input",18),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Cheque")))}function Pl(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),s(3,"translate"),a(),C(4,"input",19),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Routing Code")))}function Ol(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),s(3,"translate"),a(),C(4,"input",20),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Receipt Number")))}function yl(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),s(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,c=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:c});this.savingsService.executeSavingsAccountTransactionsCommand(this.savingAccountId,"modify",x,this.transactionTemplateData.id).subscribe(B=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(c){return new(c||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(c,o){if(c&1){let u=y();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return M(u),A(o.submit())}),i(3,"mat-card-content",3)(4,"mat-form-field",4),b("click",function(){M(u);let B=w(11);return A(B.open())}),i(5,"mat-label"),r(6),s(7,"translate"),a(),C(8,"input",5)(9,"mat-datepicker-toggle",6)(10,"mat-datepicker",null,0),v(12,Sl,7,9,"mat-error"),a(),C(13,"mifosx-input-amount",7),i(14,"mat-form-field")(15,"mat-label"),r(16),s(17,"translate"),a(),i(18,"mat-select",8),ut(19,Ml,2,2,"mat-option",9,dt),a()(),i(21,"div",10)(22,"span",11),b("click",function(){return M(u),A(o.addPaymentDetails())}),i(23,"mat-slide-toggle")(24,"div",12)(25,"span",13),r(26),s(27,"translate"),a()()()()(),v(28,Al,5,3,"mat-form-field"),v(29,Tl,5,3,"mat-form-field"),v(30,Pl,5,3,"mat-form-field"),v(31,Ol,5,3,"mat-form-field"),v(32,yl,5,3,"mat-form-field"),i(33,"mat-card-actions",14)(34,"button",15),r(35),s(36,"translate"),a(),i(37,"button",16),r(38),s(39,"translate"),a()()()()()()}if(c&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",F(33,bl)),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,Y,nt,lt,at,ot,q,X,ct,bt,tt,Z,mt,vt,st,wt,It,ht,xt,_t,k,Re,Ie,D],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]})}}return t})();function Dl(t,m){if(t&1){let e=y();i(0,"th",13)(1,"mat-checkbox",14),b("change",function(){M(e);let o=h(2);return A(o.toggleSelects())}),Zn("ngModelChange",function(o){M(e);let u=h(2);return Xn(u.selectAllItems,o)||(u.selectAllItems=o),A(o)}),a()()}if(t&2){let e=h(2);n(),Jn("ngModel",e.selectAllItems)}}function Il(t,m){if(t&1){let e=y();i(0,"td",15)(1,"mat-checkbox",14),b("change",function(){M(e);let o=h(2);return A(o.toggleSelect())}),Zn("ngModelChange",function(o){let u=M(e).$implicit;return Xn(u.selected,o)||(u.selected=o),A(o)}),a()()}if(t&2){let e=m.$implicit;n(),Jn("ngModel",e.selected)}}function wl(t,m){t&1&&(i(0,"th",13),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Client ID")))}function El(t,m){if(t&1&&(i(0,"td",15),r(1),a()),t&2){let e=m.$implicit;n(),p(e.id)}}function kl(t,m){t&1&&(i(0,"th",13),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Client Name")))}function Fl(t,m){if(t&1&&(i(0,"td",15),r(1),a()),t&2){let e=m.$implicit;n(),p(e.displayName)}}function Bl(t,m){t&1&&C(0,"tr",16)}function Nl(t,m){t&1&&C(0,"tr",17)}function Rl(t,m){if(t&1&&(i(0,"div")(1,"table",5),N(2,6),S(3,Dl,2,1,"th",7)(4,Il,2,1,"td",8),R(),N(5,9),S(6,wl,3,3,"th",7)(7,El,2,1,"td",8),R(),N(8,10),S(9,kl,3,3,"th",7)(10,Fl,2,1,"td",8),R(),S(11,Bl,1,0,"tr",11)(12,Nl,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(c=>c.selected).length===e}static{this.\u0275fac=function(c){return new(c||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(c,o){c&1&&(v(0,Rl,13,3,"div"),i(1,"div",0)(2,"button",1),C(3,"fa-icon",2),r(4),s(5,"translate"),a(),i(6,"button",3),r(7),s(8,"translate"),C(9,"fa-icon",4),a()()),c&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,Y,k,fe,Lt,qt,Ut,Ht,Ti,Mi,Gt,zt,jt,Wt,$t,Qt,me,St,ve,D],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 Vl(t,m){t&1&&C(0,"fa-icon",15)}function Ll(t,m){t&1&&C(0,"fa-icon",15)}function Gl(t,m){t&1&&C(0,"fa-icon",16)}function Ul(t,m){t&1&&C(0,"fa-icon",17)}function ql(t,m){t&1&&C(0,"fa-icon",18)}function Hl(t,m){t&1&&(r(0),s(1,"translate")),t&2&&p(l(1,1,"labels.inputs.DETAILS"))}function zl(t,m){t&1&&(r(0),s(1,"translate")),t&2&&p(l(1,1,"labels.inputs.TERMS"))}function jl(t,m){t&1&&(r(0),s(1,"translate")),t&2&&p(l(1,1,"labels.inputs.CHARGES"))}function $l(t,m){t&1&&(r(0),s(1,"translate")),t&2&&p(l(1,1,"labels.heading.Active Client Members"))}function Wl(t,m){t&1&&(r(0),s(1,"translate")),t&2&&p(l(1,1,"labels.inputs.PREVIEW"))}function Ql(t,m){if(t&1){let e=y();i(0,"mat-step",14),S(1,Wl,2,3,"ng-template",9),i(2,"mifosx-savings-account-preview-step",19),b("submitEvent",function(){M(e);let o=h();return A(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,c){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:c,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=[],c=this.selectedMembers.selectedMembers;for(let o=0;o<1;o++)e.push(this.setData(c[o],!0));for(let o=1;o<c.length;o++)e.push(this.setData(c[o],!1));return e}submit(){let c={clientArray:this.buildRequestData()};this.savingsService.createGsimAcccount(c).subscribe(o=>{this.router.navigate(["../",o.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(c){return new(c||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-create-gsim-account"]],viewQuery:function(c,o){if(c&1&&(Pt(oe,7),Pt(re,7),Pt(ce,7),Pt(ze,7)),c&2){let u;Ot(u=yt())&&(o.savingsAccountDetailsStep=u.first),Ot(u=yt())&&(o.savingsAccountTermsStep=u.first),Ot(u=yt())&&(o.savingsAccountChargesStep=u.first),Ot(u=yt())&&(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(c,o){if(c&1){let u=y();i(0,"div",1)(1,"mat-stepper",2,0),S(3,Vl,1,0,"ng-template",3)(4,Ll,1,0,"ng-template",4)(5,Gl,1,0,"ng-template",5)(6,Ul,1,0,"ng-template",6)(7,ql,1,0,"ng-template",7),i(8,"mat-step",8),S(9,Hl,2,3,"ng-template",9),i(10,"mifosx-savings-account-details-step",10),b("savingsAccountProductTemplate",function(B){return M(u),A(o.setTemplate(B))}),a()(),i(11,"mat-step",8),S(12,zl,2,3,"ng-template",9),C(13,"mifosx-savings-account-terms-step",11),a(),i(14,"mat-step"),S(15,jl,2,3,"ng-template",9),C(16,"mifosx-savings-account-charges-step",12),a(),i(17,"mat-step"),S(18,$l,2,3,"ng-template",9),C(19,"mifosx-savings-active-client-members",13),a(),v(20,Ql,3,5,"mat-step",14),a()()}c&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,Fe,Ee,St,ke,we,oe,re,ce,ze,be,D],encapsulation:2})}}return t})();var Kl=()=>[10,20,25],Yl=t=>["../","savings-accounts",t,"actions","Deposit"],Jl=t=>["../","savings-accounts",t,"actions","Withdrawal"],Xl=t=>["../../../","savings-accounts",t,"actions","Approve"],Zl=t=>["../../../","savings-accounts",t,"actions","Undo Approval"],tm=t=>["../../",t,"actions","Activate"],em=t=>["../../",t,"transactions"];function nm(t,m){t&1&&(i(0,"th",13),r(1),s(2,"translate"),s(3,"translate"),a()),t&2&&(n(),V(" ",l(2,2,"labels.inputs.Client")," ",l(3,4,"labels.inputs.Details")," "))}function im(t,m){if(t&1&&(i(0,"td",14),r(1),a()),t&2){let e=m.$implicit;n(),f(" ",e.displayName," ")}}function am(t,m){t&1&&(i(0,"th",13),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Saving Account")))}function om(t,m){if(t&1&&(i(0,"td",14),C(1,"i",15),s(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 rm(t,m){t&1&&(i(0,"th",13),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.menus.Products")))}function cm(t,m){if(t&1&&(i(0,"td",14),r(1),a()),t&2){let e=m.$implicit;n(),p(e.productName)}}function sm(t,m){t&1&&(i(0,"th",13),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Balance")))}function lm(t,m){t&1&&C(0,"td",14)}function mm(t,m){t&1&&(i(0,"th",13),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Actions")))}function pm(t,m){if(t&1){let e=y();i(0,"button",17),b("click",function(o){M(e);let u=h(2);return A(u.routeEdit(o))}),C(1,"i",18),s(2,"translate"),a()}if(t&2){let e=h().$implicit;d("routerLink",Ft(5,Yl,e.id)),n(),d("matTooltip",ft(l(2,3,"tooltips.Deposit")))}}function dm(t,m){if(t&1){let e=y();i(0,"button",17),b("click",function(o){M(e);let u=h(2);return A(u.routeEdit(o))}),C(1,"i",19),s(2,"translate"),a()}if(t&2){let e=h().$implicit;d("routerLink",Ft(5,Jl,e.id)),n(),d("matTooltip",ft(l(2,3,"tooltips.Withdraw")))}}function um(t,m){if(t&1){let e=y();i(0,"button",17),b("click",function(o){M(e);let u=h(2);return A(u.routeEdit(o))}),C(1,"i",20),s(2,"translate"),a()}if(t&2){let e=h().$implicit;d("routerLink",Ft(5,Xl,e.id)),n(),d("matTooltip",ft(l(2,3,"tooltips.Approve")))}}function gm(t,m){if(t&1){let e=y();i(0,"button",17),b("click",function(o){M(e);let u=h(2);return A(u.routeEdit(o))}),C(1,"i",21),s(2,"translate"),a()}if(t&2){let e=h().$implicit;d("routerLink",Ft(5,Zl,e.id)),n(),d("matTooltip",ft(l(2,3,"tooltips.Undo Approval")))}}function fm(t,m){if(t&1){let e=y();i(0,"button",17),b("click",function(o){M(e);let u=h(2);return A(u.routeEdit(o))}),C(1,"i",22),s(2,"translate"),a()}if(t&2){let e=h().$implicit;d("routerLink",Ft(5,tm,e.id)),n(),d("matTooltip",ft(l(2,3,"tooltips.Activate")))}}function Cm(t,m){if(t&1&&(i(0,"td",14),v(1,pm,3,7,"button",16),v(2,dm,3,7,"button",16),v(3,um,3,7,"button",16),v(4,gm,3,7,"button",16),v(5,fm,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 vm(t,m){t&1&&C(0,"tr",23)}function _m(t,m){if(t&1&&C(0,"tr",24),t&2){let e=m.$implicit;d("routerLink",Ft(1,em,e.id))}}var zn=(()=>{class t{constructor(){this.route=g(E),this.dialog=g(Dt),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(c){return new(c||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-gsim-account"]],viewQuery:function(c,o){if(c&1&&Pt(De,7),c&2){let u;Ot(u=yt())&&(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(c,o){c&1&&(i(0,"div",0)(1,"div",1)(2,"h2"),r(3),s(4,"translate"),a(),i(5,"table",2),N(6,3),S(7,nm,4,6,"th",4)(8,im,2,1,"td",5),R(),N(9,6),S(10,am,3,3,"th",4)(11,om,4,5,"td",5),R(),N(12,7),S(13,rm,3,3,"th",4)(14,cm,2,1,"td",5),R(),N(15,8),S(16,sm,3,3,"th",4)(17,lm,1,0,"td",5),R(),N(18,9),S(19,mm,3,3,"th",4)(20,Cm,6,5,"td",5),R(),S(21,vm,1,0,"tr",10)(22,_m,1,3,"tr",11),a(),C(23,"mat-paginator",12),a()()),c&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",F(7,Kl)))},dependencies:[P,de,O,q,k,Lt,qt,Ut,Ht,Gt,zt,ge,jt,Wt,$t,Qt,De,D,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 c=e.parent.parent.paramMap.get("id"),o=e.paramMap.get("datatableName");return this.savingsService.getSavingsTransactionDatatable(c,o)}static{this.\u0275fac=function(c){return new(c||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(c){return new(c||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var jn=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let c=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(c,void 0,o)}static{this.\u0275fac=function(c){return new(c||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var si=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let c=e.paramMap.get("savingAccountId");return this.savingsService.getSavingsAccountAndTemplate(c,!0)}static{this.\u0275fac=function(c){return new(c||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var li=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let c=e.parent.paramMap.get("savingAccountId"),o=e.parent.paramMap.get("id");return this.savingsService.getSavingsAccountTransaction(c,o)}static{this.\u0275fac=function(c){return new(c||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var mi=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let c=e.parent.paramMap.get("savingAccountId"),o=e.paramMap.get("id");return this.savingsService.getSavingsAccountCharge(c,o)}static{this.\u0275fac=function(c){return new(c||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var pi=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let c=e.paramMap.get("name"),o=e.paramMap.get("savingAccountId")||e.parent.parent.paramMap.get("savingAccountId");switch(c){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(c){return new(c||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(c){return new(c||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var ui=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let c=e.parent.paramMap.get("savingAccountId"),o=e.paramMap.get("id");return this.savingsService.getSavingsAccountTransactionTemplate(c,o)}static{this.\u0275fac=function(c){return new(c||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var gi=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let c=e.paramMap.get("groupId"),o=e.paramMap.get("savingAccountId");return this.savingsService.getGSIMAccountData(o,c)}static{this.\u0275fac=function(c){return new(c||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(Dt),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(c=>{c.docUrl=this.settingsService.serverUrl+"/savings/"+c.parentEntityId+"/documents/"+c.id+"/attachment?tenantIdentifier="+Xe.fineractPlatformTenantId,c.fileName&&(c.fileName.toLowerCase().indexOf(".jpg")!==-1||c.fileName.toLowerCase().indexOf(".jpeg")!==-1||c.fileName.toLowerCase().indexOf(".png")!==-1)&&(c.fileIsImage=!0),c.type&&c.type.toLowerCase().indexOf("image")!==-1&&(c.fileIsImage=!0)}),this.entityDocuments=e}uploadDocument(e){return this.savingsService.loadSavingsDocument(this.entityId,e)}deleteDocument(e){this.savingsService.deleteSavingsDocument(this.entityId,e).subscribe(c=>{})}static{this.\u0275fac=function(c){return new(c||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(c,o){c&1&&C(0,"mifosx-entity-documents-tab",0),c&2&&d("entityType",o.entityType)("entityId",o.entityId)("entityDocuments",o.entityDocuments)("callbackUpload",o.uploadDocument)("callbackDelete",o.deleteDocument)},dependencies:[P,O,Ni],encapsulation:2})}}return t})();var Wn=(()=>{class t{constructor(){this.route=g(E),this.savingsService=g(I),this.authenticationService=g(Si);let e=this.authenticationService.getCredentials();this.username=e.username,this.entityId=this.route.parent.snapshot.params.savingAccountId,this.route.data.subscribe(c=>{this.entityNotes=c.savingAccountNotes})}addNote(e){this.savingsService.createSavingsNote(this.entityId,e).subscribe(c=>{this.entityNotes.push({id:c.resourceId,createdByUsername:this.username,createdOn:new Date,note:e.note})})}editNote(e,c,o){this.savingsService.editSavingsNote(this.entityId,e,c).subscribe(()=>{this.entityNotes[o].note=c.note})}deleteNote(e,c){this.savingsService.deleteSavingsNote(this.entityId,e).subscribe(()=>{this.entityNotes.splice(c,1)})}static{this.\u0275fac=function(c){return new(c||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-notes-tab"]],decls:1,vars:5,consts:[[3,"entityId","entityNotes","callbackAdd","callbackEdit","callbackDelete"]],template:function(c,o){c&1&&C(0,"mifosx-entity-notes-tab",0),c&2&&d("entityId",o.entityId)("entityNotes",o.entityNotes)("callbackAdd",o.addNote)("callbackEdit",o.editNote)("callbackDelete",o.deleteNote)},dependencies:[P,O,Bi],encapsulation:2})}}return t})();var ji=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let c=e.parent.paramMap.get("savingAccountId");return this.savingsService.getSavingsNotes(c)}static{this.\u0275fac=function(c){return new(c||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var $i=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let c=e.parent.paramMap.get("savingAccountId");return this.savingsService.getSavingsDocuments(c)}static{this.\u0275fac=function(c){return new(c||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var hm=()=>({confirm:!0}),Qn=(()=>{class t{constructor(){this.dialogRef=g(Xt)}static{this.\u0275fac=function(c){return new(c||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(c,o){c&1&&(i(0,"h1",0),r(1),s(2,"translate"),a(),i(3,"div",1)(4,"p"),r(5),s(6,"translate"),a()(),i(7,"mat-dialog-actions",2)(8,"button",3),r(9),s(10,"translate"),a(),i(11,"button",4),r(12),s(13,"translate"),a()()),c&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",F(13,hm)),n(),f(" ",l(13,11,"labels.buttons.Confirm")," "))},dependencies:[P,O,k,te,ee,ne,Zt,D],encapsulation:2})}}return t})();var xm=()=>["../../"];function bm(t,m){t&1&&(i(0,"button",10),C(1,"fa-icon",11),r(2),s(3,"translate"),a()),t&2&&(d("routerLink","edit"),n(2),f("",l(3,2,"labels.buttons.Edit")," "))}function Sm(t,m){if(t&1&&(i(0,"span"),v(1,bm,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 Mm(t,m){t&1&&(i(0,"span"),S(1,Sm,2,1,"span",9),a()),t&2&&(n(),d("mifosxHasPermission","ADJUSTTRANSACTION_SAVINGSACCOUNT"))}function Am(t,m){if(t&1){let e=y();i(0,"button",13),b("click",function(){M(e);let o=h(2);return A(o.releaseAmount())}),C(1,"fa-icon",14),r(2),s(3,"translate"),a()}t&2&&(n(2),f("",l(3,1,"labels.buttons.Release Amount")," "))}function Tm(t,m){t&1&&(i(0,"span"),S(1,Am,4,3,"button",12),a()),t&2&&(n(),d("mifosxHasPermission","RELEASEAMOUNT_SAVINGSACCOUNT"))}function Pm(t,m){if(t&1){let e=y();i(0,"button",16),b("click",function(){M(e);let o=h(2);return A(o.undoTransaction())}),C(1,"fa-icon",17),r(2),s(3,"translate"),a()}t&2&&(n(2),f("",l(3,1,"labels.buttons.Undo")," "))}function Om(t,m){t&1&&(i(0,"span"),S(1,Pm,4,3,"button",15),a()),t&2&&(n(),d("mifosxHasPermission","UNDOTRANSACTION_SAVINGSACCOUNT"))}function ym(t,m){t&1&&(i(0,"div",4),r(1),s(2,"translate"),a()),t&2&&(n(),f(" ",l(2,1,"labels.inputs.Note")," "))}function Dm(t,m){if(t&1&&(i(0,"div",5),r(1),a()),t&2){let e=h();n(),f(" ",e.transactionData.note," ")}}function Im(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(Dt),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(c=>{if(c.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(c=>{if(c.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(c){return new(c||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(c,o){c&1&&(i(0,"div",0),v(1,Mm,2,1,"span"),v(2,Tm,2,1,"span"),v(3,Om,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),s(11,"translate"),a(),i(12,"div",5),r(13),a(),i(14,"div",4),r(15),s(16,"translate"),a(),i(17,"div",5),r(18),s(19,"translateKey"),a(),i(20,"div",4),r(21),s(22,"translate"),a(),i(23,"div",5),r(24),s(25,"dateFormat"),a(),i(26,"div",4),r(27),s(28,"translate"),a(),i(29,"div",5),r(30),a(),i(31,"div",4),r(32),s(33,"translate"),a(),i(34,"div",5),r(35),s(36,"currency"),a(),v(37,ym,3,3,"div",4),v(38,Dm,2,1,"div",5),v(39,Im,1,1,"mifosx-transaction-payment-detail",6),a(),i(40,"div",7)(41,"button",8),r(42),s(43,"translate"),a()()()()()),c&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(" ",K(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",F(41,xm)),n(),f(" ",l(43,39,"labels.buttons.Back")," "))},dependencies:[P,de,O,q,X,ct,k,Rt,St,Li,se,Bt,D,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 wm(t,m){t&1&&(i(0,"div",0),C(1,"div",2),a())}function Em(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 km(t,m){t&1&&(i(0,"td"),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Not Provided")))}function Fm(t,m){if(t&1&&(i(0,"span"),r(1),s(2,"formatNumber"),a()),t&2){let e=h(3);n(),f("",l(2,1,e.savingsAccountData.nominalAnnualInterestRate)," %")}}function Bm(t,m){t&1&&(i(0,"span"),r(1,"0 %"),a())}function Nm(t,m){if(t&1&&(i(0,"div")(1,"h4",5),r(2),s(3,"translate"),a(),i(4,"table")(5,"tbody")(6,"tr")(7,"td"),r(8),s(9,"translate"),a(),v(10,Em,2,2,"td"),v(11,km,3,3,"td"),a(),i(12,"tr")(13,"td"),r(14),s(15,"translate"),a(),i(16,"td"),r(17),s(18,"dateFormat"),a()(),i(19,"tr")(20,"td"),r(21),s(22,"translate"),a(),i(23,"td"),r(24),a()(),i(25,"tr")(26,"td"),r(27),s(28,"translate"),a(),i(29,"td"),r(30),a()(),i(31,"tr")(32,"td"),r(33),s(34,"translate"),a(),i(35,"td",6),v(36,Fm,3,3,"span"),v(37,Bm,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 Rm(t,m){if(t&1&&(i(0,"div")(1,"h4",5),r(2),s(3,"translate"),a(),i(4,"table")(5,"tbody")(6,"tr")(7,"td"),r(8),s(9,"translate"),a(),i(10,"td"),r(11),a()(),i(12,"tr")(13,"td"),r(14),s(15,"translate"),a(),i(16,"td",6),r(17),s(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(" ",K(18,11,e.savingsAccountData.summary.accountBalance,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Vm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),s(3,"translate"),a(),i(4,"td",6),r(5),s(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Total Deposits")),n(3),f(" ",K(6,4,e.savingsAccountData.summary.totalDeposits,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Lm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),s(3,"translate"),a(),i(4,"td",6),r(5),s(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Total Interest Earned")),n(3),f(" ",K(6,4,e.savingsAccountData.summary.totalInterestEarned,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Gm(t,m){if(t&1&&(i(0,"div")(1,"h4",5),r(2),s(3,"translate"),a(),i(4,"table")(5,"tbody"),v(6,Vm,7,9,"tr"),v(7,Lm,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 Um(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),s(3,"translate"),a(),i(4,"td",6),r(5),s(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Total Withdrawls")),n(3),f(" ",K(6,4,e.savingsAccountData.summary.totalWithdrawals,e.currency.code,"symbol-narrow","1.2-2")," ")}}function qm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),s(3,"translate"),a(),i(4,"td",6),r(5),s(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Withdrawals Fees")),n(3),f(" ",K(6,4,e.savingsAccountData.summary.totalWithdrawalFees,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Hm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),s(3,"translate"),a(),i(4,"td",6),r(5),s(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Annual Fees")),n(3),f(" ",K(6,4,e.savingsAccountData.summary.totalAnnualFees,e.currency.code,"symbol-narrow","1.2-2")," ")}}function zm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),s(3,"translate"),a(),i(4,"td",6),r(5),s(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Interest Earned")),n(3),f(" ",K(6,4,e.savingsAccountData.summary.totalInterestEarned,e.currency.code,"symbol-narrow","1.2-2")," ")}}function jm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),s(3,"translate"),a(),i(4,"td",6),r(5),s(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Interest Posted")),n(3),f(" ",K(6,4,e.savingsAccountData.summary.totalInterestPosted,e.currency.code,"symbol-narrow","1.2-2")," ")}}function $m(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),s(3,"translate"),a(),i(4,"td",6),r(5),s(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Interest Earned Not Posted")),n(3),f(" ",K(6,4,e.savingsAccountData.summary.interestNotPosted,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Wm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),s(3,"translate"),a(),i(4,"td",6),r(5),s(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Interest On Overdraft")),n(3),f(" ",K(6,4,e.savingsAccountData.summary.totalOverdraftInterestDerived,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Qm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),s(3,"translate"),a(),i(4,"td",6),r(5),s(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Overdraft Interest Not Posted")),n(3),f(" ",K(6,4,e.savingsAccountData.summary.interestNotPosted,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Km(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),s(3,"translate"),a(),i(4,"td",6),r(5),s(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 Ym(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),s(3,"translate"),a(),i(4,"td",6),r(5),s(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Withdrawal Fee")),n(3),f(" ",K(6,4,e.savingsAccountData.withdrawalFee.amount,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Jm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),s(3,"translate"),a(),i(4,"td"),r(5),s(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 Xm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),s(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 Zm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),s(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 tp(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),s(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 ep(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),s(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 np(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),s(3,"translate"),a(),i(4,"td",6),r(5),s(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Annual Fee")),n(3),f(" ",K(6,4,e.savingsAccountData.annualFee.amount,e.currency.code,"symbol-narrow","1.2-2")," ")}}function ip(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),s(3,"translate"),a(),i(4,"td",6),r(5),s(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Overdraft Limit")),n(3),f(" ",K(6,4,e.savingsAccountData.overdraftLimit,e.currency.code,"symbol-narrow","1.2-2")," ")}}function ap(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),s(3,"translate"),a(),i(4,"td"),r(5),s(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(" ",K(6,4,e.savingsAccountData.minOverdraftForInterestCalculation,e.currency.code,"symbol-narrow","1.2-2")," ")}}function op(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),s(3,"translate"),a(),i(4,"td"),r(5),s(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 rp(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),s(3,"translate"),a(),i(4,"td"),r(5),s(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 cp(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),s(3,"translate"),a(),i(4,"td"),r(5),s(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 sp(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),s(3,"translate"),a(),i(4,"td"),r(5),s(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 lp(t,m){if(t&1&&(i(0,"a"),r(1),s(2,"currency"),a()),t&2){let e=h(4);n(),p(K(2,1,e.savingsAccountData.onHoldFunds,e.currency.code,"symbol-narrow","1.2-2"))}}function mp(t,m){t&1&&(i(0,"tr")(1,"td"),r(2),s(3,"translate"),a(),i(4,"td"),S(5,lp,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 pp(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),s(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 dp(t,m){if(t&1&&(i(0,"div",4)(1,"h4",5),r(2),s(3,"translate"),a(),i(4,"table")(5,"tbody"),v(6,Um,7,9,"tr"),v(7,qm,7,9,"tr"),v(8,Hm,7,9,"tr"),v(9,zm,7,9,"tr"),v(10,jm,7,9,"tr"),v(11,$m,7,9,"tr"),v(12,Wm,7,9,"tr"),v(13,Qm,7,9,"tr"),v(14,Km,7,6,"tr"),i(15,"tr")(16,"td"),r(17),s(18,"translate"),a(),i(19,"td"),r(20),s(21,"translateKey"),a()(),i(22,"tr")(23,"td"),r(24),s(25,"translate"),a(),i(26,"td"),r(27),s(28,"translateKey"),a()(),i(29,"tr")(30,"td"),r(31),s(32,"translate"),a(),i(33,"td"),r(34),s(35,"translateKey"),a()(),i(36,"tr")(37,"td"),r(38),s(39,"translate"),a(),i(40,"td"),r(41),s(42,"translateKey"),a()(),v(43,Ym,7,9,"tr"),v(44,Jm,7,6,"tr"),v(45,Xm,6,4,"tr"),v(46,Zm,6,4,"tr"),v(47,tp,6,4,"tr"),v(48,ep,6,4,"tr"),v(49,np,7,9,"tr"),v(50,ip,7,9,"tr"),v(51,ap,7,9,"tr"),v(52,op,7,6,"tr"),v(53,rp,7,6,"tr"),v(54,cp,7,6,"tr"),v(55,sp,7,6,"tr"),v(56,mp,6,4,"tr"),v(57,pp,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 up(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 gp(t,m){t&1&&(i(0,"td"),r(1),s(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Not Provided")))}function fp(t,m){if(t&1&&(i(0,"div",4)(1,"h4",5),r(2),s(3,"translate"),a(),i(4,"table")(5,"tbody")(6,"tr")(7,"td"),r(8),s(9,"translate"),a(),v(10,up,2,2,"td"),v(11,gp,3,3,"td"),a(),i(12,"tr")(13,"td"),r(14),s(15,"translate"),a(),i(16,"td"),r(17),s(18,"dateFormat"),a()(),i(19,"tr")(20,"td"),r(21),s(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 Cp(t,m){if(t&1&&(i(0,"div",1)(1,"div",3),v(2,Nm,38,28,"div")(3,Rm,19,16,"div"),v(4,Gm,8,5,"div"),a(),v(5,dp,58,55,"div",4)(6,fp,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 c=this.savingsAccountData.status.value;this.isActive=c==="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(c){return new(c||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(c,o){c&1&&(v(0,wm,2,0,"div",0),v(1,Cp,7,3,"div",1)),c&2&&(_(o.isLoading?0:-1),n(),_(o.isLoading?-1:1))},dependencies:[P,O,Rt,Be,se,Bt,D,Nt,_e,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 vp=[{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:kn,data:{title:"Savings Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions",component:Fn,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:ji}},{path:"documents",component:$n,data:{title:"Savings Account Documents",breadcrumb:"Documents",routeParamBreadcrumb:!1},resolve:{savingsDocuments:$i}},{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-PS7526FV.js").then(t=>t.AccountTransfersModule)},{path:"gsim-account",children:[{path:"create",data:{title:"Create GSIM Application",breadcrumb:"Create GSIM Application"},component:Hn,resolve:{groupsData:zi,savingsAccountTemplate:jn}},{path:":savingAccountId",data:{title:"GSIM Account View",routeParamBreadcrumb:"savingAccountId"},children:[{path:"",component:zn,resolve:{gsimData:gi,savingAccountData:qe,groupsData:ni}}]}]}]}],Wi=(()=>{class t{static{this.\u0275fac=function(c){return new(c||t)}}static{this.\u0275mod=Qe({type:t})}static{this.\u0275inj=je({providers:[qe,ai,ii,ri,ci,jn,si,li,mi,pi,di,ui,Hi,ni,gi],imports:[ti.forChild(vp),ti]})}}return t})();var Qi=(()=>{class t{constructor(){}static{this.\u0275fac=function(c){return new(c||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-transaction-datatable-tab"]],decls:3,vars:3,template:function(c,o){c&1&&(vi(0,"p"),r(1),s(2,"translate"),_i()),c&2&&(n(),f("",l(2,1,"labels.heading.savings-transaction-datatable-tab works"),"!"))},dependencies:[P,O,D],encapsulation:2})}}return t})();var u2=(()=>{class t{static{this.\u0275fac=function(c){return new(c||t)}}static{this.\u0275mod=Qe({type:t})}static{this.\u0275inj=je({imports:[Ui,Fi,Ri,Wi,En,yn,vn,Cn,kn,Fn,Bn,Nn,oe,ce,re,be,Rn,hn,xn,bn,Sn,Mn,An,Tn,un,gn,Vn,Ve,Ln,Le,Ge,Pn,On,Dn,He,Gn,Un,qn,In,zn,Hn,wn,Qn,$n,Wn,_n,Kn,Qi,Yn,ze]})}}return t})();export{u2 as SavingsModule};