PageSourceSearch

https://clients.bhagawealth.com/773.b759adfd57b450bf.js

js bhagawealth.com collected 2026-10-02 01:24:49 UTC 267,511 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmyplanner=self.webpackChunkmyplanner||[]).push([[773],{6497:(it,k,g)=>{g.d(k,{V:()=>N});var t=g(70661),d=g(94650),s=g(34793),p=g(36895);function U(w,K){if(1&w){const G=d.EpF();d.TgZ(0,"li")(1,"img",3),d.NdJ("click",function(){d.CHM(G);const y=d.oxw();return d.KtG(y.goToRoute(1))}),d.qZA()()}}function o(w,K){if(1&w){const G=d.EpF();d.TgZ(0,"li")(1,"img",4),d.NdJ("click",function(){d.CHM(G);const y=d.oxw();return d.KtG(y.goToRoute(1))}),d.qZA()()}}function P(w,K){if(1&w){const G=d.EpF();d.TgZ(0,"li")(1,"img",5),d.NdJ("click",function(){d.CHM(G);const y=d.oxw();return d.KtG(y.goToRoute(2))}),d.qZA()()}}function S(w,K){if(1&w){const G=d.EpF();d.TgZ(0,"li")(1,"img",6),d.NdJ("click",function(){d.CHM(G);const y=d.oxw();return d.KtG(y.goToRoute(2))}),d.qZA()()}}function F(w,K){if(1&w){const G=d.EpF();d.TgZ(0,"li")(1,"img",7),d.NdJ("click",function(){d.CHM(G);const y=d.oxw();return d.KtG(y.goToRoute(5))}),d.qZA()()}}function M(w,K){if(1&w){const G=d.EpF();d.TgZ(0,"li")(1,"img",8),d.NdJ("click",function(){d.CHM(G);const y=d.oxw();return d.KtG(y.goToRoute(5))}),d.qZA()()}}function I(w,K){if(1&w){const G=d.EpF();d.TgZ(0,"li")(1,"img",9),d.NdJ("click",function(){d.CHM(G);const y=d.oxw();return d.KtG(y.goToRoute(3))}),d.qZA()()}}function O(w,K){if(1&w){const G=d.EpF();d.TgZ(0,"li")(1,"img",10),d.NdJ("click",function(){d.CHM(G);const y=d.oxw();return d.KtG(y.goToRoute(3))}),d.qZA()()}}function J(w,K){if(1&w){const G=d.EpF();d.TgZ(0,"li")(1,"img",11),d.NdJ("click",function(){d.CHM(G);const y=d.oxw();return d.KtG(y.goToRoute(4))}),d.qZA()()}}function Q(w,K){if(1&w){const G=d.EpF();d.TgZ(0,"li")(1,"img",12),d.NdJ("click",function(){d.CHM(G);const y=d.oxw();return d.KtG(y.goToRoute(4))}),d.qZA()()}}let N=(()=>{class w{constructor(G,x){this.router=G,this.roleService=x}ngOnInit(){this.homeShowModule=this.roleService.overviewPermission.subModules.myFeed.enabled,this.portfolioShowModule=this.roleService.portfolioPermission.enabled,this.goalShowModule=this.roleService.planPermission.subModule.goals.enabled,this.profileShowModule=this.roleService.overviewPermission.subModules.profile.enabled,this.documentShowModule=this.roleService.overviewPermission.subModules.documents.enabled,this.transactShowModule=this.roleService.transactionPermission.enabled}goToRoute(G){if(1==G&&this.router.navigate(["/customer/detail/overview/myfeed"]),2==G&&this.router.navigate(["/customer/detail/account/summary"]),3==G){let x;if(this.roleService.transactionPermission.subModule.transactionsModule.enabled)return x="/customer/detail/transact/transcation",void this.router.navigate([x]);if(this.roleService.transactionPermission.subModule.investorsModule.enabled)return x="/customer/detail/transact/investors",void this.router.navigate([x]);if(this.roleService.transactionPermission.subModule.mandateModule.enabled)return x="/customer/detail/transact/mandate",void this.router.navigate([x])}4==G&&this.router.navigate(["/customer/detail/overview/profile"]),5==G&&this.router.navigate(["/customer/detail/plan/goals"])}}return w.\u0275fac=function(G){return new(G||w)(d.Y36(s.F0),d.Y36(t.N))},w.\u0275cmp=d.Xpm({type:w,selectors:[["app-mobile-footer"]],inputs:{activeTab:"activeTab"},decls:12,vars:10,consts:[[1,"bottom-mob-footer"],[1,""],[4,"ngIf"],["src","https://res.cloudinary.com/futurewise/image/upload/v1621333063/myplanner/images/svg/webp/home-active.webp","width","22","height","22","alt","IFAnow",3,"click"],["src","https://res.cloudinary.com/futurewise/image/upload/v1621334051/myplanner/images/svg/webp/mob-nav-1.webp","width","22","height","22","alt","IFAnow",3,"click"],["src","https://res.cloudinary.com/futurewise/image/upload/v1621331921/myplanner/images/svg/webp/rupee-active.webp","width","22","height","22","alt","IFAnow",3,"click"],["src","https://res.cloudinary.com/futurewise/image/upload/v1621325570/myplanner/images/svg/webp/mob-nav-2.webp","width","22","height","22","alt","IFAnow",3,"click"],["src","/assets/images/svg/mobile/mob-plan.svg","alt","IFAnow",1,"hw-22",3,"click"],["src","https://res.cloudinary.com/futurewise/image/upload/v1619592644/myplanner/images/svg/goal-active.svg","alt","IFAnow",1,"hw-22",3,"click"],["src","https://res.cloudinary.com/futurewise/image/upload/v1639378235/shopping-cart-blue_cv2hdt.svg","width","22","height","22","alt","IFAnow",3,"click"],["src","https://res.cloudinary.com/futurewise/image/upload/v1639377400/Group_kiedqk.svg","height","22","width","22","alt","IFAnow",3,"click"],["src","https://res.cloudinary.com/futurewise/image/upload/v1621342632/myplanner/images/svg/webp/people-blue.svg","width","22","height","22","alt","IFAnow",3,"click"],["src","https://res.cloudinary.com/futurewise/image/upload/v1621334490/myplanner/images/svg/webp/people-black.webp","width","22","height","22","alt","IFAnow",3,"click"]],template:function(G,x){1&G&&(d.TgZ(0,"div",0)(1,"ul",1),d.YNc(2,U,2,0,"li",2),d.YNc(3,o,2,0,"li",2),d.YNc(4,P,2,0,"li",2),d.YNc(5,S,2,0,"li",2),d.YNc(6,F,2,0,"li",2),d.YNc(7,M,2,0,"li",2),d.YNc(8,I,2,0,"li",2),d.YNc(9,O,2,0,"li",2),d.YNc(10,J,2,0,"li",2),d.YNc(11,Q,2,0,"li",2),d.qZA()()),2&G&&(d.xp6(2),d.Q6J("ngIf",1==x.activeTab&&x.homeShowModule),d.xp6(1),d.Q6J("ngIf",1!=x.activeTab&&x.homeShowModule),d.xp6(1),d.Q6J("ngIf",2==x.activeTab&&x.portfolioShowModule),d.xp6(1),d.Q6J("ngIf",2!=x.activeTab&&x.portfolioShowModule),d.xp6(1),d.Q6J("ngIf",5!=x.activeTab&&x.goalShowModule&&x.roleService.planPermission.enabled),d.xp6(1),d.Q6J("ngIf",5==x.activeTab&&x.goalShowModule&&x.roleService.planPermission.enabled),d.xp6(1),d.Q6J("ngIf",3==x.activeTab&&x.transactShowModule),d.xp6(1),d.Q6J("ngIf",3!=x.activeTab&&x.transactShowModule),d.xp6(1),d.Q6J("ngIf",4==x.activeTab&&x.profileShowModule),d.xp6(1),d.Q6J("ngIf",4!=x.activeTab&&x.profileShowModule))},dependencies:[p.O5],styles:["[_nghost-%COMP%]     .bottom-mob-footer ul{display:flex!important;flex-direction:row!important}"]}),w})()},95177:(it,k,g)=>{g.d(k,{Z:()=>fe});var t=g(94650),d=g(65730),s=g(41074),p=g(67241),U=g(28914),o=g(13932),P=g(73799),S=g(27011),F=g(1325),M=g(34793),I=g(95661),O
1=g(36895),J=g(51572),Q=g(81638),N=g(21112);function w(u,T){1&u&&t._UZ(0,"mat-spinner",93),2&u&&t.Q6J("diameter",30)}function K(u,T){if(1&u){const n=t.EpF();t.TgZ(0,"a",94),t.NdJ("click",function(){t.CHM(n);const h=t.oxw();return t.KtG(h.pdf("test","goal"))}),t._UZ(1,"img",95),t.qZA()}}function G(u,T){if(1&u&&(t.TgZ(0,"h1",96),t._uU(1),t.qZA()),2&u){const n=t.oxw();t.xp6(1),t.hij(" ",null!=n.goalSummaryCountObj&&n.goalSummaryCountObj.totalGoals?null==n.goalSummaryCountObj?null:n.goalSummaryCountObj.totalGoals:0," ")}}const x=function(u){return{height24:u}};function y(u,T){if(1&u&&(t.TgZ(0,"div",97)(1,"div",98)(2,"p",99),t._uU(3),t.qZA()()()),2&u){const n=t.oxw();t.xp6(1),t.Q6J("ngClass",t.VKq(2,x,n.isLoadingGoals)),t.xp6(2),t.hij(" ","","")}}function B(u,T){if(1&u&&(t.TgZ(0,"h1",96),t._uU(1),t.qZA()),2&u){const n=t.oxw();t.xp6(1),t.hij(" ",null!=n.goalSummaryCountObj&&n.goalSummaryCountObj.upcomingGoalsCount?null==n.goalSummaryCountObj?null:n.goalSummaryCountObj.upcomingGoalsCount:0," ")}}function q(u,T){if(1&u&&(t.TgZ(0,"div",97)(1,"div",98)(2,"p",99),t._uU(3),t.qZA()()()),2&u){const n=t.oxw();t.xp6(1),t.Q6J("ngClass",t.VKq(2,x,n.isLoadingGoals)),t.xp6(2),t.hij(" ","","")}}function X(u,T){if(1&u&&(t.TgZ(0,"h4",100),t._UZ(1,"span",101),t.qZA()),2&u){const n=t.oxw();t.xp6(1),t.Q6J("shouldRoundOff",!0)("value",null!=n.goalSummaryCountObj&&n.goalSummaryCountObj.monthlyInvestmentMappedToGoals?null==n.goalSummaryCountObj?null:n.goalSummaryCountObj.monthlyInvestmentMappedToGoals:0)}}function A(u,T){if(1&u&&(t.TgZ(0,"div",97)(1,"div",102)(2,"p",99),t._uU(3),t.qZA()()()),2&u){const n=t.oxw();t.xp6(1),t.Q6J("ngClass",t.VKq(2,x,n.isLoadingGoals)),t.xp6(2),t.hij(" ","","")}}function H(u,T){if(1&u&&(t.TgZ(0,"h4",100),t._UZ(1,"span",101),t.qZA()),2&u){const n=t.oxw();t.xp6(1),t.Q6J("shouldRoundOff",!0)("value",null!=n.goalSummaryCountObj&&n.goalSummaryCountObj.lumpsumInvestmentMappedToGoals?null==n.goalSummaryCountObj?null:n.goalSummaryCountObj.lumpsumInvestmentMappedToGoals:0)}}function V(u,T){if(1&u&&(t.TgZ(0,"div",97)(1,"div",102)(2,"p",99),t._uU(3),t.qZA()()()),2&u){const n=t.oxw();t.xp6(1),t.Q6J("ngClass",t.VKq(2,x,n.isLoadingGoals)),t.xp6(2),t.hij(" ","","")}}function $(u,T){if(1&u&&(t.TgZ(0,"h4",100),t._UZ(1,"span",101),t.qZA()),2&u){const n=t.oxw();t.xp6(1),t.Q6J("shouldRoundOff",!0)("value",n.totalMonth?n.totalMonth:"0")}}function pt(u,T){if(1&u&&(t.TgZ(0,"div",97)(1,"div",102)(2,"p",99),t._uU(3),t.qZA()()()),2&u){const n=t.oxw();t.xp6(1),t.Q6J("ngClass",t.VKq(2,x,n.isLoadingGoals)),t.xp6(2),t.hij(" ","","")}}function Zt(u,T){if(1&u&&(t.TgZ(0,"h4",100),t._UZ(1,"span",101),t.qZA()),2&u){const n=t.oxw();t.xp6(1),t.Q6J("shouldRoundOff",!0)("value",n.totalLumpsum?n.totalLumpsum:"0")}}function At(u,T){if(1&u&&(t.TgZ(0,"div",97)(1,"div",102)(2,"p",99),t._uU(3),t.qZA()()()),2&u){const n=t.oxw();t.xp6(1),t.Q6J("ngClass",t.VKq(2,x,n.isLoadingGoals)),t.xp6(2),t.hij(" ","","")}}function Pt(u,T){if(1&u&&t._UZ(0,"img",123),2&u){const n=t.oxw().$implicit;t.Q6J("src",null==n?null:n.imageUrl,t.LSH)}}function Ct(u,T){1&u&&(t.TgZ(0,"span",124),t._uU(1,"HIGH"),t.qZA())}function wt(u,T){1&u&&(t.TgZ(0,"span",125),t._uU(1,"MEDIUM"),t.qZA())}function Gt(u,T){1&u&&(t.TgZ(0,"span",126),t._uU(1,"LOW"),t.qZA())}function ct(u,T){1&u&&(t.TgZ(0,"span",127),t._uU(1,"COMPLETED"),t.qZA())}const Z=function(u){return{color:u}};function St(u,T){if(1&u&&(t.ynx(0),t.TgZ(1,"span",7),t._uU(2,"\u20b9"),t.qZA(),t.TgZ(3,"span",74),t._uU(4),t.qZA(),t.BQk()),2&u){const n=t.oxw(2).$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(5,Z,null==i.colorData?null:i.colorData.colorTableRowText)),t.xp6(2),t.Q6J("ngStyle",t.VKq(7,Z,null==i.colorData?null:i.colorData.colorTableRowText))("shouldRoundOff",!1)("value",null==n?null:n.sumGoalPresentValue),t.xp6(1),t.hij(" ",null==n?null:n.sumGoalPresentValue," ")}}function Mt(u,T){if(1&u&&(t.TgZ(0,"span",7),t._uU(1),t.qZA()),2&u){const n=t.oxw(2).$implicit,i=t.oxw();t.Q6J("ngStyle",t.VKq(2,Z,null==i.colorData?null:i.colorData.colorTableRowText)),t.xp6(1),t.hij(" \u20b9",null==n?null:n.goalFV," ")}}function Ot(u,T){if(1&u&&(t.ynx(0),t.YNc(1,St,5,9,"ng-container",128),t.YNc(2,Mt,2,4,"ng-template",null,129,t.W1O),t.BQk()),2&u){const n=t.MAs(3),i=t.oxw().$implicit,h=t.oxw();
1t.xp6(1),t.Q6J("ngIf",h.isSumGoalPresentValueLessThanOrEqual(i))("ngIfElse",n)}}function qt(u,T){if(1&u&&(t.TgZ(0,"div",97)(1,"div",98)(2,"p",130),t._uU(3),t.qZA()()()),2&u){const n=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.VKq(2,x,n.isLoadingGoals)),t.xp6(2),t.Oqu("")}}function D(u,T){if(1&u&&(t.TgZ(0,"span",7),t._uU(1,"\u20b9"),t.qZA()),2&u){const n=t.oxw(2);t.Q6J("ngStyle",t.VKq(1,Z,null==n.colorData?null:n.colorData.colorTableRowText))}}function L(u,T){if(1&u&&(t.TgZ(0,"span",7),t._uU(1),t.qZA()),2&u){const n=t.oxw().$implicit,i=t.oxw();t.Q6J("ngStyle",t.VKq(2,Z,null==i.colorData?null:i.colorData.colorTableRowText)),t.xp6(1),t.Oqu(null==n?null:n.goalFV)}}function _(u,T){if(1&u&&(t.TgZ(0,"div",97)(1,"div",98)(2,"p",99),t._uU(3),t.qZA()()()),2&u){const n=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.VKq(2,x,n.isLoadingGoals)),t.xp6(2),t.Oqu("")}}function v(u,T){if(1&u&&(t.TgZ(0,"span",7),t._uU(1),t.qZA()),2&u){const n=t.oxw().$implicit,i=t.oxw();t.Q6J("ngStyle",t.VKq(2,Z,null==i.colorData?null:i.colorData.colorTableRowText)),t.xp6(1),t.hij("",null==n?null:n.inflationRateYearly,"%")}}function E(u,T){if(1&u&&(t.TgZ(0,"div",97)(1,"div",98)(2,"p",99),t._uU(3),t.qZA()()()),2&u){const n=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.VKq(2,x,n.isLoadingGoals)),t.xp6(2),t.hij(" ","","")}}function gt(u,T){if(1&u&&(t.TgZ(0,"span",7),t._uU(1,"\u20b9"),t.qZA()),2&u){const n=t.oxw(2);t.Q6J("ngStyle",t.VKq(1,Z,null==n.colorData?null:n.colorData.colorTableRowText))}}function xt(u,T){if(1&u&&(t.TgZ(0,"span",74),t._uU(1),t.qZA()),2&u){const n=t.oxw().$implicit,i=t.oxw();t.Q6J("ngStyle",t.VKq(4,Z,null==i.colorData?null:i.colorData.colorTableRowText))("shouldRoundOff",!1)("value",null==n?null:n.month),t.xp6(1),t.hij(" ",null==n?null:n.month," ")}}function lt(u,T){if(1&u&&(t.TgZ(0,"div",97)(1,"div",98)(2,"p",99),t._uU(3),t.qZA()()()),2&u){const n=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.VKq(2,x,n.isLoadingGoals)),t.xp6(2),t.hij(" ","","")}}function st(u,T){if(1&u&&(t.TgZ(0,"span",7),t._uU(1,"\u20b9"),t.qZA()),2&u){const n=t.oxw(2);t.Q6J("ngStyle",t.VKq(1,Z,null==n.colorData?null:n.colorData.colorTableRowText))}}function _t(u,T){if(1&u&&(t.TgZ(0,"span",74),t._uU(1),t.qZA()),2&u){const n=t.oxw().$implicit,i=t.oxw();t.Q6J("ngStyle",t.VKq(4,Z,null==i.colorData?null:i.colorData.colorTableRowText))("shouldRoundOff",!1)("value",null==n?null:n.lumpsum),t.xp6(1),t.hij(" ",null==n?null:n.lumpsum," ")}}function Yt(u,T){if(1&u&&(t.TgZ(0,"div",97)(1,"div",98)(2,"p",99),t._uU(3),t.qZA()()()),2&u){const n=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.VKq(2,x,n.isLoadingGoals)),t.xp6(2),t.hij(" ","","")}}const Rt=function(u,T){return{"background-color":u,"width.%":T}};function Kt(u,T){if(1&u){const n=t.EpF();t.TgZ(0,"tr",103)(1,"td",104)(2,"div",105),t.NdJ("click",function(){const W=t.CHM(n).$implicit,Y=t.oxw();return t.KtG(Y.navigateToDetailView(W))}),t.TgZ(3,"div",106),t.YNc(4,Pt,1,1,"img",107),t.qZA(),t.TgZ(5,"div",108)(6,"div",109)(7,"div")(8,"h5",110),t._uU(9),t.qZA(),t.TgZ(10,"div",111),t._uU(11),t.qZA()(),t.YNc(12,Ct,2,0,"span",112),t.ALo(13,"date"),t.ALo(14,"date"),t.YNc(15,wt,2,0,"span",113),t.ALo(16,"date"),t.ALo(17,"date"),t.YNc(18,Gt,2,0,"span",114),t.ALo(19,"date"),t.ALo(20,"date"),t.YNc(21,ct,2,0,"span",115),t.ALo(22,"date"),t.ALo(23,"date"),t.qZA(),t.TgZ(24,"div",116),t._UZ(25,"div",117)(26,"div",118),t.qZA()()()(),t.TgZ(27,"td",119),t.YNc(28,Ot,4,2,"ng-container",48),t.YNc(29,qt,4,4,"div",17),t.qZA(),t.TgZ(30,"td",119),t.YNc(31,D,2,3,"span",120),t.YNc(32,L,2,4,"span",120),t.YNc(33,_,4,4,"div",17),t.qZA(),t.TgZ(34,"td",119),t.YNc(35,v,2,4,"span",120),t.YNc(36,E,4,4,"div",17),t.qZA(),t.TgZ(37,"td",119),t.YNc(38,gt,2,3,"span",120),t.YNc(39,xt,2,6,"span",121),t.YNc(40,lt,4,4,"div",17),t.qZA(),t.TgZ(41,"td",122),t.YNc(42,st,2,3,"span",120),t.YNc(43,_t,2,6,"span",121),t.YNc(44,Yt,4,4,"div",17),t.qZA()()}if(2&u){const n=T.$implicit,i=t.oxw();t.Q6J("appSkeletonLoading",i.isLoadingGoals),t.xp6(4),t.Q6J("ngIf",null==n?null:n.imageUrl),t.xp6(5),t.Oqu(null==n?null:n.details),t.xp6(2),t.Oqu(null==n?null:n.year),t.xp6(1),t.Q6J("ngIf",6===n.priorityFlag&&t.xi3(13,26,n.goalEndDate,"yyyy-MM-dd")>t.xi3(14,29,i.today,"yyyy-MM-dd")),t.xp6(3),t.Q6J("ngIf",4===n.priorityFlag&&t.xi3(16,32,n.goalEndDate,"yyyy-MM-dd")>t.xi3(17,35,i.today,"yyyy-MM-dd")),t.xp6(3),t.Q6J("ngIf",2===n.priorityFlag&&t.xi3(19,38,n.goalEndDate,"yyyy-MM-dd")>t.xi3(20,41,i.today,"yyyy-MM-dd")),t.xp6(3),t.Q6J("ngIf",n.goalEndDate&&t.xi3(22,44,n.goalEndDate,"yyyy-MM-dd")<t.xi3(23,47,i.today,"yyyy-MM-dd")),t.xp6(4),t.Q6J("ngStyle",t.WLB(50,Rt,i.getOpacityColor(n.percentCompleted),null==n?null:n.avgAchievedPercent)),t.xp6(1),t.Udp("background-color",i.getSolidColor(n.percentCompleted))("width",n.percentCompleted,"%"),t.xp6(2),t.Q6J("ngIf",!i.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",i.isLoadingGoals),t.xp6(2),t.Q6J("ngIf",!i.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",!i.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",i.isLoadingGoals),t.xp6(2),t.Q6J("ngIf",!i.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",i.isLoadingGoals),t.xp6(2),t.Q6J("ngIf",!i.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",!i.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",i.isLoadingGoals),t.xp6(2),t.Q6J("ngIf",!i.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",!i.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",i.isLoadingGoals)}}function kt(u,T){if(1&u&&(t.TgZ(0,"div"),t._UZ(1,"img",133),t.qZA()),2&u){const n=t.oxw(2);t.xp6(1),t.Q6J("src",null==n.financialPlan?null:n.financialPlan.reportLogoUrl,t.LSH)}}function Bt(u,T){if(1&u&&(t.TgZ(0,"div"),t._UZ(1,"img",134),t.qZA()),2&u){const n=t.oxw(2);t.xp6(1),t.Q6J("src",n.financialPlan.logoUrl,t.LSH)}}function jt(u,T){if(1&u&&(t.TgZ(0,"p",135),t._uU(1),t.qZA()),2&u){const n=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,Z,null==n.colorData?null:n.colorData.colorYourDetailPdf)),t.xp6(1),t.hij(" ",null==n.financialPlan?null:n.financialPlan.companyName," ")}}function Wt(u,T){if(1&u&&(t.TgZ(0,"tr")(1,"td",131),t.YNc(2,kt,2,1,"div",48),t.YNc(3,Bt,2,1,"div",48),t.qZA(),t.TgZ(4,"td",49),t.YNc(5,jt,2,4,"p",132),t.qZA()()),2&u){const n=t.oxw();
1t.xp6(2),t.Q6J("ngIf",n.financialPlan&&null!=(null==n.financialPlan?null:n.financialPlan.reportLogoUrl)&&"https://res.cloudinary.com/futurewise/image/upload/v1566029063/icons_fakfxf.png"!=(null==n.financialPlan?null:n.financialPlan.reportLogoUrl)),t.xp6(1),t.Q6J("ngIf",n.financialPlan&&"https://res.cloudinary.com/futurewise/image/upload/v1566029063/icons_fakfxf.png"!=n.financialPlan.logoUrl&&"https://res.cloudinary.com/futurewise/image/upload/v1566029063/icons_fakfxf.png"==n.financialPlan.reportLogoUrl),t.xp6(2),t.Q6J("ngIf",n.financialPlan&&(null==n.financialPlan?null:n.financialPlan.companyName))}}function Ht(u,T){if(1&u&&(t.TgZ(0,"div"),t._UZ(1,"img",133),t.qZA()),2&u){const n=t.oxw(2);t.xp6(1),t.Q6J("src",null==n.financialPlan?null:n.financialPlan.reportLogoUrl,t.LSH)}}function Ut(u,T){if(1&u&&(t.TgZ(0,"div"),t._UZ(1,"img",134),t.qZA()),2&u){const n=t.oxw(2);t.xp6(1),t.Q6J("src",n.financialPlan.logoUrl,t.LSH)}}function zt(u,T){if(1&u&&(t.TgZ(0,"p",135),t._uU(1),t.qZA()),2&u){const n=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,Z,null==n.colorData?null:n.colorData.colorYourDetailPdf)),t.xp6(1),t.hij(" ",null==n.financialPlan?null:n.financialPlan.name," ")}}function $t(u,T){if(1&u&&(t.TgZ(0,"tr")(1,"td",131),t.YNc(2,Ht,2,1,"div",48),t.YNc(3,Ut,2,1,"div",48),t.qZA(),t.TgZ(4,"td",49),t.YNc(5,zt,2,4,"p",132),t.qZA()()),2&u){const n=t.oxw();t.xp6(2),t.Q6J("ngIf",n.financialPlan&&null!=(null==n.financialPlan?null:n.financialPlan.reportLogoUrl)&&"https://res.cloudinary.com/futurewise/image/upload/v1566029063/icons_fakfxf.png"!=(null==n.financialPlan?null:n.financialPlan.reportLogoUrl)),t.xp6(1),t.Q6J("ngIf",n.financialPlan&&"https://res.cloudinary.com/futurewise/image/upload/v1566029063/icons_fakfxf.png"!=n.financialPlan.logoUrl&&"https://res.cloudinary.com/futurewise/image/upload/v1566029063/icons_fakfxf.png"==n.financialPlan.reportLogoUrl),t.xp6(2),t.Q6J("ngIf",n.financialPlan&&(null==n.financialPlan?null:n.financialPlan.name))}}function Xt(u,T){if(1&u&&(t.TgZ(0,"p",136),t._uU(1),t.qZA()),2&u){const n=t.oxw();t.Q6J("ngStyle",t.VKq(2,Z,null==n.colorData?null:n.colorData.colorYourDetailPdf)),t.xp6(1),t.hij(" ",n.advisorTagline," ")}}function te(u,T){if(1&u&&(t.TgZ(0,"p",136),t._uU(1),t.qZA()),2&u){const n=t.oxw();t.Q6J("ngStyle",t.VKq(4,Z,null==n.colorData?null:n.colorData.colorYourDetailPdf)),t.xp6(1),t.lnq(" (",n.arnRiaNumber,", ",n.baslNumber?n.baslNumber:""," ",n.arnRiaType,") ")}}function ee(u,T){if(1&u&&(t.TgZ(0,"p",52),t._uU(1),t.qZA()),2&u){const n=t.oxw();t.Q6J("ngStyle",t.VKq(2,Z,null==n.colorData?null:n.colorData.colorYourDetailPdf)),t.xp6(1),t.hij(" Email ID: ",null==n.financialPlan?null:n.financialPlan.email," ")}}function le(u,T){if(1&u&&(t.TgZ(0,"p",52),t._uU(1),t.qZA()),2&u){const n=t.oxw();t.Q6J("ngStyle",t.VKq(2,Z,null==n.colorData?null:n.colorData.colorYourDetailPdf)),t.xp6(1),t.hij(" Mobile no.: ",null==n.financialPlan?null:n.financialPlan.mobile," ")}}function ae(u,T){if(1&u&&(t.TgZ(0,"span",137),t._uU(1),t.qZA()),2&u){const n=t.oxw();t.Q6J("ngStyle",t.VKq(2,Z,null==n.colorData?null:n.colorData.colorYourDetailPdf)),t.xp6(1),t.hij(" ",null==n.clientDetailsPdf?null:n.clientDetailsPdf.display_name," ")}}function oe(u,T){if(1&u&&(t.TgZ(0,"span",138),t._uU(1),t.qZA()),2&u){const n=t.oxw();t.Q6J("ngStyle",t.VKq(2,Z,null==n.colorData?null:n.colorData.colorYourDetailPdf)),t.xp6(1),t.hij(" (",null==n.clientDetailsPdf?null:n.clientDetailsPdf.pan,") ")}}function ne(u,T){if(1&u&&(t.TgZ(0,"p",140),t._uU(1),t.qZA()),2&u){const n=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,Z,null==n.colorData?null:n.colorData.colorYourDetailPdf)),t.xp6(1),t.hij(" Mobile no.: ",null==n.clientDetailsPdf?null:n.clientDetailsPdf.mobile," ")}}function ie(u,T){if(1&u&&(t.TgZ(0,"tr")(1,"td",54),t.YNc(2,ne,2,4,"p",139),t.qZA()()),2&u){const n=t.oxw();t.xp6(2),t.Q6J("ngIf",null==n.clientDetailsPdf?null:n.clientDetailsPdf.mobile)}}function se(u,T){if(1&u&&(t.TgZ(0,"p",141),t._uU(1),t.qZA()),2&u){const n=t.oxw();t.Q6J("ngStyle",t.VKq(2,Z,null==n.colorData?null:n.colorData.colorYourDetailPdf)),t.xp6(1),t.hij(" Email ID: ",null==n.clientDetailsPdf?null:n.clientDetailsPdf.email," ")}}function re(u,T){if(1&u&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&u){const n=t.oxw().$implicit,i=t.oxw();
1t.xp6(1),t.hij(" \u20b9",i.formatToIndianUnits(i.convertToNumber(null==n?null:n.sumGoalPresentValue))," ")}}function de(u,T){if(1&u&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&u){const n=t.oxw().$implicit,i=t.oxw();t.xp6(1),t.hij(" \u20b9",i.formatToIndianUnits(i.convertToNumber(null==n?null:n.goalFV))," ")}}const m=function(){return[6,4,2]},ce=function(){return{"font-weight":"300","font-size":"8px","line-height":"16px",border:"1px solid #83959D",padding:"2px 6px","border-radius":"4px",color:"#83959D"}},ue=function(){return{}},Qt=function(u){return{width:u}};function pe(u,T){if(1&u&&(t.TgZ(0,"tr",142)(1,"td",143)(2,"div",144)(3,"div",145)(4,"div",146)(5,"div")(6,"h5",147),t._uU(7),t.TgZ(8,"span",7),t._uU(9),t.ALo(10,"date"),t.ALo(11,"date"),t.qZA()()(),t.TgZ(12,"div",148),t._uU(13),t.qZA()(),t.TgZ(14,"div",149),t._UZ(15,"div",150)(16,"div",151),t.qZA()()()(),t.TgZ(17,"td",152),t.YNc(18,re,2,1,"span",48),t.YNc(19,de,2,1,"span",48),t.qZA(),t.TgZ(20,"td",152)(21,"span"),t._uU(22,"\u20b9"),t.qZA(),t._uU(23),t.qZA(),t.TgZ(24,"td",152)(25,"span"),t._uU(26),t.qZA()(),t.TgZ(27,"td",152)(28,"span"),t._uU(29,"\u20b9"),t.qZA(),t.TgZ(30,"span",153),t._uU(31),t.qZA()(),t.TgZ(32,"td",154)(33,"span"),t._uU(34,"\u20b9"),t.qZA(),t.TgZ(35,"span",153),t._uU(36),t.qZA()()()),2&u){const n=T.$implicit,i=t.oxw();t.xp6(6),t.Q6J("ngStyle",t.VKq(29,Z,null==i.colorData?null:i.colorData.colorTableRowTextPdf)),t.xp6(1),t.hij("",null==n?null:n.details," "),t.xp6(1),t.Q6J("ngStyle",t.DdM(31,m).includes(null==n?null:n.priorityFlag)?t.DdM(32,ce):t.DdM(33,ue)),t.xp6(1),t.hij(" ",null!=n&&n.goalEndDate&&t.xi3(10,23,n.goalEndDate,"yyyy-MM-dd")<t.xi3(11,26,i.today,"yyyy-MM-dd")?"COMPLETED":6===(null==n?null:n.priorityFlag)?"HIGH":4===(null==n?null:n.priorityFlag)?"MEDIUM":2===(null==n?null:n.priorityFlag)?"LOW":""," "),t.xp6(3),t.Q6J("ngStyle",t.VKq(34,Z,null==i.colorData?null:i.colorData.colorTableRowTextPdf)),t.xp6(1),t.Oqu(null==n?null:n.year),t.xp6(2),t.Q6J("ngStyle",t.VKq(36,Qt,n.avgAchievedPercent>100?"100%":n.avgAchievedPercent+"%")),t.xp6(1),t.Q6J("ngStyle",t.VKq(38,Qt,n.percentCompleted>100?"100%":n.percentCompleted+"%")),t.xp6(1),t.Q6J("ngStyle",t.VKq(40,Z,null==i.colorData?null:i.colorData.colorTableRowTextPdf)),t.xp6(1),t.Q6J("ngIf",i.shouldShowSumGoalPresentValue(n)),t.xp6(1),t.Q6J("ngIf",!i.shouldShowSumGoalPresentValue(n)),t.xp6(1),t.Q6J("ngStyle",t.VKq(42,Z,null==i.colorData?null:i.colorData.colorTableRowTextPdf)),t.xp6(3),t.hij("",null==n?null:n.goalFV," "),t.xp6(1),t.Q6J("ngStyle",t.VKq(44,Z,null==i.colorData?null:i.colorData.colorTableRowTextPdf)),t.xp6(2),t.hij("",null==n?null:n.inflationRateYearly,"%"),t.xp6(1),t.Q6J("ngStyle",t.VKq(46,Z,null==i.colorData?null:i.colorData.colorTableRowTextPdf)),t.xp6(3),t.Q6J("shouldRoundOff",!1)("value",null==n?null:n.month),t.xp6(1),t.hij(" ",null==n?null:n.month," "),t.xp6(1),t.Q6J("ngStyle",t.VKq(48,Z,null==i.colorData?null:i.colorData.colorTableRowTextPdf)),t.xp6(3),t.Q6J("shouldRoundOff",!1)("value",null==n?null:n.lumpsum),t.xp6(1),t.hij(" ",null==n?null:n.lumpsum," ")}}const ge=function(u){return{hide:u}},z=function(u,T){return{"background-color":u,color:T}},_e=function(u){return{icon:u}}
1,me=function(){return["/customer/detail/plan/goals/detailView"]},Dt=function(){return{"margin-top":"28px"}};let fe=(()=>{class u{constructor(n,i,h,W,Y,f,et,ut,rt,ft){this.planService=n,this.utilService=i,this.authService=h,this.eventService=W,this.customerService=Y,this.customerOverview=f,this.goalPlanService=et,this.router=ut,this.enumDataService=rt,this.themingService=ft,this.isLoadingGoals=!0,this.goalSummaryCountObj={},this.goalList=[{},{},{}],this.reportDate=new Date,this.isSpinner=!1,this.fragmentData={isSpinner:!1},this.loaded=new t.vpe,this.today=new Date}ngOnDestroy(){this.finPlanObj||(this.subscription1.unsubscribe(),this.subscription2.unsubscribe(),this.subscription3.unsubscribe())}ngOnInit(){this.primaryColor=this.themingService.getThemeColor(),this.userInfo=d.e.getUserInfo(),this.advisorId=d.e.getAdvisorId(),this.clientId=void 0!==d.e.getClientId()?d.e.getClientId():-1;let n={advisorId:this.advisorId,clientId:this.clientId};this.finPlanObj||(this.subscription1=this.goalPlanService.getClientId().subscribe(i=>{i===this.clientId?(this.subscription2=this.goalPlanService.getGoalsPlanSummaryCache().subscribe(h=>{h?this.getGoalSummaryValuesRes(h):this.getGoalSummaryValues(n)}),this.subscription3=this.goalPlanService.getAppearancePortfolio().subscribe(h=>{h?this.appearancePortfolioRes(h):this.getAppearancePortfolio()})):this.goalPlanService.setClientId(this.clientId)})),this.finPlanObj&&(this.getGoalSummaryValues(n),this.getAppearancePortfolio()),this.getClientDetails(),this.getAdvisorTagline(),this.getThemeData=d.e.getTheme(),this.colorData=this.authService.getColor(this.getThemeData)}getAppearancePortfolio(){this.customerService.getAppearanceSettings().subscribe(n=>{this.customerOverview.appearancePortfolio=n,this.finPlanObj?this.appearancePortfolioRes(n):this.goalPlanService.setAppearancePortfolio(n)})}appearancePortfolioRes(n){this.appearancePortfolio=n.find(i=>2==i.appearanceOptionId)}getClientDetails(){this.customerService.getClientDetailsPdf().subscribe(n=>{this.clientDetailsPdf=n})}getAdvisorTagline(){this.customerService.getAdvisorTaglinePreference().subscribe(n=>{if(n.hasOwnProperty("advisorTagLine")&&(this.advisorTagline=n.advisorTagLine.tagline,this.footer=n.footer,this.arnRiaNumber=n.arnRiaNumber,this.arnRiaType=n.arnRiaType,n.baslNumber))if(n.baslNumber.includes("BASL"))i=[(i=n.baslNumber).slice(0,4),i.slice(4)].join("(")+"),",this.baslNumber=i;else{var i;this.baslNumber=i="BASL("+(i=n.baslNumber)+"),"}n.hasOwnProperty("financialPlan")&&(this.financialPlan=n.financialPlan)})}getGoalSummaryValues(n){this.isLoadingGoals=!0,this.planService.getGoalSummaryPlanData(n).subscribe(i=>{this.finPlanObj?this.getGoalSummaryValuesRes(i):this.goalPlanService.setGoalsPlanSummaryCache(i)},i=>{this.goalSummaryCountObj={},this.isLoadingGoals=!1,this.eventService.openSnackBar("Something went wrong","DISMISS")})}getGoalSummaryValuesRes(n){n&&n.goalList&&n.goalList.forEach(W=>{const Y=W.singleGoalModel?.goalName||"Unknown Goal";if(W.goalTableValues&&W.goalTableValues.length>0){const f=W.goalTableValues.map(et=>et.achievedPercent).filter(et=>null!=et);if(f.length>0){const et=f.reduce((ut,rt)=>ut+rt,0)/f.length;W.avgAchievedPercent=et,this.enumDataService.PRODUCTION||console.log(`Goal Name: ${Y}, Average Achieved Percent: ${et.toFixed(2)}`)}else this.enumDataService.PRODUCTION||console.log(`Goal Name: ${Y}, No valid achievedPercent values`),W.avgAchievedPercent=0}else this.enumDataService.PRODUCTION||console.log(`Goal Name: ${Y}, No goalTableValues available`),W.avgAchievedPercent=0});let i=0,h=0;if(this.totalMonth=0,this.totalLumpsum=0,n){this.goalSummaryCountObj=n,this.goalList=n.goalList;let W=[];this.goalList.forEach(Y=>{if(Y.singleOrMulti&&1===Y.singleOrMulti){let f=Y.singleGoalModel,et=Object.keys(f.lumpSumAmountDebt)[0],ut=Object.keys(f.lumpSumAmountEquity)[0],rt=Math.round(f.lumpSumAmountDebt[et]+f.lumpSumAmountEquity[ut]),ft=Object.keys(f.sipAmountDebt)[0],vt=Object.keys(f.sipAmountEquity)[0],ht=Math.round(f.sipAmountDebt[ft]+f.sipAmountEquity[vt]),dt=new Date(f.goalStartDate).getFullYear().toString()+" - "+new Date(f.goalEndDate).getFullYear().toString();f.goalStartDate===f.goalEndDate&&(dt=new Date(f.goalStartDate).getFullYear().toString()),1==f.goalType&&(dt=f.differentGoalYears?new Date(f.differentGoalYears[0]).getFullYear()+" - "+new Date(f.goalEndDate).getFullYear():"-"),f.retirementTableValue&&f.retirementTableValue.forEach(tt=>{tt.goalYear=new Date(tt.goalStartDate).getFullYear()}),W.push({id:Y.goalId,details:f.goalName?f.goalName:"",priorityFlag:f.priorityFlag?f.priorityFlag:"",goalEndDate:f.goalEndDate?f.goalEndDate:"",value:f.goalFV?Math.round(f.goalFV):"",month:ht,lumpsum:rt,percentCompleted:Math.round(f.goalAchievedPercentage?f.goalAchievedPercentage:0),imageUrl:f.imageUrl?f.imageUrl:"",year:dt,goalFV:p.fK.getNumberToWord(f.goalFV?f.goalFV:0),achievedValue:p.fK.getNumberToWord(f.goalPresentValue?f.goalPresentValue:0),equity_monthly:this.getSumOfJsonMap(f.sipAmountEquity)||0,debt_monthly:this.getSumOfJsonMap(f.sipAmountDebt)||
10,lump_equity:this.getSumOfJsonMap(f.lumpSumAmountEquity)||0,lump_debt:this.getSumOfJsonMap(f.lumpSumAmountDebt)||0,goalAssetAllocation:Y.goalAssetAllocation,retirementTableValue:f.retirementTableValue,inflationRateYearly:f.inflationRateYearly,goalPresentValue:p.fK.getNumberToWord(f.goalPresentValue),sumGoalPresentValue:p.fK.getNumberToWord(Y.sumGoalPresentValue),avgAchievedPercent:Y.avgAchievedPercent}),i=ht,h=rt}else if(Y.singleOrMulti&&2===Y.singleOrMulti){let yt,f=Y.multiYearGoalPlan,et=0,ut=0,rt=0,ft=0,vt=0,ht=0,dt=f.savingTypeStatus;if(0==dt||1==dt){for(const tt in f.lumpSumAmountDebt)Object.prototype.hasOwnProperty.call(f.lumpSumAmountDebt,tt)&&(et+=f.lumpSumAmountDebt[tt]);for(const tt in f.lumpSumAmountDebt)Object.prototype.hasOwnProperty.call(f.lumpSumAmountEquity,tt)&&(ut+=f.lumpSumAmountEquity[tt]);for(const tt in f.sipAmountDebt)Object.prototype.hasOwnProperty.call(f.sipAmountDebt,tt)&&(ft+=f.sipAmountDebt[tt]);for(const tt in f.sipAmountEquity)Object.prototype.hasOwnProperty.call(f.sipAmountEquity,tt)&&(vt+=f.sipAmountEquity[tt])}else et=Object.values(f.lumpSumAmountDebt||{}).reduce((It,Lt)=>It+(Number(Lt)||0),0),ut=Object.values(f.lumpSumAmountEquity||{}).reduce((It,Lt)=>It+(Number(Lt)||0),0),vt=Object.entries(f.sipAmountEquity)[0][1],ft=Object.entries(f.sipAmountDebt)[0][1];rt=Math.round(et+ut),ht=Math.round(vt+ft),yt=new Date(f.goalStartDate).getFullYear().toString()+" - "+new Date(f.goalEndDate).getFullYear().toString(),1==f.goalType&&(yt=f.differentGoalYears?new Date(f.differentGoalYears[0]).getFullYear()+" - "+new Date(f.goalEndDate).getFullYear():"-"),f.retirementTableValue&&f.retirementTableValue.forEach(tt=>{tt.goalYear=new Date(tt.goalStartDate).getFullYear()}),W.push({id:Y.goalId,details:f.name,priorityFlag:f.priorityFlag?f.priorityFlag:"",goalEndDate:f.goalEndDate?f.goalEndDate:"",month:ht,lumpsum:rt,percentCompleted:Math.round(f.goalAchievedPercentage?f.goalAchievedPercentage:0),imageUrl:f.imageUrl?f.imageUrl:"",value:f.futureValue?Math.round(f.futureValue):"",year:yt,goalFV:p.fK.getNumberToWord(f.goalFV?f.goalFV:f.futureValue?f.futureValue:0),achievedValue:p.fK.getNumberToWord(f.achievedValue?f.achievedValue:0),equity_monthly:this.getSumOfJsonMap(f.sipAmountEquity,dt)||0,debt_monthly:this.getSumOfJsonMap(f.sipAmountDebt,dt)||0,lump_equity:this.getSumOfJsonMap(f.lumpSumAmountEquity,dt)||0,lump_debt:this.getSumOfJsonMap(f.lumpSumAmountDebt,dt)||0,goalAssetAllocation:Y.goalAssetAllocation,retirementTableValue:f.retirementTableValue,inflationRateYearly:f.inflationRateYearly,goalPresentValue:p.fK.getNumberToWord(f.goalPresentValue),sumGoalPresentValue:p.fK.getNumberToWord(Y.sumGoalPresentValue),avgAchievedPercent:Y.avgAchievedPercent}),i=ht,h=rt}this.totalMonth+=i,this.totalLumpsum+=h}),this.goalList=W,this.isLoadingGoals=!1,this.finPlanObj&&this.loaded.emit(document.getElementById("test"))}}getSumOfJsonMap(n={},i=0){let h=0;if(0==i||1==i){for(let W in n)n.hasOwnProperty(W)&&(h+=n[W]);return h}return Object.entries(n)[0][1]}pdf(n,i){const h=document.getElementById(n);this.fragmentData.isSpinner=!0;const W={htmlInput:h.innerHTML,name:i,landscape:!1,key:"",svg:""};let Y=document.getElementById("goaldetails");return this.utilService.htmlToPdf(Y.innerHTML,h.innerHTML,i,!1,this.fragmentData,"","",!1,this.footer?this.footer:"",null),W}navigateToDetailView(n){this.goalPlanService.setSelectedGoal(n),this.router.navigate(["/customer/detail/plan/goals/detailVie
1w"])}getSolidColor(n){return"#008FFB"}getOpacityColor(n){return this.applyOpacityToColor("#008FFB",.4)}applyOpacityToColor(n,i){return`rgba(${parseInt(n.substr(1,2),16)}, ${parseInt(n.substr(3,2),16)}, ${parseInt(n.substr(5,2),16)}, ${i})`}isSumGoalPresentValueLessThanOrEqual(n){if(!n)return console.warn("Invalid element: element is null or undefined",n),!1;const i=this.convertToNumber(n.sumGoalPresentValue),h=this.convertToNumber(n.goalFV);return isNaN(i)||isNaN(h)?(console.warn("Invalid data: sumGoalPresentValue or goalFV is not a valid number",{sumGoalPresentValue:n.sumGoalPresentValue,goalFV:n.goalFV}),!1):i<=h}convertToNumber(n){return"number"==typeof n?n:"string"==typeof n?(n=n.toLowerCase().replace(/,/g,"").trim()).includes("lacs")?1e5*parseFloat(n):n.includes("crores")||n.includes("crore")?1e7*parseFloat(n):parseFloat(n):NaN}formatToIndianUnits(n){return n>=1e7?(n/1e7).toFixed(2)+" Crores":n>=1e5?(n/1e5).toFixed(2)+" Lacs":n.toLocaleString("en-IN")}shouldShowSumGoalPresentValue(n){return this.convertToNumber(n?.sumGoalPresentValue)<=this.convertToNumber(n?.goalFV)}getFormattedGoalValue(n){const i=this.convertToNumber(n?.sumGoalPresentValue),h=this.convertToNumber(n?.goalFV);return i>h?h:i}}return u.\u0275fac=function(n){return new(n||u)(t.Y36(o.D),t.Y36(p.fK),t.Y36(d.e),t.Y36(s.P),t.Y36(U.v),t.Y36(S.a),t.Y36(F.a),t.Y36(M.F0),t.Y36(P.p),t.Y36(I.m))},u.\u0275cmp=t.Xpm({type:u,selectors:[["app-goals-plan-summary"]],inputs:{finPlanObj:"finPlanObj"},outputs:{loaded:"loaded"},decls:218,vars:197,consts:[[2,"padding-top","118px",3,"ngClass"],[1,"d-flex","justify-content-center","relative","bg-gray"],[1,"col-lg-8","p-0"],[1,"bg-white","p-20"],[1,"row"],[1,"col-md-8","d-flex","align-items-center","p-0"],[1,"f-500","mb-0","f-16","text-black","roboto"],[3,"ngStyle"],[1,"col-md-4","mb-10","p-0","d-flex","align-items-center","justify-content-end"],[3,"diameter",4,"ngIf"],["class"," c-p downloadPdfIcon  ",3,"click",4,"ngIf"],["appSkeletonLoading","",1,"row","skeletonAnimation",3,"appSkeletonLoading"],[1,"col-md-4","pl-0"],[1,"col-md-12","p-0","mb-16"],[1,"totalGoalsBox"],[1,"f-14","mb-5","mt-12","text-black","f-400","roboto"],["class","text-primary f-400 roboto",4,"ngIf"],["class","col-md-6 p-0 relClass",4,"ngIf"],[1,"col-md-12","p-0"],[1,"col-md-4","pl-0","pr-10"],[1,"investmentBox","text-center"],[1,"f-14","mb-0","roboto","text-black","f-400"],[1,"linebr"],["appSkeletonLoading","",1,"skeletonAnimation",3,"appSkeletonLoading"],["class","text-primary roboto f-400",4,"ngIf"],[1,"col-md-4","p-0","pl-5"],[1,"f-500","mb-20","mt-30","f-16","text-black","roboto"],[1,"row","w100"],[1,"b",2,"border-collapse","collapse"],[1,"bb","bg-lter"],[1,"br","p-10","f-14","f-500","roboto","text-center",3,"ngStyle"],["colspan","3",1,"br","p-10","f-14","f-500","roboto","text-center",3,"ngStyle"],["colspan","2",1,"p-10","f-14","f-500","roboto","text-center",3,"ngStyle"],[1,"br","text-primary"],[1,"text-primary","f-400","f-14","roboto","p-10","text-right"],[1,"text-primary","f-14","roboto","p-10","text-right"],["appSkeletonLoading","","class","skeletonAnimation bb",3,"appSkeletonLoading",4,"ngFor","ngForOf"],[1,"d-flex",3,"ngClass"],[3,"routerLink"],[1,"c-p","downloadPdfIcon"],["src","https://res.cloudinary.com/futurewise/image/upload/v1663064868/myplanner/images/svg/list.svg"],[1,"mb-10","ml-10"],[1,"c-p","downloadPdfIcon","mr-10","ba-primary"],["width","20","height","16","viewBox","0 0 20 16","fill","none","xmlns","http://www.w3.org/2000/svg",1,"c-p"],["d","M1.16667 14.6667V15.1667H1.66667H18.3333H18.8333V14.6667V1.33333V0.833333H18.3333H1.66667H1.16667V1.33333V14.6667ZM1.66667 15.5C1.33071 15.5 1.05316 15.4022 0.812347 15.2096C0.571191 15.0166 0.5 14.8394 0.5 14.6667V1.33333C0.5 1.16057 0.571191 0.98336 0.812348 0.790434C1.05316 0.597783 1.33071 0.5 1.66667 0.5H18.3333C18.6693 0.5 18.9468 0.597783 19.1877 0.790435C19.4288 0.98336 19.5 1.16057 19.5 1.33333V14.6667C19.5 14.8394 19.4288 15.0166 19.1877 15.2096C18.9468 15.4022 18.6693 15.5 18.3333 15.5H1.66667ZM8.11111 4.27778V6.38889H5.22222V4.27778H8.11111ZM14.7778 4.27778V6.38889H11.8889V4.27778H14.7778ZM8.11111 9.61111V11.7222H5.22222V9.61111H8.11111ZM14.7778 9.61111V11.7222H11.8889V9.61111H14.7778Z",1,"svg-primary"],["id","test",2,"display","none"],[2,"margin-bottom","10px"],["align","center",2,"border-collapse","collapse","border","0px","padding","0p
1x 20px 0px 20px","width","100%","font-family","'Roboto', sans-serif","font-weight","500"],[4,"ngIf"],[2,"text-align","right","vertical-align","top","width","50%"],["style","margin: 0px; font-weight: 500; font-size: 12px; margin-bottom: 5px; white-space: nowrap; color: #333333;",3,"ngStyle",4,"ngIf"],["style","margin: 0px; font-weight: 500; font-size: 16px; margin-bottom: 5px; white-space: nowrap; color: #121212;",3,"ngStyle",4,"ngIf"],[2,"margin","0px","font-weight","500","font-size","16px","margin-bottom","5px","white-space","nowrap","color","#121212",3,"ngStyle"],["align","center",2,"border-collapse","collapse","border","0px","padding","0px 20px 0px 20px","width","100%",3,"ngStyle"],[2,"text-align","left","vertical-align","top"],["style","margin: 0px; font-weight: 600; font-size: 16px; color: #000000;",3,"ngStyle",4,"ngIf"],["style","margin: 0px; font-weight: 500; font-size: 12px; color: #333333;",3,"ngStyle",4,"ngIf"],["rowspan","3",2,"text-align","right","vertical-align","bottom"],[2,"margin","0px","font-size","18px","font-weight","600","color","#000000",3,"ngStyle"],["style","margin: 0px; font-size: 14px; margin-bottom: 5px;color: #121212;",3,"ngStyle",4,"ngIf"],["cellpadding","0","cellspacing","0","border","0",2,"width","100%"],[2,"width","100%"],[2,"margin","0px","font-size","16px","margin-bottom","10px",3,"ngStyle"],[2,"vertical-align","top"],[2,"padding-bottom","10px","vertical-align","top"],[2,"border","1px solid #404040","text-align","center","margin-bottom","15px","padding","11px 25px"],[2,"margin-bottom","12px",3,"ngStyle"],[2,"margin-top","0px","color","#008FFF","font-size","30px","font-weight","400","margin-bottom","0px",3,"ngStyle"],[2,"margin-bottom","0px"],[2,"border","1px solid #404040","text-align","center","padding","10px 25px"],[2,"margin-bottom","16px",3,"ngStyle"],[2,"border","1px solid #404040","padding","12px","text-align","center","margin-bottom","12px","margin-left","30px"],[2,"margin-bottom","0px",3,"ngStyle"],[2,"color","#008FFF","margin-top","0px"],["appFormatNumber","",3,"ngStyle","shouldRoundOff","value"],[2,"border","1px solid #404040","padding-top","0px","padding","12px","text-align","center","margin-bottom","12px","margin-left","30px","padding-left","20","padding-right","20"],["cellpadding","0","cellspacing","0","border","0",2,"border-collapse","collapse","width","100%","border","1px solid #404040","page-break-inside","auto"],[2,"background","#F5F7F7","border-bottom","1px solid #404040","page-break-inside","avoid","page-break-after","always"],[2,"padding","10px","border-right","1px solid #404040","font-size","14px","font-weight","500","text-align","center",3,"ngStyle"],["colspan","3",2,"padding","10px","border-right","1px solid #404040","font-size","14px","font-weight","500","text-align","center",3,"ngStyle"],["colspan","2",2,"padding","10px","font-size","14px","font-weight","500","text-align","center",3,"ngStyle"],[2,"border-bottom","1px solid #404040","background","#F5F7F7","page-break-inside","avoid","page-break-after","always"],[2,"border-right","1px solid #404040",3,"ngStyle"],[2,"padding","10px","border-right","1px solid #404040","font-size","14px","font-weight","400","text-align","right",3,"ngStyle"],[2,"padding","10px","font-size","14px","font-weight","400","text-align","right",3,"ngStyle"],["style"," page-break-inside:avoid; page-break-after:always;border-bottom: 1px solid #404040;",4,"ngFor","ngForOf"],["id","goaldetails",2,"display","none"],["id","FakeHeaders","cellpadding","0","cellspacing","0","border","0",2,"border-collapse","collapse","width","100%","border","1px solid #404040","page-break-inside","auto"],[2,"padding","10px","border-right","1px solid #404040","font-size","14px","font-weight","500","text-align","center","width","26%",3,"ngStyle"],[2,"padding","10px","border-right","1px solid #404040","font-size","14px","font-weight","400","text-align","right","width","17%",3,"ngStyle"],[2,"padding","10px","border-right","1px solid #404040","font-size","14px","font-weight","400","text-align","right","width","15.7%",3,"ngStyle"],[2,"padding","10px","border-right","1px solid #404040","font-size","14px","font-weight","400","text-align","right","width","11%",3,"ngStyle"],[2,"padding","10px","border-right","1px solid #404040","font-size","14px","font-weight","400","text-align","right","width","14.4%",3,"ngStyle"],[3,"diameter"],[1,"c-p","downloadPdfIcon",3,"click"],["src","https://res.cloudinary.com/futurewise/image/upload/v1619592629/myplanner/images/svg/download-bordered.svg"],[1,"text-primary","f-400","roboto"],[1,"col-md-6","p-0","relClass"],[1,"bar",3,"ngClass"],[1,"text-black","f-12","m-0","text-right","roboto","f-400"],[1,"text-primary","roboto","f-400"],["appFormatNumber","",3,"shouldRoundOff","value"],[1,"bar","w-100px",3,"ngClass"],["appSkeletonLoading","",1,"skeletonAnimation","bb",3,"appSkeletonLoading"],[1,"p-10","br"],[1,"d-flex","bar","c-p",3,"click"],[1,"mr-15"],["style","width:37px","class","bg-primary",3,"src",4,"ngIf"],[1,"flex-grow-1"],[1,"d-flex","justify-content-between"],[1,"m-0","f-500","f-14","roboto"],[1,"f-12","roboto","f-400"],["class","priority-tag-high f-400 f-12 roboto lh-16",4,"ngIf"],["class","priority-tag-medium f-400 f-12 roboto lh-16",4,"ngIf"],["class","priority-tag-low f-400 f-12 roboto lh-16",4,"ngIf"],["class","priority-tag-completed f-400 f-12 roboto lh-16",4,"ngIf"],[1,"custom-progress-bar"],[1,"progress-segment",3,"ngStyle"],[1,"progress-segment"],[1,"br","p-5","f-400","f-14","roboto","text-right"],[3,"ngStyle",4,"ngIf"],["appFormatNumber","",3,"ngStyle","shouldRoundOff","value",4,"ngIf"],[1,"p-5","f-400","f-14","roboto","text-right"],[1,"bg-primary",2,"width","37px",3,"src"],[1,"priority-tag-high","f-400","f-12","roboto","lh-16"],[1,"priority-tag-medium","f-400","f-12","roboto","lh-16"],[1,"priority-tag-low","f-400","f-12","roboto","lh-16"],[1,"priority-tag-completed","f-400","f-12","roboto","lh-16"],[4,"ngIf","ngIfElse"],["showGoalFV",""],[1,"text-black","f-14","m-0","text-right","roboto","f-400"],["rowspan","2",2,"text-align","left","vertical-align","top","width","50%"],["style","margin: 0px; font-weight: 600; font-size: 18px; white-space: nowrap; color: #000000;",3,"ngStyle",4,"ngIf"],["width","120px",3,"src"],["width","140px",3,"src"],[2,"margin","0px","font-weight","600","font-size","18px","white-space","nowrap","color","#000000",3,"ngStyle"],[2,"margin","0px","font-weight","500","font-size","12px","margin-bottom","5px","white-space","nowrap","color","#333333",3,"ngStyle"],[2,"margin","0px","font-weight","600","font-size","16px","color","#000000",3,"ngStyle"],[2,"margin","0px","font-weight","500","font-size","12px","color","#333333",3,"ngStyle"],["style","margin: 0px; font-size: 14px; margin-bottom: 5px; margin-top: 5px;color: #121212;",3,"ngStyle",4,"ngIf"],[2,"margin","0px","font-size","14px","margin-bottom","5px","margin-top","5px","color","#121212",3,"ngStyle"],[2,"margin","0px","font-size","14px","margin-bottom","5px","color","#121212",3,"ngStyle"],[2,"page-break-inside","avoid","page-break-after","always","border-bottom","1px solid #404040"],[2,"padding","5px","border-right","1px solid #404040"],[2,"display","flex","display","-webkit-box"],[2,"flex-grow","1","-webkit-box-flex","1"],[1,"d-flex","justify-content-between",2,"display","-webkit-box","-webkit-box-pack","justify","margin-bottom","10px"],[1,"m-0","f-500","f-12","roboto",2,"margin","0px","font-size","14px","font-weight","500",3,"ngStyle"],[1,"f-12","roboto","f-400",2,"font-size","12px","font-weight","400",3,"ngStyle"],[2,"background","#f5f7f7","height","20px","position","relative","width","100%","border-radius","4px","overflow","hidden"],[2,"background","#C4E2F9","height","10px","position","absolute","top","0","left","0","z-index","1",3,"ngStyle"],[2,"background","#008FFF","height","10px","position","absolute","top","0","left","0","z-index","2",3,"ngStyle"],[2,"padding","5px","border-right","1px solid #404040","font-size","14px","font-weight","400","text-align","right",3,"ngStyle"],["appFormatNumber","",1,"bar",3,"shouldRoundOff","value"],[2,"padding","5px","font-size","14px","font-weight","400","text-align","right",3,"ngStyle"]],template:function(n,i){1&n&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"h5",6)(7,"span",7),t._uU(8," Goal Summary "),t.qZA()()(),t.TgZ(9,"div",8),t.YNc(10,w,1,1,"mat-spinner",9),t.YNc(11,K,2,0,"a",10),t.qZA()(),t.TgZ(12,"div",11)(13,"div",12)(14,"div",4)(15,"div",13)(16,"div",14)(17,"p",15),t._uU(18,"Total goals"),t.qZA(),t.YNc(19,G,2,1,"h1",16),t.YNc(20,y,4,4,"div",17),t.qZA()(),t.TgZ(21,"div",18)(22,"div",14)(23,"p",15),t._uU(24,"Upcoming"),t.qZA(),t.YNc(25,B,2,1,"h1",16),t.YNc(26,q,4,4,"div",17),t.qZA()()()(),t.TgZ(27,"div",19)(28,"div",20)(29,"p",21),t._uU(30,"Investments "),t._UZ(31,"br"),t._uU(32," mapped to goals"),t.qZA(),t._UZ(33,"span",22),t.TgZ(34,"div",23)(35,"p",21),t._uU(36,"Monthly"),t.qZA(),t.YNc(37,X,2,2,"h4",24),t.YNc(38,A,4,4,"div",17),t.TgZ(39,"p",21),t._uU(40,"Lumpsum"),t.qZA(),t.YNc(41,H,2,2,"h4",24),t.YNc(42,V,4,4,"div",17),t.qZA()()(),t.TgZ(43,"div",25)(44,"div",20)(45,"p",21),t._uU(46,"Additional "),t._UZ(47,"br"),t._uU(48," suggestions"),t.qZA(),t._UZ(49,"span",22),t.TgZ(50,"div",23)(51,"p",21),t._uU(52,"Monthly"),t.qZA(),t.YNc(53,$,2,2,"h4",24),t.YNc(54,pt,4,4,"div",17),t.TgZ(55,"p",21),t._uU(56,"Lumpsum"),t.qZA(),t.YNc(57,Zt,2,2,"h4",24),t.YNc(58,At,4,4,"div",17),t.qZA()()()(),t.TgZ(59,"div",4)(60,"h5",26)(61,"span",7),t._uU(62," Goal Details "),t.qZA()(),t.TgZ(63,"div",27)(64,"div",18)(65,"table",28)(66,"tr",29)(67,"th",30),t._uU(68," Basic Details "),t.qZA(),t.TgZ(69,"th",31),t._uU(70," Goal Amount (Yearly) "),t.qZA(),t.TgZ(71,"th",32),t._uU(72," Additional Requirements "),t.qZA()(),t.TgZ(73,"tr",29),t._UZ(74,"td",33),t.TgZ(75,"td",34),t._uU(76," Present Value "),t.qZA(),t.TgZ(77,"td",34),t._uU(78," Future Value "),t.qZA(),t.TgZ(79,"td",34),t._uU(80," Inflation "),t.qZA(),t.TgZ(81,"td",34),t._uU(82," Monthly "),t.qZA(),t.TgZ(83,"td",35),t._uU(84," Lumpsum "),t.qZA()(),t.YNc(85,Kt,45,53,"tr",36),t.qZA()()()()()()(),t.TgZ(86,"div",37)(87,"div",38)(88,"a",39),t._UZ(89,"img",40),t.qZA()(),t.TgZ(90,"div",41)(91,"a",42),t.O4$(),t.TgZ(92,"svg",43),t._UZ(93,"path",44),t.qZA()()()(),t.kcU(),t._UZ(94,"div"),t.qZA(),t.TgZ(95,"div",45)(96,"html")(97,"body")(98,"div",46)(99,"table",47),t.YNc(100,Wt,6,3,"tr",48),t.YNc(101,$t,6,3,"tr",48),t.TgZ(102,"tr")(103,"td",49),t.YNc(104,Xt,2,4,"p",50),t.YNc(105,te,2,6,"p",50),t.YNc(106,ee,2,4,"p",51),t.YNc(107,le,2,4,"p",51),t.TgZ(108,"p",52),t._uU(109),t.ALo(110,"date"),t.qZA()()()(),t.TgZ(111,"table",53)(112,"tr")(113,"td",54),t.YNc(114,ae,2,4,"span",55),t.YNc(115,oe,2,4,"span",56),t.qZA(),t.TgZ(116,"td",57)(117,"p",58),t._uU(118," Goal Plan Summary "),t.qZA()()(),t.YNc(119,ie,3,1,"tr",48),t.TgZ(120,"tr")(121,"td",54),t.YNc(122,se,2,4,"p",59),t.qZA()()()(),t.TgZ(123,"table",60)(124,"tr")(125,"td",61)(126,"h4",62),t._uU(127,"Goal Summary"),t.qZA(),t.TgZ(128,"table",60)(129,"tr")(130,"td",63)(131,"table",60)(132,"tr",64)(133,"td",65)(134,"p",66),t._uU(135," Total goals "),t.qZA(),t.TgZ(136,"h4",67),t._uU(137),t.qZA()()(),t.TgZ(138,"tr")(139,"td")(140,"p",68),t._uU(141,"\xa0"),t.qZA()()(),t.TgZ(142,"tr")(143,"td",69)(144,"p",70),t._uU(145," Upcoming "),t.qZA(),t.TgZ(14
16,"h4",67),t._uU(147),t.qZA()()()()(),t.TgZ(148,"td")(149,"div",71)(150,"p",7),t._uU(151," Investments mapped to goals "),t.qZA(),t._UZ(152,"hr"),t.TgZ(153,"p",72),t._uU(154," Monthly "),t.qZA(),t.TgZ(155,"p",73),t._UZ(156,"span",74),t.qZA(),t.TgZ(157,"p",72),t._uU(158," Lumpsum "),t.qZA(),t.TgZ(159,"p",73),t._UZ(160,"span",74),t.qZA()()(),t.TgZ(161,"td")(162,"div",75)(163,"p",7),t._uU(164," Additional suggestions "),t.qZA(),t._UZ(165,"hr"),t.TgZ(166,"p",72),t._uU(167," Monthly "),t.qZA(),t.TgZ(168,"p",73),t._UZ(169,"span",74),t.qZA(),t.TgZ(170,"p",72),t._uU(171," Lumpsum "),t.qZA(),t.TgZ(172,"p",73),t._UZ(173,"span",74),t.qZA()()()()()()()(),t.TgZ(174,"h4",62),t._uU(175," Goal Details"),t.qZA(),t.TgZ(176,"table",76)(177,"tr",77)(178,"th",78),t._uU(179," Basic Details "),t.qZA(),t.TgZ(180,"th",79),t._uU(181," Goal Amount (Yearly) "),t.qZA(),t.TgZ(182,"th",80),t._uU(183," Additional Requirements "),t.qZA()(),t.TgZ(184,"tr",81),t._UZ(185,"td",82),t.TgZ(186,"td",83),t._uU(187," Present Value "),t.qZA(),t.TgZ(188,"td",83),t._uU(189," Future Value "),t.qZA(),t.TgZ(190,"td",83),t._uU(191," Inflation "),t.qZA(),t.TgZ(192,"td",83),t._uU(193," Monthly "),t.qZA(),t.TgZ(194,"td",84),t._uU(195," Lumpsum "),t.qZA()(),t.YNc(196,pe,37,50,"tr",85),t.qZA()()()(),t.TgZ(197,"div",86)(198,"table",87)(199,"tr",77)(200,"th",88),t._uU(201," Basic Details "),t.qZA(),t.TgZ(202,"th",79),t._uU(203," Goal Amount (Yearly) "),t.qZA(),t.TgZ(204,"th",80),t._uU(205," Additional Requirements "),t.qZA()(),t.TgZ(206,"tr",81),t._UZ(207,"td",82),t.TgZ(208,"td",89),t._uU(209," Present Value "),t.qZA(),t.TgZ(210,"td",90),t._uU(211," Future Value "),t.qZA(),t.TgZ(212,"td",91),t._uU(213," Inflation "),t.qZA(),t.TgZ(214,"td",92),t._uU(215," Monthly "),t.qZA(),t.TgZ(216,"td",84),t._uU(217," Lumpsum "),t.qZA()()()()),2&n&&(t.Q6J("ngClass",t.VKq(88,ge,null==i.finPlanObj?null:i.finPlanObj.hideForFinPlan)),t.xp6(7),t.Q6J("ngStyle",t.VKq(90,Z,null==i.colorData?null:i.colorData.colorReportName)),t.xp6(3),t.Q6J("ngIf",null==i.fragmentData?null:i.fragmentData.isSpinner),t.xp6(1),t.Q6J("ngIf",!(null!=i.fragmentData&&i.fragmentData.isSpinner||i.isLoadingGoals)),t.xp6(1),t.Q6J("appSkeletonLoading",i.isLoadingGoals),t.xp6(7),t.Q6J("ngIf",!i.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",i.isLoadingGoals),t.xp6(5),t.Q6J("ngIf",!i.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",i.isLoadingGoals),t.xp6(8),t.Q6J("appSkeletonLoading",i.isLoadingGoals),t.xp6(3),t.Q6J("ngIf",!i.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",i.isLoadingGoals),t.xp6(3),t.Q6J("ngIf",!i.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",i.isLoadingGoals),t.xp6(8),t.Q6J("appSkeletonLoading",i.isLoadingGoals),t.xp6(3),t.Q6J("ngIf",!i.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",i.isLoadingGoals),t.xp6(3),t.Q6J("ngIf",!i.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",i.isLoadingGoals),t.xp6(3),t.Q6J("ngStyle",t.VKq(92,Z,null==i.colorData?null:i.colorData.colorReportName)),t.xp6(6),t.Q6J("ngStyle",t.WLB(94,z,null==i.colorData?null:i.colorData.bgColor,null==i.colorData?null:i.colorData.colorText)),t.xp6(2),t.Q6J("ngStyle",t.WLB(97,z,null==i.colorData?null:i.colorData.bgColor,null==i.colorData?null:i.colorData.colorText)),t.xp6(2),t.Q6J("ngStyle",t.WLB(100,z,null==i.colorData?null:i.colorData.bgColor,null==i.colorData?null:i.colorData.colorText)),t.xp6(14),t.Q6J("ngForOf",i.goalList),t.xp6(1),t.Q6J("ngClass",t.VKq(103,_e,!(null!=i.finPlanObj&&i.finPlanObj.hideForFinPlan))),t.xp6(1),t.Q6J("routerLink",t.DdM(105,me)),t.xp6(13),t.Q6J("ngIf",2===(null==i.appearancePortfolio?null:i.appearancePortfolio.advisorOrOrganisation)),t.xp6(1),t.Q6J("ngIf",1===(null==i.appearancePortfolio?null:i.appearancePortfolio.advisorOrOrganisation)),t.xp6(3),t.Q6J("ngIf",i.financialPlan&&i.advisorTagline),t.xp6(1),t.Q6J("ngIf",i.advisorTagline&&i.arnRiaNumber&&i.arnRiaType),t.xp6(1),t.Q6J("ngIf",i.financialPlan&&(null==i.financialPlan?null:i.financialPlan.email)),t.xp6(1),t.Q6J("ngIf",i.financialPlan&&(null==i.financialPlan?null:i.financialPlan.mobile)),t.xp6(1),t.Q6J("ngStyle",t.VKq(106,Z,null==i.colorData?null:i.colorData.colorYourDetailPdf)),t.xp6(1),t.hij(" Report as on: ",t.xi3(110,85,i.reportDate,"d-MMM-y")," "),t.xp6(2),t.Q6J("ngStyle",null!=i.clientDetailsPdf&&i.clientDetailsPdf.mobile&&null!=i.clientDetailsPdf&&i.clientDetailsPdf.email?"":t.DdM(108,Dt)),t.xp6(3),t.Q6J("ngIf",null==i.clientDetailsPdf?null:i.clientDetailsPdf.display_name),t.xp6(1),t.Q6J("ngIf",null==i.clientDetailsPdf?null:i.clientDetailsPdf.pan),t.xp6(2),t.Q6J("ngStyle",t.VKq(109,Z,null==i.colorData?null:i.colorData.colorReportNamePdf)),t.xp6(2),t.Q6J("ngIf",(null==i.clientDetailsPdf?null:i.clientDetailsPdf.mobile)&&(null==i.clientDetailsPdf?null:i.clientDetailsPdf.email)),t.xp6(3),t.Q6J("ngIf",null==i.clientDetailsPdf?null:i.clientDetailsPdf.email),t.xp6(4),t.Q6J("ngStyle",t.VKq(111,Z,null==i.colorData?null:i.colorData.colorReportNamePdf)),t.xp6(8),t.Q6J("ngStyle",t.VKq(113,Z,null==i.colorData?null:i.colorData.colorSubHeaderTextPdf)),t.xp6(2),t.Q6J("ngStyle",t.VKq(115,Z,null==i.colorData?null:i.colorData.colorTableRowTextPdf)),t.xp6(1),t.hij(" ",null!=i.goalSummaryCountObj&&i.goalSummaryCountObj.totalGoals?null==i.goalSummaryCountObj?null:i.goal
1SummaryCountObj.totalGoals:0," "),t.xp6(7),t.Q6J("ngStyle",t.VKq(117,Z,null==i.colorData?null:i.colorData.colorSubHeaderTextPdf)),t.xp6(2),t.Q6J("ngStyle",t.VKq(119,Z,null==i.colorData?null:i.colorData.colorTableRowTextPdf)),t.xp6(1),t.hij(" ",null!=i.goalSummaryCountObj&&i.goalSummaryCountObj.upcomingGoalsCount?null==i.goalSummaryCountObj?null:i.goalSummaryCountObj.upcomingGoalsCount:0," "),t.xp6(3),t.Q6J("ngStyle",t.VKq(121,Z,null==i.colorData?null:i.colorData.colorSubHeaderTextPdf)),t.xp6(3),t.Q6J("ngStyle",t.VKq(123,Z,null==i.colorData?null:i.colorData.colorSubHeaderTextPdf)),t.xp6(3),t.Q6J("ngStyle",t.VKq(125,Z,null==i.colorData?null:i.colorData.colorTableRowTextPdf))("shouldRoundOff",!0)("value",null!=i.goalSummaryCountObj&&i.goalSummaryCountObj.monthlyInvestmentMappedToGoals?null==i.goalSummaryCountObj?null:i.goalSummaryCountObj.monthlyInvestmentMappedToGoals:0),t.xp6(1),t.Q6J("ngStyle",t.VKq(127,Z,null==i.colorData?null:i.colorData.colorSubHeaderTextPdf)),t.xp6(3),t.Q6J("ngStyle",t.VKq(129,Z,null==i.colorData?null:i.colorData.colorTableRowTextPdf))("shouldRoundOff",!0)("value",null!=i.goalSummaryCountObj&&i.goalSummaryCountObj.lumpsumInvestmentMappedToGoals?null==i.goalSummaryCountObj?null:i.goalSummaryCountObj.lumpsumInvestmentMappedToGoals:0),t.xp6(3),t.Q6J("ngStyle",t.VKq(131,Z,null==i.colorData?null:i.colorData.colorSubHeaderTextPdf)),t.xp6(3),t.Q6J("ngStyle",t.VKq(133,Z,null==i.colorData?null:i.colorData.colorSubHeaderTextPdf)),t.xp6(3),t.Q6J("ngStyle",t.VKq(135,Z,null==i.colorData?null:i.colorData.colorTableRowTextPdf))("shouldRoundOff",!0)("value",i.totalMonth?i.totalMonth:"0"),t.xp6(1),t.Q6J("ngStyle",t.VKq(137,Z,null==i.colorData?null:i.colorData.colorSubHeaderTextPdf)),t.xp6(3),t.Q6J("ngStyle",t.VKq(139,Z,null==i.colorData?null:i.colorData.colorTableRowTextPdf))("shouldRoundOff",!0)("value",i.totalLumpsum?i.totalLumpsum:"0"),t.xp6(1),t.Q6J("ngStyle",t.VKq(141,Z,null==i.colorData?null:i.colorData.colorReportNamePdf)),t.xp6(4),t.Q6J("ngStyle",t.WLB(143,z,null==i.colorData?null:i.colorData.bgColorpdf,null==i.colorData?null:i.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(146,z,null==i.colorData?null:i.colorData.bgColorpdf,null==i.colorData?null:i.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(149,z,null==i.colorData?null:i.colorData.bgColorpdf,null==i.colorData?null:i.colorData.colorTextpdf)),t.xp6(3),t.Q6J("ngStyle",t.WLB(152,z,null==i.colorData?null:i.colorData.bgSubHeaderPdf,null==i.colorData?null:i.colorData.colorSubHeaderTextPdf)),t.xp6(1),t.Q6J("ngStyle",t.WLB(155,z,null==i.colorData?null:i.colorData.bgSubHeaderPdf,null==i.colorData?null:i.colorData.colorSubHeaderTextPdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(158,z,null==i.colorData?null:i.colorData.bgSubHeaderPdf,null==i.colorData?null:i.colorData.colorSubHeaderTextPdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(161,z,null==i.colorData?null:i.colorData.bgSubHeaderPdf,null==i.colorData?null:i.colorData.colorSubHeaderTextPdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(164,z,null==i.colorData?null:i.colorData.bgSubHeaderPdf,null==i.colorData?null:i.colorData.colorSubHeaderTextPdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(167,z,null==i.colorData?null:i.colorData.bgSubHeaderPdf,null==i.colorData?null:i.colorData.colorSubHeaderTextPdf)),t.xp6(2),t.Q6J("ngForOf",i.goalList),t.xp6(4),t.Q6J("ngStyle",t.WLB(170,z,null==i.colorData?null:i.colorData.bgColorpdf,null==i.colorData?null:i.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(173,z,null==i.colorData?null:i.colorData.bgColorpdf,null==i.colorData?null:i.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(176,z,null==i.colorData?null:i.colorData.bgColorpdf,null==i.colorData?null:i.colorData.colorTextpdf)),t.xp6(3),t.Q6J("ngStyle",t.WLB(179,z,null==i.colorData?null:i.colorData.bgSubHeaderPdf,null==i.colorData?null:i.colorData.colorSubHeaderTextPdf)),t.xp6(1),t.Q6J("ngStyle",t.WLB(182,z,null==i.colorData?null:i.colorData.bgSubHeaderPdf,null==i.colorData?null:i.colorData.colorSubHeaderTextPdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(185,z,null==i.colorData?null:i.colorData.bgSubHeaderPdf,null==i.colorData?null:i.colorData.colorSubHeaderTextPdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(188,z,null==i.colorData?null:i.colorData.bgSubHeaderPdf,null==i.colorData?null:i.colorData.colorSubHeaderTextPdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(191,z,null==i.colorData?null:i.colorData.bgSubHeaderPdf,null==i.colorData?null:i.colorData.colorSubHeaderTextPdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(194,z,null==i.colorData?null:i.colorData.bgSubHeaderPdf,null==i.colorData?null:i.colorData.colorSubHeaderTextPdf)))},dependencies:[O.mk,O.sg,O.O5,O.PC,M.rH,J.Ou,Q.d,N.R,O.uU],styles:['.height24[_ngcontent-%COMP%]{height:24px}.skeletonAnimation[_ngcontent-%COMP%]   .relClass[_ngcontent-%COMP%]{position:relative}.skeletonAnimation[_ngcontent-%COMP%]   .relClass[_ngcontent-%COMP%]   .bar300[_ngcontent-%COMP%]{background-color:#e7e7e7;width:100%}.skeletonAnimation[_ngcontent-%COMP%]   .relClass[_ngcontent-%COMP%]   .bar300[_ngcontent-%COMP%]:after{position:absolute;transform:translateY(-50%);top:50%;left:0;content:"";display:block;width:100%;height:300px;background-image:linear-gradient(100deg,rgba(255,255,255,0),rgba(255,255,255,.5) 60%,rgba(255,255,255,0) 80%);background-size:100px 300px;background-position:-10px 0;background-repeat:no-repeat;animation:loading 1s infinite}.totalGoalsBox[_ngcontent-%COMP%]{height:90px;border:.5px solid #BCC6CA;display:flex;align-items:center;justify-content:center;flex-direction:column}.investmentBox[_ngcontent-%COMP%]{border:.5px solid #BCC6CA;height:196px;display:flex;align-items:center;justify-content:center;flex-direction:column}.linebr[_ngcontent-%COMP%]{display:block;border-top:.5px solid #83959D;width:104px;margin:15px auto}.text-black[_ngcontent-%COMP%]{color:#000!important}.b[_ngcontent-%COMP%]{border:1px solid #DADCE0!important}.bb[_ngcontent-%COMP%]{border-bottom:1px solid #DADCE0!important}.br[_ngcontent-%COMP%]{border-right:1px solid #DADCE0!important}.h-16[_ngcontent-%COMP%]{height:16px!important}.bg-lter[_ngcontent-%COMP%]{background:#F5F7F7!important}.relative[_ngcontent-%COMP%]{position:relative!important}.bg-gray[_ngcontent-%COMP%]{background:#E5E5E5!important}.w100[_ngcontent-%COMP%]{width:100%!important}.icon[_ngcontent-%COMP%]{position:absolute;right:0;top:141px}.b1[_ngcontent-%COMP%]{border:1px solid #008FFF!important}.w-100px[_ngcontent-%COMP%]{width:100px!important}.hide[_ngcontent-%COMP%]{display:none}.priority-tag-high[_ngcontent-%COMP%], .priority-tag-low[_ngcontent-%COMP%], .priority-tag-medium[_ng
1content-%COMP%], .priority-tag-completed[_ngcontent-%COMP%]{border:1px solid #83959D;padding:2px 6px;border-radius:4px;color:#83959d;margin:10px}.custom-progress-bar[_ngcontent-%COMP%]{position:relative;width:100%;height:10px;background-color:#e0e0e0;overflow:hidden}.progress-segment[_ngcontent-%COMP%]{position:absolute;height:100%;top:0;left:0}']}),u})()},17674:(it,k,g)=>{g.d(k,{W:()=>Ga});var t=g(94650),d=g(67241),s=g(84056),p=g(86129),U=g(36462),o=g(44568),P=g(54833),S=g(53129),F=g(41074),M=g(30386),I=g(97309),O=g(13932),J=g(65730),Q=g(93584),N=g(93470),K=g(98739),G=g(96308),x=g(53626),y=g(43489),B=g(30567),q=g(1996),X=g(18079),A=g(68681),H=g(70661),V=g(51927),$=g(73799),pt=g(34793),Zt=g(28914),At=g(65923),Pt=g(31319),Ct=g(95819),wt=g(23767),Gt=g(65938),ct=g(36895),Z=g(27011),St=g(11481),Mt=g(1325),Ot=g(99650),qt=g(95661),D=g(4859),L=g(28255),_=g(73162),v=g(51572),E=g(10266),gt=g(81638),xt=g(21112),lt=g(73555),st=g(6497);const _t=["summaryTemplateHeader"],Yt=["gsummaryPlan"];function Rt(l,c){if(1&l){const e=t.EpF();t.TgZ(0,"button",73),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(2);return t.KtG(r.openAddgoals())}),t._uU(1,"ADD GOAL"),t.qZA()}}function Kt(l,c){1&l&&(t.TgZ(0,"span",91),t._uU(1,"HIGH"),t.qZA())}function kt(l,c){1&l&&(t.TgZ(0,"span",92),t._uU(1,"MEDIUM"),t.qZA())}function Bt(l,c){1&l&&(t.TgZ(0,"span",93),t._uU(1,"LOW"),t.qZA())}function jt(l,c){1&l&&(t.TgZ(0,"span",94),t._uU(1,"COMPLETED"),t.qZA())}const Wt=function(l){return{"b-primitive":l}};function Ht(l,c){if(1&l&&(t.TgZ(0,"div")(1,"div",75)(2,"div",76),t._UZ(3,"img",77),t.qZA(),t.TgZ(4,"div",78)(5,"div",79)(6,"p",80)(7,"span",81),t._uU(8),t.qZA()(),t.YNc(9,Kt,2,0,"span",82),t.ALo(10,"date"),t.ALo(11,"date"),t.YNc(12,kt,2,0,"span",83),t.ALo(13,"date"),t.ALo(14,"date"),t.YNc(15,Bt,2,0,"span",84),t.ALo(16,"date"),t.ALo(17,"date"),t.YNc(18,jt,2,0,"span",85),t.ALo(19,"date"),t.ALo(20,"date"),t.qZA(),t.TgZ(21,"div",86)(22,"div",87)(23,"h5",88),t._uU(24,"Goal value"),t.qZA(),t.TgZ(25,"h5",89)(26,"span",81)(27,"span",49),t._uU(28,"\u20b9"),t.qZA(),t._uU(29),t.qZA()()(),t.TgZ(30,"div",90)(31,"h5",88),t._uU(32,"Year"),t.qZA(),t.TgZ(33,"h5",89)(34,"span",81),t._uU(35),t.qZA()()()()()()()),2&l){const e=t.oxw().$implicit,a=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.VKq(34,Wt,e.id==a.selectedGoal.id)),t.xp6(2),t.Q6J("src",e.img,t.LSH),t.xp6(5),t.Oqu(e.goalName),t.xp6(1),t.Q6J("ngIf",6===e.priorityFlag&&t.xi3(10,10,e.goalEndDate,"yyyy-MM-dd")>t.xi3(11,13,a.today,"yyyy-MM-dd")),t.xp6(3),t.Q6J("ngIf",4===e.priorityFlag&&t.xi3(13,16,e.goalEndDate,"yyyy-MM-dd")>t.xi3(14,19,a.today,"yyyy-MM-dd")),t.xp6(3),t.Q6J("ngIf",2===e.priorityFlag&&t.xi3(16,22,e.goalEndDate,"yyyy-MM-dd")>t.xi3(17,25,a.today,"yyyy-MM-dd")),t.xp6(3),t.Q6J("ngIf",e.goalEndDate&&t.xi3(19,28,e.goalEndDate,"yyyy-MM-dd")<t.xi3(20,31,a.today,"yyyy-MM-dd")),t.xp6(9),t.Q6J("hidden",a.isLoadingGoals),t.xp6(2),t.hij("",e.gv," "),t.xp6(6),t.Oqu(e.year)}}const Ut=function(l){return{height82:l}};function zt(l,c){if(1&l&&(t.TgZ(0,"div")(1,"div",95),t._UZ(2,"div",96),t.qZA()()),2&l){const e=t.oxw(3);t.xp6(2),t.Q6J("ngClass",t.VKq(1,Ut,e.isLoadingGoals))}}function $t(l,c){if(1&l){const e=t.EpF();t.TgZ(0,"div",74),t.NdJ("click",function(){const b=t.CHM(e).$implicit,C=t.oxw(2);return t.KtG(C.loadSelectedGoalData(b))}),t.YNc(1,Ht,36,36,"div",7),t.YNc(2,zt,3,3,"div",7),t.qZA()}if(2&l){const e=t.oxw(2);t.Q6J("appSkeletonLoading",e.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",!e.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",e.isLoadingGoals)}}function Xt(l,c){if(1&l){const e=t.EpF();t.O4$(),t.TgZ(0,"svg",196),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(4);return t.KtG(r.generatePdf(null))}),t._UZ(1,"path",197),t.qZA()}}function te(l,c){if(1&l){const e=t.EpF();t.O4$(),t.TgZ(0,"svg",198),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(4);return t.KtG(r.deleteGoal())}),t._UZ(1,"path",199),t.qZA()}}function ee(l,c){if(1&l&&(t.TgZ(0,"div"),t.YNc(1,Xt,2,0,"svg",194),t.YNc(2,te,2,0,"svg",195),t.qZA()),2&l){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",e.roleService.planPermission.subModule.goals.capabilityList.Download),t.xp6(1),t.Q6J("ngIf",e.roleService.planPermission.subModule.goals.capabilityList.Delete)}}function le(l,c){1&l&&t._UZ(0,"mat-spinner",200),2&l&&t.Q6J("diameter",30)}const ae=function(){return["/customer/detail/plan/goals/summary"]};function oe(l,c){1&l&&(t.TgZ(0,"div",105)(1,"div",201)(2,"div",202)(3,"a",203),t.O4$(),t.TgZ(4,"svg",204),t._UZ(5,"path",205),t.qZA()()(),t.kcU(),t.TgZ(6,"div",206)(7,"a",207),t._UZ(8,"img",208),t.qZA()()()()),2&l&&(t.xp6(6),t.Q6J("routerLink",t.DdM(1,ae)))}function ne(l,c){if(1&l&&t._UZ(0,"span",33),2&l){const e=t.oxw(3);t.Q6J("value",null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.futureValue)}}function ie(l,c){if(1&l&&(t.TgZ(0,"span",209),t._uU(1),t.qZA()),2&l){const e=t.oxw(3);t.Q6J("value",null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.achievedValue),t.xp6(1),t.hij(" ",null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.achievedValue," % ")}}const se=function(l,c){return{"background-color":l,"width.%":c}};function re(l,c){if(1&l&&t._UZ(0,"div",210),2&l){const e=t.oxw(3);t.Q6J("ngStyle",t.WLB(1,se,e.getOpacityColor(null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.goalProgress),e.averageAchievedPercent-(null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.goalProgress)))}}function de(l,c){if(1&l&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&l){const e=t.oxw(3);t.xp6(1),t.hij(" ",t.xi3(2,1,e.averageAchievedPercent,"1.0-2")," % Achievable ")}}const m=function(l){return{color:l}};function ce(l,c){if(1&l&&t._UZ(0,"span",226),2&l){const e=t.oxw(4);t.Q6J("ngStyle",t.VKq(2,m,null==e.colorData?null:e.colorData.colorTableRowText))("value",e.goalsPlanService.getTextInfinity(null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.equity_monthly)?"-":null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.equity_monthly)}}function ue(l,c){if(1&l&&t._UZ(0,"span",227),2&l){const e=t.oxw(4);t.Q6J("ngStyle",t.VKq(1,m,null==e.colorData?null:e.colorData.colorTableRowText))}}function Qt(l,c){if(1&l&&t._UZ(0,"span",228),2&l){const e=t.oxw(4);t.Q6J("ngStyle",t.VKq(2,m,null==e.colorData?null:e.colorData.colorTableRowText))("value",e.goalsPlanService.getTextInfinity(null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.debt_monthly)?"-":null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.debt_monthly)}}function pe(l,c){if(1&l&&t._UZ(0,"span",227),2&l){const e=t.oxw(4);t.Q6J("ngStyle",t.VKq(1,m,null==e.colorData?null:e.colorData.colorTableRowText))}}function ge(l,c){if(1&l&&t._UZ(0,"span",228),2&l){const e=t.oxw(4);t.Q6J("ngStyle",t.VKq(2,m,null==e.colorData?null:e.colorData.colorTableRowText))("value",e.goalsPlanService.getTextInfinity(null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.lump_equity)?"":null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.lump_equity)}}function z(l,c){if(1&l&&t._UZ(0,"span",227),2&l){const e=t.oxw(4);t.Q6J("ngStyle",t.VKq(1,m,null==e.colorData?null:e.colorData.colorTableRowText))}}function _e(l,c){if(1&l&&t._UZ(0,"span",228),2&l){const e=t.oxw(4);t.Q6J("ngStyle",t.VKq(2,m,null==e.colorData?null:e.colorData.colorTableRowText))("value",e.goalsPlanService.getTextInfinity(null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.lump_debt)?"":null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.lump_debt)}}function me(l,c){if(1&l&&t._UZ(0,"span",227),2&l){const e=t.oxw(4);t.Q6J("ngStyle",t.VKq(1,m,null==e.colorData?null:e.colorData.colorTableRowText))}}const Dt=function(l){return{"background-color":l}};function fe(l,c){if(1&l&&(t.TgZ(0,"div",211)(1,"div",212)(2,"div",213)(3,"p",214)(4,"span",21),t._uU(5," Additional required "),t.qZA()(),t.TgZ(6,"p",215)(7,"span",21),t._uU(8," Equity "),t.qZA()(),t.TgZ(9,"p",216)(10,"span",21),t._uU(11," Debt "),t.qZA()()(),t.TgZ(12,"div",76)(13,"p",217)(14,"span",21),t._uU(15," Monthly "),t.qZA()(),t.TgZ(16,"p",218)(17,"span"),t._uU(18,"\u20b9 "),t.qZA(),t.YNc(19,ce,1,4,"span",219),t.YNc(20,ue,1,3,"span",220),t.qZA(),t.TgZ(21,"p",221)(22,"span"),t._uU(23,"\u20b9 "),t.qZA(),t.YNc(24,Qt,1,4,"span",222),t.YNc(25,pe,1,3,"span",220),t.qZA()(),t.TgZ(26,"div",65)(27,"p",223)(28,"span",21),t._uU(29," Lumpsum"),t.qZA()(),t.TgZ(30,"p",224)(31,"span"),t._uU(32,"\u20b9 "),t.qZA(),t.YNc(33,ge,1,4,"span",222),t.YNc(34,z,1,3,"span",220),t.qZA(),t.TgZ(35,"p",225)(36,"span"),t._uU(37,"\u20b9 "),t.qZA(),t.YNc(38,_e,1,4,"span",222),t.YNc(39,me,1,3,"span",220),t.qZA()()()()),2&l){const e=t.oxw(3);t.xp6(3),t.Q6J("ngStyle",t.VKq(16,Dt,null==e.colorData?null:e.colorData.bgColor)),t.xp6(1),t.Q6J("ngStyle",t.VKq(18,m,null==e.colorData?null:e.colorData.colorText)),t.xp6(3),t.Q6J("ngStyle",t.VKq(20,m,null==e.colorData?null:e.colorData.colorText)),t.xp6(3),t.Q6J("ngStyle",t.VKq(22,m,null==e.colorData?null:e.colorData.colorText)),t.xp6(3),t.Q6J("ngStyle",t.VKq(24,Dt,null==e.colorData?null:e.colorData.bgColor)),t.xp6(1),t.Q6J("ngStyle",t.VKq(26,m,null==e.colorData?null:e.colorData.colorText)),t.xp6(5),t.Q6J("ngIf",!e.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",e.isLoadingGoals),t.xp6(4),t.Q6J("ngIf",!e.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",e.isLoadingGoals),t.xp6(2),t.Q6J("ngStyle",t.VKq(28,Dt,null==e.colorData?null:e.colorData.bgColor)),t.xp6(1),t.Q6J("ngStyle",t.VKq(30,m,null==e.colorData?null:e.colorData.colorText)),t.xp6(5),t.Q6J("ngIf",!e.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",e.isLoadingGoals),t.xp6(4),t.Q6J("ngIf",!e.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",e.isLoadingGoals)}}function u(l,c){if(1&l&&t._UZ(0,"span",226),2&l){const e=t.oxw(4);t.Q6J("ngStyle",t.VKq(2,m,null==e.colorData?null:e.colorData.colorTableRowText))("value",(null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.equity_monthly)+(null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.debt_monthly))}}function T(l,c){if(1&l&&t._UZ(0,"span",227),2&l){const e=t.oxw(4);t.Q6J("ngStyle",t.VKq(1,m,null==e.colorData?null:e.colorData.colorTableRowText))}}
1function n(l,c){if(1&l&&t._UZ(0,"span",228),2&l){const e=t.oxw(4);t.Q6J("ngStyle",t.VKq(2,m,null==e.colorData?null:e.colorData.colorTableRowText))("value",(null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.lump_equity)+(null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.lump_debt))}}function i(l,c){if(1&l&&t._UZ(0,"span",227),2&l){const e=t.oxw(4);t.Q6J("ngStyle",t.VKq(1,m,null==e.colorData?null:e.colorData.colorTableRowText))}}const h=function(l,c){return{"background-color":l,color:c}};function W(l,c){if(1&l&&(t.TgZ(0,"div",211)(1,"div",212)(2,"div",112)(3,"p",229),t._uU(4,"Additional required"),t.qZA(),t.TgZ(5,"p",230),t._uU(6,"Total(Equity+Debt)"),t.qZA()(),t.TgZ(7,"div",76)(8,"p",231),t._uU(9,"Monthly"),t.qZA(),t.TgZ(10,"p",232),t.YNc(11,u,1,4,"span",219),t.YNc(12,T,1,3,"span",220),t.qZA()(),t.TgZ(13,"div",76)(14,"p",231),t._uU(15,"Lumpsum"),t.qZA(),t.TgZ(16,"p",233),t.YNc(17,n,1,4,"span",222),t.YNc(18,i,1,3,"span",220),t.qZA()()()()),2&l){const e=t.oxw(3);t.xp6(3),t.Q6J("ngStyle",t.WLB(8,h,null==e.colorData?null:e.colorData.bgColor,null==e.colorData?null:e.colorData.colorText)),t.xp6(2),t.Q6J("ngStyle",t.WLB(11,h,null==e.colorData?null:e.colorData.bgTotalRow,null==e.colorData?null:e.colorData.colorTotalRow)),t.xp6(3),t.Q6J("ngStyle",t.WLB(14,h,null==e.colorData?null:e.colorData.bgColor,null==e.colorData?null:e.colorData.colorText)),t.xp6(3),t.Q6J("ngIf",!e.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",e.isLoadingGoals),t.xp6(2),t.Q6J("ngStyle",t.WLB(17,h,null==e.colorData?null:e.colorData.bgColor,null==e.colorData?null:e.colorData.colorText)),t.xp6(3),t.Q6J("ngIf",!e.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",e.isLoadingGoals)}}function Y(l,c){if(1&l&&(t.TgZ(0,"div",234)(1,"div",235),t._UZ(2,"div",236),t.qZA(),t.TgZ(3,"div",237),t._UZ(4,"div",236),t.qZA(),t.TgZ(5,"div",238),t._UZ(6,"div",236),t.qZA(),t.TgZ(7,"div",237),t._UZ(8,"div",236),t.qZA(),t.TgZ(9,"div",237),t._UZ(10,"div",236),t.qZA(),t.TgZ(11,"div",239),t._UZ(12,"div",236)(13,"img",240),t.qZA()()),2&l){const e=t.oxw(3);t.Q6J("appSkeletonLoading",e.isLoadingGoals)}}function f(l,c){if(1&l&&t._UZ(0,"img",253),2&l){t.oxw();const e=t.MAs(33);t.Q6J("matMenuTriggerFor",e)}}function et(l,c){if(1&l){const e=t.EpF();t.TgZ(0,"button",254),t.NdJ("click",function(){t.CHM(e);const r=t.oxw().$implicit,b=t.oxw(4);return t.KtG(b.reallocateAsset(r,!0))}),t._uU(1,"Change allocation percentage"),t.qZA()}}function ut(l,c){if(1&l){const e=t.EpF();t.TgZ(0,"button",254),t.NdJ("click",function(){t.CHM(e);const r=t.oxw().$implicit,b=t.oxw(4);return t.KtG(b.removeAllocation(r))}),t._uU(1,"Remove Allocation"),t.qZA()}}function rt(l,c){if(1&l&&(t.ynx(0),t.TgZ(1,"div",241)(2,"div",242)(3,"div",95)(4,"div",81),t._uU(5),t.TgZ(6,"p",243),t.ALo(7,"date"),t._uU(8),t.qZA()()()(),t.TgZ(9,"div",244)(10,"div",95)(11,"div",81),t._UZ(12,"p",245),t.qZA()()(),t.TgZ(13,"div",246)(14,"div",95)(15,"div",81)(16,"p",247)(17,"span"),t._uU(18,"\u20b9 "),t.qZA()()()()(),t.TgZ(19,"div",248)(20,"div",95)(21,"div",81)(22,"p",247)(23,"span"),t._uU(24,"\u20b9 "),t.qZA()()()()(),t.TgZ(25,"div",249)(26,"div",81)(27,"p",250),t._uU(28," % "),t.qZA()()(),t.TgZ(29,"div",251)(30,"div",81),t.YNc(31,f,1,1,"img",252),t.TgZ(32,"mat-menu",null,148),t.YNc(34,et,2,0,"button",149),t.YNc(35,ut,2,0,"button",149),t.qZA()()()(),t.BQk()),2&l){const e=c.$implicit,a=t.oxw(4);t.xp6(5),t.hij("",""," "),t.xp6(1),t.Q6J("matTooltip","Allocated on: "+(e.createdDate?t.xi3(7,15,e.createdDate,"dd MMMM yyyy"):"-"))("ngStyle",t.VKq(18,m,null==a.colorData?null:a.colorData.colorTableRowText)),t.xp6(2),t.hij(" ",e.assetName," "),t.xp6(4),t.Q6J("ngStyle",t.VKq(20,m,null==a.colorData?null:a.colorData.colorTableRowText))("formatWithSymbol",e.currentValue),t.xp6(4),t.Q6J("ngStyle",t.VKq(22,m,null==a.colorData?null:a.colorData.colorTableRowText))("formatWithSymbol",0==e.maturityValue?"-":e.maturityValue),t.xp6(6),t.Q6J("ngStyle",t.VKq(24,m,null==a.colorData?null:a.colorData.colorTableRowText))("formatWithSymbol",0==e.projectedValue?"-":e.projectedValue),t.xp6(5),t.Q6J("ngStyle",t.VKq(26,m,null==a.colorData?null:a.colorData.colorTableRowText))("value",5==e.assetType&&1==e.lumpsumOrSip?e.lumpsumPercent:5==e.assetType&&2==e.lumpsumOrSip?e.sipPercent:e.percentAllocated),t.xp6(4),t.Q6J("ngIf",a.roleService.planPermission.subModule.goals.capabilityList.Edit),t.xp6(3),t.Q6J("ngIf",a.roleService.planPermission.subModule.goals.capabilityList.Edit),t.xp6(1),t.Q6J("ngIf",a.roleService.planPermission.subModule.goals.capabilityList.Delete)}}function ft(l,c){if(1&l&&(t.TgZ(0,"div"),t.YNc(1,rt,36,28,"ng-container",47),t.qZA()),2&l){const e=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",e.allocatedList)}}function vt(l,c){1&l&&(t.TgZ(0,"span",258),t._uU(1,"No asset allocated"),t.qZA())}function ht(l,c){1&l&&(t.TgZ(0,"span"),t._uU(1,"Unable to load asset data"),t.qZA())}function dt(l,c){if(1&l&&(t.TgZ(0,"div",255)(1,"div",256),t.YNc(2,vt,2,0,"span",257),t.YNc(3,ht,2,0,"span",7),t.qZA()()),2&l){const e=t.oxw(3);t.xp6(2),t.Q6J("ngIf",!e.assetError),t.xp6(1),t.Q6J("ngIf",e.assetError)}}function yt(l,c){if(1&l&&(t.TgZ(0,"button",259)(1,"i",260),t._uU(2," more_vert "),t.qZA()()),2&l){t.oxw();const e=t.MAs(93);t.Q6J("matMenuTriggerFor",e)}}function tt(l,c){if(1&l){const e=t.EpF();
1t.TgZ(0,"button",254),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(3);return t.KtG(r.openInSideBar(null==r.selectedGoal||null==r.selectedGoal.remainingData?null:r.selectedGoal.remainingData.costDelay,"openCostOfDelay"))}),t._uU(1,"Edit"),t.qZA()}}function Tt(l,c){if(1&l){const e=t.EpF();t.TgZ(0,"button",254),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(3);return t.KtG(r.deleteCostOfDelay(null==r.selectedGoal||null==r.selectedGoal.remainingData?null:r.selectedGoal.remainingData.costDelay))}),t._uU(1,"Delete"),t.qZA()}}function xe(l,c){1&l&&(t.TgZ(0,"div",261),t._uU(1," Goal requirements are fulfilled"),t.qZA())}function De(l,c){if(1&l&&(t.TgZ(0,"button",259)(1,"i",260),t._uU(2," more_vert "),t.qZA()()),2&l){t.oxw();const e=t.MAs(7);t.Q6J("matMenuTriggerFor",e)}}function ye(l,c){if(1&l){const e=t.EpF();t.TgZ(0,"button",254),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(4);return t.KtG(r.deleteAllMilestone(r.dataSource1))}),t._uU(1,"Delete milestone "),t.qZA()}}function Te(l,c){if(1&l){const e=t.EpF();t.TgZ(0,"div",262)(1,"div",144)(2,"h5",263),t._uU(3,"Milestone details"),t.qZA()(),t.TgZ(4,"div",146),t.YNc(5,De,3,1,"button",147),t.TgZ(6,"mat-menu",null,148)(8,"button",254),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(3);return t.KtG(r.addMilestone(r.dataSource1,"","Edit"))}),t._uU(9,"Edit milestone"),t.qZA(),t.YNc(10,ye,2,0,"button",149),t.qZA()()()}if(2&l){const e=t.oxw(3);t.xp6(5),t.Q6J("ngIf",e.roleService.planPermission.subModule.goals.capabilityList.Edit),t.xp6(5),t.Q6J("ngIf",e.roleService.planPermission.subModule.goals.capabilityList.Delete)}}function It(l,c){if(1&l&&(t.TgZ(0,"th",279),t._uU(1,"Planning"),t.qZA()),2&l){const e=t.oxw(4);t.Q6J("ngStyle",t.WLB(1,h,null==e.colorData?null:e.colorData.bgColor,null==e.colorData?null:e.colorData.colorText))}}function Lt(l,c){if(1&l&&(t.TgZ(0,"td",280)(1,"div",81),t._uU(2),t.qZA()()),2&l){const e=c.$implicit,a=t.oxw(4);t.Q6J("ngStyle",t.VKq(2,m,null==a.colorData?null:a.colorData.colorTableRowText)),t.xp6(2),t.hij(" ",1==e.onRetirementOrDemise?"Post retirement":"Demise"," ")}}function Pe(l,c){if(1&l&&(t.TgZ(0,"th",281),t._uU(1,"Milestone type "),t.qZA()),2&l){const e=t.oxw(4);t.Q6J("ngStyle",t.WLB(1,h,null==e.colorData?null:e.colorData.bgColor,null==e.colorData?null:e.colorData.colorText))}}function Ce(l,c){if(1&l&&(t.TgZ(0,"td",282)(1,"div",81),t._uU(2),t.TgZ(3,"span"),t._uU(4),t.qZA()()()),2&l){const e=c.$implicit,a=t.oxw(4);t.Q6J("ngStyle",t.VKq(3,m,null==a.colorData?null:a.colorData.colorTableRowText)),t.xp6(2),t.Oqu(""),t.xp6(2),t.hij(" ",1==e.milestoneTypeId?"Philanthrophy":2==e.milestoneTypeId?"Legacy":3==e.milestoneTypeId?"Wealth creation":4==e.milestoneTypeId?"New business":5==e.milestoneTypeId?"Others":"Medical emergency"," ")}}function we(l,c){if(1&l&&(t.TgZ(0,"th",283),t._uU(1," Amount "),t.qZA()),2&l){const e=t.oxw(4);t.Q6J("ngStyle",t.WLB(1,h,null==e.colorData?null:e.colorData.bgColor,null==e.colorData?null:e.colorData.colorText))}}function Ge(l,c){if(1&l&&(t.TgZ(0,"td",284)(1,"div",81),t._uU(2),t.TgZ(3,"span",285),t._uU(4),t.qZA()()()),2&l){const e=c.$implicit,a=t.oxw(4);t.Q6J("ngStyle",t.VKq(3,m,null==a.colorData?null:a.colorData.colorTableRowText)),t.xp6(2),t.Oqu(a.isLoadingGoals?"":"\u20b9 "),t.xp6(2),t.hij(" ",e.amount," ")}}function Se(l,c){if(1&l&&(t.TgZ(0,"th",283),t._uU(1," Future value "),t.qZA()),2&l){const e=t.oxw(4);t.Q6J("ngStyle",t.WLB(1,h,null==e.colorData?null:e.colorData.bgColor,null==e.colorData?null:e.colorData.colorText))}}function Me(l,c){if(1&l&&(t.TgZ(0,"td",284)(1,"div",81),t._uU(2),t.TgZ(3,"span",285),t._uU(4),t.qZA()()()),2&l){const e=c.$implicit,a=t.oxw(4);t.Q6J("ngStyle",t.VKq(3,m,null==a.colorData?null:a.colorData.colorTableRowText)),t.xp6(2),t.Oqu(a.isLoadingGoals?"":"\u20b9 "),t.xp6(2),t.hij(" ",e.milestoneFV," ")}}function Oe(l,c){1&l&&t._UZ(0,"tr",286)}function qe(l,c){1&l&&t._UZ(0,"tr",287)}function Ue(l,c){1&l&&(t.TgZ(0,"span",258),t._uU(1," No milestone added"),t.qZA())}function Ie(l,c){if(1&l){const e=t.EpF();t.TgZ(0,"div",288)(1,"div",261),t.YNc(2,Ue,2,0,"span",257),t.TgZ(3,"button",289),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(4);return t.KtG(r.addMilestone(r.dataSource1,"","add"))}),t._uU(4," Add milestone "),t.qZA()()()}if(2&l){const e=t.oxw(4);t.xp6(2),t.Q6J("ngIf",!e.assetError)}}const he=function(l){return{"table-scroll":l}};function Le(l,c){if(1&l&&(t.TgZ(0,"div",264)(1,"table",265),t.ynx(2,266),t.YNc(3,It,2,4,"th",267),t.YNc(4,Lt,3,4,"td",268),t.BQk(),t.ynx(5,269),t.YNc(6,Pe,2,4,"th",270),t.YNc(7,Ce,5,5,"td",271),t.BQk(),t.ynx(8,272),t.YNc(9,we,2,4,"th",273),t.YNc(10,Ge,5,5,"td",274),t.BQk(),t.ynx(11,275),t.YNc(12,Se,2,4,"th",273),t.YNc(13,Me,5,5,"td",274),t.BQk(),t.YNc(14,Oe,1,0,"tr",276),t.YNc(15,qe,1,0,"tr",277),t.qZA(),t.YNc(16,Ie,5,1,"div",278),t.qZA()),2&l){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(7,he,0==e.isLoadingGoals)),t.xp6(1),t.Q6J("dataSource",e.dataSource1)("appSkeletonLoading",e.isLoadingGoals),t.xp6(13),t.Q6J("matHeaderRowDef",e.displayedColumns1)("matHeaderRowDefSticky",!0),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns1),t.xp6(1),t.Q6J("ngIf",!e.isLoadingGoals&&e.isRetirementTab&&0==e.dataSource1.length)}}function Ee(l,c){if(1&l&&(t.TgZ(0,"div",262)(1,"div",53)(2,"h5",263)(3,"span",21),t._uU(4," Goal year wise details "),t.qZA()()()()),2&l){const e=t.oxw(3);t.xp6(3),t.Q6J("ngStyle",t.VKq(1,m,null==e.colorData?null:e.colorData.colorReportName))}}function Je(l,c){if(1&l&&(t.TgZ(0,"th",279),t._uU(1," Goal Year"),t.qZA()),2&l){const e=t.oxw(4);t.Q6J("ngStyle",t.WLB(1,h,null==e.colorData?null:e.colorData.bgColor,null==e.colorData?null:e.colorData.colorText))}}function Qe(l,c){if(1&l&&(t.TgZ(0,"td",280)(1,"div",81),t._uU(2),t.qZA()()),2&l){const e=c.$implicit,a=t.oxw(4);t.Q6J("ngStyle",t.VKq(2,m,null==a.colorData?null:a.colorData.colorTableRowText)),t.xp6(2),t.hij(" ",e.goalYear," ")}}function Ne(l,c){if(1&l&&(t.TgZ(0,"th",283),t._uU(1," Goal Present Value "),t.qZA()),2&l){const e=t.oxw(4);t.Q6J("ngStyle",t.WLB(1,h,null==e.colorData?null:e.colorData.bgColor,null==e.colorData?null:e.colorData.colorText))}}function Ve(l,c){if(1&l&&(t.TgZ(0,"td",284)(1,"div",81),t._uU(2),t.TgZ(3,"span",285),t._uU(4),t.qZA()()()),2&l){const e=c.$implicit,a=t.oxw(4);t.Q6J("ngStyle",t.VKq(3,m,null==a.colorData?null:a.colorData.colorTableRowText)),t.xp6(2),t.hij("",a.isLoadingGoals?"":"\u20b9 "," "),t.xp6(2),t.hij(" ",e.goalPresentValue?e.goalPresentValue:0," ")}}function Fe(l,c){if(1&l&&(t.TgZ(0,"th",283),t._uU(1," Goal Future Value "),t.qZA()),2&l){const e=t.oxw(4);t.Q6J("ngStyle",t.WLB(1,h,null==e.colorData?null:e.colorData.bgColor,null==e.colorData?null:e.colorData.colorText))}}function Ye(l,c){if(1&l&&(t.TgZ(0,"td",284)(1,"div",81),t._uU(2),t.TgZ(3,"span",285),t._uU(4),t.qZA()()()),2&l){const e=c.$implicit,a=t.oxw(4);t.Q6J("ngStyle",t.VKq(3,m,null==a.colorData?null:a.colorData.colorTableRowText)),t.xp6(2),t.Oqu(a.isLoadingGoals?"":"\u20b9 "),t.xp6(2),t.hij(" ",e.fvOnGoalDate," ")}}function Re(l,c){if(1&l&&(t.TgZ(0,"th",283),t._uU(1,"Achievable"),t.qZA()),2&l){const e=t.oxw(4);t.Q6J("ngStyle",t.WLB(1,h,null==e.colorData?null:e.colorData.bgColor,null==e.colorData?null:e.colorData.colorText))}}function Ke(l,c){if(1&l&&(t.TgZ(0,"td",284)(1,"div",81)(2,"span"),t._uU(3),t.qZA()()()),2&l){const e=c.$implicit,a=t.oxw(4);t.Q6J("ngStyle",t.VKq(2,m,null==a.colorData?null:a.colorData.colorTableRowText)),t.xp6(3),t.hij(" ",e.achievedPercent?e.achievedPercent:0,"% ")}}function ke(l,c){1&l&&t._UZ(0,"tr",286)}function Be(l,c){1&l&&t._UZ(0,"tr",287)}function je(l,c){if(1&l&&(t.TgZ(0,"div",264)(1,"table",265),t.ynx(2,290),t.YNc(3,Je,2,4,"th",267),t.YNc(4,Qe,3,4,"td",268),t.BQk(),t.ynx(5,291),t.YNc(6,Ne,2,4,"th",273),t.YNc(7,Ve,5,5,"td",274),t.BQk(),t.ynx(8,292),t.YNc(9,Fe,2,4,"th",273),t.YNc(10,Ye,5,5,"td",274),t.BQk(),t.ynx(11,293),t.YNc(12,Re,2,4,"th",273),t.YNc(13,Ke,4,4,"td",274),t.BQk(),t.YNc(14,ke,1,0,"tr",276),t.YNc(15,Be,1,0,"tr",277),t.qZA()()),2&l){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(6,he,0==e.isLoadingGoals)),t.xp6(1),t.Q6J("dataSource",e.dataSource)("appSkeletonLoading",e.isLoadingGoals),t.xp6(13),t.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",!0),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function We(l,c){1&l&&(t.TgZ(0,"div",262)(1,"div",53)(2,"h5",263),t._uU(3,"Goal year wise details"),t.qZA()()())}function He(l,c){if(1&l&&(t.TgZ(0,"th",279),t._uU(1," Goal Year"),t.qZA()),2&l){const e=t.oxw(4);t.Q6J("ngStyle",t.WLB(1,h,null==e.colorData?null:e.colorData.bgColor,null==e.colorData?null:e.colorData.colorText))}}function ze(l,c){if(1&l&&(t.TgZ(0,"td",280)(1,"div",81),t._uU(2),t.ALo(3,"date"),t.qZA()()),2&l){const e=c.$implicit,a=t.oxw(4);t.Q6J("ngStyle",t.VKq(5,m,null==a.colorData?null:a.colorData.colorTableRowText)),t.xp6(2),t.hij(" ",t.xi3(3,2,e.goalYr,"yyyy")," ")}}function $e(l,c){if(1&l&&(t.TgZ(0,"th",283),t._uU(1," Goal Present Value "),t.qZA()),2&l){const e=t.oxw(4);t.Q6J("ngStyle",t.WLB(1,h,null==e.colorData?null:e.colorData.bgColor,null==e.colorData?null:e.colorData.colorText))}}function Xe(l,c){if(1&l&&(t.TgZ(0,"td",284)(1,"div",81),t._uU(2),t.TgZ(3,"span",285),t._uU(4),t.qZA()()()),2&l){const e=c.$implicit,a=t.oxw(4);t.Q6J("ngStyle",t.VKq(3,m,null==a.colorData?null:a.colorData.colorTableRowText)),t.xp6(2),t.hij("",a.isLoadingGoals?"":"\u20b9 "," "),t.xp6(2),t.hij(" ",e.yearlyGoalValue?e.yearlyGoalValue:0," ")}}function tl(l,c){if(1&l&&(t.TgZ(0,"th",283),t._uU(1," Goal Future Value "),t.qZA()),2&l){const e=t.oxw(4);t.Q6J("ngStyle",t.WLB(1,h,null==e.colorData?null:e.colorData.bgColor,null==e.colorData?null:e.colorData.colorText))}}function el(l,c){if(1&l&&(t.TgZ(0,"td",284)(1,"div",81),t._uU(2),t.TgZ(3,"span",285),t._uU(4),t.qZA()()()),2&l){const e=c.$implicit,a=t.oxw(4);t.Q6J("ngStyle",t.VKq(3,m,null==a.colorData?null:a.colorData.colorTableRowText)),t.xp6(2),t.Oqu(a.isLoadingGoals?"":"\u20b9 "),t.xp6(2),t.hij(" ",e.fvOnGoalDate," ")}}function ll(l,c){if(1&l&&(t.TgZ(0,"th",283),t._uU(1,"Achievable"),t.qZA()),2&l){const e=t.oxw(4);t.Q6J("ngStyle",t.WLB(1,h,null==e.colorData?null:e.colorData.bgColor,null==e.colorData?null:e.colorData.colorText))}}function al(l,c){if(1&l&&(t.TgZ(0,"td",284)(1,"div",81)(2,"span"),t._uU(3),t.qZA()()()),2&l){const e=c.$implicit,a=t.oxw(4);t.Q6J("ngStyle",t.VKq(2,m,null==a.colorData?null:a.colorData.colorTableRowText)),t.xp6(3),t.hij(" ",e.achievedPercent?e.achievedPercent:0,"% ")}}function ol(l,c){1&l&&t._UZ(0,"tr",286)}function nl(l,c){1&l&&t._UZ(0,"tr",287)}function il(l,c){if(1&l&&(t.TgZ(0,"div",264)(1,"table",265),t.ynx(2,290),t.YNc(3,He,2,4,"th",267),t.YNc(4,ze,4,7,"td",268),t.BQk(),t.ynx(5,291),t.YNc(6,$e,2,4,"th",273),t.YNc(7,Xe,5,5,"td",274),t.BQk(),t.ynx(8,292),t.YNc(9,tl,2,4,"th",273),t.YNc(10,el,5,5,"td",274),t.BQk(),t.ynx(11,293),t.YNc(12,ll,2,4,"th",273),t.YNc(13,al,4,4,"td",274),t.BQk(),t.YNc(14,ol,1,0,"tr",276),t.YNc(15,nl,1,0,"tr",277),t.qZA()()),2&l){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(6,he,0==e.isLoadingGoals)),t.xp6(1),t.Q6J("dataSource",e.selectedGoal.goalTableValues)("appSkeletonLoading",e.isLoadingGoals),t.xp6(13),t.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",!0),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function sl(l,c){if(1&l&&(t.TgZ(0,"button",259)(1,"i",260),t._uU(2," more_vert "),t.qZA()()),2&l){t.oxw();const e=t.MAs(7);t.Q6J("matMenuTriggerFor",e)}}function rl(l,c){if(1&l){const e=t.EpF();
1t.TgZ(0,"button",254),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(4);return t.KtG(r.openInSideBar(null==r.selectedGoal||null==r.selectedGoal.remainingData?null:r.selectedGoal.remainingData.loan,"openCalculators"))}),t._uU(1,"Edit Loan"),t.qZA()}}function dl(l,c){if(1&l){const e=t.EpF();t.TgZ(0,"button",254),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(4);return t.KtG(r.deleteLoan(null==r.selectedGoal||null==r.selectedGoal.remainingData?null:r.selectedGoal.remainingData.loan))}),t._uU(1,"Delete Loan"),t.qZA()}}function cl(l,c){if(1&l&&(t.TgZ(0,"div",118)(1,"div",144)(2,"h5",158),t._uU(3,"Loan details"),t.qZA()(),t.TgZ(4,"div",146),t.YNc(5,sl,3,1,"button",147),t.TgZ(6,"mat-menu",null,148),t.YNc(8,rl,2,0,"button",149),t.YNc(9,dl,2,0,"button",149),t.qZA()()()),2&l){const e=t.oxw(3);t.xp6(5),t.Q6J("ngIf",e.roleService.planPermission.subModule.goals.capabilityList.Edit||e.roleService.planPermission.subModule.goals.capabilityList.Delete),t.xp6(3),t.Q6J("ngIf",e.roleService.planPermission.subModule.goals.capabilityList.Edit),t.xp6(1),t.Q6J("ngIf",e.roleService.planPermission.subModule.goals.capabilityList.Delete)}}function ul(l,c){if(1&l&&(t.TgZ(0,"div",261)(1,"p",303),t._UZ(2,"span",304),t._uU(3),t.qZA(),t.TgZ(4,"p",303),t._UZ(5,"span",305),t._uU(6),t.qZA()()),2&l){const e=t.oxw(5);t.xp6(3),t.hij("",e.loanAmount?e.loanAmount:0,"% Loan amount "),t.xp6(3),t.hij("",e.downPayement?e.downPayement:0,"% Down payment ")}}function pl(l,c){if(1&l&&(t.TgZ(0,"div",301),t.YNc(1,ul,7,2,"div",302),t.qZA()),2&l){const e=t.oxw(4);t.xp6(1),t.Q6J("ngIf",e.loanAmount&&e.downPayement)}}function gl(l,c){if(1&l&&(t.TgZ(0,"div",294)(1,"div",295)(2,"div",296)(3,"div",65)(4,"p",297),t._uU(5,"MONTHLY INCOME IN GOAL YEAR"),t.qZA(),t.TgZ(6,"h5",80)(7,"span",81)(8,"span",49),t._uU(9,"\u20b9 "),t.qZA(),t._UZ(10,"span",33),t.qZA()()(),t.TgZ(11,"div",65)(12,"p",297),t._uU(13,"HIGHEST EMI AVAILABLE"),t.qZA(),t.TgZ(14,"h5",80)(15,"span",81)(16,"span",49),t._uU(17,"\u20b9 "),t.qZA(),t._UZ(18,"span",33),t.qZA()()(),t.TgZ(19,"div",65)(20,"p",297),t._uU(21,"HIGHEST LOAN AVAILABLE"),t.qZA(),t.TgZ(22,"h5",80)(23,"span",81)(24,"span",49),t._uU(25,"\u20b9 "),t.qZA(),t._UZ(26,"span",33),t.qZA()()()(),t.TgZ(27,"div",296)(28,"div",65)(29,"p",297),t._uU(30,"LOAN TENURE"),t.qZA(),t.TgZ(31,"h5",80)(32,"span",81),t._UZ(33,"span",49),t.TgZ(34,"span",33),t._uU(35,"Year"),t.qZA()()()(),t.TgZ(36,"div",65)(37,"p",297),t._uU(38,"EMI PAYABLE"),t.qZA(),t.TgZ(39,"h5",80)(40,"span",81)(41,"span",49),t._uU(42,"\u20b9 "),t.qZA(),t._UZ(43,"span",33),t.qZA()()(),t.TgZ(44,"div",65)(45,"p",297),t._uU(46,"LOAN TO BE TAKEN"),t.qZA(),t.TgZ(47,"h5",80)(48,"span",81)(49,"span",49),t._uU(50,"\u20b9 "),t.qZA(),t._UZ(51,"span",33),t.qZA()()()()(),t.TgZ(52,"div",298),t._UZ(53,"div",299),t.YNc(54,pl,2,1,"div",300),t.qZA()()),2&l){const e=t.oxw(3);t.xp6(1),t.Q6J("appSkeletonLoading",e.isLoadingGoals),t.xp6(7),t.Q6J("hidden",e.isLoadingGoals),t.xp6(2),t.Q6J("value",null==e.selectedGoal||null==e.selectedGoal.remainingData||null==e.selectedGoal.remainingData.loan?null:e.selectedGoal.remainingData.loan.highestLoanAndEmiEligible.income_at_goal_year),t.xp6(6),t.Q6J("hidden",e.isLoadingGoals),t.xp6(2),t.Q6J("value",null==e.selectedGoal||null==e.selectedGoal.remainingData||null==e.selectedGoal.remainingData.loan||null==e.selectedGoal.remainingData.loan.highestLoanAndEmiEligible?null:e.selectedGoal.remainingData.loan.highestLoanAndEmiEligible.highest_emi_eligible),t.xp6(6),t.Q6J("hidden",e.isLoadingGoals),t.xp6(2),t.Q6J("value",null==e.selectedGoal||null==e.selectedGoal.remainingData||null==e.selectedGoal.remainingData.loan||null==e.selectedGoal.remainingData.loan.highestLoanAndEmiEligible?null:e.selectedGoal.remainingData.loan.highestLoanAndEmiEligible.highest_loan_eligible),t.xp6(7),t.Q6J("hidden",e.isLoadingGoals),t.xp6(1),t.Q6J("value",null==e.selectedGoal||null==e.selectedGoal.remainingData||null==e.selectedGoal.remainingData.loan?null:e.selectedGoal.remainingData.loan.loanTenure),t.xp6(7),t.Q6J("hidden",e.isLoadingGoals),t.xp6(2),t.Q6J("value",null==e.selectedGoal||null==e.selectedGoal.remainingData||null==e.selectedGoal.remainingData.loan?null:e.selectedGoal.remainingData.loan.emi),t.xp6(6),t.Q6J("hidden",e.isLoadingGoals),t.xp6(2),t.Q6J("value",null==e.selectedGoal||null==e.selectedGoal.remainingData||null==e.selectedGoal.remainingData.loan?null:e.selectedGoal.remainingData.loan.loanAmount),t.xp6(3),t.Q6J("ngIf",null==e.selectedGoal||null==e.selectedGoal.remainingData?null:e.selectedGoal.remainingData.loan)}}function _l(l,c){if(1&l){const e=t.EpF();t.TgZ(0,"img",306),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(3);return t.KtG(r.openGallery(r.selectedGoal.img))}),t.qZA()}}function ml(l,c){if(1&l){const e=t.EpF();t.O4$(),t.kcU(),t.TgZ(0,"button",179),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(3);return t.KtG(r.openInSideBar(null,"openSimiulation"))}),t.O4$(),t.TgZ(1,"svg",183),t._UZ(2,"path",187)(3,"path",188)(4,"path",189)(5,"path",190)(6,"path",191)(7,"path",192),t.qZA(),t._uU(8," Simulate "),t.qZA()}if(2&l){const e=t.oxw(3);t.Q6J("disabled",!e.roleService.planPermission.subModule.goals.capabilityList.Edit)}}const Ze=function(l){return{height24:l}}
1,fl=function(l){return{"drop-zone":l}},hl=function(l){return{height289:l}},Nt=function(l){return{height36:l}};function bl(l,c){if(1&l){const e=t.EpF();t.TgZ(0,"div",97)(1,"div",98)(2,"div",99)(3,"div",52)(4,"div",100)(5,"h3",101)(6,"span",21),t._uU(7),t.qZA()()(),t.TgZ(8,"div",102)(9,"h3",103),t._uU(10),t.qZA(),t.YNc(11,ee,3,2,"div",7),t.qZA()()(),t.TgZ(12,"div",104)(13,"div",52)(14,"div",105),t.YNc(15,le,1,1,"mat-spinner",106),t.qZA(),t.YNc(16,oe,9,2,"div",107),t.qZA()()(),t.TgZ(17,"div",108)(18,"div",109)(19,"div",52)(20,"div",110)(21,"div",111)(22,"div",112)(23,"h5",113),t._uU(24,"GOAL FUTURE VALUE"),t.qZA(),t.TgZ(25,"div",95)(26,"div",114)(27,"h3",80)(28,"span",49),t._uU(29,"\u20b9"),t.qZA(),t.YNc(30,ne,1,1,"span",115),t.qZA()()()(),t.TgZ(31,"div",116)(32,"h5",113),t._uU(33,"ACHIEVED"),t.qZA(),t.TgZ(34,"div",95)(35,"div",114)(36,"h3",80),t.YNc(37,ie,2,2,"span",117),t.qZA()()()()(),t.TgZ(38,"div",118)(39,"div",53)(40,"h5",119),t._uU(41,"GOAL PROGRESS"),t.qZA(),t.TgZ(42,"div",120),t._UZ(43,"div",121),t.YNc(44,re,1,4,"div",122),t.qZA(),t.TgZ(45,"div",123)(46,"div",124)(47,"span"),t._uU(48),t.ALo(49,"number"),t.qZA()(),t.TgZ(50,"div",125),t.YNc(51,de,3,4,"span",7),t.qZA()()()()(),t.YNc(52,fe,40,32,"div",126),t.YNc(53,W,19,20,"div",126),t.qZA(),t.TgZ(54,"div",127)(55,"div",52)(56,"div",53)(57,"h5",128),t._uU(58," Allocations to this goal"),t.qZA()()(),t.TgZ(59,"div",129),t.NdJ("cdkDropListDropped",function(r){t.CHM(e);const b=t.oxw(2);return t.KtG(b.drop(r))})("cdkDropListEntered",function(r){t.CHM(e);const b=t.oxw(2);return t.KtG(b.inDropZoneMethod(r))})("cdkDropListExited",function(r){t.CHM(e);const b=t.oxw(2);return t.KtG(b.inDropZoneMethod(r))}),t.TgZ(60,"div",130)(61,"div",131)(62,"div",132)(63,"p",133)(64,"span",21),t._uU(65," Description"),t.qZA()()(),t.TgZ(66,"div",134)(67,"p",133)(68,"span",21),t._uU(69,"Current value"),t.qZA()()(),t.TgZ(70,"div",135)(71,"p",136)(72,"span",21),t._uU(73,"Maturity value"),t.qZA()()(),t.TgZ(74,"div",137)(75,"p",138)(76,"span",21),t._uU(77,"Projected FV"),t.qZA()()(),t.TgZ(78,"div",139)(79,"p",133)(80,"span",21),t._uU(81,"Allocated %"),t.qZA()()(),t._UZ(82,"div",140),t.qZA(),t.YNc(83,Y,14,1,"div",141),t.YNc(84,ft,2,1,"div",7),t.YNc(85,dt,4,2,"div",142),t.qZA()()(),t.TgZ(86,"div",143)(87,"div",144)(88,"h5",145),t._uU(89,"Cost of delay"),t.qZA()(),t.TgZ(90,"div",146),t.YNc(91,yt,3,1,"button",147),t.TgZ(92,"mat-menu",null,148),t.YNc(94,tt,2,0,"button",149),t.YNc(95,Tt,2,0,"button",149),t.qZA()()(),t.TgZ(96,"div",150),t._UZ(97,"div",151)(98,"div",152),t.YNc(99,xe,2,0,"div",153),t.qZA(),t.YNc(100,Te,11,2,"div",154),t.YNc(101,Le,17,9,"div",155),t.YNc(102,Ee,5,3,"div",154),t.YNc(103,je,16,8,"div",155),t.YNc(104,We,4,0,"div",154),t.YNc(105,il,16,8,"div",155),t.TgZ(106,"div",156)(107,"div",52)(108,"div",157)(109,"h5",158),t._uU(110,"Planner notes"),t.qZA()()(),t.TgZ(111,"div",52)(112,"div",53)(113,"div",54)(114,"div",159),t._UZ(115,"p",160),t.qZA(),t._UZ(116,"div",57),t.qZA()()()(),t.YNc(117,cl,10,3,"div",161),t.YNc(118,gl,55,14,"div",162),t.qZA(),t.TgZ(119,"div",163)(120,"div")(121,"div",52)(122,"div",164)(123,"div",165),t.YNc(124,_l,1,0,"img",166),t._UZ(125,"img",167),t.qZA(),t.TgZ(126,"div",168),t._UZ(127,"div",169),t.qZA()(),t.TgZ(128,"div",170)(129,"div",171)(130,"div",172),t._UZ(131,"div",173)(132,"div",173),t.qZA(),t.TgZ(133,"div",172),t._UZ(134,"div",173)(135,"div",173),t.qZA()(),t.TgZ(136,"div",174)(137,"button",175),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(2);return t.KtG(r.openInSideBar(null,"openallocations"))}),t.O4$(),t.TgZ(138,"svg",176),t._UZ(139,"path",177)(140,"path",178),t.qZA(),t._uU(141," Allocations "),t.qZA(),t.kcU(),t.TgZ(142,"button",179),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(2);return t.KtG(r.openInSideBar(null,"openMfAllocation"))}),t.O4$(),t.TgZ(143,"svg",176),t._UZ(144,"path",177)(145,"path",178),t.qZA(),t._uU(146," MF allocations "),t.qZA()(),t.kcU(),t.TgZ(147,"div",174)(148,"button",180),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(2);return t.KtG(r.openInSideBar(null,"openKeyinfo"))}),t.O4$(),t.TgZ(149,"svg",181),t._UZ(150,"path",182),t.qZA(),t._uU(151," Key info "),t.qZA(),t.kcU(),t.TgZ(152,"button",179),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(2);return t.KtG(r.openInSideBar(null,"openPreferences"))}),t.O4$(),t.TgZ(153,"svg",183),t._UZ(154,"path",184)(155,"path",185)(156,"path",186),t.qZA(),t._uU(157," Edit goal "),t.qZA()(),t.kcU(),t.TgZ(158,"div",174)(159,"button",175),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(2);return t.KtG(r.openInSideBar(null,"openCalculators"))}),t.O4$(),t.TgZ(160,"svg",183),t._UZ(161,"path",187)(162,"path",188)(163,"path",189)(164,"path",190)(165,"path",191)(166,"path",192),t.qZA(),t._uU(167," Calculators "),t.qZA(),t.YNc(168,ml,9,1,"button",193),t.qZA()()()()()()()}if(2&l){const e=t.oxw(2);t.xp6(6),t.Q6J("ngStyle",t.VKq(80,m,null==e.colorData?null:e.colorData.colorReportName)),t.xp6(1),t.hij(" ",e.selectedGoal.goalName," "),t.xp6(3),t.Oqu(e.selectedGoal.year),t.xp6(1),t.Q6J("ngIf",e.selectedGoal&&!e.isLoadingGoals),t.xp6(4),t.Q6J("ngIf",e.fragmentData.isSpinner),t.xp6(1),t.Q6J("ngIf",e.selectedGoal),t.xp6(2),t.Q6J("appSkeletonLoading",e.isLoadingGoals),t.xp6(8),t.Q6J("ngClass",t.VKq(82,Ze,e.isLoadingGoals)),t.xp6(2),t.Q6J("hidden",e.isLoadingGoals),t.xp6(2),t.Q6J("ngIf",!e.isLoadingGoals),t.xp6(5),t.Q6J("ngClass",t.VKq(84,Ze,e.isLoadingGoals)),t.xp6(2),t.Q6J("ngIf",!e.isLoadingGoals),t.xp6(6),t.Udp("width",null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.goalProgress,"%"),t.xp6(1),t.Q6J("ngIf",e.averageAchievedPercent>(null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.goalProgress)),t.xp6(4),t.hij(" ",t.xi3(49,77,null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.goalProgress,"1.0-2")," % Achieved "),t.xp6(3),t.Q6J("ngIf",!e.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",1==(null==e.selectedGoal||null==e.selectedGoal.remainingData?null:e.selectedGoal.remainingData.savingStatus)),t.xp6(1),t.Q6J("ngIf",2==(null==e.selectedGoal||null==e.selectedGoal.remainingData?null:e.selectedGoal.remainingData.savingStatus)),t.xp6(1),t.Q6J("ngClass",1==e.highlight?"borderDrag":""),t.xp6(3),t.Q6J("ngStyle",t.VKq(86,m,null==e.colorData?null:e.colorData.colorReportName)),t.xp6(2),t.Q6J("cdkDropListData",e.allocatedList)("cdkDropListSortingDisabled",!0),t.xp6(1),t.Q6J("ngClass",t.VKq(88,fl,e.inDropZone)),t.xp6(2),t.Q6J("ngStyle",t.WLB(90,h,null==e.colorData?null:e.colorData.bgColor,null==e.colorData?null:e.colorData.colorText)),t.xp6(2),t.Q6J("ngStyle",t.VKq(93,m,null==e.colorData?null:e.colorData.colorText)),t.xp6(2),t.Q6J("ngStyle",t.WLB(95,h,null==e.colorData?null:e.colorData.bgColor,null==e.colorData?null:e.colorData.colorText)),t.xp6(2),t.Q6J("ngStyle",t.VKq(98,m,null==e.colorData?null:e.colorData.colorText)),t.xp6(2),t.Q6J("ngStyle",t.WLB(100,h,null==e.colorData?null:e.colorData.bgColor,null==e.colorData?null:e.colorData.colorText)),t.xp6(2),t.Q6J("ngStyle",t.VKq(103,m,null==e.colorData?null:e.colorData.colorText)),t.xp6(2),t.Q6J("ngStyle",t.WLB(105,h,null==e.colorData?null:e.colorData.bgColor,null==e.colorData?null:e.colorData.colorText)),t.xp6(2),t.Q6J("ngStyle",t.VKq(108,m,null==e.colorData?null:e.colorData.colorText)),t.xp6(2),t.Q6J("ngStyle",t.WLB(110,h,null==e.colorData?null:e.colorData.bgColor,null==e.colorData?null:e.colorData.colorText)),t.xp6(2),t.Q6J("ngStyle",t.VKq(113,m,null==e.colorData?null:e.colorData.colorText)),t.xp6(3),t.Q6J("ngIf",e.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",!e.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",!e.isLoadingGoals&&0==e.allocatedList.length),t.xp6(1),t.Q6J("hidden",!e.hasCostOfDelay||e.isLoadingGoals),t.xp6(5),t.Q6J("ngIf",e.roleService.planPermission.subModule.goals.capabilityList.Edit),t.xp6(3),t.Q6J("ngIf",e.roleService.planPermission.subModule.goals.capabilityList.Edit),t.xp6(1),t.Q6J("ngIf",e.roleService.planPermission.subModule.goals.capabilityList.Delete),t.xp6(1),t.Q6J("hidden",!e.hasCostOfDelay||e.isLoadingGoals),t.xp6(3),t.Q6J("ngIf",!e.showCost),t.xp6(1),t.Q6J("ngIf",!e.isLoadingGoals&&e.isRetirementTab),t.xp6(1),t.Q6J("ngIf",!e.isLoadingGoals&&e.isRetirementTab),t.xp6(1),t.Q6J("ngIf",!e.isLoadingGoals&&e.isRetirementTab),t.xp6(1),t.Q6J("ngIf",!e.isLoadingGoals&&e.isRetirementTab),t.xp6(1),t.Q6J("ngIf",!e.isLoadingGoals&&!e.isRetirementTab),t.xp6(1),t.Q6J("ngIf",!e.isLoadingGoals&&!e.isRetirementTab),t.xp6(1),t.Q6J("appSkeletonLoading",e.isLoadingGoals),t.xp6(8),t.Q6J("hidden",e.isLoadingGoals),t.xp6(1),t.Q6J("innerHtml",e.goalPlannerNotes,t.oJD),t.xp6(1),t.Q6J("ngClass",t.VKq(115,Ut,e.isLoadingGoals))("hidden",!e.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",(null==e.selectedGoal||null==e.selectedGoal.remainingData?null:e.selectedGoal.remainingData.loan)||e.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",(null==e.selectedGoal||null==e.selectedGoal.remainingData?null:e.selectedGoal.remainingData.loan)||e.isLoadingGoals),t.xp6(4),t.Q6J("appSkeletonLoading",e.isLoadingGoals),t.xp6(1),t.Q6J("hidden",e.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",e.roleService.planPermission.subModule.goals.capabilityList.Edit),t.xp6(1),t.Q6J("src",e.selectedGoal.img,t.LSH),t.xp6(1),t.Q6J("hidden",!e.isLoadingGoals),t.xp6(1),t.Q6J("ngClass",t.VKq(117,hl,e.isLoadingGoals)),t.xp6(1),t.Q6J("appSkeletonLoading",e.isLoadingGoals),t.xp6(2),t.Q6J("hidden",!e.isLoadingGoals),t.xp6(1),t.Q6J("ngClass",t.VKq(119,Nt,e.isLoadingGoals)),t.xp6(1),t.Q6J("ngClass",t.VKq(121,Nt,e.isLoadingGoals)),t.xp6(1),t.Q6J("hidden",!e.isLoadingGoals),t.xp6(1),t.Q6J("ngClass",t.VKq(123,Nt,e.isLoadingGoals)),t.xp6(1),t.Q6J("ngClass",t.VKq(125,Nt,e.isLoadingGoals)),t.xp6(1),t.Q6J("hidden",e.isLoadingGoals),t.xp6(1),t.Q6J("disabled",!e.roleService.planPermission.subModule.goals.capabilityList.Edit),t.xp6(5),t.Q6J("disabled",!e.roleService.planPermission.subModule.goals.capabilityList.Edit),t.xp6(5),t.Q6J("hidden",e.isLoadingGoals),t.xp6(5),t.Q6J("disabled",!e.roleService.planPermission.subModule.goals.capabilityList.Edit),t.xp6(6),t.Q6J("hidden",e.isLoadingGoals),t.xp6(1),t.Q6J("disabled",!e.roleService.planPermission.subModule.goals.capabilityList.Edit),t.xp6(9),t.Q6J("ngIf",!e.enumDataService.PRODUCTION&&!e.enumDataService.Vapt)}}function vl(l,c){if(1&l&&(t.TgZ(0,"div",52)(1,"div",63)(2,"div",64)(3,"div",65)(4,"h3",66),t._uU(5,"Goals"),t.qZA()(),t.TgZ(6,"div",67),t.YNc(7,Rt,2,0,"button",68),t.qZA()(),t.TgZ(8,"div",69)(9,"div",70),t.YNc(10,$t,3,3,"div",71),t.qZA()()(),t.YNc(11,bl,169,127,"div",72),t.qZA()),2&l){const e=t.oxw();
1t.xp6(7),t.Q6J("ngIf",e.roleService.planPermission.subModule.goals.capabilityList.Add),t.xp6(3),t.Q6J("ngForOf",e.allGoals),t.xp6(1),t.Q6J("ngIf",e.allGoals.length>0)}}function xl(l,c){if(1&l){const e=t.EpF();t.TgZ(0,"button",73),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(2);return t.KtG(r.openAddgoals())}),t._uU(1,"LET\u2019S GET STARTED"),t.qZA()}}function Dl(l,c){if(1&l&&(t.TgZ(0,"div",307)(1,"div",308)(2,"div",309),t._UZ(3,"img",310),t.qZA(),t.TgZ(4,"div",311)(5,"h3",312),t._uU(6,"What\u2019s a life without a goal."),t.qZA(),t.TgZ(7,"p"),t._uU(8,"Let\u2019s add your goals and achieve them. We\u2019re in this together. "),t.qZA(),t.YNc(9,xl,2,0,"button",68),t.qZA()()()),2&l){const e=t.oxw();t.xp6(9),t.Q6J("ngIf",e.roleService.planPermission.subModule.goals.capabilityList.Add)}}function yl(l,c){if(1&l&&(t.TgZ(0,"div"),t._UZ(1,"img",315),t.qZA()),2&l){const e=t.oxw(2);t.xp6(1),t.Q6J("src",null==e.financialPlan?null:e.financialPlan.reportLogoUrl,t.LSH)}}function Tl(l,c){if(1&l&&(t.TgZ(0,"div"),t._UZ(1,"img",316),t.qZA()),2&l){const e=t.oxw(2);t.xp6(1),t.Q6J("src",e.financialPlan.logoUrl,t.LSH)}}function Zl(l,c){if(1&l&&(t.TgZ(0,"p",317),t._uU(1),t.qZA()),2&l){const e=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,m,null==e.colorData?null:e.colorData.colorYourDetailPdf)),t.xp6(1),t.hij(" ",null==e.financialPlan?null:e.financialPlan.companyName," ")}}function Al(l,c){if(1&l&&(t.TgZ(0,"tr")(1,"td",313),t.YNc(2,yl,2,1,"div",7),t.YNc(3,Tl,2,1,"div",7),t.qZA(),t.TgZ(4,"td",8),t.YNc(5,Zl,2,4,"p",314),t.qZA()()),2&l){const e=t.oxw();
1t.xp6(2),t.Q6J("ngIf",e.financialPlan&&null!=(null==e.financialPlan?null:e.financialPlan.reportLogoUrl)&&"https://res.cloudinary.com/futurewise/image/upload/v1566029063/icons_fakfxf.png"!=(null==e.financialPlan?null:e.financialPlan.reportLogoUrl)),t.xp6(1),t.Q6J("ngIf",e.financialPlan&&"https://res.cloudinary.com/futurewise/image/upload/v1566029063/icons_fakfxf.png"!=e.financialPlan.logoUrl&&"https://res.cloudinary.com/futurewise/image/upload/v1566029063/icons_fakfxf.png"==e.financialPlan.reportLogoUrl),t.xp6(2),t.Q6J("ngIf",e.financialPlan&&(null==e.financialPlan?null:e.financialPlan.companyName))}}function Pl(l,c){if(1&l&&(t.TgZ(0,"div"),t._UZ(1,"img",315),t.qZA()),2&l){const e=t.oxw(2);t.xp6(1),t.Q6J("src",null==e.financialPlan?null:e.financialPlan.reportLogoUrl,t.LSH)}}function Cl(l,c){if(1&l&&(t.TgZ(0,"div"),t._UZ(1,"img",316),t.qZA()),2&l){const e=t.oxw(2);t.xp6(1),t.Q6J("src",e.financialPlan.logoUrl,t.LSH)}}function wl(l,c){if(1&l&&(t.TgZ(0,"p",317),t._uU(1),t.qZA()),2&l){const e=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,m,null==e.colorData?null:e.colorData.colorYourDetailPdf)),t.xp6(1),t.hij(" ",null==e.financialPlan?null:e.financialPlan.name," ")}}function Gl(l,c){if(1&l&&(t.TgZ(0,"tr")(1,"td",313),t.YNc(2,Pl,2,1,"div",7),t.YNc(3,Cl,2,1,"div",7),t.qZA(),t.TgZ(4,"td",8),t.YNc(5,wl,2,4,"p",314),t.qZA()()),2&l){const e=t.oxw();
1t.xp6(2),t.Q6J("ngIf",e.financialPlan&&null!=(null==e.financialPlan?null:e.financialPlan.reportLogoUrl)&&"https://res.cloudinary.com/futurewise/image/upload/v1566029063/icons_fakfxf.png"!=(null==e.financialPlan?null:e.financialPlan.reportLogoUrl)),t.xp6(1),t.Q6J("ngIf",e.financialPlan&&"https://res.cloudinary.com/futurewise/image/upload/v1566029063/icons_fakfxf.png"!=e.financialPlan.logoUrl&&"https://res.cloudinary.com/futurewise/image/upload/v1566029063/icons_fakfxf.png"==e.financialPlan.reportLogoUrl),t.xp6(2),t.Q6J("ngIf",e.financialPlan&&(null==e.financialPlan?null:e.financialPlan.name))}}function Sl(l,c){if(1&l&&(t.TgZ(0,"p",318),t._uU(1),t.qZA()),2&l){const e=t.oxw();t.Q6J("ngStyle",t.VKq(2,m,null==e.colorData?null:e.colorData.colorYourDetailPdf)),t.xp6(1),t.hij(" ",e.advisorTagline," ")}}function Ml(l,c){if(1&l&&(t.TgZ(0,"p",318),t._uU(1),t.qZA()),2&l){const e=t.oxw();t.Q6J("ngStyle",t.VKq(4,m,null==e.colorData?null:e.colorData.colorYourDetailPdf)),t.xp6(1),t.lnq(" (",e.arnRiaNumber,", ",e.baslNumber?e.baslNumber:""," ",e.arnRiaType,") ")}}function Ol(l,c){if(1&l&&(t.TgZ(0,"p",11),t._uU(1),t.qZA()),2&l){const e=t.oxw();t.Q6J("ngStyle",t.VKq(2,m,null==e.colorData?null:e.colorData.colorYourDetailPdf)),t.xp6(1),t.hij(" Email ID: ",null==e.financialPlan?null:e.financialPlan.email," ")}}function ql(l,c){if(1&l&&(t.TgZ(0,"p",11),t._uU(1),t.qZA()),2&l){const e=t.oxw();t.Q6J("ngStyle",t.VKq(2,m,null==e.colorData?null:e.colorData.colorYourDetailPdf)),t.xp6(1),t.hij(" Mobile no.: ",null==e.financialPlan?null:e.financialPlan.mobile," ")}}function Ul(l,c){if(1&l&&(t.TgZ(0,"span",319),t._uU(1),t.qZA()),2&l){const e=t.oxw();t.Q6J("ngStyle",t.VKq(2,m,null==e.colorData?null:e.colorData.colorYourDetailPdf)),t.xp6(1),t.hij(" ",null==e.clientDetailsPdf?null:e.clientDetailsPdf.display_name," ")}}function Il(l,c){if(1&l&&(t.TgZ(0,"span",320),t._uU(1),t.qZA()),2&l){const e=t.oxw();t.Q6J("ngStyle",t.VKq(2,m,null==e.colorData?null:e.colorData.colorYourDetailPdf)),t.xp6(1),t.hij(" (",null==e.clientDetailsPdf?null:e.clientDetailsPdf.pan,") ")}}function Ll(l,c){if(1&l&&(t.TgZ(0,"p",322),t._uU(1),t.qZA()),2&l){const e=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,m,null==e.colorData?null:e.colorData.colorYourDetailPdf)),t.xp6(1),t.hij(" Mobile no.: ",null==e.clientDetailsPdf?null:e.clientDetailsPdf.mobile," ")}}function El(l,c){if(1&l&&(t.TgZ(0,"tr")(1,"td",13),t.YNc(2,Ll,2,4,"p",321),t.qZA()()),2&l){const e=t.oxw();
1t.xp6(2),t.Q6J("ngIf",null==e.clientDetailsPdf?null:e.clientDetailsPdf.mobile)}}function Jl(l,c){if(1&l&&(t.TgZ(0,"p",323),t._uU(1),t.qZA()),2&l){const e=t.oxw();t.Q6J("ngStyle",t.VKq(2,m,null==e.colorData?null:e.colorData.colorYourDetailPdf)),t.xp6(1),t.hij(" Email ID: ",null==e.clientDetailsPdf?null:e.clientDetailsPdf.email," ")}}const be=function(){return{"font-weight":"300","font-size":"12px","line-height":"16px",border:"1px solid #83959D",padding:"2px 6px","border-radius":"4px",color:"#83959D"}},Ql=function(){return{"font-weight":"300","font-size":"12px",border:"1px solid #83959D",padding:"2px 6px","border-radius":"4px",color:"#83959D"}};function Nl(l,c){if(1&l&&(t.TgZ(0,"span",21),t._uU(1),t.ALo(2,"date"),t.ALo(3,"date"),t.qZA()),2&l){const e=t.oxw();t.Q6J("ngStyle",6===(null==e.singleGoalData?null:e.singleGoalData.priorityFlag)?t.DdM(8,be):4===(null==e.singleGoalData?null:e.singleGoalData.priorityFlag)?t.DdM(9,be):2===(null==e.singleGoalData?null:e.singleGoalData.priorityFlag)?t.DdM(10,be):t.DdM(11,Ql)),t.xp6(1),t.hij(" ",null!=e.singleGoalData&&e.singleGoalData.goalEndDate&&t.xi3(2,2,e.singleGoalData.goalEndDate,"yyyy-MM-dd")<t.xi3(3,5,e.today,"yyyy-MM-dd")?"COMPLETED":6===(null==e.singleGoalData?null:e.singleGoalData.priorityFlag)?"HIGH":4===(null==e.singleGoalData?null:e.singleGoalData.priorityFlag)?"MEDIUM":2===(null==e.singleGoalData?null:e.singleGoalData.priorityFlag)?"LOW":"-"," ")}}function Vl(l,c){if(1&l&&(t.TgZ(0,"p",324),t._uU(1," Additional Required"),t.qZA()),2&l){const e=t.oxw();t.Q6J("ngStyle",t.VKq(1,m,null==e.colorData?null:e.colorData.colorReportNamePdf))}}function Fl(l,c){if(1&l&&(t.TgZ(0,"table",325)(1,"tr",326),t._UZ(2,"td",327),t.TgZ(3,"td",328),t._uU(4," Monthly "),t.qZA(),t.TgZ(5,"td",329),t._uU(6," Lumpsum "),t.qZA()(),t.TgZ(7,"tr")(8,"td",330),t._uU(9," Equity"),t.qZA(),t.TgZ(10,"td",331),t._UZ(11,"span",332),t.qZA(),t.TgZ(12,"td",333),t._UZ(13,"span",332),t.qZA()(),t.TgZ(14,"tr")(15,"td",334),t._uU(16," Debt"),t.qZA(),t.TgZ(17,"td",335),t._UZ(18,"span",332),t.qZA(),t.TgZ(19,"td",336),t._UZ(20,"span",332),t.qZA()()()),2&l){const e=t.oxw();
1t.xp6(2),t.Q6J("ngStyle",t.WLB(13,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(1),t.Q6J("ngStyle",t.WLB(16,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(19,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(3),t.Q6J("ngStyle",t.VKq(22,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf)),t.xp6(2),t.Q6J("ngStyle",t.VKq(24,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf)),t.xp6(1),t.Q6J("formatWithSymbol",e.singleGoalData&&e.singleGoalData?e.goalsPlanService.getTextInfinity(null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.equity_monthly)?"-":null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.equity_monthly:"0"),t.xp6(1),t.Q6J("ngStyle",t.VKq(26,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf)),t.xp6(1),t.Q6J("formatWithSymbol",e.totalLumpEquity1&&e.totalLumpEquity1>0?e.totalLumpEquity1:(null==e.singleGoalData||null==e.singleGoalData.dashboardData?null:e.singleGoalData.dashboardData.lump_equity)||0),t.xp6(2),t.Q6J("ngStyle",t.VKq(28,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf)),t.xp6(2),t.Q6J("ngStyle",t.VKq(30,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf)),t.xp6(1),t.Q6J("formatWithSymbol",e.singleGoalData&&e.singleGoalData?e.goalsPlanService.getTextInfinity(null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.debt_monthly)?"-":null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.debt_monthly:"0"),t.xp6(1),t.Q6J("ngStyle",t.VKq(32,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf)),t.xp6(1),t.Q6J("formatWithSymbol",e.totalLumpDebt1&&e.totalLumpDebt1>0?e.totalLumpDebt1:(null==e.singleGoalData||null==e.singleGoalData.dashboardData?null:e.singleGoalData.dashboardData.lump_debt)||0)}}function Yl(l,c){if(1&l&&(t.TgZ(0,"p",324),t._uU(1," Additional Required"),t.qZA()),2&l){const e=t.oxw();t.Q6J("ngStyle",t.VKq(1,m,null==e.colorData?null:e.colorData.colorReportNamePdf))}}function Rl(l,c){if(1&l&&(t.TgZ(0,"table",325)(1,"tr",326)(2,"td",337),t._uU(3," Additional Required "),t.qZA(),t.TgZ(4,"td",338),t._uU(5," Monthly "),t.qZA(),t.TgZ(6,"td",339),t._uU(7," Lumpsum "),t.qZA()(),t.TgZ(8,"tr")(9,"td",337),t._uU(10," Total(Equity+Debt) "),t.qZA(),t.TgZ(11,"td",340),t._uU(12," \u20b9 "),t._UZ(13,"span",33),t.qZA(),t.TgZ(14,"td",341),t._uU(15," \u20b9 "),t._UZ(16,"span",33),t.qZA()()()),2&l){const e=t.oxw();
1t.xp6(2),t.Q6J("ngStyle",t.WLB(8,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(11,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(14,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(3),t.Q6J("ngStyle",t.VKq(17,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf)),t.xp6(2),t.Q6J("ngStyle",t.VKq(19,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf)),t.xp6(2),t.Q6J("value",(null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.equity_monthly)+(null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.debt_monthly)),t.xp6(1),t.Q6J("ngStyle",t.VKq(21,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf)),t.xp6(2),t.Q6J("value",(null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.lump_equity)+(null==e.selectedGoal||null==e.selectedGoal.dashboardData?null:e.selectedGoal.dashboardData.lump_debt))}}function Kl(l,c){if(1&l&&(t.TgZ(0,"tr")(1,"td",342),t._uU(2),t.qZA(),t.TgZ(3,"td",343),t._UZ(4,"span",344),t.qZA(),t.TgZ(5,"td",343),t._UZ(6,"p",345),t.qZA(),t.TgZ(7,"td",343),t._UZ(8,"p",345),t.qZA(),t.TgZ(9,"td",346),t._UZ(10,"span",347),t._uU(11,"% "),t.qZA()()),2&l){const e=c.$implicit,a=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(11,m,null==a.colorData?null:a.colorData.colorTableRowTextPdf)),t.xp6(1),t.hij(" ",e.assetName," "),t.xp6(1),t.Q6J("ngStyle",t.VKq(13,m,null==a.colorData?null:a.colorData.colorTableRowTextPdf)),t.xp6(1),t.Q6J("formatWithSymbol",e.currentValue),t.xp6(1),t.Q6J("ngStyle",t.VKq(15,m,null==a.colorData?null:a.colorData.colorTableRowTextPdf)),t.xp6(1),t.Q6J("formatWithSymbol",0==e.maturityValue?"-":e.maturityValue),t.xp6(1),t.Q6J("ngStyle",t.VKq(17,m,null==a.colorData?null:a.colorData.colorTableRowTextPdf)),t.xp6(1),t.Q6J("formatWithSymbol",0==e.projectedValue?"-":e.projectedValue),t.xp6(1),t.Q6J("ngStyle",t.VKq(19,m,null==a.colorData?null:a.colorData.colorTableRowTextPdf)),t.xp6(1),t.Q6J("shouldRoundOff",!1)("value",5==e.assetType&&1==e.lumpsumOrSip?e.lumpsumPercent.toFixed(2):5==e.assetType&&2==e.lumpsumOrSip?e.sipPercent.toFixed(2):e.percentAllocated.toFixed(2))}}function kl(l,c){if(1&l&&(t.TgZ(0,"td",348),t._uU(1," No assets allocated to this goal "),t.qZA()),2&l){const e=t.oxw();t.Q6J("ngStyle",t.VKq(1,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf))}}function Bl(l,c){if(1&l&&(t.TgZ(0,"div")(1,"p",349),t._uU(2," Loan details"),t.qZA()()),2&l){const e=t.oxw();
1t.xp6(1),t.Q6J("ngStyle",t.VKq(1,m,null==e.colorData?null:e.colorData.colorReportNamePdf))}}function jl(l,c){if(1&l&&(t.TgZ(0,"div")(1,"table",350)(2,"tr")(3,"td",351)(4,"table",352)(5,"tbody")(6,"tr",353)(7,"td",354)(8,"span",355),t._uU(9,"MONTHLY INCOME IN GOAL YEAR"),t.qZA(),t._UZ(10,"br"),t.TgZ(11,"span",356),t._uU(12,"\u20b9 "),t.qZA(),t._UZ(13,"span",357),t.qZA(),t.TgZ(14,"td",358)(15,"span",355),t._uU(16,"HIGHEST EMI AVAILABLE"),t.qZA(),t._UZ(17,"br"),t.TgZ(18,"span",356),t._uU(19,"\u20b9 "),t.qZA(),t._UZ(20,"span",357),t.qZA(),t.TgZ(21,"td",358)(22,"span",355),t._uU(23," HIGHEST LOAN AVAILABLE"),t.qZA(),t._UZ(24,"br"),t.TgZ(25,"span",356),t._uU(26,"\u20b9 "),t.qZA(),t._UZ(27,"span",357),t.qZA()(),t.TgZ(28,"tr",353)(29,"td",359)(30,"span",355),t._uU(31," LOAN TENURE"),t.qZA(),t._UZ(32,"br")(33,"span",357),t.TgZ(34,"span",360),t._uU(35,"Year"),t.qZA()(),t.TgZ(36,"td",358)(37,"span",355),t._uU(38," EMI PAYABLE"),t.qZA(),t._UZ(39,"br"),t.TgZ(40,"span",356),t._uU(41,"\u20b9 "),t.qZA(),t._UZ(42,"span",357),t.qZA(),t.TgZ(43,"td",358)(44,"span",355),t._uU(45," LOAN TO BE TAKEN"),t.qZA(),t._UZ(46,"br"),t.TgZ(47,"span",356),t._uU(48,"\u20b9 "),t.qZA(),t._UZ(49,"span",357),t.qZA()()()()(),t.TgZ(50,"td",361)(51,"div"),t._uU(52,"showPieChart"),t.qZA()()()()()),2&l){const e=t.oxw();
1t.xp6(8),t.Q6J("ngStyle",t.VKq(24,m,null==e.colorData?null:e.colorData.colorSubHeaderTextPdf)),t.xp6(3),t.Q6J("ngStyle",t.VKq(26,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf)),t.xp6(2),t.Q6J("ngStyle",t.VKq(28,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf))("value",null==e.selectedGoal||null==e.selectedGoal.remainingData||null==e.selectedGoal.remainingData.loan?null:e.selectedGoal.remainingData.loan.highestLoanAndEmiEligible.income_at_goal_year),t.xp6(2),t.Q6J("ngStyle",t.VKq(30,m,null==e.colorData?null:e.colorData.colorSubHeaderTextPdf)),t.xp6(3),t.Q6J("ngStyle",t.VKq(32,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf)),t.xp6(2),t.Q6J("ngStyle",t.VKq(34,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf))("value",null==e.selectedGoal||null==e.selectedGoal.remainingData||null==e.selectedGoal.remainingData.loan||null==e.selectedGoal.remainingData.loan.highestLoanAndEmiEligible?null:e.selectedGoal.remainingData.loan.highestLoanAndEmiEligible.highest_emi_eligible),t.xp6(2),t.Q6J("ngStyle",t.VKq(36,m,null==e.colorData?null:e.colorData.colorSubHeaderTextPdf)),t.xp6(3),t.Q6J("ngStyle",t.VKq(38,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf)),t.xp6(2),t.Q6J("ngStyle",t.VKq(40,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf))("value",null==e.selectedGoal||null==e.selectedGoal.remainingData||null==e.selectedGoal.remainingData.loan||null==e.selectedGoal.remainingData.loan.highestLoanAndEmiEligible?null:e.selectedGoal.remainingData.loan.highestLoanAndEmiEligible.highest_loan_eligible),t.xp6(3),t.Q6J("ngStyle",t.VKq(42,m,null==e.colorData?null:e.colorData.colorSubHeaderTextPdf)),t.xp6(3),t.Q6J("ngStyle",t.VKq(44,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf))("value",null==e.selectedGoal||null==e.selectedGoal.remainingData||null==e.selectedGoal.remainingData.loan?null:e.selectedGoal.remainingData.loan.loanTenure),t.xp6(1),t.Q6J("ngStyle",t.VKq(46,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf)),t.xp6(3),t.Q6J("ngStyle",t.VKq(48,m,null==e.colorData?null:e.colorData.colorSubHeaderTextPdf)),t.xp6(3),t.Q6J("ngStyle",t.VKq(50,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf)),t.xp6(2),t.Q6J("ngStyle",t.VKq(52,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf))("value",null==e.selectedGoal||null==e.selectedGoal.remainingData||null==e.selectedGoal.remainingData.loan?null:e.selectedGoal.remainingData.loan.emi),t.xp6(2),t.Q6J("ngStyle",t.VKq(54,m,null==e.colorData?null:e.colorData.colorSubHeaderTextPdf)),t.xp6(3),t.Q6J("ngStyle",t.VKq(56,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf)),t.xp6(2),t.Q6J("ngStyle",t.VKq(58,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf))("value",null==e.selectedGoal||null==e.selectedGoal.remainingData||null==e.selectedGoal.remainingData.loan?null:e.selectedGoal.remainingData.loan.loanAmount)}}function Wl(l,c){if(1&l&&(t.TgZ(0,"tr")(1,"td",363),t._uU(2," Goal year"),t.qZA(),t.TgZ(3,"td",364),t._uU(4," Goal Present Value"),t.qZA(),t.TgZ(5,"td",365),t._uU(6," Goal Future Value"),t.qZA(),t.TgZ(7,"td",365),t._uU(8," Achievable"),t.qZA()()),2&l){const e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.WLB(4,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(7,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(10,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(13,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf))}}function Hl(l,c){if(1&l&&(t.TgZ(0,"tr")(1,"td",366),t._uU(2),t.qZA(),t.TgZ(3,"td",367),t._uU(4," \u20b9 "),t._UZ(5,"span",33),t.qZA(),t.TgZ(6,"td",367),t._uU(7," \u20b9 "),t._UZ(8,"span",33),t.qZA(),t.TgZ(9,"td",367),t._uU(10),t.qZA()()),2&l){const e=c.$implicit,a=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(8,m,null==a.colorData?null:a.colorData.colorTableRowTextPdf)),t.xp6(1),t.hij(" ",e.goalYear," "),t.xp6(1),t.Q6J("ngStyle",t.VKq(10,m,null==a.colorData?null:a.colorData.colorTableRowTextPdf)),t.xp6(2),t.Q6J("value",e.goalPresentValue?e.goalPresentValue:0),t.xp6(1),t.Q6J("ngStyle",t.VKq(12,m,null==a.colorData?null:a.colorData.colorTableRowTextPdf)),t.xp6(2),t.Q6J("value",e.fvOnGoalDate?e.fvOnGoalDate:0),t.xp6(1),t.Q6J("ngStyle",t.VKq(14,m,null==a.colorData?null:a.colorData.colorTableRowTextPdf)),t.xp6(1),t.hij(" ",e.achievedPercent,"% ")}}function zl(l,c){if(1&l&&(t.TgZ(0,"tr")(1,"td")(2,"p",42),t._uU(3," Goal year wise details"),t.qZA(),t.TgZ(4,"table",362),t.YNc(5,Wl,9,16,"tr",7),t.YNc(6,Hl,11,16,"tr",47),t.qZA()()()),2&l){const e=t.oxw();
1t.xp6(2),t.Q6J("ngStyle",t.VKq(3,m,null==e.colorData?null:e.colorData.colorReportNamePdf)),t.xp6(3),t.Q6J("ngIf",e.dataSource),t.xp6(1),t.Q6J("ngForOf",e.dataSource)}}function $l(l,c){if(1&l&&(t.TgZ(0,"tr")(1,"td",363),t._uU(2," Goal year"),t.qZA(),t.TgZ(3,"td",369),t._uU(4," Goal Present Value"),t.qZA(),t.TgZ(5,"td",365),t._uU(6," Goal Future Value"),t.qZA(),t.TgZ(7,"td",365),t._uU(8," Achievable"),t.qZA()()),2&l){const e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.WLB(4,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(7,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(10,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(13,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf))}}function Xl(l,c){if(1&l&&(t.TgZ(0,"tr")(1,"td",370),t._uU(2),t.ALo(3,"date"),t.qZA(),t.TgZ(4,"td",367),t._uU(5," \u20b9 "),t._UZ(6,"span",33),t.qZA(),t.TgZ(7,"td",367),t._uU(8," \u20b9 "),t._UZ(9,"span",33),t.qZA(),t.TgZ(10,"td",367),t._uU(11),t.qZA()()),2&l){const e=c.$implicit,a=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(11,m,null==a.colorData?null:a.colorData.colorTableRowTextPdf)),t.xp6(1),t.hij(" ",t.xi3(3,8,e.goalYr,"yyyy")," "),t.xp6(2),t.Q6J("ngStyle",t.VKq(13,m,null==a.colorData?null:a.colorData.colorTableRowTextPdf)),t.xp6(2),t.Q6J("value",e.yearlyGoalValue?e.yearlyGoalValue:0),t.xp6(1),t.Q6J("ngStyle",t.VKq(15,m,null==a.colorData?null:a.colorData.colorTableRowTextPdf)),t.xp6(2),t.Q6J("value",e.fvOnGoalDate?e.fvOnGoalDate:0),t.xp6(1),t.Q6J("ngStyle",t.VKq(17,m,null==a.colorData?null:a.colorData.colorTableRowTextPdf)),t.xp6(1),t.hij(" ",e.achievedPercent,"% ")}}function ta(l,c){if(1&l&&(t.TgZ(0,"tr")(1,"td")(2,"p",368),t._uU(3," Goal year wise details"),t.qZA(),t.TgZ(4,"table",362),t.YNc(5,$l,9,16,"tr",7),t.YNc(6,Xl,12,19,"tr",47),t.qZA()()()),2&l){const e=t.oxw();
1t.xp6(2),t.Q6J("ngStyle",t.VKq(3,m,null==e.colorData?null:e.colorData.colorReportNamePdf)),t.xp6(3),t.Q6J("ngIf",e.dataSource),t.xp6(1),t.Q6J("ngForOf",e.goalTableValues)}}function ea(l,c){if(1&l&&(t.TgZ(0,"tr")(1,"td",372),t._uU(2),t.qZA(),t.TgZ(3,"td",372),t._uU(4),t.qZA(),t.TgZ(5,"td",373),t._uU(6," \u20b9 "),t.TgZ(7,"span",285),t._uU(8),t.qZA()(),t.TgZ(9,"td",373),t._uU(10," \u20b9 "),t.TgZ(11,"span",285),t._uU(12),t.qZA()()()),2&l){const e=c.$implicit,a=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(8,m,null==a.colorData?null:a.colorData.colorTableRowTextPdf)),t.xp6(1),t.hij(" ",1==e.onRetirementOrDemise?"Post retirement":"Demise",""),t.xp6(1),t.Q6J("ngStyle",t.VKq(10,m,null==a.colorData?null:a.colorData.colorTableRowTextPdf)),t.xp6(1),t.hij(" ",1==e.milestoneTypeId?"Philanthrophy":2==e.milestoneTypeId?"Legacy":3==e.milestoneTypeId?"Wealth creation":4==e.milestoneTypeId?"New business":5==e.milestoneTypeId?"Others":"Medical emergency"," "),t.xp6(1),t.Q6J("ngStyle",t.VKq(12,m,null==a.colorData?null:a.colorData.colorTableRowTextPdf)),t.xp6(3),t.hij("",e.amount," "),t.xp6(1),t.Q6J("ngStyle",t.VKq(14,m,null==a.colorData?null:a.colorData.colorTableRowTextPdf)),t.xp6(3),t.Oqu(e.milestoneFV)}}function la(l,c){if(1&l&&(t.TgZ(0,"div")(1,"table",50)(2,"tr")(3,"td")(4,"p",368),t._uU(5," Milestone details "),t.qZA(),t.TgZ(6,"table",371)(7,"tr")(8,"td",44),t._uU(9," Planning"),t.qZA(),t.TgZ(10,"td",44),t._uU(11," Milestone type"),t.qZA(),t.TgZ(12,"td",45),t._uU(13," Amount "),t.qZA(),t.TgZ(14,"td",45),t._uU(15," Future value"),t.qZA()(),t.YNc(16,ea,13,16,"tr",47),t.qZA()()()()()),2&l){const e=t.oxw();
1t.xp6(4),t.Q6J("ngStyle",t.VKq(6,m,null==e.colorData?null:e.colorData.colorReportNamePdf)),t.xp6(4),t.Q6J("ngStyle",t.WLB(8,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(11,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(14,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(17,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngForOf",e.dataSource1)}}function aa(l,c){if(1&l&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&l){const e=c.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e,"yyyy")," ")}}function oa(l,c){if(1&l&&(t.TgZ(0,"div"),t._uU(1," \u20b9 "),t.TgZ(2,"span",285),t._uU(3),t.qZA()()),2&l){const e=t.oxw(2);t.xp6(3),t.Oqu(null==e.singleGoalData||null==e.singleGoalData.dashboardData?null:e.singleGoalData.dashboardData.presentValue)}}function na(l,c){if(1&l&&(t.TgZ(0,"div"),t._uU(1," \u20b9 "),t.TgZ(2,"span",285),t._uU(3),t.qZA()()),2&l){const e=c.$implicit;t.xp6(3),t.Oqu(e)}}function ia(l,c){if(1&l&&(t.TgZ(0,"div"),t._uU(1," \u20b9 "),t.TgZ(2,"span",285),t._uU(3),t.qZA()()),2&l){const e=c.$implicit,a=t.oxw(2);t.xp6(3),t.Oqu(a.goalsPlanService.getTextInfinity(e)?"0":e)}}function sa(l,c){if(1&l&&(t.TgZ(0,"div"),t._uU(1," \u20b9 "),t.TgZ(2,"span",285),t._uU(3),t.qZA()()),2&l){const e=c.$implicit,a=t.oxw(2);t.xp6(3),t.Oqu(a.goalsPlanService.getTextInfinity(e)?"0":e)}}function ra(l,c){if(1&l&&(t.TgZ(0,"div"),t._uU(1," \u20b9 "),t.TgZ(2,"span",285),t._uU(3),t.qZA()()),2&l){const e=c.$implicit;t.xp6(3),t.Oqu(e)}}function da(l,c){if(1&l&&(t.TgZ(0,"div"),t._uU(1," \u20b9 "),t.TgZ(2,"span",285),t._uU(3),t.qZA()()),2&l){const e=c.$implicit;t.xp6(3),t.Oqu(e)}}function ca(l,c){if(1&l&&(t.TgZ(0,"div")(1,"table",58)(2,"tr")(3,"td")(4,"p",42),t._uU(5," Key info "),t.qZA(),t.TgZ(6,"table",43)(7,"tr"),t._UZ(8,"td",374)(9,"td",375),t.TgZ(10,"td",376),t._uU(11,"Monthly"),t.qZA(),t.TgZ(12,"td",377),t._uU(13,"Lumpsum"),t.qZA()(),t.TgZ(14,"tr")(15,"td",378),t._uU(16," Goal year"),t.qZA(),t.TgZ(17,"td",379),t._uU(18," Present value"),t.qZA(),t.TgZ(19,"td",379),t._uU(20," Future value "),t.qZA(),t.TgZ(21,"td",379),t._uU(22," Equity"),t.qZA(),t.TgZ(23,"td",379),t._uU(24," Debt"),t.qZA(),t.TgZ(25,"td",379),t._uU(26," Equity"),t.qZA(),t.TgZ(27,"td",379),t._uU(28," Debt"),t.qZA()(),t.TgZ(29,"tr")(30,"td",372),t.YNc(31,aa,3,4,"div",47),t.qZA(),t.TgZ(32,"td",373),t.YNc(33,oa,4,1,"div",47),t.qZA(),t.TgZ(34,"td",373),t.YNc(35,na,4,1,"div",47),t.qZA(),t.TgZ(36,"td",373),t.YNc(37,ia,4,1,"div",47),t.qZA(),t.TgZ(38,"td",373),t.YNc(39,sa,4,1,"div",47),t.qZA(),t.TgZ(40,"td",373),t.YNc(41,ra,4,1,"div",47),t.qZA(),t.TgZ(42,"td",373),t.YNc(43,da,4,1,"div",47),t.qZA()()()()()()()),2&l){const e=t.oxw();
1t.xp6(4),t.Q6J("ngStyle",t.VKq(26,m,null==e.colorData?null:e.colorData.colorReportNamePdf)),t.xp6(4),t.Q6J("ngStyle",t.WLB(28,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(1),t.Q6J("ngStyle",t.WLB(31,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(1),t.Q6J("ngStyle",t.WLB(34,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(37,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(3),t.Q6J("ngStyle",t.WLB(40,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(43,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(46,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(49,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(52,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(55,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(58,h,null==e.colorData?null:e.colorData.bgColorpdf,null==e.colorData?null:e.colorData.colorTextpdf)),t.xp6(3),t.Q6J("ngStyle",t.VKq(61,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf)),t.xp6(1),t.Q6J("ngForOf",null==e.singleGoalData||null==e.singleGoalData.dashboardData?null:e.singleGoalData.dashboardData.key_arr_equity_monthly),t.xp6(1),t.Q6J("ngStyle",t.VKq(63,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf)),t.xp6(1),t.Q6J("ngForOf",null==e.singleGoalData||null==e.singleGoalData.dashboardData?null:e.singleGoalData.dashboardData.arr_goalYrAndFutValues),t.xp6(1),t.Q6J("ngStyle",t.VKq(65,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf)),t.xp6(1),t.Q6J("ngForOf",null==e.singleGoalData||null==e.singleGoalData.dashboardData?null:e.singleGoalData.dashboardData.arr_goalYrAndFutValues),t.xp6(1),t.Q6J("ngStyle",t.VKq(67,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf)),t.xp6(1),t.Q6J("ngForOf",null==e.singleGoalData||null==e.singleGoalData.dashboardData?null:e.singleGoalData.dashboardData.arr_equity_monthly),t.xp6(1),t.Q6J("ngStyle",t.VKq(69,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf)),t.xp6(1),t.Q6J("ngForOf",null==e.singleGoalData||null==e.singleGoalData.dashboardData?null:e.singleGoalData.dashboardData.arr_debt_monthly),t.xp6(1),t.Q6J("ngStyle",t.VKq(71,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf)),t.xp6(1),t.Q6J("ngForOf",null==e.singleGoalData||null==e.singleGoalData.dashboardData?null:e.singleGoalData.dashboardData.arr_lump_equity),t.xp6(1),t.Q6J("ngStyle",t.VKq(73,m,null==e.colorData?null:e.colorData.colorTableRowTextPdf)),t.xp6(1),t.Q6J("ngForOf",null==e.singleGoalData||null==e.singleGoalData.dashboardData?null:e.singleGoalData.dashboardData.arr_lump_debt)}}function ua(l,c){if(1&l&&(t.TgZ(0,"div",384)(1,"div",52)(2,"div",261)(3,"div",385),t._UZ(4,"div",386),t.qZA()()(),t.TgZ(5,"div",52)(6,"div",261)(7,"div",385),t._UZ(8,"div",386),t.qZA()()(),t.TgZ(9,"div",52)(10,"div",261)(11,"div",385),t._UZ(12,"div",386),t.qZA()()()()),2&l){const e=t.oxw(2);t.Q6J("appSkeletonLoading",e.isLoading)}}function pa(l,c){1&l&&(t.TgZ(0,"div",387)(1,"div",388),t._UZ(2,"img",389),t.TgZ(3,"p",390),t._uU(4,"No data found"),t.qZA()()())}function ga(l,c){1&l&&t._UZ(0,"img",415)}function _a(l,c){1&l&&t._UZ(0,"img",416)}function ma(l,c){1&l&&t._UZ(0,"img",417)}function fa(l,c){1&l&&t._UZ(0,"img",418)}function ha(l,c){1&l&&t._UZ(0,"img",419)}function ba(l,c){1&l&&t._UZ(0,"img",420)}function va(l,c){1&l&&t._UZ(0,"img",421)}function xa(l,c){if(1&l&&t._UZ(0,"mat-progress-bar",422),2&l){const e=t.oxw().$implicit;t.Q6J("value",e.dashboardData.goalProgress)}}function Da(l,c){1&l&&t._UZ(0,"mat-progress-bar",423)}const ya=function(l){return{"background-image":l}};
1function Ta(l,c){if(1&l){const e=t.EpF();t.TgZ(0,"div",393),t.NdJ("click",function(){const b=t.CHM(e).$implicit,C=t.oxw(3);return C.showGoal=!0,t.KtG(C.selectSingleGoal(b))}),t.TgZ(1,"div",394)(2,"div",395),t._uU(3),t.TgZ(4,"div",202)(5,"div",396)(6,"div",397),t.YNc(7,ga,1,0,"img",398),t.YNc(8,_a,1,0,"img",399),t.YNc(9,ma,1,0,"img",400),t.YNc(10,fa,1,0,"img",401),t.YNc(11,ha,1,0,"img",402),t.YNc(12,ba,1,0,"img",403),t.YNc(13,va,1,0,"img",404),t.qZA(),t.TgZ(14,"div",405)(15,"h4",406),t._uU(16),t.qZA(),t.TgZ(17,"h4",407),t._uU(18),t.qZA()()(),t.TgZ(19,"div",408)(20,"div",409)(21,"p",80),t._uU(22),t.qZA(),t.TgZ(23,"p",410),t._uU(24,"Achieved: Rs. "),t._UZ(25,"span",33),t.qZA(),t.YNc(26,xa,1,1,"mat-progress-bar",411),t.YNc(27,Da,1,0,"mat-progress-bar",412),t.TgZ(28,"p",413),t._UZ(29,"span",33),t._uU(30,"% Achieved "),t.qZA()(),t._UZ(31,"div",414),t.qZA()()()()()}if(2&l){const e=c.$implicit;t.xp6(2),t.Q6J("ngStyle",t.VKq(16,ya,"url("+e.img+")")),t.xp6(1),t.hij(" ",e.defaultImgUrl," "),t.xp6(4),t.Q6J("ngIf",0==e.relationshipId||null==e.relationshipId),t.xp6(1),t.Q6J("ngIf",2==e.relationshipId),t.xp6(1),t.Q6J("ngIf",3==e.relationshipId),t.xp6(1),t.Q6J("ngIf",4==e.relationshipId),t.xp6(1),t.Q6J("ngIf",5==e.relationshipId),t.xp6(1),t.Q6J("ngIf",7==e.relationshipId),t.xp6(1),t.Q6J("ngIf",6==e.relationshipId),t.xp6(3),t.Oqu(e.goalName),t.xp6(2),t.Oqu(e.year),t.xp6(4),t.hij("Goal: Rs. ",e.gv,""),t.xp6(3),t.Q6J("value",null==e||null==e.dashboardData?null:e.dashboardData.achievedValue),t.xp6(1),t.Q6J("ngIf",e&&e.dashboardData&&e.dashboardData.goalProgress),t.xp6(1),t.Q6J("ngIf",e&&e.dashboardData&&!e.dashboardData.goalProgress),t.xp6(2),t.Q6J("value",null==e||null==e.dashboardData?null:e.dashboardData.goalProgress)}}function Za(l,c){if(1&l&&(t.TgZ(0,"div",391),t.YNc(1,Ta,32,18,"div",392),t.qZA()),2&l){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.allGoals)}}function Aa(l,c){if(1&l&&(t.TgZ(0,"div",380),t.YNc(1,ua,13,1,"div",381),t.YNc(2,pa,5,0,"div",382),t.YNc(3,Za,2,1,"div",383),t.qZA()),2&l){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",e.isLoading),t.xp6(1),t.Q6J("ngIf",!e.isLoading&&0==e.allGoals.length),t.xp6(1),t.Q6J("ngIf",!e.isLoading&&e.allGoals)}}const Pa=function(l){return{hide:l}},Ca=function(){return{"margin-top":"28px"}},wa=function(l){return{color:l,"font-size":"18px",margin:"0px"}},Ae=function(l){return{width:l}};let Ga=(()=>{class l{constructor(e,a,r,b,C,at,R,ot,mt,Et,ve,j,nt,bt,Jt,Ma,Oa,qa,Ua,Ia){this.subInjectService=e,this.UtilService=a,this.eventService=r,this.plansService=b,this.dialog=C,this.allocateOtherAssetService=at,this.cd=R,this.loaderFn=ot,this.customerService=mt,this.roleService=Et,this.addGoalService=ve,this.enumDataService=j,this.datePipe=nt,this.authService=bt,this.router=Jt,this.customerOverview=Ma,this.sanitizer=Oa,this.goalsPlanService=qa,this.summaryPlanService=Ua,this.themingService=Ia,this.displayedColumns=["goalYear","goalFv","status","percentage"],this.displayedColumns1=["select","milestone","amount","fv"],this.dataSource1=[],this.isRetirementTab=!1,this.isLoading=!0,this.advisor_client_id={advisorId:"",clientId:""},this.selectedGoal={},this.allGoals=[],this.allAssets=[],this.hasCostOfDelay=!1,this.inDropZone=!1,this.showGoal=!1,this.finPlanList=[],this.options={chart:{type:"bar",height:200},plotOptions:{bar:{dataLabels:{enabled:!0,align:"left",inside:!1}}},credits:{enabled:!1},title:{text:""},xAxis:{type:"category",lineWidth:0,tickWidth:0},yAxis:{visible:!1},tooltip:{enabled:!1},legend:{enabled:!1},series:[{data:[]}]},this.donutOptions={chart:{type:"pie",height:170},title:{text:""},tooltip:{pointFormat:" <b>{point.percentage:.1f}%</b>"},credits:{enabled:!1},yAxis:{title:{text:""}},plotOptions:{pie:{shadow:!1}},legend:{floating:!1},series:[]},this.allocatedList=[],this.assetError=!1,this.selectedGoalId=null,this.subscriber=new y.L,this.highlight=!1,this.singleGoalData={goalName:"",goal:"",goalType:0,priorityFlag:"",goalEndDate:"",details:"",value:"",month:"",lumpsum:"",img:"",year:"",remainingData:{notes:""},dashboardData:{arr_lump_equity:[],arr_lump_debt:[],arr_debt_monthly:[],arr_equity_monthly:[],arr_goalYrAndFutValues:[],key_arr_equity_monthly:[],presentValue:0,goalProgress:0,achievedValue:0,futureValue:0,debt_monthly:{},lump_equity:{},equity_monthly:{},lump_debt:{}},goalFV:"",achievedValue:"",equity_monthly:"",debt_monthly:"",lump_equity:"",lump_debt:"",goalAssetAllocation:"",retirementTableValue:"",percentCompleted:""},this.showCost=!1,this.activeTab=5,this.reportDate=new Date,this.clientIdCache="",this.isCacheClear=!1,this.today=new Date,this.loaded=new t.vpe,this.loadsvg=new t.vpe,this.trancateNumber=Vt=>{let Ft=(Vt=Vt.toString()).split(".");return Ft[1]?(Ft[1]=Ft[1].slice(0,2),Number(Ft.join("."))):Number(Vt)},this.fabMenuOpen=!1,this.advisor_client_id.advisorId=J.e.getAdvisorId(),this.advisor_client_id.clientId=J.e.getClientId(),this.clientData=J.e.getClientData(),this.details=J.e.getProfileDetails(),this.clientId=J.e.getClientId(),this.getOrgData=J.e.getOrgDetails(),"goals"==this.router.url.split("/")[4]&&this.customerService.setHeader("Goals"),this.imgGenderSrc=this.clientData.profilePicUrl}ngOnInit(){this.fragmentData={isSpinner:!1},this.primaryColor=this.themingService.getThemeColor(),this.loadAllGoals(!0),this.userInfo=J.e.getUserInfo(),this.router.events.subscribe(e=>{e instanceof pt.m2&&window.scrollTo(0,0)}),this.dataSource=[{},{},{}],this.finPlanObj?this.goallistFinancialPlanGet():this.getInit()}getInit(){this.dataSource1=[],this.dataSource1=[],this.dataSource.data=[],this.finPlanObj&&null==this.finPlanObj.data&&this.goalsPlanService.getSelectedGoal().subscribe(e=>{e&&(this.selectedGoalId=e.id)}),this.subscription1=this.goalsPlanService.getClientId().subscribe(e=>{this.clientIdCache=e,this.clientId===this.clientIdCache&&(this.isCacheClear=!0)}),this.clientIdCache!=this.clientId&&this.goalsPlanService.clearCache(),this.goalsPlanService.setClientId(this.clientId),this.getClientDetails(),this.getAdvisorTagline(),this.subscription3=this.goalsPlanService.getAppearancePortfolio().subscribe(e=>{e?this.appearancePortfolioRes(e):this.getAppearancePortfolio()}),this.subscription2=this.goalsPlanService.getGoalsFMCache().subscribe(e=>{e||0===e||void 0===e?this.getFamilyMemberListRes(e):this.getFamilyMemberList()}),this.loaderFn.setFunctionToExeOnZero(this,this.afterDataLoadMethod),this.getThemeData=J.e.getTheme(),this.colorData=this.authService.getColor(this.getThemeData)}goallistFinancialPlanGet(){this.finPlanObj&&this.finPlanObj.data&&this.finPlanObj.data.length>0?(this.finPlanObj.data.length>0&&(this.dataSource1=[],this.dataSource1=[],this.dataSource.data=[],this.setimages(),this.goalsPlanService.setGoalsListCache(this.allGoals)),this.getClientDetails(),this.getAdvisorTagline(),this.subscription3=this.goalsPlanService.getAppearancePortfolio().subscribe(e=>{e?this.appearancePortfolioRes(e):this.getAppearancePortfolio()})):this.getInit()}getAppearancePortfolio(){this.customerService.getAppearanceSettings().subscribe(e=>{this.customerOverview.appearancePortfolio=e,this.goalsPlanService.setAppearancePortfolio(e)})}appearancePortfolioRes(e){this.appearancePortfolio=e.find(a=>2==a.appearanceOptionId)}getClientDetails(){this.customerService.getClientDetailsPdf().subscribe(e=>{Object.keys(e).length>0?this.clientDetailsPdf=e:this.customerService.getClientDetails({clientId:this.clientId,familyMemberId:0}).subscribe(r=>{r.hasOwnProperty("clientData")&&(this.customerService.setClientDetailsPdf(r.clientData),this.clientDetailsPdf=r.clientData)})})}getAdvisorTagline(){this.customerService.getAdvisorTaglinePreference().subscribe(e=>{if(0===Object.keys(e).length){const r={advisorId:J.e.getAdvisorId(),clientId:this.clientId};this.customerService.getAdvisorTagline(r).subscribe(b=>{this.customerService.setAdvisorTaglinePreference(b)}),e.hasOwnProperty("advisorTagLine")&&(this.advisorTagline=e.advisorTagLine.tagline,this.footer=e.footer,this.arnRiaNumber=e.arnRiaNumber,this.arnRiaType=e.arnRiaType,e.baslNumber)&&(e.baslNumber.includes("BASL")?(a=[(a=e.baslNumber).slice(0,4),a.slice(4)].join("(")+"),",this.baslNumber=a):this.baslNumber=a="BASL("+(a=e.baslNumber)+"),"),e.hasOwnProperty("financialPlan")&&(this.financialPlan=e.financialPlan)}else{if(e.hasOwnProperty("advisorTagLine")&&(this.advisorTagline=e.advisorTagLine.tagline,this.footer=e.footer,this.arnRiaNumber=e.arnRiaNumber,this.arnRiaType=e.arnRiaType,e.baslNumber))if(e.baslNumber.includes("BASL"))a=[(a=e.baslNumber).slice(0,4),a.slice(4)].join("(")+"),",this.baslNumber=a;else{var a;this.baslNumber=a="BASL("+(a=e.baslNumber)+"),"}e.hasOwnProperty("financialPlan")&&(this.financialPlan=e.financialPlan)}})}chekToCallApi(){return!(this.LoadCount>=1||this.storedData)}generatePdf(e){this.chart&&(this.svg=this.chart.getSVG()),this.fragmentData={},this.fragmentData.isSpinner=!0;var b=document.getElementById("goalplanSummary").innerHTML;b=(b=(b=(b=(b=(b=(b=b.replace(/&amp;nbsp;/g," ")).replace(/&amp;lsquo;/g,"'")).replace(/&amp;rsquo;/g,"'")).replace(/&amp;quot;/g,'"')).replace(/&amp;#39;/g,"'")).replace(/&amp;#39;/g,"'")).replace(/\u20ac/g,"&euro;"),this.UtilService.htmlToPdf("",b,"Goals",!1,this.fragmentData,"showPieChart",this.svg,!0,this.footer?this.footer:"",null)}innerHtmlText(e){let a;return e&&(a=this.sanitizer.bypassSecurityTrustHtml(e)),a}
1setimages(){this.allGoals.forEach(e=>{e.defaultImgUrl=1==e.goalType?"https://res.cloudinary.com/futurewise/image/upload/v1594125748/goal-default-image/retirement-goal-img_v2.0.svg":2==e.goalType?"https://res.cloudinary.com/futurewise/image/upload/v1594125748/goal-default-image/house-goals-img_v2.0.svg":3==e.goalType?"https://res.cloudinary.com/futurewise/image/upload/v1594125749/goal-default-image/car-goal_v2.0.svg":4==e.goalType?"https://res.cloudinary.com/futurewise/image/upload/v1594125747/goal-default-image/marriage-goal_v2.0.svg":5==e.goalType?"https://res.cloudinary.com/futurewise/image/upload/v1594125746/goal-default-image/vacation-goal_v2.0.svg":6==e.goalType?"https://res.cloudinary.com/futurewise/image/upload/v1594125748/goal-default-image/education-goal_v2.0.svg":7==e.goalType?"https://res.cloudinary.com/futurewise/image/upload/v1594125746/goal-default-image/emergency-goal_v2.0.svg":8==e.goalType?"https://res.cloudinary.com/futurewise/image/upload/v1594125747/goal-default-image/wealth-creation-goal_v2.0.svg":9==e.goalType?"https://res.cloudinary.com/futurewise/image/upload/v1594125746/goal-default-image/big-spend-goal_v2.0.svg":"https://res.cloudinary.com/futurewise/image/upload/v1594125746/goal-default-image/others-goals_v2.0.svg"})}loadAllGoals(e){this.isLoading=!0,this.isLoadingGoals=!0,this.allGoals=[{},{},{}],this.selectedGoal={},this.dataSource3=new x.by(Sa),this.plansService.getAllGoals(this.advisor_client_id).subscribe(a=>{a?(this.allGoals=a,this.finPlanObj&&this.finPlanObj.data&&0==this.finPlanList.length&&this.afterDataLoadMethod()):this.allGoals=[],this.setimages(),setTimeout(()=>{this.isLoading=!1,this.isLoadingGoals=!1},0),this.allGoals.length>0&&this.goalsPlanService.setGoalsListCache(this.allGoals),this.goalsPlanService.setGoalsPlanSummaryCache(""),this.summaryPlanService.goalSummaryData=null},a=>{this.eventService.openSnackBar(a,"Dismiss")})}loadPlanRes(e,a){e?(this.allGoals=e,1==a&&this.loadAllGoals(!1)):this.allGoals=[],this.isLoading=!1,this.subscriber?(this.afterDataLoadMethod(),this.loaderFn.decreaseCounter()):this.loaderFn.decreaseCounter()}loadAllAssets(){const e=this.plansService.getAssetsForAllocation(this.advisor_client_id),a=this.plansService.getMFList(this.advisor_client_id);this.loaderFn.increaseCounter(),(0,B.D)(e,a).subscribe(r=>{let b=r[0];b||(b=[]);let C=b.map(R=>{let ot=0;return R.goalAssetMapping&&R.goalAssetMapping.forEach(mt=>{ot<=99&&(ot+=mt.percentAllocated)}),{absAllocation:ot,...R}}),at=b.map(R=>{let ot=0;return R.goalAssetMapping.length>0&&R.goalAssetMapping.forEach(mt=>{ot<=99&&(ot+=mt.percentAllocated)}),{absAllocation:ot,...R}});this.allAssets=[...C,...at],this.loaderFn.decreaseCounter()},r=>{console.error(r),this.assetError=!0,this.loaderFn.decreaseCounter()})}createChart(e){this.showCost=this.selectedGoal.dashboardData.targetValueOfRequiredFVEquity+this.selectedGoal.dashboardData.targetValueOfRequiredFVDebt>10;const a=["#5DC644","#FFC100","#FF6823","#7B50FF"],r=e.remainingData.costDelay;if(!r)return void(this.hasCostOfDelay=!1);this.hasCostOfDelay=!0;let b=JSON.parse(JSON.stringify(this.options)),C=JSON.parse(JSON.stringify(this.options)),at=0;for(let R in r)r.hasOwnProperty(R)&&(b.series[0].data.push({y:Math.round(r[R].lumpsum_total),name:"Today's Cost"==r[R].year?r[R].year:r[R].year+" years",color:a[at]}),C.series[0].data.push({y:Math.round(r[R].sip_total),name:"Today's Cost"==r[R].year?r[R].year:r[R].year+" years",color:a[at]}),at++);if(C.series[0].data.length<=1?N.chart("monthly-chart-container-main",C).setSize(null,90):N.chart("monthly-chart-container-main",C),b.series[0].data.length<=1?N.chart("lumpsum-chart-container-main",b).setSize(null,90):N.chart("lumpsum-chart-container-main",b),e.remainingData.loan){const R=e.remainingData.loan,ot={data:[["Loan Amt",parseInt(R.loanAmount)],["Down Amt",parseInt(R.downPayment)]],size:"100%",innerSize:"55%",showInLegend:!0,dataLabels:{enabled:!1}};this.donutOptions.series=[ot],N.chart("donut-chart-container",this.donutOptions)}}sizeChange(e){}afterDataLoadMethod(){this.highlight=!1,this.allGoals=this.allGoals.reverse().map(e=>this.mapGoalDashboardData(e)),this.allGoals.map(e=>{e.gv=d.fK.getNumberToWord(e.gv),e.dashboardData.futureValue=d.fK.getNumberToWord(e.dashboardData.futureValue),e.dashboardData.achievedValue=d.fK.getNumberToWord(e.dashboardData.achievedValue)}
1),this.allGoals.forEach(e=>{this.finPlanObj&&this.finPlanObj.data&&(this.selectedGoalId=e.remainingData.id),this.familyMembers&&this.familyMembers.forEach(a=>{e.remainingData.familyMemberId==a.familyMemberId&&(e.relationshipId=a.relationshipId)}),this.finPlanObj&&this.finPlanObj.data&&this.selectedGoalId&&(this.loadSelectedGoalData(e),this.finPlanObj.obj=e)}),this.finPlanObj&&this.finPlanObj.data&&(this.cd.markForCheck(),this.loaded.emit(this.finPlanList)),this.selectedGoalId?this.loadSelectedGoalData(this.allGoals.find(e=>e.remainingData.id==this.selectedGoalId)):this.allGoals.length>0?this.loadSelectedGoalData(this.allGoals[0]):(this.selectedGoalId=null,this.selectedGoal={})}mapGoalDashboardData(e){let a={};if(this.goalTableValues=[],a.id=e.id,a.goalType=e.goalType,a.singleOrMulti=e.singleOrMulti,this.finPlanObj||(a.goalTableValues=e.goalTableValues),a.goalAssetAllocation=e.goalAssetAllocation,1==e.singleOrMulti){const r=e.singleGoalModel;a.img=r.imageUrl,a.year=new Date(r.goalStartDate).getFullYear().toString(),1==a.goalType&&(a.year=r.differentGoalYears?new Date(r.differentGoalYears[0]).getFullYear()+" - "+new Date(r.goalEndDate).getFullYear():"-"),a.goalName=this.authService.sanitizeInput(r.goalName),a.gv=r.goalFV,a.priorityFlag=r.priorityFlag,a.goalEndDate=r.goalEndDate,a.goalStartDate=r.goalStartDate,a.goalEndDate=1==r.goalType?r.goalEndDate:r.goalStartDate,a.dashboardData={goalYear:new Date(r.goalStartDate).getFullYear(),presentValue:r.goalPresentValue,futureValue:r.goalFV,equity_monthly:this.getSumOfJsonMap(r.sipAmountEquity)||0,debt_monthly:this.getSumOfJsonMap(r.sipAmountDebt)||0,targetValueOfRequiredFVEquity:this.getSumOfJsonMap(r.targetValueOfRequiredFVEquity),targetValueOfRequiredFVDebt:this.getSumOfJsonMap(r.targetValueOfRequiredFVDebt),lump_equity:this.getSumOfJsonMap(r.lumpSumAmountEquity)||0,lump_debt:this.getSumOfJsonMap(r.lumpSumAmountDebt)||0,arr_equity_monthly:this.getSumOfJsonMapArr(r.sipAmountEquity),arr_debt_monthly:this.getSumOfJsonMapArr(r.sipAmountDebt),arr_lump_equity:this.getSumOfJsonMapArr(r.lumpSumAmountEquity),arr_lump_debt:this.getSumOfJsonMapArr(r.lumpSumAmountDebt),arr_goalYrAndFutValues:this.getSumOfJsonMapArr(r.goalYrAndFutValues),key_arr_equity_monthly:this.getSumOfJsonMapArrKey(r.sipAmountEquity),key_arr_debt_monthly:this.getSumOfJsonMapArrKey(r.sipAmountDebt),key_arr_lump_equity:this.getSumOfJsonMapArrKey(r.lumpSumAmountEquity),key_arr_lump_debt:this.getSumOfJsonMapArrKey(r.lumpSumAmountDebt),key_goalYrAndFutValues:this.getSumOfJsonMapArrKey(r.goalYrAndFutValues),goalProgress:r.goalAchievedPercentage,achievedValue:r.achievedValue},0==a.dashboardData.equity_monthly&&0!=a.dashboardData.lump_equity&&(a.dashboardData.equity_monthly="N/A"),0==a.dashboardData.debt_monthly&&0!=a.dashboardData.lump_debt&&(a.dashboardData.debt_monthly="N/A"),a.remainingData=r,a.remainingData.differentGoalYears=[r.goalStartDate]}else{const r=e.multiYearGoalPlan;a.img=r.imageUrl,a.year=r.differentGoalYears?new Date(r.differentGoalYears[0]).getFullYear()+" - "+new Date(r.differentGoalYears[r.differentGoalYears.length-1]).getFullYear():"-",a.goalName=this.authService.sanitizeInput(r.name),a.priorityFlag=r.priorityFlag,a.goalEndDate=r.goalEndDate,a.gv=r.futureValue,a.goalStartDate=r.differentGoalYears?r.differentGoalYears[0]:"-",a.goalEndDate=r.differentGoalYears?r.differentGoalYears[r.differentGoalYears.length-1]:0,a.dashboardData={goalYear:new Date(r.goalEndDate||r.vacationEndYr).getFullYear(),presentValue:r.presentValue,futureValue:r.futureValue,equity_monthly:this.getSumOfJsonMap(r.sipAmountEquity,r.savingTypeStatus),targetValueOfRequiredFVEquity:this.getSumOfJsonMap(r.targetValueOfRequiredFVEquity),targetValueOfRequiredFVDebt:this.getSumOfJsonMap(r.targetValueOfRequiredFVDebt),debt_monthly:this.getSumOfJsonMap(r.sipAmountDebt,r.savingTypeStatus),lump_equity:this.getSumOfJsonMap(r.lumpSumAmountEquity,r.savingTypeStatus),lump_debt:this.getSumOfJsonMap(r.lumpSumAmountDebt,r.savingTypeStatus),arr_equity_monthly:this.getSumOfJsonMapArr(r.sipAmountEquity),arr_debt_monthly:this.getSumOfJsonMapArr(r.sipAmountDebt),arr_lump_equity:this.getSumOfJsonMapArr(r.lumpSumAmountEquity),arr_goalYrAndFutValues:this.getSumOfJsonMapArr(r.goalYrAndFutValues),arr_lump_debt:this.getSumOfJsonMapArr(r.lumpSumAmountDebt),key_arr_equity_monthly:this.getSumOfJsonMapArrKey(r.sipAmountEquity),key_arr_debt_monthly:this.getSumOfJsonMapArrKey(r.sipAmountDebt),key_arr_lump_equity:this.getSumOfJsonMapArrKey(r.lumpSumAmountEquity),key_arr_lump_debt:this.getSumOfJsonMapArrKey(r.lumpSumAmountDebt),key_goalYrAndFutValues:this.getSumOfJsonMapArrKey(r.goalYrAndFutValues),goalProgress:r.goalAchievedPercentage,achievedValue:r.achievedValue},this.enumDataService.PRODUCTION||console.log("targetValueOfRequiredFVEquity",a.dashboardData.targetValueOfRequiredFVEquity),0==a.dashboardData.equity_monthly&&0!=a.dashboardData.lump_equity&&(a.dashboardData.equity_monthly="N/A"),0==a.dashboardData.debt_monthly&&0!=a.dashboardData.lump_debt&&(a.dashboardData.debt_monthly="N/A"),a.remainingData=r}return a}getSumOfJsonMap(e={},a=0){let r=0;if(0==a||1==a){for(let b in e)e.hasOwnProperty(b)&&(r+=e[b]);return r}return Object.entries(e)[0][1]}getSumOfJsonMapArr(e={}){let a=[];for(let r in e)e.hasOwnProperty(r)&&a.push(e[r]);return a}getSumOfJsonMapArrKey(e={}){return Object.keys(e)}loadGlobalAPIs(){this.plansService.getListOfFamilyByClient(this.advisor_client_id).subscribe(e=>{this.clientFamily=e.familyMembersList.sort((a,r)=>a.relationshipId-r.relationshipId)},e=>{this.eventService.openSnackBar(e,"Dismiss")})}openAddgoals(){const r=this.eventService.changeUpperSliderState({flag:"openAddgoals",id:1,data:{},direction:"top",componentName:S.z,state:"open"}).subscribe(b=>{d.fK.isRefreshRequired(b)&&(this.selectedGoalId=null,this.loadAllGoals(!1),r.unsubscribe())})}openInSideBar(e,a){let r={flag:a,id:1,data:this.selectedGoal,componentName:void 0,state:"open"};switch(a){case"openCalculators":r.componentName=P.B;break;case"openCostOfDelay":r.data.isCostofDelay=!0,r.componentName=P.B;break;case"openPreferences":r.componentName=p.h,r.state="open45";break;case"openView":r.componentName=I.u,r.state="open35";break;case"openEdit":r.componentName=M.K,r.state="open65";break;case"openKeyinfo":1==this.selectedGoal.singleOrMulti?(r.componentName=o.Y,r.state="open35",r.data=this.selectedGoal):(r.componentName=o.Y,r.state="open65",r.data=this.selectedGoal);break;case"openallocations":r.componentName=U.O,r.data=this.clientFamily,r.isOverlayVisible=!1,r.state="open25";break;case"openMfAllocation":r.componentName=s.y,r.state="open70",r.data=this.selectedGoal;break;case"openSimiulation":r.componentName=Pt.t,r.state="open50";break;default:return}const b=this.subInjectService.changeNewRightSliderState(r).subscribe(C=>{d.fK.isDialogClose(C)?(1==C.refreshRequired&&this.loadAllGoals(!1),1==C.refreshObservable&&this.loadAllGoals(!1),b.unsubscribe()):(1==C.refreshRequired&&this.loadAllGoals(!1),1==C.refreshObservable&&this.loadAllGoals(!1))});"openallocations"==a&&(this.otherAssetAllocationSubscription=b)}loadSelectedGoalData(e){this.allocatedList=e.goalAssetAllocation.map(j=>({...this.allAssets.find(bt=>bt.assetId==j.assetId&&bt.assetType==j.assetType)||{},...j})),this.selectedGoal=e;const r=e?.remainingData?.lumpSumAmountDebt||{},b=Object.values(e?.remainingData?.lumpSumAmountEquity||{}).reduce((j,nt)=>j+(Number(nt)||0),0),C=Object.values(r).reduce((j,nt)=>j+(Number(nt)||0),0),at=b+C;if(e.dashboardData||(e.dashboardData={}),e.dashboardData.totalLumpSum=at,e.dashboardData.lump_equity=b,e.dashboardData.lump_debt=C,this.selectedGoalsavingTypeID=this.selectedGoal.remainingData.savingType
1Status,this.selectedGoal.remainingData.loan&&setTimeout(()=>{this.pieChart("")},300),this.isLoadingGoals=!1,this.selectedGoal=e,this.singleGoalData=this.selectedGoal,this.enumDataService.PRODUCTION||console.log("goals",e?.remainingData?.notes),0==this.singleGoalData.dashboardData.equity_monthly&&0!=this.singleGoalData.dashboardData.lump_equity&&(this.singleGoalData.dashboardData.equity_monthly="N/A"),0==this.singleGoalData.dashboardData.debt_monthly&&0!=this.singleGoalData.dashboardData.lump_debt&&(this.singleGoalData.dashboardData.debt_monthly="N/A"),this.selectedGoal&&this.finPlanObj&&this.finPlanObj.obj&&!this.finPlanObj.data&&(this.finPlanObj.obj.dashboardData={},this.selectedGoal=this.finPlanObj.obj,this.selectedGoal.remainingData=this.finPlanObj.obj,this.selectedGoal.remainingData||(this.selectedGoal.remainingData={}),Object.assign(this.selectedGoal.remainingData,{savingStatus:this.finPlanObj.obj.goalValueObj.savingStatus}),this.singleGoalData=this.finPlanObj.obj,this.singleGoalData.dashboardData.equity_monthly="0NaN"==this.finPlanObj.obj.equity_monthly?this.finPlanObj.obj.equity_monthly=0:this.finPlanObj.obj.equity_monthly,this.singleGoalData.dashboardData.debt_monthly="0NaN"==this.finPlanObj.obj.debt_monthly?this.finPlanObj.obj.debt_monthly=0:this.finPlanObj.obj.debt_monthly,this.singleGoalData.dashboardData.achievedValue=this.finPlanObj.obj.achievedValue,this.singleGoalData.dashboardData.goalProgress=this.finPlanObj.obj.percentCompleted,this.singleGoalData.dashboardData.lump_debt=this.finPlanObj.obj.lump_debt,this.singleGoalData.dashboardData.lump_equity=this.finPlanObj.obj.lump_equity,this.singleGoalData.img=this.finPlanObj.obj.imageUrl,this.singleGoalData.dashboardData.futureValue=this.finPlanObj.obj.goalFV,this.singleGoalData.dashboardData.arr_equity_monthly=this.getSumOfJsonMapArr(this.finPlanObj.obj.goalValueObj.sipAmountEquity),this.singleGoalData.dashboardData.key_arr_equity_monthly=this.getSumOfJsonMapArrKey(this.finPlanObj.obj.goalValueObj.sipAmountEquity),this.singleGoalData.dashboardData.arr_goalYrAndFutValues=this.getSumOfJsonMapArr(this.finPlanObj.obj.goalValueObj.goalYrAndFutValues),this.singleGoalData.dashboardData.presentValue=this.finPlanObj.obj.goalValueObj.goalPresentValue?this.finPlanObj.obj.goalValueObj.goalPresentValue:this.finPlanObj.obj.goalValueObj.presentValue,this.singleGoalData.dashboardData.arr_debt_monthly=this.getSumOfJsonMapArr(this.finPlanObj.obj.goalValueObj.sipAmountDebt),this.singleGoalData.dashboardData.arr_lump_equity=this.getSumOfJsonMapArr(this.finPlanObj.obj.goalValueObj.lumpSumAmountEquity),this.singleGoalData.dashboardData.arr_lump_debt=this.getSumOfJsonMapArr(this.finPlanObj.obj.goalValueObj.lumpSumAmountDebt),e.remainingData.retirementTableValue=this.finPlanObj.obj.retirementTableValue,e.remainingData.milestoneModels=this.finPlanObj.obj.milestoneModels,e.goalTableValues=this.finPlanObj.obj.goalTableValues),!this.enumDataService.PRODUCTION){const nt=this.selectedGoal?.remainingData?.remainingData?.goalValueObj?.lumpSumAmountDebt||{};this.totalLumpEquity1=Object.values(this.selectedGoal?.remainingData?.remainingData?.goalValueObj?.lumpSumAmountEquity||{}).reduce((bt,Jt)=>bt+(Number(Jt)||0),0),this.totalLumpDebt1=Object.values(nt).reduce((bt,Jt)=>bt+(Number(Jt)||0),0)}this.storeData=this.authService.sanitizeInput(this.selectedGoal?.notes),this.goalPlannerNotes=this.innerHtmlText(this.storeData),this.goalNotes=this.authService.sanitizeInput(this.storeData),!this.goalPlannerNotes&&(this.router.url.includes("customer/detail/plan/goals/detailVie
1w")||this.selectedGoal?.notes&&""!==this.selectedGoal.notes.trim())&&(this.goalPlannerNotes=this.innerHtmlText(this.authService.sanitizeInput(this.selectedGoal?.notes||e?.remainingData?.notes||"")));const mt=(this.selectedGoal.goalTableValues||[]).map(j=>"number"!=typeof j.achievedPercent||isNaN(j.achievedPercent)?0:j.achievedPercent),Et=mt.reduce((j,nt)=>j+nt,0);if(this.averageAchievedPercent=mt.length>0?Math.round(Et/mt.length):0,this.selectedGoalId=e.remainingData.id,this.goalTableValues=this.selectedGoal.goalTableValues?this.selectedGoal.goalTableValues:[],e.remainingData.retirementTableValue&&1==e.goalType?(this.isRetirementTab=!0,e.remainingData.retirementTableValue.forEach(nt=>{nt.goalYear=new Date(nt.goalStartDate).getFullYear()})):e.goalTableValues&&(e.goalTableValues.forEach(j=>{j.achievedPercent=this.trancateNumber(j.achievedPercent)}),this.isRetirementTab=!1),this.dataSource=e.remainingData.retirementTableValue?e.remainingData.retirementTableValue:[],this.dataSource.length>0&&this.dataSource.forEach(j=>{j.achievedPercent=this.trancateNumber(j.achievedPercent)}),this.dataSource1=e.remainingData.milestoneModels?e.remainingData.milestoneModels:[],setTimeout(()=>{this.createChart(this.selectedGoal)},100),this.finPlanObj&&null==this.finPlanObj.data)this.cd.markForCheck(),this.cd.detectChanges(),this.cd.markForCheck(),this.selectedGoal.remainingData.loan&&setTimeout(()=>{this.pieChart(""),this.loadsvg.emit(this.svg)},100),this.loaded.emit(this.summaryPlan.nativeElement);else{this.cd.markForCheck(),this.cd.markForCheck(),this.enumDataService.PRODUCTION||console.log("",this.summaryPlan.nativeElement),this.selectedGoal.remainingData.loan&&setTimeout(()=>{this.pieChart(""),this.loadsvg.emit(this.svg)},100),this.finPlanObj&&(this.cd.detectChanges(),this.cd.markForCheck());var ve=this.summaryPlan.nativeElement.cloneNode(!0);this.finPlanList.push(ve)}}deleteCostOfDelay(e){const r=this.dialog.open(Q.$,{width:"400px",data:{header:"DELETE MILESTONE",body:"Are you sure you want to remove cost of delay?",body2:"This cannot be undone.",btnYes:"CANCEL",btnNo:"DELETE",positiveMethod:()=>{this.plansService.deleteCostOfDelay({goalId:this.selectedGoalId,goalType:this.selectedGoal.goalType}).subscribe(C=>{this.allocateOtherAssetService.refreshAssetList.next(),this.loadAllGoals(!1),this.eventService.openSnackBar("Cost of delay deleted successfully"),r.close()},C=>{this.eventService.openSnackBar(C)})}},autoFocus:!1})}deleteMilestone(e){const r=this.dialog.open(Q.$,{width:"400px",data:{header:"DELETE MILESTONE",body:"Are you sure you want to remove milestone?",body2:"This cannot be undone.",btnYes:"CANCEL",btnNo:"DELETE",positiveMethod:()=>{this.plansService.deleteMilestone({milestoneId:e.id}).subscribe(C=>{this.allocateOtherAssetService.refreshAssetList.next(),this.loadAllGoals(!1),this.eventService.openSnackBar("Milestone deleted successfully"),r.close()},C=>{this.eventService.openSnackBar(C)})}},autoFocus:!1})}deleteGoal(){const a=this.dialog.open(Q.$,{width:"400px",data:{header:"DELETE GOAL",body:"Are you sure you want to delete this goal?",body2:"This cannot be undone.",btnYes:"CANCEL",btnNo:"DELETE",positiveMethod:()=>{this.plansService.deleteGoal({goalId:this.selectedGoalId,goalType:this.selectedGoal.goalType,id:this.selectedGoal.id}).subscribe(b=>{this.eventService.openSnackBar("Goal has been deleted successfully","Dismiss"),this.allGoals=this.allGoals.filter(C=>C.remainingData.id!=this.selectedGoalId),this.allGoals.forEach(C=>C.gv=d.fK.getNumberToWord(C.gv)),this.selectedGoalId=null,this.allGoals.length>0?this.loadSelectedGoalData(this.allGoals[0]):this.selectedGoal={},this.loadAllGoals(!1),this.allocateOtherAssetService.refreshAssetList.next(),a.close()},b=>{this.eventService.openSnackBar(b,"Dismiss")})},negativeMethod:()=>{}},autoFocus:!1})}deleteLoan(e){const r=this.dialog.open(Q.$,{width:"400px",data:{header:"DELETE LOAN",body:"Are you sure you want to remove loan?",body2:"This cannot be undone.",btnYes:"CANCEL",btnNo:"DELETE",positiveMethod:()=>{this.plansService.deleteLoan({loanId:e.id}).subscribe(b=>{this.allocateOtherAssetService.refreshAssetList.next(),this.loadAllGoals(!1),this.eventService.openSnackBar("Asset unallocated"),r.close()},b=>{this.eventService.openSnackBar(b)})}},autoFocus:!1})}drop(e){this.highlight=!1,e.previousContainer!==e.container&&e.isPointerOverContainer&&(1==this.selectedGoal.remainingData.freezed?this.Unfreezed():(this.allocateOtherAssetService.allocateOtherAssetToGoal(e,this.advisor_client_id,this.selectedGoal),this.loadAllGoals(!1)))}pieChart(e){this.downPayement=parseFloat((this.selectedGoal.remainingData.loan.downPayment/this.selectedGoal.remainingData.loan.goalAmount*100).toFixed(2)),this.loanAmount=parseFloat((this.selectedGoal.remainingData.loan.loanAmount/this.selectedGoal.remainingData.loan.goalAmount*100).toFixed(2));
1var a=new N.Chart("piechartMutualFund",{chart:{plotBackgroundColor:null,plotBorderWidth:0,plotShadow:!1},title:{text:"",align:"center",verticalAlign:"middle",y:30},exporting:{enabled:!1},tooltip:{pointFormat:" <b>{point.percentage:.1f}%</b>"},plotOptions:{pie:{dataLabels:{enabled:!0,distance:-30,style:{fontWeight:"bold",color:"white"}},startAngle:0,endAngle:360,center:["52%","50%"],size:"70%"}},series:[{type:"pie",name:"Browser share",innerSize:"30%",animation:!1,states:{hover:{enabled:!1}},data:[{name:"Loan amount",y:this.loanAmount,color:"#008FFF",dataLabels:{enabled:!1}},{name:"Down payment",y:this.downPayement,color:"#FFC100",dataLabels:{enabled:!1}}]}]});this.svg=a.getSVG()}Unfreezed(){const a=this.dialog.open(Q.$,{width:"400px",data:{header:"UNFREEZE GOAL",body:"You have frozen the calculations for additional savings required. Allocating an asset will unfreeze the calculations. Are you sure you want to unfreeze?",body2:"This cannot be undone.",btnYes:"CANCEL",btnNo:"UNFREEZE",positiveMethod:()=>{this.plansService.freezCalculation({lumpSumAmountDebt:this.selectedGoal.remainingData.lumpSumAmountDebt,lumpSumAmountEquity:this.selectedGoal.remainingData.lumpSumAmountEquity,id:this.selectedGoal.remainingData.id,goalType:this.selectedGoal.goalType,freezed:!1}).subscribe(b=>{this.allocateOtherAssetService.refreshAssetList.next(),this.loadAllGoals(!1),this.eventService.openSnackBar("Goal unfreeze successfully"),this.subInjectService.closeNewRightSlider({state:"close",refreshRequired:!0}),a.close()},b=>{this.eventService.openSnackBar(b)})}},autoFocus:!1})}removeAllocation(e){const r=this.dialog.open(Q.$,{width:"400px",data:{header:"UNALLOCATE ASSET",body:"Are you sure you want to remove allocation?",body2:"This cannot be undone.",btnYes:"CANCEL",btnNo:"UNALLOCATE",positiveMethod:()=>{let b={...this.advisor_client_id,id:e.id,assetId:e.assetId,assetType:e.assetType,goalId:this.selectedGoal.remainingData.id,goalType:this.selectedGoal.goalType,percentAllocated:0};this.plansService.allocateOtherAssetToGoal(b).subscribe(C=>{const at=this.allocatedList.findIndex(R=>R.assetId==e.assetId);this.allocatedList.splice(at,1),this.loadAllGoals(!1),this.allocateOtherAssetService.refreshAssetList.next(),this.eventService.openSnackBar("Asset unallocated"),r.close()},C=>{this.eventService.openSnackBar(C)})}},autoFocus:!1})}addMilestone(e,a,r){this.dialog.open(A.P,{width:"35%",data:{data:e,otherData:this.selectedGoal,flag:r,singleObj:a},autoFocus:!1}).afterClosed().subscribe(at=>{this.loadAllGoals(!1)})}deleteAllMilestone(e){if(e){const r=this.dialog.open(Q.$,{width:"400px",data:{header:"DELETE MILESTONE",body:"Are you sure you want to remove Milestone?",body2:"This cannot be undone.",btnYes:"CANCEL",btnNo:"DELETE",positiveMethod:()=>{this.plansService.DeleteAllMilestone({goalId:this.selectedGoalId}).subscribe(C=>{this.allocateOtherAssetService.refreshAssetList.next(),this.loadAllGoals(!1),this.eventService.openSnackBar("Milestone deleted successfully"),r.close()},C=>{this.eventService.openSnackBar(C)})}},autoFocus:!1})}}getSumOfJsonMap1(e={}){for(let a in e)Object.keys(e)&&(a=a.replace("T00:00:00.000+0000",""));return e}reallocateAsset(e,a){let r={advisorId:J.e.getAdvisorId(),clientId:this.clientId,goalId:this.selectedGoalId,goalType:this.selectedGoal.goalType,savingStartDate:this.datePipe.transform(this.selectedGoal.remainingData.savingStartDate,"yyyy-MM-dd"),savingEndDate:this.datePipe.transform(this.selectedGoal.remainingData.savingEndDate,"yyyy-MM-dd"),assetId:e.assetId,lumpsumOrSip:1,differentGoalYears:this.selectedGoal.remainingData.differentGoalYears.map(b=>this.datePipe.transform(b,At.$.DATE_FORMAT_DASHED)+"T00:00:00.000+0000"),diffGoalYearsAndSED:this.selectedGoal.remainingData.diffGoalYearsAndSED,targetValueOfRequiredFVDebt:this.getSumOfJsonMap1(this.selectedGoal.remainingData.targetValueOfRequiredFVDebt),targetValueOfRequiredFVEquity:this.selectedGoal.remainingData.targetValueOfRequiredFVEquity};window.scrollTo(0,0),5==e.assetType?this.plansService.getmfallocationReq(r).subscribe(b=>{this.suggestedmfPercentData=b;const C={goalData:this.selectedGoal,allocationData:e};C.allocationData.flag=!0,this.dialog.open(X.D,{width:"600px",height:"400px",data:C,autoFocus:!1}).afterClosed().subscribe(R=>{1==R&&this.loadAllGoals(!1)})}):this.dialog.open(X.D,{width:"600px",height:"400px",data:{goalData:this.selectedGoal,allocationData:e},autoFocus:!1}).afterClosed().subscribe(at=>{1==at&&this.loadAllGoals(!1)})}inDropZoneMethod(e){this.highlight=!0}ngOnDestroy(){this.subInjectService.closeNewRightSlider({state:"close"}),this.otherAssetAllocationSubscription&&this.otherAssetAllocationSubscription.unsubscribe(),this.subscriber.unsubscribe(),this.subscription1.unsubscribe(),this.subscription2.unsubscribe(),this.subscription3.unsubscribe(),this.subscription4&&this.subscription4.unsubscribe()}getDefault(){let e={advisorId:J.e.getAdvisorId()};this.plansService.getGoalGlobalData(e).subscribe(a=>this.getGoalGlobalDataRes(a),a=>
1{this.eventService.showErrorMessage(a),this.defaultGallery=void 0})}getGoalGlobalDataRes(e){this.defaultGallery=e}openGallery(e){this.dialog.open(V.j,{width:"40%",height:"570px",data:{bank:e,animal:{goalId:this.selectedGoalId,goalType:this.selectedGoal.goalType,imageUrl:e}}}).afterClosed().subscribe(b=>{b&&(this.loadAllGoals(!1),this.allocateOtherAssetService.refreshAssetList.next())})}selectSingleGoal(e){e.familyMemberList=this.familyMembers,this.addGoalService.setGoalDetails(e),this.router.navigate(["/customer/detail/plan/goals/details"])}getFamilyMemberList(){this.goalLoader=!0,this.customerService.getFamilyMembers({clientId:this.clientId,id:0}).subscribe(a=>{this.goalsPlanService.setGoalsListCache(""),this.goalsPlanService.setGoalsFMCache(a)})}getFamilyMemberListRes(e){e&&e.length>0?(e=this.UtilService.calculateAgeFromCurrentDate(e),this.familyMembers=e,this.clientIdToClearStorage?this.clientIdToClearStorage!=this.clientId&&(this.plansService.clearStorage(),this.subscriber.add(this.allocateOtherAssetService.refreshObservable.subscribe(()=>{this.loadAllGoals(!1)}))):this.loadAllGoalCache(),this.plansService.setClientId(this.clientId)):(this.familyMembers=void 0,this.loadAllGoalCache())}loadAllGoalCache(){this.allGoals[0].imageUrl||this.setimages(),this.subscription4=this.goalsPlanService.getGoalsListCache().subscribe(e=>{e?this.isCacheClear&&(this.allGoals=e,this.afterDataLoadMethod()):this.loadAllGoals(!1)})}toggleFabMenu(){this.fabMenuOpen=!this.fabMenuOpen;var e=document.getElementById("fabMenu"),a=document.getElementById("fabIcon");1==this.fabMenuOpen?(e.classList.add("showTransition"),a.classList.add("showRotate")):(e.classList.remove("showTransition"),a.classList.remove("showRotate"))}openNotesDialog(){this.dialog.open(Ct.c,{width:"900px",height:"80vh",data:{listFlag:!0}}).afterClosed().subscribe(a=>{})}getOpacityColor(e){return this.applyOpacityToColor("#008FFF",.4)}applyOpacityToColor(e,a){return`rgba(${parseInt(e.substr(1,2),16)}, ${parseInt(e.substr(3,2),16)}, ${parseInt(e.substr(5,2),16)}, ${a})`}}return l.\u0275fac=function(e){return new(e||l)(t.Y36(wt.f),t.Y36(d.fK),t.Y36(F.P),t.Y36(O.D),t.Y36(Gt.uw),t.Y36(q.b),t.Y36(t.sBO),t.Y36(d.jo),t.Y36(Zt.v),t.Y36(H.N),t.Y36(q.b),t.Y36($.p),t.Y36(ct.uU),t.Y36(J.e),t.Y36(pt.F0),t.Y36(Z.a),t.Y36(St.H7),t.Y36(Mt.a),t.Y36(Ot.M),t.Y36(qt.m))},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-goals-plan"]],viewQuery:function(e,a){if(1&e&&(t.Gf(G.YE,5),t.Gf(K.NW,7),t.Gf(_t,7),t.Gf(Yt,7)),2&e){let r;t.iGM(r=t.CRH())&&(a.sort=r.first),t.iGM(r=t.CRH())&&(a.paginator=r.first),t.iGM(r=t.CRH())&&(a.summaryTemplateHeader=r.first),t.iGM(r=t.CRH())&&(a.summaryPlan=r.first)}},hostBindings:function(e,a){1&e&&t.NdJ("resize",function(b){return a.sizeChange(b)},!1,t.Jf7)},inputs:{finPlanObj:"finPlanObj"},outputs:{loaded:"loaded",loadsvg:"loadsvg"},features:[t._Bn([d.jo])],decls:125,vars:103,consts:[["id","ui-goal",1,"d-none-768",3,"ngClass"],["class","row ",4,"ngIf"],["class","row d-none-768",4,"ngIf"],["id","goalplanSummary",2,"display","none"],["gsummaryPlan",""],[2,"margin-bottom","10px"],["align","center",2,"border-collapse","collapse","border","0px","padding","0px 20px 0px 20px","width","100%","font-family","'Roboto', sans-serif","font-weight","500"],[4,"ngIf"],[2,"text-align","right","vertical-align","top","width","50%"],["style","margin: 0px; font-weight: 500; font-size: 12px; margin-bottom: 5px; white-space: nowrap; color: #333333;",3,"ngStyle",4,"ngIf"],["style","margin: 0px; font-weight: 500; font-size: 16px; margin-bottom: 5px; white-space: nowrap; color: #121212;",3,"ngStyle",4,"ngIf"],[2,"margin","0px","font-weight","500","font-size","16px","margin-bottom","5px","white-space","nowrap","color","#121212",3,"ngStyle"],["align","center",2,"border-collapse","collapse","border","0px","padding","0px 20px 0px 20px","width","100%",3,"ngStyle"],[2,"text-align","left","vertical-align","top"],["style","margin: 0px; font-weight: 600; font-size: 16px; color: #000000;",3,"ngStyle",4,"ngIf"],["style","margin: 0px; font-weight: 500; font-size: 12px; color: #333333;",3,"ngStyle",4,"ngIf"],["rowspan","3",2,"text-align","right","vertical-align","bottom"],[2,"margin","0px","font-size","18px","font-weight","600","color","#000000",3,"ngStyle"],["style","margin: 0px; font-size: 14px; margin-bottom: 5px;color: #121212;",3,"ngStyle",4,"ngIf"],["cellpadding","0","cellspacing","0","border","0","align","center; page-break-before: auto;",2,"width","100%","font-family","'Roboto', sans-serif","margin","0px auto","border","0px !important","border-collapse","collapse"],[2,"width","100%","border","0px","padding-top","10px","padding-bottom","10px","border-bottom","1px solid #404040","border-top","1px solid #404040"],[3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[2,"text-align","right"],[2,"margin","0px","font-weight","400","font-size","18px",3,"ngStyle"],[2,"border","0px !important"],[2,"border","0px !important","margin-top","20px","width","100%"],[2,"width","40%"],[2,"width","100%","border","2px solid #fff",3,"ngStyle","src"],[2,"vertical-align","top","padding-left","15px","width","60%"],[2,"border","0px","width","100%","padding-bottom","15px","border-bottom","1px solid #404040"],[2,"color","#83959D","margin","0px 0px 5px 0px","font-size","16px"],[2,"font-size","18px","margin","0px"],["appFormatNumber","",3,"value"],[2,"margin","20p
1x 0px 20px 0px","width","100%","border-collapse","collapse"],[2,"background","#f5f7f7","height","35px","position","relative","width","100%","border-radius","4px","overflow","hidden"],[2,"background","#C4E2F9","height","35px","position","absolute","top","0","left","0","z-index","1",3,"ngStyle"],[2,"background","#008FFF","height","35px","position","absolute","top","0","left","0","z-index","2",3,"ngStyle"],[2,"color","#83959D","font-size","12px","display","inline","padding-right","130px","padding-top","10px"],[2,"color","#83959D","font-size","12px","display","inline","padding-left","200px","margin-top","5px"],["style","margin-bottom: 0px; padding-top: 25px; font-size: 16px; font-weight: 600;",3,"ngStyle",4,"ngIf"],["cellpadding","0","cellspacing","0","style","border-collapse: collapse;margin: 10px 0px 0px 0px; font-size: 16px; border: 1px solid #404040;  width: 100%; border: 1px solid #404040; width: 100%;",4,"ngIf"],[2,"font-size","18px","font-weight","600","margin-top","16px",3,"ngStyle"],["cellpadding","0","cellspacing","0",2,"border-collapse","collapse","width","100%","font-size","16px","border","1px solid #404040"],[2,"padding","8px","background","#f5f7f7","border-right","1px solid #404040",3,"ngStyle"],[2,"padding","8px","background","#f5f7f7","text-align","right","border-right","1px solid #404040",3,"ngStyle"],[2,"padding","8px","background","#f5f7f7","text-align","right","border-right","1px solid #404040","border-left","1px solid #404040",3,"ngStyle"],[4,"ngFor","ngForOf"],["colspan","5","style","padding: 8px; border-top: 1px solid #404040;  text-align: center; font-size: 14px;",3,"ngStyle",4,"ngIf"],[3,"hidden"],["cellpadding","0","cellspacing","0",2,"margin-top","25px","width","100%"],[2,"font-size","18px","margin-bottom","16px","font-weight","600",3,"ngStyle"],[1,"row"],[1,"col-md-12","p-0"],[1,"b-a","relClass"],[1,"m-0","p-8","text-black","f-14","new-lineText","roboto",2,"margin","0px","font-size","16px","word-break","break-word","border","1px solid #404040","padding","5px",3,"hidden"],[3,"innerHtml"],[1,"bar82","p-8",3,"ngClass","hidden"],["cellpadding","0","cellspacing","0",2,"margin-top","25px","width","100%","page-break-before","auto"],["cellpadding","0","cellspacing","0",2,"width","100%","page-break-before","auto"],[1,"d-none","d-block-768"],["class","pt-70 pb-12",4,"ngIf"],[3,"activeTab"],[1,"col-width-22","fade-in-goals","relClass","br-grey","pb-44"],[1,"row","goalFixedHeader","pt-20","pb-10","bb-grey","align-items-center"],[1,"col-md-4","p-0"],[1,"mb-0","d-flex","align-items-end","text-black"],[1,"col-md-8","text-right","p-0"],["mat-stroked-button","","class","btn-primary br-0 addon",3,"click",4,"ngIf"],[1,"mt-80","sticky-top","mt-0-992"],[1,"leftScroll"],["class","skeletonAnimation mt-8","appSkeletonLoading","",3,"appSkeletonLoading","click",4,"ngFor","ngForOf"],["class","col-width-78",4,"ngIf"],["mat-stroked-button","",1,"btn-primary","br-0","addon",3,"click"],["appSkeletonLoading","",1,"skeletonAnimation","mt-8",3,"appSkeletonLoading","click"],[1,"row","bg-grey","lter","p-8","c-p","br-2",3,"ngClass"],[1,"col-md-3","p-0"],["width","224","alt","goal icon",1,"maxWidth100","bg-primary",3,"src"],[1,"col-md-9","pr-0","pl-10"],[1,"d-flex","justify-content-between","align-items-center"],[1,"m-0"],[1,"bar"],["class","priority-tag-high f-400 f-12 roboto lh-16",4,"ngIf"],["class","priority-tag-medium f-400 f-12 roboto lh-16",4,"ngIf"],["class","priority-tag-low f-400 f-12 roboto lh-16",4,"ngIf"],["class","priority-tag-completed f-400 f-12 roboto lh-16",4,"ngIf"],[1,"d-flex","justify-content-between","pt-8"],[1,"d-flex","flex-column","pr-10","pl-0"],[1,"m-0","l-18","f-12","text-primitive"],[1,"f-14","m-0"],[1,"d-flex","flex-column","pr-0","pl-4"],[1,"priority-tag-high","f-400","f-12","roboto","lh-16"],[1,"priority-tag-medium","f-400","f-12","roboto","lh-16"],[1,"priority-tag-low","f-400","f-12","roboto","lh-16"],[1,"priority-tag-completed","f-400","f-12","roboto","lh-16"],[1,"relClass"],[1,"bar82",3,"ngClass"],[1,"col-width-78"],[1,"row","posFixedHeader","bb-grey","pt-28"],[1,"col-width-68"],[1,"col-md-8","p-0"],[1,"m-0","text-black","text-capitalize","f-500"],[1,"col-md-4","p-0","d-flex","justify-content-end"],[1,"f-20","f-500","mb-0","roboto","pr-16"],[1,"col-width-31"],[1,"col-md-6","text-right","p-0"],[3,"diameter",4,"ngIf"],["class","col-md-6 text-right p-0",4,"ngIf"],[1,"row","pt-68","column-reverse-1200","responisve-golas"],["appSkeletonLoading","",1,"col-width-68","p-0","pb-44","pt-176-1200","pt-0-992","skeletonAnimation",3,"appSkeletonLoading"],[1,"col-xl-6","col-md-12","pl-0"],[1,"row","pt-28","pt-0-1092"],[1,"col-md-6","p-0"],[1,"f-12","m-0","text-primitive"],[1,"bar",3,"ngClass"],["appFormatNumber","",3,"value",4,"ngIf"],[1,"col-md-6"],["class","pl-8","appFormatNumber","",3,"value",4,"ngIf"],[1,"row","pt-24"],[1,"m-0","text-primitive","f-12"],[1,"custom-progress-bar"],[1,"progress-segment","bg-primary"],["class","progress-segment",3,"ngStyle",4,"ngIf"],[1,"d-flex","justify-content-between"],[1,"pt-8","roboto","w-400","f-12","lh-14","text-primitive"],[1,"pt-8","roboto","w-400","f-12","lh-14","text-primitive","d-flex","justify-content-end"],["class","col-xl-6 col-md-12 p-0 pt-20",4,"ngIf"],[1,"mt-40",3,"ngClass"],[1,"m-0","pb-12",3,"ngStyle"],["cdkDropList","","id","allottedList",1,"hide-placeholder",3,"cdkDropListData","cdkDropListSortingDisabled","cdkDropListDropped","cdkDropListEntered","cdkDropListExited"],[3,"ngClass"],[1,"row","b-a","bg-grey","height40","lter"],[1,"w-35","d-flex","align-items-center","p-8",3,"ngStyle"],[1,"roboto","m-0","text-black","f-400","f-14","nowrap"],[1,"w-15","p-8","bl","d-flex","align-items-center","justify-content-end",3,"ngStyle"],[1,"w-17","d-flex","align-items-center","justify-content-end","p-8","bl",3,"ngStyle"],["matTooltip","This column shows the amount to be received on the date of asset's maturity.",1,"roboto","m-0","text-black","f-400","f-14","nowrap"],[1,"w-15","d-flex","align-items-center","justify-content-end","p-8","bl","br",3,"ngStyle"],["matTooltip","This column shows the approx. amount that will be accumulated at the start of the goal.",1,"roboto","m-0","text-black","f-400","f-14","nowrap"],[1,"w-15","p-8","br","d-flex","align-items-center","justify-content-end",3,"ngStyle"],[1,"w-3","p-0"],["class","row pt-5 pb-5 bl-1 bb-1 br bg-white vai","appSkeletonLoading","",3,"appSkeletonLoading",4,"ngIf"],["class","row height40  bl-1 bb-1 br bg-white text-center",4,"ngIf"],[1,"row","pt-28",3,"hidden"],[1,"col-md-10","p-0"],[1,"m-0","f-500","text-black","pb-8"],[1,"col-md-2","text-right","pr-0"],["mat-button","","class","c-p more-dots-btn",3,"matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],[1,"row","b-a",3,"hidden"],["id","monthly-chart-container-main",1,"col-md-6"],["id","lumpsum-chart-container-main",1,"col-md-6"],["class","col-md-12",4,"ngIf"],["class","row pt-40",4,"ngIf"],["class","overflow-hidden",3,"ngClass",4,"ngIf"],["appSkeletonLoading","",1,"mt-24","skeletonAnimation",3,"appSkeletonLoading"],[1,"col-md-9","p-0"],[1,"m-0","f-500","pb-8"],[1,"m-0","p-8","text-black","f-14","new-lineText","roboto",3,"hidden"],["id","custom-ul",3,"innerHtml"],["class","row pt-24",4,"ngIf"],["class","row b-a",4,"ngIf"],[1,"col-width-31","pr-0","pt-20","pl-0-1200"],["appSkeletonLoading","",1,"col-xl-12","col-lg-5","p-0","d-none-992","skeletonAnimation",3,"appSkeletonLoading"],[1,"imgBoxGoals","overflow-hidden",3,"hidden"],["src","https://res.cloudinary.com/futurewise/image/upload/v1619592698/myplanner/images/svg/pencil-action.svg","class","plan-action edit-goal-icon",3,"click",4,"ngIf"],[1,"bg-primary",3,"src"],[1,"relClass",3,"hidden"],[1,"bar289",3,"ngClass"],["appSkeletonLoading","",1,"col-xl-12","col-lg-7","col-md-12","p-0","skeletonAnimation","pl-15-1200","pl-0-992",3,"appSkeletonLoading"],["id","d-none-992"],[1,"btnBox","relClass","d-none-992",3,"hidden"],[1,"bar36",3,"ngClass"],[1,"btnBox",3,"hidden"],["mat-stroked-button","",1,"in-btn","text-primary","ba-primary",3,"disabled","click"],["width","15","height","15","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg",1,"ml-8"],["d","M10.5717 8.67026C10.3521 8.88981 10.3521 9.24192 10.5717 9.46148C11.4789 10.3687 11.4789 11.8434 10.5717 12.7506L5.80779 17.5145C4.90058 18.4217 3.42585 18.4217 2.51864 17.5145L1.80199 16.7978C0.89478 15.8906 0.89478 14.4159 1.80199 13.5087L6.56587 8.74482C6.78542 8.52527 6.78542 8.17316 6.56587 7.9536C6.34631 7.73405 5.9942 7.73405 5.77465 7.9536L1.01077 12.7175C0.360398 13.3679 0 14.2336 0 15.1533C0 16.0729 0.356255 16.9387 1.01077 17.5891L1.72742 18.3057C2.39851 18.9768 3.28086 19.3123 4.16321 19.3123C5.04557 19.3123 5.92792 18.9768 6.59901 18.3057L11.3629 13.5418C12.7051 12.1997 12.7051 10.0124 11.3629 8.67026C11.1475 8.45071 10.7912 8.45071 10.5717 8.67026Z",1,"svg-primary"],["d","M18.9933 2.4109L18.2766 1.69425C16.9344 0.352079 14.7472 0.352079 13.405 1.69425L8.64115 6.45813C7.29898 7.8003 7.29898 9.98754 8.64115 11.3297C8.8607 11.5493 9.21281 11.5493 9.43237 11.3297C9.65192 11.1102 9.65192 10.758 9.43237 10.5385C8.52516 9.63128 8.52516 8.15655 9.43237 7.24935L14.1962 2.48547C15.1035 1.57826 16.5782 1.57826 17.4854 2.48547L18.202 3.20212C19.1093 4.10933 19.1093 5.58406 18.202 6.49127L13.4382 11.2551C13.2186 11.4747 13.2186 11.8268 13.4382 
112.0464C13.5459 12.1541 13.6909 12.2121 13.8317 12.2121C13.9726 12.2121 14.1175 12.1582 14.2252 12.0464L18.9891 7.28249C19.6395 6.63211 19.9999 5.76633 19.9999 4.84669C19.9999 3.92706 19.6436 3.06128 18.9933 2.4109Z",1,"svg-primary"],["mat-stroked-button","",1,"in-btn-two","text-primary","ba-primary",3,"disabled","click"],["mat-stroked-button","",1,"in-btn","text-primary","ba-primary",3,"click"],["width","15","height","15","viewBox","0 0 15 15","fill","none","xmlns","http://www.w3.org/2000/svg",1,"ml-8"],["d","M6.75 3.75H8.25V5.25H6.75V3.75ZM6.75 6.75H8.25V11.25H6.75V6.75ZM7.5 0C3.36 0 0 3.36 0 7.5C0 11.64 3.36 15 7.5 15C11.64 15 15 11.64 15 7.5C15 3.36 11.64 0 7.5 0ZM7.5 13.5C4.1925 13.5 1.5 10.8075 1.5 7.5C1.5 4.1925 4.1925 1.5 7.5 1.5C10.8075 1.5 13.5 4.1925 13.5 7.5C13.5 10.8075 10.8075 13.5 7.5 13.5Z",1,"svg-primary"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg",1,"ml-8"],["d","M13.2051 15.4286H0.643694C0.465944 15.4286 0.322266 15.5726 0.322266 15.75C0.322266 15.9274 0.465944 16.0714 0.643694 16.0714H13.2051C13.362 17.1601 14.2983 18 15.4294 18C16.6698 18 17.6794 16.9907 17.6794 15.75C17.6794 14.5093 16.6698 13.5 15.4294 13.5C14.2983 13.5 13.362 14.3399 13.2051 15.4286ZM17.0365 15.75C17.0365 16.6362 16.3156 17.3571 15.4294 17.3571C14.5432 17.3571 13.8223 16.6362 13.8223 15.75C13.8223 14.8638 14.5432 14.1429 15.4294 14.1429C16.3156 14.1429 17.0365 14.8638 17.0365 15.75Z",1,"svg-primary"],["d","M6.6528 8.67856H0.643694C0.465944 8.67856 0.322266 8.82256 0.322266 8.99998C0.322266 9.17741 0.465944 9.32141 0.643694 9.32141H6.63255C6.75984 10.4792 7.74341 11.3831 8.9343 11.3831C10.1252 11.3831 11.1088 10.4792 11.236 9.32141H17.358C17.5357 9.32141 17.6794 9.17741 17.6794 8.99998C17.6794 8.82256 17.5357 8.67856 17.358 8.67856H11.2158C11.0303 7.5857 10.0792 6.74998 8.9343 6.74998C7.78937 6.74998 6.83826 7.5857 6.6528 8.67856ZM10.608 9.06652C10.608 9.98934 9.85712 10.7402 8.9343 10.7402C8.01148 10.7402 7.26062 9.98966 7.26062 9.06652C7.26062 8.14338 8.01148 7.39284 8.9343 7.39284C9.85712 7.39284 10.608 8.1437 10.608 9.06652Z",1,"svg-primary"],["d","M2.57227 0C1.33187 0 0.322266 1.00929 0.322266 2.25C0.322266 3.49071 1.33187 4.5 2.57227 4.5C3.70337 4.5 4.63969 3.66011 4.79655 2.57143L17.358 2.57143C17.5357 2.57143 17.6794 2.42743 17.6794 2.25C17.6794 2.07257 17.5357 1.92857 17.358 1.92857L4.79655 1.92857C4.63969 0.839893 3.70337 0 2.57227 0ZM4.17941 2.25C4.17941 3.13618 3.45844 3.85714 2.57227 3.85714C1.68609 3.85714 0.965123 3.13618 0.965123 2.25C0.965123 1.36382 1.68609 0.642857 2.57227 0.642857C3.45844 0.642857 4.17941 1.36382 4.17941 2.25Z",1,"svg-primary"],["d","M6.5169 4.34486H4.96518V2.79313C4.96518 2.62151 4.82615 2.48279 4.65484 2.48279C4.48353 2.48279 4.34449 2.62151 4.34449 2.79313V4.34486H2.79277C2.62146 4.34486 2.48242 4.48358 2.48242 4.6552C2.48242 4.82682 2.62146 4.96555 2.79277 4.96555H4.34449V6.51727C4.34449 6.68889 4.48353 6.82762 4.65484 6.82762C4.82615 6.82762 4.96518 6.68889 4.96518 6.51727V4.96555H6.5169C6.68822 4.96555 6.82725 4.82682 6.82725 4.6552C6.82725 4.48358 6.68822 4.34486 6.5169 4.34486Z",1,"svg-primary"],["d","M15.2064 4.34485H11.4822C11.3109 4.34485 11.1719 4.48357 11.1719 4.65519C11.1719 4.82681 11.3109 4.96554 11.4822 4.96554H15.2064C15.3777 4.96554 15.5167 4.82681 15.5167 4.65519C15.5167 4.48357 15.3777 4.34485 15.2064 4.34485Z",1,"svg-primary"],["d","M9.31034 0H8.68966H0V8.68966V9.31034V18H8.68966H9.31034H18V9.31034V8.68966V0H9.31034ZM0.62069 0.62069H8.68966V8.68966H0.62069V0.62069ZM0.62069 17.3793V9.31034H8.68966V17.3793H0.62069ZM17.3793 17.3793H9.31034V9.31034H17.3793V17.3793ZM9.31034 8.68966V0.62069H17.3793V8.68966H9.31034Z",1,"svg-primary"],["d","M11.4822 14.5862H15.2064C15.3777 14.5862 15.5167 14.4475 15.5167 14.2759C15.5167 14.1042 15.3777 13.9655 15.2064 13.9655H11.4822C11.3109 13.9655 11.1719 14.1042 11.1719 14.2759C11.1719 14.4475 11.3109 14.5862 11.4822 14.5862Z",1,"svg-primary"],["d","M11.4822 12.7241H15.2064C15.3777 12.7241 15.5167 12.5854 15.5167 12.4138C15.5167 12.2422 15.3777 12.1035 15.2064 12.1035H11.4822C11.3109 12.1035 11.1719 12.2422 11.1719 12.4138C11.1719 12.5854 11.3109 12.7241 11.4822 12.7241Z",1,"svg-primary"],["d","M6.42625 11.5737C6.30491 11.4523 6.10877 11.4523 5.98742 11.5737L4.65511 12.906L3.3228 11.5
1737C3.20146 11.4523 3.00532 11.4523 2.88398 11.5737C2.76263 11.695 2.76263 11.8912 2.88398 12.0125L4.21629 13.3448L2.88398 14.6771C2.76263 14.7985 2.76263 14.9946 2.88398 15.116C2.94449 15.1765 3.02394 15.2069 3.10339 15.2069C3.18284 15.2069 3.26229 15.1765 3.3228 15.116L4.65511 13.7836L5.98742 15.116C6.04794 15.1765 6.12739 15.2069 6.20684 15.2069C6.28629 15.2069 6.36574 15.1765 6.42625 15.116C6.5476 14.9946 6.5476 14.7985 6.42625 14.6771L5.09394 13.3448L6.42625 12.0125C6.5476 11.8912 6.5476 11.695 6.42625 11.5737Z",1,"svg-primary"],["mat-stroked-button","","class","in-btn-two text-primary ba-primary",3,"disabled","click",4,"ngIf"],["matTooltip","Download PDF","width","24","height","24","viewBox","0 0 18 18","fill","none","class","c-p","xmlns","http://www.w3.org/2000/svg",3,"click",4,"ngIf"],["class","c-p ml-20","width","19","height","24","viewBox","0 0 19 24","fill","none","xmlns","http://www.w3.org/2000/svg",3,"click",4,"ngIf"],["matTooltip","Download PDF","width","24","height","24","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg",1,"c-p",3,"click"],["d","M16 9V16H2V9H0V18H18V9H16ZM10 9.67L12.59 7.09L14 8.5L9 13.5L4 8.5L5.41 7.09L8 9.67V0H10V9.67Z",1,"svg-primary"],["width","19","height","24","viewBox","0 0 19 24","fill","none","xmlns","http://www.w3.org/2000/svg",1,"c-p","ml-20",3,"click"],["d","M1.31868 21.3333C1.31868 22.8 2.50549 24 3.95604 24H14.5055C15.956 24 17.1429 22.8 17.1429 21.3333V5.33333H1.31868V21.3333ZM3.95604 8H14.5055V21.3333H3.95604V8ZM13.8462 1.33333L12.5275 0H5.93407L4.61538 1.33333H0V4H18.4615V1.33333H13.8462Z",1,"svg-primary"],[3,"diameter"],[1,"d-flex","justify-content-end"],[1,""],[1,"c-p","downloadPdfIcon","ba-primary"],["width","20","height","16","viewBox","0 0 20 16","fill","none","xmlns","http://www.w3.org/2000/svg",1,"c-p"],["d","M0.676925 16C0.480694 16 0.318816 15.9068 0.19129 15.7203C0.0637631 15.5338 0 15.2974 0 15.0111C0 14.7241 0.0637631 14.4874 0.19129 14.3009C0.318816 14.1144 0.480694 14.0212 0.676925 14.0212C0.872685 14.0212 1.03433 14.1144 1.16185 14.3009C1.28938 14.4874 1.35314 14.7241 1.35314 15.0111C1.35314 15.2974 1.28938 15.5338 1.16185 15.7203C1.03433 15.9068 0.872685 16 0.676925 16ZM0.676925 8.9889C0.480694 8.9889 0.318816 8.896 0.19129 8.71019C0.0637631 8.5237 0 8.28697 0 8C0 7.71303 0.0637631 7.4763 0.19129 7.28981C0.318816 7.104 0.480694 7.0111 0.676925 7.0111C0.872685 7.0111 1.03433 7.104 1.16185 7.28981C1.28938 7.4763 1.35314 7.71303 1.35314 8C1.35314 8.28697 1.28938 8.5237 1.16185 8.71019C1.03433 8.896 0.872685 8.9889 0.676925 8.9889ZM0.676925 1.97884C0.480694 1.97884 0.318816 1.88559 0.19129 1.6991C0.0637631 1.5126 0 1.27587 0 0.988903C0 0.702624 0.0637631 0.466236 0.19129 0.279742C0.318816 0.0932472 0.480694 0 0.676925 0C0.872685 0 1.03433 0.0932472 1.16185 0.279742C1.28938 0.466236 1.35314 0.702624 1.35314 0.988903C1.35314 1.27587 1.28938 1.5126 1.16185 1.6991C1.03433 1.88559 0.872685 1.97884 0.676925 1.97884ZM4.47095 15.7419V14.2792H20V15.7419H4.47095ZM4.47095 8.73084V7.26916H20V8.73084H4.47095ZM4.47095 1.72077V0.258065H20V1.72077H4.47095Z",1,"svg-primary"],[1,"mb-10","ml-10",3,"routerLink"],[1,"c-p","downloadPdfIcon"],["src","https://res.cloudinary.com/futurewise/image/upload/v1663563382/myplanner/images/svg/V2.svg"],["appFormatNumber","",1,"pl-8",3,"value"],[1,"progress-segment",3,"ngStyle"],[1,"col-xl-6","col-md-12","p-0","pt-20"],[1,"row","bg-grey","lter","b-a"],[1,"col-md-5","p-0"],[1,"m-0","text-black","roboto","p-2","f-500","br","bb","pt-8","pb-8",3,"ngStyle"],[1,"m-0","text-black","roboto","p-12","br","bb","pt-6","pb-6"],[1,"m-0","text-black","roboto","p-12","br","pt-6","pb-6"],[1,"m-0","text-black","roboto","p-12","f-500","text-right","bb","pt-8","pb-8",3,"ngStyle"],[1,"m-0","relClass","text-black","roboto","p-12","bg-white","text-right","bb","pt-6","pb-6","nowrap"],["appFormatNumber","",3,"ngStyle","value",4,"ngIf"],["class","bar height24","style","display: inline-block;",3,"ngStyle",4,"ngIf"],[1,"m-0","text-black","relClass","roboto","p-12","text-right","bg-white","pt-6","pb-6","nowrap"],["class","bar","appFormatNumber","",3,"ngStyle","value",4,"ngIf"],[1,"m-0","text-black","roboto","p-12","text-right","f-500","bb","pt-8","pb-8",3,"ngStyle"],[1,"m-0","text-black","relClass","roboto","text-right","p-12","bg-white","bb","pt-6","pb-6","nowrap"],[1,"m-0","text-black","relClass","text-right","roboto","p-12","bg-white","pt-6","pb-6","nowrap"],["appFormatNumber","",3,"ngStyle","value"],[1,"bar","height24",2,"display","inline-block",3,"ngStyle"],["appFormatNumber","",1,"bar",3,"ngStyle","value"],[1,"m-0","text-black","roboto","p-12","f-500","br","bb",3,"ngStyle"],[1,"m-0","text-black","roboto","p-12","br","bb",3,"ngStyle"],[1,"m-0","text-black","roboto","p-12","f-500","bb",3,"ngStyle"],[1,"m-0","relClass","text-black","roboto","p-12","bg-white","bb"],[1,"m-0","text-black","relClass","roboto","p-12","bg-white","bb"],["appSkeletonLoading","",1,"row","pt-5","pb-5","bl-1","bb-1","br","bg-white","vai",3,"appSkeletonLoading"],[1,"w-35","d-flex","align-items-center","relClass"],[1,"bar","height24"],[1,"w-15","d-flex","align-items-center","relClass"],[1,"w-17","d-flex","align-items-center","relClass"],[1,"w-3","d-flex","align-items-center","justify-content-between","relClass"],["src","https://res.cloudinary.com/futurewise/image/upload/v1619592625/myplanner/images/svg/dot-menu.svg","width","4","height","16","alt","menu icon",1,"c-p"],[1,"row","bl-1","bb-1","br","bg-white"],[1,"w-35","p-8","d-flex","align-items-center"],[1,"mb-0","roboto","c-p",3,"matTooltip","ngStyle"],[1,"w-15","p-8","bl","d-flex","align-items-center","justify-content-end"],["appFormatNumber","",1,"mb-0","roboto",3,"ngStyle","formatWithSymbol"],[1,"w-17","d-flex","align-items-center","justify-content-end","p-8","bl"],["appFormatNumber","",1,"m-0","roboto",3,"ngStyle","formatWithSymbol"],[1,"w-15","d-flex","align-items-center","justify-content-end","p-8","bl","br"],[1,"w-15","p-8","relClass","br","d-flex","align-items-center","justify-content-end"],["appFormatNumber","",1,"mb-0","roboto",3,"ngStyle","value"],[1,"w-3","p-8","relClass","d-flex","align-items-center","justify-content-end"],["class","c-p","src","https://res.cloudinary.com/futurewise/image/upload/v1619592625/myplanner/images/svg/dot-menu.svg",3,"matMenuTriggerFor",4,"ngIf"],["src","https://res.cloudinary.com/futurewise/image/upload/v1619592625/myplanner/images/svg/dot-menu.svg",1,"c-p",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],[1,"row","height40","bl-1","bb-1","br","bg-white","text-center"],[1,"col-md-12","p-0","d-flex","align-items-center","justify-content-center"],["class","pl-10 full-center w-100 f-14",4,"ngIf"],[1,"pl-10","full-center","w-100","f-14"],["mat-button","",1,"c-p","more-dots-btn",3,"matMenuTriggerFor"],[1,"material-icons"],[1,"col-md-12"],[1,"row","pt-40"],[1,"m-0","pb-12"],[1,"overflow-hidden",3,"ngClass"],["mat-table","","id","tbs","appSkeletonLoading","",1,"skeletonAnimation",3,"dataSource","appSkeletonLoading"],["matColumnDef","select"],["style","font-weight:bold","class","br  ","mat-header-cell","",3,"ngStyle",4,"matHeaderCellDef"],["class","br","mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","milestone"],["style","font-weight:bold","mat-header-cell","","class","br text-left",3,"ngStyle",4,"matHeaderCellDef"],["mat-cell","","class","br text-left",3,"ngStyle",4,"matCellDef"],["matColumnDef","amount"],["style","font-weight:bold","mat-header-cell","","class","br text-right",3,"ngStyle",4,"matHeaderCellDef"],["mat-cell","","class","br text-right",3,"ngStyle",4,"matCellDef"],["matColumnDef","fv"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","row p-16 bl-1 bb-1 br bg-white text-center",4,"ngIf"],["mat-header-cell","",1,"br",2,"font-weight","bold",3,"ngStyle"],["mat-cell","",1,"br",3,"ngStyle"],["mat-header-cell","",1,"br","text-left",2,"font-weight","bold",3,"ngStyle"],["mat-cell","",1,"br","text-left",3,"ngStyle"],["mat-header-cell","",1,"br","text-right",2,"font-weight","bold",3,"ngStyle"],["mat-cell","",1,"br","text-right",3,"ngStyle"],["appFormatNumber",""],["mat-header-row",""],["mat-row",""],[1,"row","p-16","bl-1","bb-1","br","bg-white","text-center"],["mat-stroked-button","",1,"in-btn","text-primary","ba-primary","text-center","mt-8",3,"click"],["matColumnDef","goalYear"],["matColumnDef","status"],["matColumnDef","goalFv"],["matColumnDef","percentage"],[1,"row","b-a"],["appSkeletonLoading","",1,"col-md-8","skeletonAnimation",3,"appSkeletonLoading"],[1,"row","pt-16","relClass"],[1,"m-0","f-12","text-primitive"],[1,"col-md-4","pl-0"],["
1id","piechartMutualFund"],["class","row text-center",4,"ngIf"],[1,"row","text-center"],["class","col-md-12 ",4,"ngIf"],[1,"m-0","f-12","text-black"],[1,"hw-10","mr-4","bg-primary","iflex"],[1,"hw-10","mr-4","bg-warning","iflex"],["src","https://res.cloudinary.com/futurewise/image/upload/v1619592698/myplanner/images/svg/pencil-action.svg",1,"plan-action","edit-goal-icon",3,"click"],[1,"row","d-none-768"],[1,"col-md-12","emptyGoalmt","d-flex","align-items-center","justify-content-center"],[1,"emptyImg"],["src","https://res.cloudinary.com/futurewise/image/upload/v1704959609/My-Planner_Whitewashed/empty-goal-icon_2-w_2.3-svg.svg",1,"bg-primary"],[1,"textEmpty"],[1,"m-0","pb-10"],["rowspan","2",2,"text-align","left","vertical-align","top","width","50%"],["style","margin: 0px; font-weight: 600; font-size: 18px; white-space: nowrap; color: #000000;",3,"ngStyle",4,"ngIf"],["width","120px",3,"src"],["width","140px",3,"src"],[2,"margin","0px","font-weight","600","font-size","18px","white-space","nowrap","color","#000000",3,"ngStyle"],[2,"margin","0px","font-weight","500","font-size","12px","margin-bottom","5px","white-space","nowrap","color","#333333",3,"ngStyle"],[2,"margin","0px","font-weight","600","font-size","16px","color","#000000",3,"ngStyle"],[2,"margin","0px","font-weight","500","font-size","12px","color","#333333",3,"ngStyle"],["style","margin: 0px; font-size: 14px; margin-bottom: 5px; margin-top: 5px;color: #121212;",3,"ngStyle",4,"ngIf"],[2,"margin","0px","font-size","14px","margin-bottom","5px","margin-top","5px","color","#121212",3,"ngStyle"],[2,"margin","0px","font-size","14px","margin-bottom","5px","color","#121212",3,"ngStyle"],[2,"margin-bottom","0px","padding-top","25px","font-size","16px","font-weight","600",3,"ngStyle"],["cellpadding","0","cellspacing","0",2,"border-collapse","collapse","margin","10px 0px 0px 0px","font-size","16px","border","1px solid #404040","width","100%","border","1px solid #404040","width","100%"],[2,"background","#F5F7F7"],[2,"border-bottom","1px solid #404040","padding","14px","border-left","1px solid #404040",3,"ngStyle"],[2,"border-bottom","1px solid #404040","border-left","1px solid #404040","padding","14px","text-align","right",3,"ngStyle"],[2,"border-left","1px solid #404040","border-bottom","1px solid #404040","padding","14px","text-align","right",3,"ngStyle"],[2,"padding","14px","background","#F5F7F7","border-bottom","1px solid #404040","border-right","1px solid #404040","border-left","1px solid #404040",3,"ngStyle"],[2,"padding","14px","border-bottom","1px solid #404040","text-align","right",3,"ngStyle"],["appFormatNumber","",3,"formatWithSymbol"],[2,"padding","14px","border-bottom","1px solid #404040","border-left","1px solid #404040","text-align","right",3,"ngStyle"],[2,"padding","14px","background","#F5F7F7","border-top","1px solid #404040","border-right","1px solid #404040","border-left","1px solid #404040",3,"ngStyle"],[2,"padding","14px","text-align","right",3,"ngStyle"],[2,"border-left","1px solid #404040","padding","14px","text-align","right",3,"ngStyle"],[2,"border-bottom","1px solid #404040","padding","14px","border-right","1px solid #404040",3,"ngStyle"],[2,"border-bottom","1px solid #404040","padding","14px","text-align","right","border-right","1px solid #404040",3,"ngStyle"],[2,"border-bottom","1px solid #404040","padding","14px","border-right","1px solid #404040","border-left","1px solid #404040","text-align","right",3,"ngStyle"],[2,"padding","14px","border-bottom","1px solid #404040","text-align","right","border-right","1px solid #404040",3,"ngStyle"],[2,"padding","14px","text-align","right","border-right","1px solid #404040",3,"ngStyle"],[2,"padding","8px","border-top","1px solid #404040","border-right","1px solid #404040",3,"ngStyle"],[2,"padding","8px","text-align","right","border-top","1px solid #404040","border-right","1px solid #404040",3,"ngStyle"],["appFormatNumber","",1,"mb-0","roboto",3,"formatWithSymbol"],["appFormatNumber","",1,"m-0","roboto",3,"formatWithSymbol"],[2,"padding","8px","border-top","1px solid #404040","text-align","right","border-right","1px solid #404040",3,"ngStyle"],["appFormatNumber","",1,"mb-0","roboto","pr-48",3,"shouldRoundOff","value"],["colspan","5",2,"padding","8px","border-top","1px solid #404040","text-align","center","font-size","14px",3,"ngStyle"],[2,"font-size","18px","font-weight","600","padding-top","25px","padding-bottom","15px","margin","0px",3,"ngStyle"],["cellpadding","0","cellspacing","0",2,"width","100%","page-break-after","auto","border","1p
1x solid #404040"],[2,"padding-left","8px","width","70%","padding-top","12px"],[2,"width","100%"],[2,"color","#000"],[2,"text-align","left","font-weight","normal","; font-family","proxima-nova, sans-serif","font","size 12px"],[2,"font-size","13px",3,"ngStyle"],[2,"color","#000",3,"ngStyle"],["appFormatNumber","",2,"color","#000","font-size","15px",3,"ngStyle","value"],[2,"text-align","left","font-weight","normal"],[2,"text-align","left","font-weight","normal","padding-top","15px"],[2,"font-size","15px","color","#000",3,"ngStyle"],[2,"width","30%","vertical-align","top"],["cellpadding","0","cellspacing","0",2,"border-collapse","collapse","width","100%","font-size","16px"],[2,"padding","8px","background","#f5f7f7","border-left","1px solid #404040","border-right","1px solid #404040","border-bottom","1px solid #404040","border-top","1px solid #404040",3,"ngStyle"],[2,"padding","8px","background","#f5f7f7","border-right","1px solid #404040","border-left","1px solid #404040","text-align","right","border-bottom","1px solid #404040","border-top","1px solid #404040",3,"ngStyle"],[2,"padding","8px","background","#f5f7f7","border-right","1px solid #404040","text-align","right","border-bottom","1px solid #404040","border-top","1px solid #404040",3,"ngStyle"],[2,"padding","8px","text-align","left","border-right","1px solid #404040","border-left","1px solid #404040","border-bottom","1px solid #404040",3,"ngStyle"],[2,"padding","8px","text-align","right","border-right","1px solid #404040","border-bottom","1px solid #404040",3,"ngStyle"],[2,"font-size","18px","font-weight","600",3,"ngStyle"],[2,"padding","8px","background","#f5f7f7","border-right","1px solid #404040","text-align","right","border-bottom","1px solid #404040","border-left","1px solid #404040","border-top","1px solid #404040",3,"ngStyle"],[2,"padding","8px","text-align","left","border-left","1px solid #404040","border-right","1px solid #404040","border-bottom","1px solid #404040",3,"ngStyle"],["cellpadding","0","cellspacing","0",2,"width","100%","font-size","16px","border","1px solid #404040"],[2,"padding","8px","border-right","1px solid #404040","border-bottom","1px solid #404040",3,"ngStyle"],[2,"padding","8px","border-right","1px solid #404040","border-bottom","1px solid #404040","text-align","right",3,"ngStyle"],["colspan","1",2,"padding","8px","background","#f5f7f7","border-bottom","1px solid #404040",3,"ngStyle"],["colspan","2",2,"padding","8px","background","#f5f7f7","border-bottom","1px solid #404040","border-right","1px solid #404040",3,"ngStyle"],["colspan","2",2,"padding","8px","background","#f5f7f7","border-bottom","1px solid #404040","border-right","1px solid #404040","text-align","center",3,"ngStyle"],["colspan","2",2,"padding","8px","background","#f5f7f7","border-bottom","1px solid #404040","text-align","center",3,"ngStyle"],[2,"padding","8px","background","#f5f7f7","border-right","1px solid #404040","border-bottom","1px solid #404040",3,"ngStyle"],[2,"padding","8px","background","#f5f7f7","text-align","right","border-right","1px solid #404040","border-bottom","1px solid #404040",3,"ngStyle"],[1,"pt-70","pb-12"],["class","skeletonAnimation ","appSkeletonLoading","",3,"appSkeletonLoading",4,"ngIf"],["class","row full-center h-80vh ",4,"ngIf"],["class","pb-48",4,"ngIf"],["appSkeletonLoading","",1,"skeletonAnimation",3,"appSkeletonLoading"],[1,"relClass","mb-20"],[1,"bar324","height324"],[1,"row","full-center","h-80vh"],[1,"col-12","text-center","pt-24","pb-24"],["src","/assets/images/svg/documents-empty-states.svg"],[1,"m-0","f-14","roboto","f-400","pt-20","pb-20","text-center"],[1,"pb-48"],["class","p-12 ",3,"click",4,"ngFor","ngForOf"],[1,"p-12",3,"click"],[1,"w-100","bg-grey","lter","br-4","b-primitive"],[1,"mob-education","mt-0",3,"ngStyle"],[1,"row","pt-16"],[1,"col-2"],["class","br-50","width","36","height","36","src","/assets/images/svg/others.svg","alt","IFAnow",4,"ngIf"],["src","https://res.cloudinary.com/futurewise/image/upload/v1621339537/myplanner/images/svg/webp/man-profile.webp","width","36","height","36","alt","IFAnow",4,"ngIf"],["width","36","height","36","src","https://res.cloudinary.com/futurewise/image/upload/v1621320416/myplanner/images/svg/webp/women-profile-icon.webp","width","36","height","36","alt","IFAnow",4,"ngIf"],["class","w36 h-36","src","https://res.cloudinary.com/futurewise/image/upload/v1619592734/myplanner/images/svg/son-profile.svg","width","36","height","36","alt","IFAnow",4,"ngIf"],["class","w36 h-36","src","/assets/images/svg/daughter-profile.svg","width","36","height","36","alt","IFAnow",4,"ngIf"],["class","w28","src","/assets/images/svg/mother-profile.svg","width","36","height","36","alt","IFAnow",4,"ngIf"],["class","w36","src","/assets/images/svg/father-profile.svg","width","36","height","36","alt","IFAnow",4,"ngIf"],[1,"col-10"],[1,"m-0","pt-4","f-500"],[1,"m-0","pt-8"],[1,"row","pt-20"],[1,"col-8","mob-progress"],[1,"m-0","pt-6"],["mode","determinate","class","mt-12",3,"value",4,"ngIf"],["mode","determinate","class","mt-12",4,"ngIf"],[1,"pt-10","m-0","f-12"],[1,"col-4"],["width","36","height","36","src","/assets/images/svg/others.svg","alt","IFAnow",1,"br-50"],["src","https://res.cloudinary.com/futurewise/image/upload/v1621339537/myplanner/images/svg/webp/man-profile.webp","width","36","height","36","alt","IFAnow"],["width","36","height","36","src","https://res.cloudinary.com/futurewise/image/upload/v1621320416/myplanner/images/svg/webp/women-profile-icon.webp","width","36","height","36","alt","IFAnow"],["src","https://res.cloudinary.com/futurewise/image/upload/v1619592734/myplanner/images/svg/son-profile.svg","width","36","height","36","alt","IFAnow",1,"w36","h-36"],["src","/assets/images/svg/daughter-profile.svg","width","36","height","36","alt","IFAnow",1,"w36","h-36"],["src","/assets/images/svg/mother-profile.svg","width","36","height","36","alt","IFAnow",1,"w28"],["src","/assets/images/svg/father-profile.svg","width","36","height","36","alt","IFAnow",1,"w36"],["mode","determinate",1,"mt-12",3,"value"],["mode","determinate",1,"mt-12"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t.YNc(1,vl,12,3,"div",1),t.qZA(),t.YNc(2,Dl,10,1,"div",2),t.TgZ(3,"html",3,4)(5,"body")(6,"div",5)(7,"table",6),t.YNc(8,Al,6,3,"tr",7),t.YNc(9,Gl,6,3,"tr",7),t.TgZ(10,"tr")(11,"td",8),t.YNc(12,Sl,2,4,"p",9),t.YNc(13,Ml,2,6,"p",9),t.YNc(14,Ol,2,4,"p",10),t.YNc(15,ql,2,4,"p",10),t.TgZ(16,"p",11),t._uU(17),t.ALo(18,"date"),t.qZA()()()(),t.TgZ(19,"table",12)(20,"tr")(21,"td",13),t.YNc(22,Ul,2,4,"span",14),t.YNc(23,Il,2,4,"span",15),t.qZA(),t.TgZ(24,"td",16)(25,"p",17),t._uU(26," Goal plan "),t.qZA()()(),t.YNc(27,El,3,1,"tr",7),t.TgZ(28,"tr")(29,"td",13),t.YNc(30,Jl,2,4,"p",18),t.qZA()()()(),t.TgZ(31,"table",19)(32,"tr")(33,"td")(34,"table",20)(35,"tr")(36,"td")(37,"h3",21),t._uU(38),t.YNc(39,Nl,4,12,"span",22),t.qZA()(),t.TgZ(40,"td",23)(41,"h3",24),t._uU(42),t.qZA()()()()()(),t.TgZ(43,"tr",25)(44,"td",25)(45,"table",26)(46,"tr")(47,"td",27),t._UZ(48,"img",28),t.qZA(),t.TgZ(49,"td",29)(50,"table",30)(51,"tr")(52,"td")(53,"p",31),t._uU(54," Goal Amount "),t.qZA(),t.TgZ(55,"h5",32),t._uU(56," \u20b9 "),t._UZ(57,"span",33),t.qZA()(),t.TgZ(58,"td")(59,"p",31),t._uU(60," Achieved "),t.qZA(),t.TgZ(61,"h5",32),t._uU(62," \u20b9 "),t._UZ(63,"span",33),t.qZA()()()(),t.TgZ(64,"table",34)(65,"tr")(66,"td")(67,"div",35),t._UZ(68,"div",36)(69,"div",37),t.qZA(),t.TgZ(70,"div",38)(71,"span"),t._uU(72),t.ALo(73,"number"),t.qZA(),t._uU(74," % Achieved "),t.qZA(),t.TgZ(75,"div",39)(76,"span"),t._uU(77),t.ALo(78,"number"),t.qZA()()()()(),t.YNc(79,Vl,2,3,"p",40),t.YNc(80,Fl,21,34,"table",41),t.YNc(81,Yl,2,3,"p",40),t.YNc(82,Rl,17,23,"table",41),t.qZA()()()()()(),t.TgZ(83,"div")(84,"p",42),t._uU(85,"Assets allocated to this goal "),t.qZA(),t.TgZ(86,"table",43)(87,"tr")(88,"td",44),t._uU(89," Description"),t.qZA(),t.TgZ(90,"td",45),t._uU(91," Current Value"),t.qZA(),t.TgZ(92,"td",46),t._uU(93," Maturity Value"),t.qZA(),t.TgZ(94,"td",46),t._uU(95," Projected FV"),t.qZA(),t.TgZ(96,"td",46),t._uU(97," Allocated %"),t.qZA()(),t.YNc(98,Kl,12,21,"tr",47),t.YNc(99,kl,2,3,"td",48),t.qZA()(),t.TgZ(100,"div",49)(101,"table",50)(102,"tr")(103,"td")(104,"p",51),t._uU(105,"Planner notes "),t.qZA(),t.TgZ(106,"div",52)(107,"div",53)(108,"div",54)(109,"div",55),t._UZ(110,"p",56),t.qZA(),t._UZ(111,"div",57),t.qZA()()()()()()(),t.YNc(112,Bl,3,3,"div",7),t.YNc(113,jl,53,60,"div",7),t.TgZ(114,"div")(115,"table",58),t.YNc(116,zl,7,5,"tr",7),t.qZA()(),t.TgZ(117,"div")(118,"table",59),t.YNc(119,ta,7,5,"tr",7),t.qZA()(),t.YNc(120,la,
117,20,"div",7),t.YNc(121,ca,44,75,"div",7),t.qZA()(),t.TgZ(122,"div",60),t.YNc(123,Aa,4,3,"div",61),t._UZ(124,"app-mobile-footer",62),t.qZA()),2&e&&(t.Q6J("ngClass",t.VKq(65,Pa,null==a.finPlanObj?null:a.finPlanObj.hideForFinPlan)),t.xp6(1),t.Q6J("ngIf",a.allGoals&&a.allGoals.length>0),t.xp6(1),t.Q6J("ngIf",0==a.allGoals.length&&!a.isLoading),t.xp6(6),t.Q6J("ngIf",2===(null==a.appearancePortfolio?null:a.appearancePortfolio.advisorOrOrganisation)),t.xp6(1),t.Q6J("ngIf",1===(null==a.appearancePortfolio?null:a.appearancePortfolio.advisorOrOrganisation)),t.xp6(3),t.Q6J("ngIf",a.financialPlan&&a.advisorTagline),t.xp6(1),t.Q6J("ngIf",a.advisorTagline&&a.arnRiaNumber&&a.arnRiaType),t.xp6(1),t.Q6J("ngIf",a.financialPlan&&(null==a.financialPlan?null:a.financialPlan.email)),t.xp6(1),t.Q6J("ngIf",a.financialPlan&&(null==a.financialPlan?null:a.financialPlan.mobile)),t.xp6(1),t.Q6J("ngStyle",t.VKq(67,m,null==a.colorData?null:a.colorData.colorYourDetailPdf)),t.xp6(1),t.hij(" Report as on: ",t.xi3(18,56,a.reportDate,"d-MMM-y")," "),t.xp6(2),t.Q6J("ngStyle",null!=a.clientDetailsPdf&&a.clientDetailsPdf.mobile&&null!=a.clientDetailsPdf&&a.clientDetailsPdf.email?"":t.DdM(69,Ca)),t.xp6(3),t.Q6J("ngIf",null==a.clientDetailsPdf?null:a.clientDetailsPdf.display_name),t.xp6(1),t.Q6J("ngIf",null==a.clientDetailsPdf?null:a.clientDetailsPdf.pan),t.xp6(2),t.Q6J("ngStyle",t.VKq(70,m,null==a.colorData?null:a.colorData.colorReportNamePdf)),t.xp6(2),t.Q6J("ngIf",(null==a.clientDetailsPdf?null:a.clientDetailsPdf.mobile)&&(null==a.clientDetailsPdf?null:a.clientDetailsPdf.email)),t.xp6(3),t.Q6J("ngIf",null==a.clientDetailsPdf?null:a.clientDetailsPdf.email),t.xp6(7),t.Q6J("ngStyle",t.VKq(72,wa,null==a.colorData?null:a.colorData.colorReportNamePdf)),t.xp6(1),t.hij(" ",a.singleGoalData?a.singleGoalData.goalName:"-"," "),t.xp6(1),t.Q6J("ngIf",0!==(null==a.singleGoalData?null:a.singleGoalData.priorityFlag)),t.xp6(2),t.Q6J("ngStyle",t.VKq(74,m,null==a.colorData?null:a.colorData.colorReportNamePdf)),t.xp6(1),t.hij(" ",a.singleGoalData?a.singleGoalData.year:"-"," "),t.xp6(6),t.Q6J("ngStyle",t.VKq(76,Dt,a.primaryColor))("src",a.singleGoalData?a.singleGoalData.img:"",t.LSH),t.xp6(9),t.Q6J("value",a.singleGoalData?null==a.singleGoalData||null==a.singleGoalData.dashboardData?null:a.singleGoalData.dashboardData.futureValue:"0"),t.xp6(6),t.Q6J("value",a.singleGoalData?null==a.singleGoalData||null==a.singleGoalData.dashboardData?null:a.singleGoalData.dashboardData.achievedValue:"0"),t.xp6(5),t.Q6J("ngStyle",t.VKq(78,Ae,a.averageAchievedPercent>100?"100%":a.averageAchievedPercent+"%")),t.xp6(1),t.Q6J("ngStyle",t.VKq(80,Ae,(null==a.singleGoalData||null==a.singleGoalData.dashboardData?null:a.singleGoalData.dashboardData.goalProgress)>100?"100%":(null==a.singleGoalData||null==a.singleGoalData.dashboardData?null:a.singleGoalData.dashboardData.goalProgress)+"%")),t.xp6(3),t.hij(" ",t.xi3(73,59,null==a.singleGoalData||null==a.singleGoalData.dashboardData?null:a.singleGoalData.dashboardData.goalProgress,"1.0-2")," "),t.xp6(5),t.hij(" ",t.xi3(78,62,a.averageAchievedPercent,"1.0-2"),"% Achievable "),t.xp6(2),t.Q6J("ngIf",1==(null==a.selectedGoal||null==a.selectedGoal.remainingData?null:a.selectedGoal.remainingData.savingStatus)),t.xp6(1),t.Q6J("ngIf",1==(null==a.selectedGoal||null==a.selectedGoal.remainingData?null:a.selectedGoal.remainingData.savingStatus)),t.xp6(1),t.Q6J("ngIf",2==(null==a.selectedGoal||null==a.selectedGoal.remainingData?null:a.selectedGoal.remainingData.savingStatus)),t.xp6(1),t.Q6J("ngIf",2==(null==a.selectedGoal||null==a.selectedGoal.remainingData?null:a.selectedGoal.remainingData.savingStatus)),t.xp6(2),t.Q6J("ngStyle",t.VKq(82,m,null==a.colorData?null:a.colorData.colorReportNamePdf)),t.xp6(4),t.Q6J("ngStyle",t.WLB(84,h,null==a.colorData?null:a.colorData.bgColorpdf,null==a.colorData?null:a.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(87,h,null==a.colorData?null:a.colorData.bgColorpdf,null==a.colorData?null:a.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(90,h,null==a.colorData?null:a.colorData.bgColorpdf,null==a.colorData?null:a.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(93,h,null==a.colorData?null:a.colorData.bgColorpdf,null==a.colorData?null:a.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngStyle",t.WLB(96,h,null==a.colorData?null:a.colorData.bgColorpdf,null==a.colorData?null:a.colorData.colorTextpdf)),t.xp6(2),t.Q6J("ngForOf",a.singleGoalData.goalAssetAllocation),t.xp6(1),t.Q6J("ngIf",a.singleGoalData&&0==a.singleGoalData.goalAssetAllocation.length),t.xp6(1),t.Q6J("hidden",!a.goalPlannerNotes),t.xp6(4),t.Q6J("ngStyle",t.VKq(99,m,null==a.colorData?null:a.colorData.colorReportNamePdf)),t.xp6(5),t.Q6J("hidden",a.isLoadingGoals),t.xp6(1),t.Q6J("innerHtml",a.goalPlannerNotes,t.oJD),t.xp6(1),t.Q6J("ngClass",t.VKq(101,Ut,a.isLoadingGoals))("hidden",!a.isLoadingGoals),t.xp6(1),t.Q6J("ngIf",null==a.selectedGoal||null==a.selectedGoal.remainingData?null:a.selectedGoal.remainingData.loan),t.xp6(1),t.Q6J("ngIf",null==a.selectedGoal||null==a.selectedGoal.remainingData?null:a.selectedGoal.remainingData.loan),t.xp6(3),t.Q6J("ngIf",1==a.singleGoalData.goalType),t.xp6(3),t.Q6J("ngIf",1!=a.singleGoalData.goalType),t.xp6(1),t.Q6J("ngIf",1==a.singleGoalData.goalType&&a.dataSource1.length>0),t.xp6(1),t.Q6J("ngIf",5==a.singleGoalData.goalType||6==a.singleGoalData.goalType),t.xp6(2),t.Q6J("ngIf",!a.showGoal),t.xp6(1),t.Q6J("activeTab",a.activeTab))},dependencies:[ct.mk,ct.sg,ct.O5,ct.PC,pt.rH,D.lW,L.VK,L.OP,L.p6,_.pW,v.Ou,x.BZ,x.fO,x.as,x.w1,x.Dz,x.nj,x.ge,x.ev,x.XQ,x.Gk,E.gM,gt.d,xt.R,lt.Wj,st.V,ct.JJ,ct.uU],styles:['.in-btn[_ngcontent-%COMP%]{font-size:14px!important;border-radius:2px!important;width:148px;height:36px;padding:0!important;text-align:left;padding:0 0 0 10px}.in-btn[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-right:10px}.in-btn-two[_ngcontent-%COMP%]{font-size:14px!important;color:#008fff;border-radius:2px!important;width:150px;text-align:left;padding:0!important;height:36px}.in-btn-two[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-right:10px}.col-width-22[_ngcontent-%COMP%]{flex:0 0 22%;max-width:22%;padding-left:10px;padding-right:10px}.col-width-78[_ngcontent-%COMP%]{flex:0 0 78%;max-width:78%;padding-left:15px;padding-right:15px}.maxWidth100[_ngcontent-%COMP%]{max-width:100%}.hide-placeholder[_ngcontent-%COMP%]   .cdk-drag-placeholder[_ngcontent-%COMP%]{visibility:hidden}.hide[_ngcontent-%COMP%]{display:none}.btnBox[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-top:20px}.col-width-31[_ngcontent-%COMP%]{flex:0 0 31.333333%;max-width:31.333333%;padding-left:15px}.col-width-68[_ngcontent-%COMP%]{flex:0 0 68.666667%;max-width:68.666667%}.imgPosition[_ngcontent-%COMP%]{position:absolute}.imgWidth[_ngcontent-%COMP%]{width:100%}.pt-25[_ngcontent-%COMP%]{padding-top:25px}.skeletonAnimation[_ngcontent-%COMP%]   .relClass[_ngcontent-%COMP%]{position:relative}.skeletonAnimation[_ngcontent-%COMP%]   .relClass[_ngcontent-%COMP%]   .bar82[_ngcontent-%COMP%]{background-color:#e7e7e7;width:100%}.skeletonAnimation[_ngcontent-%COMP%]   .relClass[_ngcontent-%COMP%]   .bar82[_ngcontent-%COMP%]:after{position:absolute;transform:translateY(-50%);top:50%;left:0;content:"";display:block;width:100%;height:82px;background-image:linear-gradient(100deg,rgba(255,255,255,0),rgba(255,255,255,.5) 60%,rgba(255,255,255,0) 80%);background-size:100px 82px;background-position:-10px 0;background-repeat:no-repeat;animation:loading 1s infinite}.skeletonAnimation[_ngcontent-%COMP%]   .relClass[_ngcontent-%COMP%]   .bar289[_ng
1content-%COMP%]{background-color:#e7e7e7;width:100%}.skeletonAnimation[_ngcontent-%COMP%]   .relClass[_ngcontent-%COMP%]   .bar289[_ngcontent-%COMP%]:after{position:absolute;transform:translateY(-50%);top:50%;left:0;content:"";display:block;width:100%;height:289px;background-image:linear-gradient(100deg,rgba(255,255,255,0),rgba(255,255,255,.5) 60%,rgba(255,255,255,0) 80%);background-size:100px 289px;background-position:-10px 0;background-repeat:no-repeat;animation:loading 1s infinite}.skeletonAnimation[_ngcontent-%COMP%]   .relClass[_ngcontent-%COMP%]   .bar36[_ngcontent-%COMP%]{background-color:#e7e7e7;width:100%}.skeletonAnimation[_ngcontent-%COMP%]   .relClass[_ngcontent-%COMP%]   .bar36[_ngcontent-%COMP%]:after{position:absolute;transform:translateY(-50%);top:50%;left:0;content:"";display:block;width:100%;height:36px;background-image:linear-gradient(100deg,rgba(255,255,255,0),rgba(255,255,255,.5) 60%,rgba(255,255,255,0) 80%);background-size:100px 36px;background-position:-10px 0;background-repeat:no-repeat;animation:loading 1s infinite}.height36[_ngcontent-%COMP%]{height:36px;width:145px!important}
1.height289[_ngcontent-%COMP%]{height:289px}.height82[_ngcontent-%COMP%]{height:82px}.height24[_ngcontent-%COMP%]{height:24px}.textEmpty[_ngcontent-%COMP%]{margin-left:60px}.emptyGoalmt[_ngcontent-%COMP%]{margin-top:150px}.imgBoxGoals[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}.height40[_ngcontent-%COMP%]{height:40px}.sticky-top[_ngcontent-%COMP%]{position:sticky;top:195px;z-index:2}.posFixedHeader[_ngcontent-%COMP%]{position:fixed;width:76%;z-index:101;background:#fff}.goalFixedHeader[_ngcontent-%COMP%]{position:fixed;width:20.5%;z-index:100;background:#fff}.fix-sticky[_ngcontent-%COMP%]{position:fixed;width:23%}.leftScroll[_ngcontent-%COMP%]{height:520px;overflow-x:auto}.leftScroll[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px}.leftScroll[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#f1f1f1}.leftScroll[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#555}.goal-progress[_ngcontent-%COMP%]{position:relative;margin-top:-25px;color:#fff}.borderDrag[_ngcontent-%COMP%]{border:1px solid #478fff;padding:10px}.more-dots-btn[_ngcontent-%COMP%]{min-width:30px!important;padding:0!important}@media screen and (min-width: 1025px) and (max-width: 1400px){.fix-sticky[_ngcontent-%COMP%]{position:relative;width:auto}.in-btn[_ngcontent-%COMP%]{width:125px}}#piechartMutualFund[_ngcontent-%COMP%]{height:150px!important;width:250px!important}#piechartMutualFund[_ngcontent-%COMP%]   .highcharts-plot-background[_ngcontent-%COMP%]{width:100%!important}#custom-ul[_ngcontent-%COMP%]     ul{padding-left:40px!important;display:flex!important;flex-direction:column!important}.fade-in-goals[_ngcontent-%COMP%]{animation:fadeInAnimation ease .5s;animation-iteration-count:1;animation-fill-mode:forwards}.priority-tag-high[_ngcontent-%COMP%], .priority-tag-low[_ngcontent-%COMP%], .priority-tag-medium[_ngcontent-%COMP%], .priority-tag-completed[_ngcontent-%COMP%]{border:1px solid #83959D;padding:2px 6px;border-radius:4px;color:#83959d}.custom-progress-bar[_ngcontent-%COMP%]{display:flex;height:20px;width:100%;background-color:#f1f1f1;overflow:hidden}.progress-segment[_ngcontent-%COMP%]{height:100%;transition:width .5s ease-in-out}.bg-primary[_ngcontent-%COMP%]{background-color:#008fff}.danger[_ngcontent-%COMP%]{background-color:#008ffb66}']}),l})();const Sa=[{details:"",value:"",month:"",lumpsum:"",imageUrl:"",year:"",goalFV:"",achievedValue:"",equity_monthly:"",debt_monthly:"",lump_equity:"",lump_debt:"",goalAssetAllocation:"",retirementTableValue:"",percentCompleted:""}]},1325:(it,k,g)=>{g.d(k,{a:()=>p});var t=g(76396),s=g(94650);let p=(()=>{class U{constructor(){this._goalsAppearancePortfolio=new t.BehaviorSubject(""),this._goalsPlanClientId=new t.BehaviorSubject(""),this._goalsPlanAdvisorId=new t.BehaviorSubject(""),this._goalsPlanSummaryCache=new t.BehaviorSubject(""),this._goalsListCache=new t.BehaviorSubject(""),this._goalsFMCache=new t.BehaviorSubject(""),this._selectedGoal=new t.BehaviorSubject("")}ngOnDestroy(){}setGoalsPlanSummaryCache(P){this._goalsPlanSummaryCache.next(P)}getGoalsPlanSummaryCache(){return this._goalsPlanSummaryCache.asObservable()}setGoalsListCache(P){this._goalsListCache.next(P)}getGoalsListCache(){return this._goalsListCache.asObservable()}setGoalsFMCache(P){this._goalsFMCache.next(P)}getGoalsFMCache(){return this._goalsFMCache.asObservable()}setClientId(P){this._goalsPlanClientId.next(P)}getClientId(){return this._goalsPlanClientId.asObservable()}setAdvisorId(P){this._goalsPlanAdvisorId.next(P)}setSelectedGoal(P){this._selectedGoal.next(P)}getSelectedGoal(){return this._selectedGoal.asObservable()}setAppearancePortfolio(P){this._goalsAppearancePortfolio.next(P)}getAppearancePortfolio(){return this._goalsAppearancePortfolio.asObservable()}clearCache(){this._goalsAppearancePortfolio.next(""),this._goalsPlanSummaryCache.next(""),this._goalsListCache.next(""),this._goalsFMCache.next(""),this._selectedGoal.next("")}getTextInfinity(P){return P.toString().includes("Infinity")?P.toString().includes("Infinity"):P.toString().includes("NaN")}}return U.\u0275fac=function(P){return new(P||U)},U.\u0275prov=s.Yz7({token:U,factory:U.\u0275fac}),U})()},63312:(it,k,g)=>{g.d(k,{Z:()=>I});var t=g(1996),d=g(93470),s=g.n(d),p=g(94650),U=g(34793),o=g(36895);function P(O,J){1&O&&p._UZ(0,"div",17)}function S(O,J){1&O&&p._UZ(0,"div",18)}function F(O,J){if(1&O&&(p.TgZ(0,"div",12)(1,"p",13),p._uU(2,"Monthly requirement"),p.qZA(),p.YNc(3,P,1,0,"div",14),p.TgZ(4,"p",15),p._uU(5,"Lumpsum requirement"),p.qZA(),p.YNc(6,S,1,0,"div",16),p.qZA()),2&O){const Q=p.oxw();p.xp6(3),p.Q6J("ngIf",Q.showCost),p.xp6(3),p.Q6J("ngIf",Q.showCost)}}function M(O,J){1&O&&(p.TgZ(0,"div"),p._uU(1," Goal requirements are fulfilled"),p.qZA())}let I=(()=>{class O{constructor(Q,N,w){this.router=Q,this.cd=N,this.GoalService=w,this.options={chart:{type:"bar",height:200},plotOptions:{bar:{dataLabels:{enabled:!0,align:"left",inside:!1}}},credits:{enabled:!1},title:{text:""},xAxis:{type:"category",lineWidth:0,tickWidth:0},yAxis:{visible:!1},tooltip:{enabled:!1},legend:{enabled:!1},series:[{data:[]}]},this.donutOptions={chart:{type:"pie",height:170},title:{text:""},tooltip:{pointFormat:" <b>{point.percentage:.1f}%</b>"},credits:{enabled:!1},yAxis:{title:{text:""}}
1,plotOptions:{pie:{shadow:!1}},legend:{floating:!1},series:[]},this.showCost=!1}ngOnInit(){this.costOfDelay=this.GoalService.getCostDetails(),this.showCost=this.costOfDelay.dashboardData.targetValueOfRequiredFVEquity+this.costOfDelay.dashboardData.targetValueOfRequiredFVDebt>10,this.createChart(this.costOfDelay)}close(){this.GoalService.removeCostDetails(),this.router.navigate(["/customer/detail/plan/goals/details"])}createChart(Q){const N=["#5DC644;","#008FFF","#FFC100","#FF6823"],w=Q.remainingData.costDelay;if(!w||!w.hasOwnProperty(0))return void(this.hasCostOfDelay=!1);this.hasCostOfDelay=!0;let K=JSON.parse(JSON.stringify(this.options)),G=JSON.parse(JSON.stringify(this.options)),x=0;for(let y in w)w.hasOwnProperty(y)&&(K.series[0].data.push({y:Math.round(w[y].lumpsum_total),name:y+" years",color:N[x]}),G.series[0].data.push({y:Math.round(w[y].sip_total),name:y+" years",color:N[x]}),x++);setTimeout(()=>{this.cd.detectChanges(),s().chart("monthly-chart-container-main",G),s().chart("lumpsum-chart-container-main",K)},1e3)}}return O.\u0275fac=function(Q){return new(Q||O)(p.Y36(U.F0),p.Y36(p.sBO),p.Y36(t.b))},O.\u0275cmp=p.Xpm({type:O,selectors:[["app-cost-delay-mob"]],decls:13,vars:2,consts:[[1,"bg-grey","lter","pt-80","hmin-100vh","pb-28"],[1,"main-mob-nav"],[1,"row","mob-bg-common","pb-12","mobtop-navfixed"],[1,"col-2","col-md-1",3,"click"],["src","https://res.cloudinary.com/futurewise/image/upload/v1621513313/myplanner/images/svg/webp/mob-white-left-arrow.webp","width","16","height","16","alt","IFAnow",1,"c-p"],[1,"col-7","col-md-7","p-0"],[1,"col-3","col-md-3","text-right"],[1,"d-flex","align-items-center","ml-20","mb-16"],["width","19","src","https://res.cloudinary.com/futurewise/image/upload/v1621597094/myplanner/images/svg/webp/goal-details-icon.webp","alt","",1,"mr-10"],[1,"f-14","mb-0","roboto","f-400"],["class","bg-white br-4 m-8 pt-30 pl-20 pr-20 pb-28",4,"ngIf"],[4,"ngIf"],[1,"bg-white","br-4","m-8","pt-30","pl-20","pr-20","pb-28"],[1,"f-500","roboto","f-14","mb-0"],["id","monthly-chart-container-main",4,"ngIf"],[1,"f-500","roboto","f-14","pt-30","mb-0"],["id","lumpsum-chart-container-main",4,"ngIf"],["id","monthly-chart-container-main"],["id","lumpsum-chart-container-main"]],template:function(Q,N){1&Q&&(p.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),p.NdJ("click",function(){return N.close()}),p._UZ(4,"img",4),p.qZA(),p._UZ(5,"div",5)(6,"div",6),p.qZA()(),p.TgZ(7,"div",7),p._UZ(8,"img",8),p.TgZ(9,"p",9),p._uU(10," Cost of delay "),p.qZA()(),p.YNc(11,F,7,2,"div",10),p.YNc(12,M,2,0,"div",11),p.qZA()),2&Q&&(p.xp6(11),p.Q6J("ngIf",N.showCost),p.xp6(1),p.Q6J("ngIf",!N.showCost))},dependencies:[o.O5]}),O})()},56195:(it,k,g)=>{g.d(k,{b:()=>P});var t=g(1996),d=g(93470),s=g.n(d),p=g(94650),U=g(34793),o=g(21112);let P=(()=>{class S{constructor(M,I){this.router=M,this.GoalService=I}
1ngOnInit(){this.loanList=this.GoalService.getLoanDetails(),this.pieChart("")}close(){this.GoalService.removeLoanDetails(),this.router.navigate(["/customer/detail/plan/goals/details"])}pieChart(M){this.downPayement=parseFloat((this.loanList.downPayment/this.loanList.goalAmount*100).toFixed(2)),this.loanAmount=parseFloat((this.loanList.loanAmount/this.loanList.goalAmount*100).toFixed(2)),s().chart("piechartMutualFund",{chart:{plotBackgroundColor:null,plotBorderWidth:0,plotShadow:!1},title:{text:"",align:"center",verticalAlign:"middle",y:30},exporting:{enabled:!1},tooltip:{pointFormat:" <b>{point.percentage:.1f}%</b>"},plotOptions:{pie:{dataLabels:{enabled:!0,distance:-30,style:{fontWeight:"bold",color:"white"}},startAngle:0,endAngle:360,center:["52%","50%"],size:"70%"}},series:[{type:"pie",name:"Browser share",innerSize:"30%",animation:!1,states:{hover:{enabled:!1}},data:[{name:"Loan amount",y:this.loanAmount,color:"#008FFF",dataLabels:{enabled:!1}},{name:"Down payment",y:this.downPayement,color:"#FFC100",dataLabels:{enabled:!1}}]}]})}}return S.\u0275fac=function(M){return new(M||S)(p.Y36(U.F0),p.Y36(t.b))},S.\u0275cmp=p.Xpm({type:S,selectors:[["app-goal-loan-mob"]],decls:75,vars:8,consts:[[1,"bg-grey","lter","pt-80","hmin-100vh"],[1,"main-mob-nav"],[1,"row","mob-bg-common","pb-12","mobtop-navfixed"],[1,"col-2","col-md-1",3,"click"],["width","16","src","https://res.cloudinary.com/futurewise/image/upload/v1621513313/myplanner/images/svg/webp/mob-white-left-arrow.webp",1,"c-p"],[1,"col-7","col-md-7","p-0"],[1,"m-0","f-18","text-white"],[1,"col-3","col-md-3","text-right"],[1,"d-flex","align-items-center","ml-20","mb-20"],["width","19","src","https://res.cloudinary.com/futurewise/image/upload/v1621597094/myplanner/images/svg/webp/goal-details-icon.webp","alt","",1,"mr-10"],[1,"f-14","mb-0","roboto","f-400"],[1,"bg-white","br-4","m-8","mt-16","pl-20","pt-30","mb-0"],[1,"row"],[1,"col-5","text-right"],["id","piechartMutualFund",1,"highcharts-figure","full-center"],[1,"col-7","p-0","flex-column","flex-start","mt-20"],[1,"d-flex","align-items-center"],[1,"hw-12","bg-primary"],[1,"roboto","f-400"],[1,"f-12","pl-5","pr-5"],[1,"f-12"],[1,"hw-12","bg-warning"],[1,"bg-white","br-4","m-8","mt-0","pt-20","pl-20","pb-28"],[1,"col-8","pl-0"],[1,"m-0","mob-text-xs","f-14","roboto","f-400","lh-22"],[1,"col-4","pl-0","pr-10","text-right"],["appFormatNumber","",1,"m-0","text-black","roboto","f-300","f-14","lh-22",3,"value"],[1,"row","pt-6"],[1,"m-0","text-black","roboto","f-300","f-14","lh-22"],["appFormatNumber","",1,"m-0","text-black","roboto","f-300","f-14","lh-22"]],template:function(M,I){1&M&&(p.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),p.NdJ("click",function(){return I.close()}),p._UZ(4,"img",4),p.qZA(),p.TgZ(5,"div",5)(6,"h5",6),p._uU(7,"Loan details "),p.qZA()(),p._UZ(8,"div",7),p.qZA()(),p.TgZ(9,"div",8),p._UZ(10,"img",9),p.TgZ(11,"p",10),p._uU(12," Loan details "),p.qZA()(),p.TgZ(13,"div",11)(14,"div",12)(15,"div",13),p._UZ(16,"div",14),p.qZA(),p.TgZ(17,"div",15)(18,"div",16),p._UZ(19,"div",17),p.TgZ(20,"div",18)(21,"span",19),p._uU(22),p.qZA(),p.TgZ(23,"span",20),p._uU(24,"Loan amount"),p.qZA()()(),p.TgZ(25,"div",16),p._UZ(26,"div",21),p.TgZ(27,"div",18)(28,"span",19),p._uU(29),p.qZA(),p.TgZ(30,"span",20),p._uU(31,"Down payment"),p.qZA()()()()()(),p.TgZ(32,"div",22)(33,"div",12)(34,"div",23)(35,"p",24),p._uU(36,"Loan to be taken "),p.qZA()(),p.TgZ(37,"div",25),p._uU(38," \u20b9"),p._UZ(39,"span",26),p.qZA()(),p.TgZ(40,"div",27)(41,"div",23)(42,"p",24),p._uU(43,"Loan tenure "),p.qZA()(),p.TgZ(44,"div",25)(45,"p",28),p._uU(46),p.qZA()()(),p.TgZ(47,"div",27)(48,"div",23)(49,"p",24),p._uU(50,"Interest rate "),p.qZA()(),p.TgZ(51,"div",25)(52,"p",29),p._uU(53),p.qZA()()(),p.TgZ(54,"div",27)(55,"div",23)(56,"p",24),p._uU(57,"EMI payable "),p.qZA()(),p.TgZ(58,"div",25),p._uU(59," \u20b9"),p._UZ(60,"span",26),p.qZA()(),p.TgZ(61,"div",27)(62,"div",23)(63,"p",24),p._uU(64,"Monthly income in goal year "),p.qZA()(),p.TgZ(65,"div",25),p._uU(66," \u20b9"),p._UZ(67,"span",26),p.qZA()(),p.TgZ(68,"div",27)(69,"div",23)(70,"p",24),p._uU(71,"Maximum loan available "),p.qZA()(),p.TgZ(72,"div",25),p._uU(73," \u20b9"),p._UZ(74,"span",26),p.qZA()()()()),2&M&&(p.xp6(22),p.hij("",I.loanAmount?I.loanAmount:0,"%"),p.xp6(7),p.hij("",I.downPayement?I.downPayement:0,"%"),p.xp6(10),p.Q6J("value",I.loanList.loanAmount),p.xp6(7),p.hij("",I.loanList.loanTenure," years "),p.xp6(7),p.hij("",I.loanList.annualInterestRate,"% "),p.xp6(7),p.Q6J("value",I.loanList.emi),p.xp6(7),p.Q6J("value",I.loanList.highestLoanAndEmiEligible.income_at_goal_year),p.xp6(7),p.Q6J("value",I.loanList.highestLoanAndEmiEligible.highest_loan_eligible))},dependencies:[o.R],styles:["#piechartMutualFund[_ngcontent-%COMP%]{height:150px;width:180px;position:relative;right:26px;bottom:30px}.hw-12[_ngcontent-%COMP%]{height:10px;width:10px}"]}),S})()},9600:(it,k,g)=>{g.d(k,{d:()=>qt});var t=g(65730),d=g(13932),s=g(30567),p=g(1996),U=g(28914),o=g(94650),P=g(34793),S=g(36895),F=g(49652),M=g(73162),I=g(21112);function O(D,L){1&D&&o._UZ(0,"img",47)}function J(D,L){1&D&&o._UZ(0,"img",48)}function Q(D,L){1&D&&o._UZ(0,"img",49)}function N(D,L){1&D&&o._UZ(0,"img",50)}function w(D,L){1&D&&o._UZ(0,"img",51)}function K(D,L){1&D&&o._UZ(0,"img",52)}function G(D,L){1&D&&o._UZ(0,"img",53)}function x(D,L){if(1&D&&o._UZ(0,"mat-progress-bar",54),2&D){const _=o.oxw();o.Q6J("value",_.goalDetails.dashboardData.goalProgress)}}function y(D,L){1&D&&o._UZ(0,"mat-progress-bar",55)}function B(D,L){if(1&D&&(o.TgZ(0,"div",56),o._UZ(1,"p"),o.TgZ(2,"div",8)(3,"div",24)(4,"ul",57),o._UZ(5,"li",58),o.TgZ(6,"li")(7,"h5",25),o._uU(8," \u20b9"),o._UZ(9,"span",33),o.qZA(),o.TgZ(10,"p",59),o._uU(11,"Monthly"),o.qZA()()()(),o.TgZ(12,"div",24)(13,"ul",57),o._UZ(14,"li",60),o.TgZ(15,"li")(16,"h5",25),o._uU(17," \u20b9"),o._UZ(18,"span",61),o.qZA(),o.TgZ(19,"p",59),o._uU(20,"Lumpsum"),o.qZA()()()()()()),2&D){const _=o.oxw();o.xp6(9),o.Q6J("value",(null==_.goalDetails||null==_.goalDetails.dashboardData?null:_.goalDetails.dashboardData.equity_monthly)+(null==_.goalDetails||null==_.goalDetails.dashboardData?null:_.goalDetails.dashboardData.debt_monthly)),o.xp6(9),o.Q6J("value",(null==_.goalDetails||null==_.goalDetails.dashboardData?null:_.goalDetails.dashboardData.lump_equity)+(null==_.goalDetails||null==_.goalDetails.dashboardData?null:_.goalDetails.dashboardData.lump_debt))}}function q(D,L){if(1&D&&(o.TgZ(0,"div",56)(1,"p"),o._uU(2," Monthly "),o.qZA(),o.TgZ(3,"div",8)(4,"div",24)(5,"ul",57),o._UZ(6,"li",58),o.TgZ(7,"li")(8,"h5",25),o._uU(9," \u20b9 "),o.TgZ(10,"span",33),o._uU(11),o.qZA()(),o.TgZ(12,"p",59),o._uU(13,"Equity"),o.qZA()()()(),o.TgZ(14,"div",24)(15,"ul",57),o._UZ(16,"li",60),o.TgZ(17,"li")(18,"h5",25),o._uU(19," \u20b9 "),o.TgZ(20,"span",33),o._uU(21),o.qZA()(),o.TgZ(22,"p",59),o._uU(23,"Debt"),o.qZA()()()()()()),2&D){const _=o.oxw();o.xp6(10),o.Q6J("value",null==_.goalDetails||null==_.goalDetails.dashboardData?null:_.goalDetails.dashboardData.equity_monthly),o.xp6(1),o.hij(" ",null==_.goalDetails||null==_.goalDetails.dashboardData?null:_.goalDetails.dashboardData.equity_monthly," "),o.xp6(9),o.Q6J("value",null==_.goalDetails||null==_.goalDetails.dashboardData?null:_.goalDetails.dashboardData.debt_monthly),o.xp6(1),o.hij(" ",null==_.goalDetails||null==_.goalDetails.dashboardData?null:_.goalDetails.dashboardData.debt_monthly,"")}}function X(D,L){if(1&D&&(o.TgZ(0,"div",56)(1,"p"),o._uU(2," Lumpsum "),o.qZA(),o.TgZ(3,"div",8)(4,"div",24)(5,"ul",57),o._UZ(6,"li",58),o.TgZ(7,"li")(8,"h5",25),o._uU(9," \u20b9"),o.TgZ(10,"span",33),o._uU(11),o.qZA()(),o.TgZ(12,"p",59),o._uU(13,"Equity"),o.qZA()()()(),o.TgZ(14,"div",24)(15,"ul",57),o._UZ(16,"li",60),o.TgZ(17,"li")(18,"h5",25),o._uU(19," \u20b9"),o.TgZ(20,"span",33),o._uU(21),o.qZA()(),o.TgZ(22,"p",59),o._uU(23,"Debt"),o.qZA()()()()()()),2&D){const _=o.oxw();o.xp6(10),o.Q6J("value",null==_.goalDetails||null==_.goalDetails.dashboardData?null:_.goalDetails.dashboardData.lump_equity),o.xp6(1),o.Oqu(null==_.goalDetails||null==_.goalDetails.dashboardData?null:_.goalDetails.dashboardData.lump_equity),o.xp6(9),o.Q6J("value",null==_.goalDetails||null==_.goalDetails.dashboardData?null:_.goalDetails.dashboardData.lump_debt),o.xp6(1),o.hij(" ",null==_.goalDetails||null==_.goalDetails.dashboardData?null:_.goalDetails.dashboardData.lump_debt,"")}}function A(D,L){1&D&&(o.TgZ(0,"div",65)(1,"p",66),o._uU(2,"No data found"),o.qZA()())}function H(D,L){1&D&&o._UZ(0,"img",47)}function V(D,L){1&D&&o._UZ(0,"img",77)}function $(D,L){1&D&&o._UZ(0,"img",49)}function pt(D,L){1&D&&o._UZ(0,"img",50)}function Zt(D,L){1&D&&o._UZ(0,"img",51)}function At(D,L){1&D&&o._UZ(0,"img",52)}function Pt(D,L){1&D&&o._UZ(0,"img",53)}function Ct(D,L){if(1&D&&(o.TgZ(0,"div",78)(1,"p",74),o._uU(2," \u20b9 "),o._UZ(3,"span",33),o.qZA(),o.TgZ(4,"p",75),o._uU(5,"Maturity Value"),o.qZA()()),2&D){const _=o.oxw().$implicit;o.xp6(3),o.Q6J("value",0==_.maturityValue?0:_.maturityValue)}}function wt(D,L){if(1&D){const _=o.EpF();o.TgZ(0,"mat-expansion-panel",67),o.NdJ("opened",function(){o.CHM(_);const E=o.oxw(2);return o.KtG(E.panelOpenState=!0)})("closed",function(){o.CHM(_);const E=o.oxw(2);return o.KtG(E.panelOpenState=!1)}),o.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title",68)(3,"div",69),o.YNc(4,H,1,0,"img",13),o.YNc(5,V,1,0,"img",70),o.YNc(6,$,1,0,"img",15),o.YNc(7,pt,1,0,"img",16),o.YNc(8,Zt,1,0,"img",17),o.YNc(9,At,1,0,"img",18),o.YNc(10,Pt,1,0,"img",19),o.qZA(),o.TgZ(11,"p",71),o._uU(12),o.qZA()()(),o.TgZ(13,"div",72)(14,"div",73)(15,"p",74),o._uU(16," \u20b9 "),o._UZ(17,"span",33),o.qZA(),o.TgZ(18,"p",75),o._uU(19,"Current Value"),o.qZA()(),o.YNc(20,Ct,6,1,"div",76),o.qZA()()}if(2&D){const _=L.$implicit;o.xp6(4),o.Q6J("ngIf",0==_.relationshipId||null==_.relationshipId),o.xp6(1),o.Q6J("ngIf",2==_.relationshipId),o.xp6(1),o.Q6J("ngIf",3==_.relationshipId),o.xp6(1),o.Q6J("ngIf",4==_.relationshipId),o.xp6(1),o.Q6J("ngIf",5==_.relationshipId),o.xp6(1),o.Q6J("ngIf",7==_.relationshipId),o.xp6(1),o.Q6J("ngIf",6==_.relationshipId),o.xp6(2),o.hij(" ",_.assetName,""),o.xp6(5),o.Q6J("value",_.currentValue),o.xp6(3),o.Q6J("ngIf",_.maturityValue)}}function Gt(D,L){if(1&D&&(o.TgZ(0,"div",62)(1,"p",39),o._uU(2,"Assets Allocated"),o.qZA(),o.YNc(3,A,3,0,"div",63),o.TgZ(4,"mat-accordion"),o.YNc(5,wt,21,10,"mat-expansion-panel",64),o.qZA()()),2&D){const _=o.oxw();o.xp6(3),o.Q6J("ngIf",0==_.allocatedList.length),o.xp6(2),o.Q6J("ngForOf",_.allocatedList)}}function ct(D,L){if(1&D){const _=o.EpF();o.TgZ(0,"div",40)(1,"div",41),o.NdJ("click",function(){o.CHM(_);const E=o.oxw();return E.openMilestone(),o.KtG(E.showMilestone=!0)}),o.TgZ(2,"div",42)(3,"p",43),o._uU(4,"Milestone details"),o.qZA()(),o.TgZ(5,"div",44),o._UZ(6,"img",45),o.qZA()()()}}function Z(D,L){if(1&D){const _=o.EpF();o.TgZ(0,"div",40)(1,"div",41),o.NdJ("click",function(){o.CHM(_);const E=o.oxw();return E.openLoan(),o.KtG(E.showLoan=!0)}),o.TgZ(2,"div",42)(3,"p",43),o._uU(4,"Loan details"),o.qZA()(),o.TgZ(5,"div",44),o._UZ(6,"img",45),o.qZA()()()}}function St(D,L){if(1&D){const _=o.EpF();o.TgZ(0,"div",40)(1,"div",41),o.NdJ("click",function(){o.CHM(_);const E=o.oxw();return E.openCostOfDelay(),o.KtG(E.showCostOfDelay=!0)}),o.TgZ(2,"div",42)(3,"p",43),o._uU(4,"Cost of delay"),o.qZA()(),o.TgZ(5,"div",44),o._UZ(6,"img",45),o.qZA()()()}}function Mt(D,L){if(1&D){const _=o.EpF();o.TgZ(0,"div",40)(1,"div",41),o.NdJ("click",function(){o.CHM(_);const E=o.oxw();return o.KtG(E.openNotes())}),o.TgZ(2,"div",42)(3,"p",43),o._uU(4,"Planner notes"),o.qZA()(),o.TgZ(5,"div",44),o._UZ(6,"img",45),o.qZA()()()}}const Ot=function(D){return{"background-image":D}};let qt=(()=>{class D{constructor(_,v,E,gt){this.router=_,this.plansService=v,this.customerService=E,this.goalService=gt,this.advisor_client_id={advisorId:"",clientId:""},this.allAssets=[],this.panelOpenState=!1,this.isRetirementTab=!1,this.showYearwise=!1,this.showLoan=!1,this.showKeyInfo=!1,this.showMilestone=!1,this.showCostOfDelay=!1,this.clientData=t.e.getClientData(),this.imgGenderSrc=this.clientData.profilePicUrl,"details"==this.router.url.split("/")[5]&&this.customerService.setHeader(null)}ngOnInit(){window.scrollTo({top:0}),this.advisor_client_id.advisorId=t.e.getClientData().advisorId,this.advisor_client_id.clientId=t.e.getClientId(),this.goalDetails=this.goalService.getGoalDetails(),this.loadSelectedGoalData(this.goalDetails),this.goalDetails||this.close()}openNotes(){this.goalService.setNotes(this.selectedGoal),this.router.navigate(["/customer/detail/plan/goals/planner-note"])}openyearwise(){this.goalService.setYearwiseDetails(1==this.selectedGoal.goalType?this.selectedGoal.remainingData.retirementTableValue:this.goalTableValues),this.router.navigate(["/customer/detail/plan/goals/yearwise"])}
1openLoan(){this.goalService.setLoanDetails(this.selectedGoal.remainingData.loan),this.router.navigate(["/customer/detail/plan/goals/loan"])}openKeyInfo(){this.goalService.setKeyDetails(this.selectedGoal),this.router.navigate(["/customer/detail/plan/goals/key-info"])}openMilestone(){this.showMilestone=!0,this.goalService.setMilestoneDetails(this.selectedGoal.remainingData.milestoneModels),this.router.navigate(["/customer/detail/plan/goals/milestone"])}openCostOfDelay(){this.goalService.setCostDetails(this.selectedGoal),this.router.navigate(["/customer/detail/plan/goals/cost-delay"])}close(){this.goalService.removeGoalDetails(),this.router.navigate(["/customer/detail/plan/goals"])}loadAllAssets(){const _=this.plansService.getAssetsForAllocation(this.advisor_client_id),v=this.plansService.getMFList(this.advisor_client_id);(0,s.D)(_,v).subscribe(E=>{let gt=E[1].map(lt=>{let st=0;return lt.goalAssetMapping&&lt.goalAssetMapping.forEach(_t=>{st<=99&&(st+=_t.percentAllocated)}),{absAllocation:st,...lt}}),xt=E[1].map(lt=>{let st=0;return lt.goalAssetMapping.length>0&&lt.goalAssetMapping.forEach(_t=>{st<=99&&(st+=_t.percentAllocated)}),{absAllocation:st,...lt}});this.allAssets=[...gt,...xt],this.allocatedList=this.goalDetails.goalAssetAllocation.map(lt=>({...this.allAssets.find(_t=>_t.assetId==lt.assetId&&_t.assetType==lt.assetType)||{},...lt}))},E=>{console.error(E),this.assetError=!0})}loadSelectedGoalData(_){_.defaultImgUrl=1==_.goalType?"https://res.cloudinary.com/futurewise/image/upload/v1594125748/goal-default-image/retirement-goal-img_v2.0.svg":2==_.goalType?"https://res.cloudinary.com/futurewise/image/upload/v1594125748/goal-default-image/house-goals-img_v2.0.svg":3==_.goalType?"https://res.cloudinary.com/futurewise/image/upload/v1594125749/goal-default-image/car-goal_v2.0.svg":4==_.goalType?"https://res.cloudinary.com/futurewise/image/upload/v1594125747/goal-default-image/marriage-goal_v2.0.svg":5==_.goalType?"https://res.cloudinary.com/futurewise/image/upload/v1594125746/goal-default-image/vacation-goal_v2.0.svg":6==_.goalType?"https://res.cloudinary.com/futurewise/image/upload/v1621318587/goal-default-image/webp/education-goal_v2.0.webp":7==_.goalType?"https://res.cloudinary.com/futurewise/image/upload/v1594125746/goal-default-image/emergency-goal_v2.0.svg":8==_.goalType?"https://res.cloudinary.com/futurewise/image/upload/v1594125747/goal-default-image/wealth-creation-goal_v2.0.svg":9==_.goalType?"https://res.cloudinary.com/futurewise/image/upload/v1594125746/goal-default-image/big-spend-goal_v2.0.svg":"https://res.cloudinary.com/futurewise/image/upload/v1594125746/goal-default-image/others-goals_v2.0.svg",this.allocatedList=_.goalAssetAllocation.map(v=>({...this.allAssets.find(gt=>gt.assetId==v.assetId&&gt.assetType==v.assetType)||{},...v})),this.selectedGoal=_,this.singleGoalData=this.selectedGoal,0==this.singleGoalData.dashboardData.equity_monthly&&0!=this.singleGoalData.dashboardData.lump_equity&&(this.singleGoalData.dashboardData.equity_monthly="N/A"),0==this.singleGoalData.dashboardData.debt_monthly&&0!=this.singleGoalData.dashboardData.lump_debt&&(this.singleGoalData.dashboardData.debt_monthly="N/A"),this.selectedGoalId=_.remainingData.id,this.goalTableValues=this.selectedGoal.goalTableValues?this.selectedGoal.goalTableValues:[],_.remainingData.retirementTableValue&&1==_.goalType?(this.isRetirementTab=!0,this.goalTableValues=_.remainingData.retirementTableValue,this.goalTableValues.forEach(E=>{E.goalYear=new Date(E.goalStartDate).getFullYear()})):(_.goalTableValues&&_.goalTableValues.forEach(v=>{v.achievedPercent=parseInt(v.achievedPercent).toFixed(2)}),this.goalTableValues=_.goalTableValues&&_.goalTableValues.length>0?_.goalTableValues:[],this.isRetirementTab=!1),this.dataSource=_.remainingData.retirementTableValue?_.remainingData.retirementTableValue:[],this.dataSource.length>0&&this.dataSource.forEach(v=>{v.achievedPercent=parseInt(v.achievedPercent).toFixed(2)}),this.dataSource1=_.remainingData.milestoneModels?_.remainingData.milestoneModels:[],this.allocatedList.forEach(v=>{this.goalDetails.familyMemberList.forEach(E=>{v.familyMemberId==E.familyMemberId&&(v.relationshipId=E.relationshipId)})})}}return D.\u0275fac=function(_){return new(_||D)(o.Y36(P.F0),o.Y36(d.D),o.Y36(U.v),o.Y36(p.b))},D.\u0275cmp=o.Xpm({type:D,selectors:[["app-mobile-goal-details"]],decls:81,vars:26,consts:[[1,"d-none","d-block-768"],[1,"goal-
1details-wrapper"],[1,"pb-28"],[1,"goalDetails",3,"ngStyle"],[1,"row","pt-20"],[1,"col-md-12","d-flex","align-items-center","justify-content-between"],["src","https://res.cloudinary.com/futurewise/image/upload/v1621511687/myplanner/images/svg/webp/left-arrows.webp","height","16","width","16","alt","",1,"material-icons","text-black",3,"click"],[1,"pt-36","pl-28","pr-28"],[1,"row"],[1,"col-md-12"],[1,"goal-value-box"],[1,"col-2","col-md-1","pl-0"],[1,"ovalClass"],["class","br-50","width","36","height","36","src","/assets/images/svg/others.svg","alt","IFAnow",4,"ngIf"],["width","36","height","36","src","https://res.cloudinary.com/futurewise/image/upload/v1621339537/myplanner/images/svg/webp/man-profile.webp","alt","IFAnow",4,"ngIf"],["src","https://res.cloudinary.com/futurewise/image/upload/v1621320416/myplanner/images/svg/webp/women-profile-icon.webp","width","36","height","36","alt","IFAnow",4,"ngIf"],["class","w36 h-36","src","https://res.cloudinary.com/futurewise/image/upload/v1619592734/myplanner/images/svg/son-profile.svg","width","36","height","36","alt","IFAnow",4,"ngIf"],["class","w36 h-36","src","/assets/images/svg/daughter-profile.svg","width","36","height","36","alt","IFAnow",4,"ngIf"],["class","w28","src","/assets/images/svg/mother-profile.svg","width","36","height","36","alt","IFAnow",4,"ngIf"],["class","w36","src","/assets/images/svg/father-profile.svg","width","36","height","36","alt","IFAnow",4,"ngIf"],[1,"person-details-class","p-0","col-10","col-md-11"],[1,"mb-0","text-mob-common","f-14"],[1,"mb-0","f-600","text-mob-common","f-20"],[1,"row","pb-12","pt-20"],[1,"col-6","col-md-6","p-0"],[1,"f-16","f-400","roboto","text-mob-common"],[1,"col-6","col-md-6","p-0","text-right"],[1,"row","pb-12"],[1,"col-6","col-md-6","text-right","p-0"],[1,"col-12","col-md-12","p-0"],["mode","determinate","class","mt-12",3,"value",4,"ngIf"],["mode","determinate","class","mt-12",4,"ngIf"],[1,"mb-0","text-custom","f-12","roboto"],["appFormatNumber","",3,"value"],[1,"goal-additional-required"],[1,"f-16","ml-16","mr-16","mb-16"],["class","bg-white mb-20 ml-8 mr-8 br-4 p-16",4,"ngIf"],["id","goal-assets-allocated","class"," pt-20",4,"ngIf"],[1,"goal-other-details"],[1,"f-14","ml-16","mr-16","mb-16"],[1,"bg-white","pt-20","mb-20","pb-20","ml-8","mr-8","bx-none","br-4","align-items-center"],[1,"row",3,"click"],[1,"col-10","col-md-10"],[1,"m-0","roboto","f-400","text-dark","lh-16"],[1,"col-2","col-md-2","text-center","full-center"],["src","https://res.cloudinary.com/futurewise/image/upload/v1621505690/myplanner/images/svg/webp/right-arrow.webp","width","7.41","height","12","alt","IFAnow",1,"c-p"],["class","bg-white pt-20 mb-20 pb-20 ml-8 mr-8 bx-none br-4 align-items-center",4,"ngIf"],["width","36","height","36","src","/assets/images/svg/others.svg","alt","IFAnow",1,"br-50"],["width","36","height","36","src","https://res.cloudinary.com/futurewise/image/upload/v1621339537/myplanner/images/svg/webp/man-profile.webp","alt","IFAnow"],["src","https://res.cloudinary.com/futurewise/image/upload/v1621320416/myplanner/images/svg/webp/women-profile-icon.webp","width","36","height","36","alt","IFAnow"],["src","https://res.cloudinary.com/futurewise/image/upload/v1619592734/myplanner/images/svg/son-profile.svg","width","36","height","36","alt","IFAnow",1,"w36","h-36"],["src","/assets/images/svg/daughter-profile.svg","width","36","height","36","alt","IFAnow",1,"w36","h-36"],["src","/assets/images/svg/mother-profile.svg","width","36","height","36","alt","IFAnow",1,"w28"],["src","/assets/images/svg/father-profile.svg","width","36","height","36","alt","IFAnow",1,"w36"],["mode","determinate",1,"mt-12",3,"value"],["mode","determinate",1,"mt-12"],[1,"bg-white","mb-20","ml-8","mr-8","br-4","p-16"],[1,"m-0","p-0"],[1,"rectangle-blue","mr-10"],[1,"f-12"],[1,"rectangle-red","mr-10"],["appFormatNumber","",1,"bar",3,"value"],["id","goal-assets-allocated",1,"pt-20"],["class","bg-white m-8 mt-12 text-center",4,"ngIf"],["class","bg-white mb-20 ml-8 mr-8 br-4  ",3,"opened","closed",4,"ngFor","ngForOf"],[1,"bg-white","m-8","mt-12","text-center"],[1,"m-0","pt-16","pb-16"],[1,"bg-white","mb-20","ml-8","mr-8","br
1-4",3,"opened","closed"],[1,"align-items-center"],[1,"ovalClass","mr-10"],["src","https://res.cloudinary.com/futurewise/image/upload/v1621339537/myplanner/images/svg/webp/man-profile.webp","width","36","height","36","alt","IFAnow",4,"ngIf"],[1,"m-0","roboto","f-400"],[1,"row","pl-16","pr-16","pt-4","pb-12"],[1,"col-6","col-md-6","p-0","borderRightGry"],[1,"f-14","mb-0"],[1,"text-grey","f-12","mb-0"],["class","col-6 col-md-6 pr-0",4,"ngIf"],["src","https://res.cloudinary.com/futurewise/image/upload/v1621339537/myplanner/images/svg/webp/man-profile.webp","width","36","height","36","alt","IFAnow"],[1,"col-6","col-md-6","pr-0"]],template:function(_,v){1&_&&(o.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"img",6),o.NdJ("click",function(){return v.close()}),o.qZA()()(),o.TgZ(7,"div",7)(8,"div",8),o._UZ(9,"div",9),o.qZA()()(),o.TgZ(10,"div",10)(11,"div",8)(12,"div",11)(13,"div",12),o.YNc(14,O,1,0,"img",13),o.YNc(15,J,1,0,"img",14),o.YNc(16,Q,1,0,"img",15),o.YNc(17,N,1,0,"img",16),o.YNc(18,w,1,0,"img",17),o.YNc(19,K,1,0,"img",18),o.YNc(20,G,1,0,"img",19),o.qZA()(),o.TgZ(21,"div",20)(22,"p",21),o._uU(23),o.qZA(),o.TgZ(24,"h2",22),o._uU(25),o.qZA()()(),o.TgZ(26,"div",23)(27,"div",24)(28,"span",25),o._uU(29," Goal "),o.qZA()(),o.TgZ(30,"div",26)(31,"span",25),o._uU(32),o.qZA()()(),o.TgZ(33,"div",27)(34,"div",24)(35,"span",25),o._uU(36," Achieved "),o.qZA()(),o.TgZ(37,"div",28)(38,"span",25),o._uU(39),o.qZA()()(),o.TgZ(40,"div",27)(41,"div",29),o.YNc(42,x,1,1,"mat-progress-bar",30),o.YNc(43,y,1,0,"mat-progress-bar",31),o.qZA()(),o.TgZ(44,"div",8)(45,"div",24)(46,"p",32),o._UZ(47,"span",33),o._uU(48,"% Achieved "),o.qZA()(),o.TgZ(49,"div",26)(50,"p",32),o._UZ(51,"span",33),o._uU(52,"% Achievable "),o.qZA()()()(),o.TgZ(53,"div",34)(54,"p",35),o._uU(55,"Additional Required"),o.qZA(),o.YNc(56,B,21,2,"div",36),o.YNc(57,q,24,4,"div",36),o.YNc(58,X,24,4,"div",36),o.qZA(),o.YNc(59,Gt,6,2,"div",37),o.TgZ(60,"div",38)(61,"p",39),o._uU(62,"Other details"),o.qZA(),o.TgZ(63,"div",40)(64,"div",41),o.NdJ("click",function(){return v.openyearwise(),v.showYearwise=!0}),o.TgZ(65,"div",42)(66,"p",43),o._uU(67,"Goal yearwise details"),o.qZA()(),o.TgZ(68,"div",44),o._UZ(69,"img",45),o.qZA()()(),o.YNc(70,ct,7,0,"div",46),o.TgZ(71,"div",40)(72,"div",41),o.NdJ("click",function(){return v.openKeyInfo(),v.showKeyInfo=!0}),o.TgZ(73,"div",42)(74,"p",43),o._uU(75,"Key info"),o.qZA()(),o.TgZ(76,"div",44),o._UZ(77,"img",45),o.qZA()()(),o.YNc(78,Z,7,0,"div",46),o.YNc(79,St,7,0,"div",46),o.YNc(80,Mt,7,0,"div",46),o.qZA()()()()),2&_&&(o.xp6(3),o.Q6J("ngStyle",o.VKq(24,Ot,"url("+v.goalDetails.defaultImgUrl+")")),o.xp6(11),o.Q6J("ngIf",0==v.goalDetails.relationshipId||null==v.goalDetails.relationshipId),o.xp6(1),o.Q6J("ngIf",2==v.goalDetails.relationshipId),o.xp6(1),o.Q6J("ngIf",3==v.goalDetails.relationshipId),o.xp6(1),o.Q6J("ngIf",4==v.goalDetails.relationshipId),o.xp6(1),o.Q6J("ngIf",5==v.goalDetails.relationshipId),o.xp6(1),o.Q6J("ngIf",7==v.goalDetails.relationshipId),o.xp6(1),o.Q6J("ngIf",6==v.goalDetails.relationshipId),o.xp6(3),o.Oqu(v.goalDetails.year),o.xp6(2),o.Oqu(v.goalDetails.goalName),o.xp6(7),o.hij(" \u20b9 ",v.goalDetails.gv," "),o.xp6(7),o.hij(" \u20b9 ",null==v.goalDetails||null==v.goalDetails.dashboardData?null:v.goalDetails.dashboardData.achievedValue," "),o.xp6(3),o.Q6J("ngIf",v.goalDetails&&v.goalDetails.dashboardData&&v.goalDetails.dashboardData.goalProgress),o.xp6(1),o.Q6J("ngIf",v.goalDetails&&v.goalDetails.dashboardData&&!v.goalDetails.dashboardData.goalProgress),o.xp6(4),o.Q6J("value",null==v.goalDetails||null==v.goalDetails.dashboardData?null:v.goalDetails.dashboardData.goalProgress),o.xp6(4),o.Q6J("value",100-(null==v.goalDetails||null==v.goalDetails.dashboardData?null:v.goalDetails.dashboardData.goalProgress)),o.xp6(5),o.Q6J("ngIf",2==(null==v.goalDetails||null==v.goalDetails.remainingData?null:v.goalDetails.remainingData.savingStatus)),o.xp6(1),o.Q6J("ngIf",1==(null==v.goalDetails||null==v.goalDetails.remainingData?null:v.goalDetails.remainingData.savingStatus)),o.xp6(1),o.Q6J("ngIf",1==(null==v.goalDetails||null==v.goalDetails.remainingData?null:v.goalDetails.remainingData.savingStatus)),o.xp6(1),o.Q6J("ngIf",v.allocatedList),o.xp6(11),o.Q6J("ngIf",(null==v.selectedGoal.remainingData.milestoneModels?null:v.selectedGoal.remainingData.milestoneModels.length)>0),o.xp6(8),o.Q6J("ngIf",v.selectedGoal.remainingData.loan),o.xp6(1),o.Q6J("ngIf",null==v.selectedGoal.remainingData?null:v.selectedGoal.remainingData.costDelay),o.xp6(1),o.Q6J("ngIf",v.selectedGoal.remainingData.notes))},dependencies:[S.sg,S.O5,S.PC,F.pp,F.ib,F.yz,F.yK,M.pW,I.R]}),D})()},33917:(it,k,g)=>{g.d(k,{o:()=>q});var t=g(13932),d=g(1996),s=g(94650),p=g(34793),U=g(36895),o=g(53626),P=g(21112);function S(A,H){1&A&&(s.TgZ(0,"th",26),s._uU(1," Year "),s.qZA())}function F(A,H){if(1&A&&(s.TgZ(0,"span"),s._uU(1),s.ALo(2,"date"),s.qZA()),2&A){const V=s.oxw().$implicit;s.xp6(1),s.hij(" ",s.xi3(2,1,V.goalStartDate,"yyyy")," ")}}function M(A,H){if(1&A&&(s.TgZ(0,"span"),s._uU(1),s.ALo(2,"date"),s.qZA()),2&A){const V=s.oxw().$implicit;s.xp6(1),s.hij(" ",s.xi3(2,1,V.goalYear,"yyyy")," ")}}function I(A,H){if(1&A&&(s.TgZ(0,"td",27),s.YNc(1,F,3,4,"span",28),s.YNc(2,M,3,4,"span",28),s.qZA()),2&A){const V=s.oxw();s.xp6(1),s.Q6J("ngIf",1==V.ret),s.xp6(1),s.Q6J("ngIf",0==V.ret)}}function O(A,H){1&A&&(s.TgZ(0,"th",29),s._uU(1," Goal PV "),s.qZA())}function J(A,H){if(1&A&&(s.TgZ(0,"span"),s._uU(1),s.qZA()),2&A){const V=s.oxw().$implicit;s.xp6(1),s.hij(" ",V.yearlyGoalValue," ")}}function Q(A,H){if(1&A&&(s.TgZ(0,"span"),s._uU(1),s.qZA()),2&A){const V=s.oxw().$implicit;s.xp6(1),s.hij(" ",V.presentVal," ")}}function N(A,H){if(1&A&&(s.TgZ(0,"td",30),s.YNc(1,J,2,1,"span",28),s.YNc(2,Q,2,1,"span",28),s.qZA()),2&A){const V=s.oxw();s.xp6(1),s.Q6J("ngIf",0==V.ret),s.xp6(1),s.Q6J("ngIf",1==V.ret)}}function w(A,H){1&A&&(s.TgZ(0,"th",31),s._uU(1," Goal FV "),s.qZA())}function K(A,H){if(1&A&&(s.TgZ(0,"td",30),s._uU(1),s.qZA()),2&A){const V=H.$implicit;s.xp6(1),s.hij(" ",V.fvOnGoalDate," ")}}function G(A,H){1&A&&(s.TgZ(0,"th",32),s._uU(1," Achiev-able %"),s.qZA())}function x(A,H){if(1&A&&(s.TgZ(0,"td",33),s._uU(1),s.qZA()),2&A){const V=H.$implicit;s.xp6(1),s.hij(" ",V.achievedPercent," ")}}function y(A,H){1&A&&s._UZ(0,"tr",34)}function B(A,H){1&A&&s._UZ(0,"tr",35)}let q=(()=>{class A{constructor(V,$,pt){this.GoalService=V,this.router=$,this.plansService=pt,this.displayedColumns=["position","name","weight","symbol"],this.dataSource=X,this.tableValue=[]}ngOnInit(){window.scrollTo(0,0);var V=this.GoalService.getYearwiseDetails();this.tableValue=V,this.goalDetails=this.GoalService.getGoalDetails(),this.tableValue.forEach($=>{$.goalYr?(this.ret=!1,$.goalYear=$.goalYr,$.goalPresentValue=$.yearlyGoalValue):(this.ret=!0,$.presentVal=$.goalPresentValue)})}close(){this.router.navigate(["/customer/detail/plan/goals/details"])}}return A.\u0275fac=function(V){return new(V||A)(s.Y36(d.b),s.Y36(p.F0),s.Y36(t.D))},A.\u0275cmp=s.Xpm({type:A,selectors:[["app-mobile-goal-yearwise"]],decls:29,vars:4,consts:[[1,"bg-grey","lter","pt-80","hmin-100vh","pb-32"],[1,"main-mob-nav"],[1,"row","mob-bg-common","pb-12","mobtop-navfixed"],[1,"col-2","col-md-1",3,"click"],["src","https://res.cloudinary.com/futurewise/image/upload/v1621513313/myplanner/images/svg/webp/mob-white-left-arrow.webp","width","16","height","16","alt","IFAnow",1,"c-p"],[1,"col-7","col-md-7","p-0"],[1,"m-0","f-18","text-white"],[1,"col-3","col-md-3","text-right"],[1,"d-flex","align-items-center","ml-20","mb-2
10"],["src","https://res.cloudinary.com/futurewise/image/upload/v1621597094/myplanner/images/svg/webp/goal-details-icon.webp","width","19","height","23.95","alt","IFAnow",1,"mr-10"],[1,"f-14","mb-0"],[1,"br-4","bg-white","p-28","m-8","goal-mob-table"],["mat-table","","id","table-low",3,"dataSource"],["matColumnDef","position"],["mat-header-cell","","class","f-500 br",4,"matHeaderCellDef"],["mat-cell","","class","br",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","","class","br text-right f-500",4,"matHeaderCellDef"],["mat-cell","","class","br text-right","appFormatNumber","",4,"matCellDef"],["matColumnDef","weight"],["mat-header-cell","","class","br text-right f-500 w-30",4,"matHeaderCellDef"],["matColumnDef","symbol"],["mat-header-cell","","class","f-500 text-right ws-bs",4,"matHeaderCellDef"],["mat-cell","","class","br text-right",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","",1,"f-500","br"],["mat-cell","",1,"br"],[4,"ngIf"],["mat-header-cell","",1,"br","text-right","f-500"],["mat-cell","","appFormatNumber","",1,"br","text-right"],["mat-header-cell","",1,"br","text-right","f-500","w-30"],["mat-header-cell","",1,"f-500","text-right","ws-bs"],["mat-cell","",1,"br","text-right"],["mat-header-row",""],["mat-row",""]],template:function(V,$){1&V&&(s.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),s.NdJ("click",function(){return $.close()}),s._UZ(4,"img",4),s.qZA(),s.TgZ(5,"div",5)(6,"h5",6),s._uU(7),s.qZA()(),s._UZ(8,"div",7),s.qZA()(),s.TgZ(9,"div",8),s._UZ(10,"img",9),s.TgZ(11,"p",10),s._uU(12," Goal year wise details "),s.qZA()(),s.TgZ(13,"div",11)(14,"table",12),s.ynx(15,13),s.YNc(16,S,2,0,"th",14),s.YNc(17,I,3,2,"td",15),s.BQk(),s.ynx(18,16),s.YNc(19,O,2,0,"th",17),s.YNc(20,N,3,2,"td",18),s.BQk(),s.ynx(21,19),s.YNc(22,w,2,0,"th",20),s.YNc(23,K,2,1,"td",18),s.BQk(),s.ynx(24,21),s.YNc(25,G,2,0,"th",22),s.YNc(26,x,2,1,"td",23),s.BQk(),s.YNc(27,y,1,0,"tr",24),s.YNc(28,B,1,0,"tr",25),s.qZA()()()),2&V&&(s.xp6(7),s.Oqu($.goalDetails.goalName),s.xp6(7),s.Q6J("dataSource",$.tableValue),s.xp6(13),s.Q6J("matHeaderRowDef",$.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",$.displayedColumns))},dependencies:[U.O5,o.BZ,o.fO,o.as,o.w1,o.Dz,o.nj,o.ge,o.ev,o.XQ,o.Gk,P.R,U.uU]}),A})();const X=[{position:"2025",name:"10,00,000",weight:"10,00,000",symbol:"100%"},{position:"2030",name:"10,00,000",weight:"10,00,000",symbol:"100%"},{position:"2035",name:"10,00,000",weight:"10,00,000",symbol:"100%"},{position:"2040",name:"10,00,000",weight:"10,00,000",symbol:"100%"},{position:"2045",name:"10,00,000",weight:"10,00,000",symbol:"100%"},{position:"2050",name:"10,00,000",weight:"10,00,000",symbol:"100%"},{position:"2055",name:"10,00,000",weight:"10,00,000",symbol:"100%"}]},96512:(it,k,g)=>{g.d(k,{t:()=>x});var t=g(53626),d=g(1996),s=g(94650),p=g(34793),U=g(36895),o=g(21112);function P(y,B){if(1&y&&(s.TgZ(0,"div",14)(1,"div",15)(2,"div",16)(3,"p",17),s._uU(4,"Basic Details"),s.qZA()()(),s.TgZ(5,"div",18)(6,"div",19)(7,"p",20),s._uU(8,"Goal year "),s.qZA()(),s.TgZ(9,"div",21)(10,"p",22),s._uU(11),s.qZA()()(),s.TgZ(12,"div",18)(13,"div",19)(14,"p",20),s._uU(15,"Present value "),s.qZA()(),s.TgZ(16,"div",21)(17,"p",22),s._uU(18,"\u20b9 "),s._UZ(19,"span",23),s.qZA()()(),s.TgZ(20,"div",18)(21,"div",19)(22,"p",20),s._uU(23,"Future value "),s.qZA()(),s.TgZ(24,"div",21)(25,"p",22),s._uU(26,"\u20b9 "),s.TgZ(27,"span",24),s._uU(28),s.qZA()()()(),s.TgZ(29,"div",15)(30,"div",16)(31,"p",17),s._uU(32,"Monthly"),s.qZA()()(),s.TgZ(33,"div",18)(34,"div",19)(35,"p",20),s._uU(36,"Equity "),s.qZA()(),s.TgZ(37,"div",21)(38,"p",22),s._uU(39," \u20b9"),s.TgZ(40,"span",24),s._uU(41),s.qZA()()()(),s.TgZ(42,"div",18)(43,"div",19)(44,"p",20),s._uU(45,"Debt "),s.qZA()(),s.TgZ(46,"div",21)(47,"p",22),s._uU(48,"\u20b9"),s.TgZ(49,"span",24),s._uU(50),s.qZA()()()(),s.TgZ(51,"div",15)(52,"div",16)(53,"p",17),s._uU(54,"Lumpsum"),s.qZA()()(),s.TgZ(55,"div",18)(56,"div",19)(57,"p",20),s._uU(58,"Equity "),s.qZA()(),s.TgZ(59,"div",21)(60,"p",22),s._uU(61," \u20b9"),s.TgZ(62,"span",24),s._uU(63),s.qZA()()()(),s.TgZ(64,"div",25)(65,"div",19)(66,"p",20),s._uU(67,"Debt "),s.qZA()(),s.TgZ(68,"div",21)(69,"p",22),s._uU(70," \u20b9"),s.TgZ(71,"span",24),s._uU(72),s.qZA()()()()()),2&y){const q=s.oxw();s.xp6(11),s.hij(" ",q.keyInfo.dashboardData.goalYear," "),s.xp6(8),s.Q6J("value",q.keyInfo.dashboardData.presentValue),s.xp6(9),s.hij(" ",q.keyInfo.dashboardData.futureValue,""),s.xp6(13),s.Oqu(q.keyInfo.dashboardData.equity_monthly),s.xp6(9),s.Oqu(q.keyInfo.dashboardData.debt_monthly),s.xp6(13),s.Oqu(q.keyInfo.dashboardData.lump_equity),s.xp6(9),s.Oqu(q.keyInfo.dashboardData.lump_debt)}}function S(y,B){1&y&&(s.TgZ(0,"th",38),s._uU(1," Year "),s.qZA())}function F(y,B){if(1&y&&(s.TgZ(0,"td",39),s._uU(1),s.ALo(2,"date"),s.qZA()),2&y){const q=B.$implicit;s.xp6(1),s.hij(" ",s.xi3(2,1,q.year,"yyyy")," ")}}function M(y,B){1&y&&(s.TgZ(0,"th",38),s._uU(1," Goal FV "),s.qZA())}function I(y,B){if(1&y&&(s.TgZ(0,"td",39)(1,"span",24),s._uU(2),s.qZA()()),2&y){const q=B.$implicit;s.xp6(2),s.Oqu(q.gFv)}}function O(y,B){1&y&&(s.TgZ(0,"th",38),s._uU(1," Lumpsum "),s.qZA())}function J(y,B){if(1&y&&(s.TgZ(0,"td",39)(1,"span",24),s._uU(2),s.qZA()()),2&y){const q=B.$implicit;s.xp6(2),s.Oqu(q.lumsum)}}function Q(y,B){1&y&&(s.TgZ(0,"th",40),s._uU(1," Monthly "),s.qZA())}function N(y,B){if(1&y&&(s.TgZ(0,"td",39)(1,"span",24),s._uU(2),s.qZA()()),2&y){const q=B.$implicit;s.xp6(2),s.Oqu(q.monthly)}}function w(y,B){1&y&&s._UZ(0,"tr",41)}function K(y,B){1&y&&s._UZ(0,"tr",42)}function G(y,B){if(1&y&&(s.TgZ(0,"div",26)(1,"div",27)(2,"table",28),s.ynx(3,29),s.YNc(4,S,2,0,"th",30),s.YNc(5,F,3,4,"td",31),s.BQk(),s.ynx(6,32),s.YNc(7,M,2,0,"th",30),s.YNc(8,I,3,1,"td",31),s.BQk(),s.ynx(9,33),s.YNc(10,O,2,0,"th",30),s.YNc(11,J,3,1,"td",31),s.BQk(),s.ynx(12,34),s.YNc(13,Q,2,0,"th",35),s.YNc(14,N,3,1,"td",31),s.BQk(),s.YNc(15,w,1,0,"tr",36),s.YNc(16,K,1,0,"tr",37),s.qZA()()()),2&y){const q=s.oxw();s.xp6(2),s.Q6J("dataSource",q.dataSource),s.xp6(13),s.Q6J("matHeaderRowDef",q.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",q.displayedColumns)}}let x=(()=>{class y{constructor(q,X){this.router=q,this.GoalService=X,this.displayedColumns=["position","name","weight","symbol"],this.dataSource=new t.by([])}set data(q){this.inputData=q}
1ngOnInit(){this.tableValue=[],this.keyInfo=this.GoalService.getKeyDetails(),this.equity=this.keyInfo.dashboardData.arr_equity_monthly,this.debt=this.keyInfo.dashboardData.arr_debt_monthly,this.equityLumpsum=this.keyInfo.dashboardData.arr_lump_equity,this.debtLumpsum=this.keyInfo.dashboardData.arr_lump_debt,this.goalYrAndFutValues=this.keyInfo.dashboardData.arr_goalYrAndFutValues,2==this.keyInfo.singleOrMulti&&this.keyInfo.dashboardData.key_arr_debt_monthly.forEach((q,X)=>{this.dataSource.data.push({year:q,gFv:this.goalYrAndFutValues[X],lumsum:this.equityLumpsum[X],monthly:this.debtLumpsum[X]})})}close(){this.router.navigate(["/customer/detail/plan/goals/details"])}}return y.\u0275fac=function(q){return new(q||y)(s.Y36(p.F0),s.Y36(d.b))},y.\u0275cmp=s.Xpm({type:y,selectors:[["app-mobile-key-info"]],inputs:{data:"data"},decls:16,vars:3,consts:[[1,"bg-grey","lter","pt-80","hmin-100vh"],[1,"main-mob-nav"],[1,"row","mob-bg-common","pb-12","mobtop-navfixed"],[1,"col-2","col-md-1",3,"click"],["src","https://res.cloudinary.com/futurewise/image/upload/v1621513313/myplanner/images/svg/webp/mob-white-left-arrow.webp","width","16","height","16","alt","IFAnow",1,"c-p"],[1,"col-7","col-md-7","p-0"],[1,"m-0","f-18","text-white"],[1,"col-3","col-md-3","text-right"],[1,"d-flex","align-items-center","ml-20","mb-16"],["src","https://res.cloudinary.com/futurewise/image/upload/v1621597094/myplanner/images/svg/webp/goal-details-icon.webp","alt","IFAnow","height","23.95","width","19",1,"mr-10"],[1,"f-14","mb-0","roboto","f-400"],[1,"bg-white","br-4","m-8","mt-16","p-20","pr-12"],["class","",4,"ngIf"],["class","row bb-0",4,"ngIf"],[1,""],[1,"row"],[1,"col-12","pl-0"],[1,"m-0","f-400","roboto","text-black","pb-6","lh-22"],[1,"row","pb-6"],[1,"col-6","pl-0"],[1,"m-0","mob-text-xs","f-14","roboto","f-400","lh-22"],[1,"col-6","pl-0","text-right","pr-0"],[1,"m-0","text-black","roboto","f-400","f-14","lh-22"],["appFormatNumber","",3,"value"],["appFormatNumber",""],[1,"row","pt-6"],[1,"row","bb-0"],[1,"col-12","p-0","mob-goal-key-info"],["mat-table","","id","table-low",3,"dataSource"],["matColumnDef","position"],["mat-header-cell","","class","f-500 br text-right",4,"matHeaderCellDef"],["mat-cell","","class","br text-right",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","weight"],["matColumnDef","symbol"],["mat-header-cell","","class","f-500 text-right",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","",1,"f-500","br","text-right"],["mat-cell","",1,"br","text-right"],["mat-header-cell","",1,"f-500","text-right"],["mat-header-row",""],["mat-row",""]],template:function(q,X){1&q&&(s.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),s.NdJ("click",function(){return X.close()}),s._UZ(4,"img",4),s.qZA(),s.TgZ(5,"div",5)(6,"h5",6),s._uU(7),s.qZA()(),s._UZ(8,"div",7),s.qZA()(),s.TgZ(9,"div",8),s._UZ(10,"img",9),s.TgZ(11,"p",10),s._uU(12," Key info "),s.qZA()(),s.TgZ(13,"div",11),s.YNc(14,P,73,7,"div",12),s.YNc(15,G,17,3,"div",13),s.qZA()()),2&q&&(s.xp6(7),s.Oqu(X.keyInfo.goalName),s.xp6(7),s.Q6J("ngIf",1==X.keyInfo.singleOrMulti),s.xp6(1),s.Q6J("ngIf",2==X.keyInfo.singleOrMulti))},dependencies:[U.O5,t.BZ,t.fO,t.as,t.w1,t.Dz,t.nj,t.ge,t.ev,t.XQ,t.Gk,o.R,U.uU]}),y})()},63922:(it,k,g)=>{g.d(k,{g:()=>P});var t=g(1996),d=g(94650),s=g(34793),p=g(36895),U=g(21112);function o(S,F){if(1&S&&(d.TgZ(0,"div",11)(1,"div",12)(2,"div",13)(3,"p",14),d._uU(4,"Planning "),d.qZA()(),d.TgZ(5,"div",15)(6,"p",16),d._uU(7),d.qZA()()(),d.TgZ(8,"div",17)(9,"div",13)(10,"p",14),d._uU(11,"Milestone type "),d.qZA()(),d.TgZ(12,"div",15)(13,"p",16),d._uU(14),d.qZA()()(),d.TgZ(15,"div",17)(16,"div",13)(17,"p",14),d._uU(18,"Amount "),d.qZA()(),d.TgZ(19,"div",15)(20,"p",16),d._uU(21),d.qZA()()(),d.TgZ(22,"div",17)(23,"div",13)(24,"p",14),d._uU(25,"Future value "),d.qZA()(),d.TgZ(26,"div",15)(27,"p",16),d._uU(28,"\u20b9 "),d._UZ(29,"span",18),d.qZA()()()()),2&S){const M=F.$implicit;d.xp6(7),d.hij(" ",1==M.onRetirementOrDemise?"Post retirement":"Demise",""),d.xp6(7),d.hij("",1==M.milestoneTypeId?"Philanthrophy":2==M.milestoneTypeId?"Legacy":3==M.milestoneTypeId?"Wealth creation":4==M.milestoneTypeId?"New business":5==M.milestoneTypeId?"Others":"Medical emergency"," "),d.xp6(7),d.hij("\u20b9 ",M.amount," "),d.xp6(8),d.Q6J("value",M.milestoneFV)}}let P=(()=>{class S{constructor(M,I){this.router=M,this.GoalService=I}ngOnInit(){this.mileStoneList=this.GoalService.getMilestoneDetails()}close(){this.GoalService.removeMilestomeDetails(),this.router.navigate(["/customer/detail/plan/goals/details"])}}return S.\u0275fac=function(M){return new(M||S)(d.Y36(s.F0),d.Y36(t.b))},S.\u0275cmp=d.Xpm({type:S,selectors:[["app-mobile-milestone-details"]],decls:12,vars:1,consts:[[1,"bg-grey","lter","pt-80","hmin-100vh"],[1,"main-mob-nav"],[1,"row","mob-bg-common","pb-12","mobtop-navfixed"],[1,"col-2","col-md-1",3,"click"],["src","https://res.cloudinary.com/futurewise/image/upload/v1621513313/myplanner/images/svg/webp/mob-white-left-arrow.webp","width","16",1,"c-p"],[1,"col-7","col-md-7","p-0"],[1,"col-3","col-md-3","text-right"],[1,"d-flex","align-items-center","ml-20","mb-2
10"],["width","19","src","https://res.cloudinary.com/futurewise/image/upload/v1621597094/myplanner/images/svg/webp/goal-details-icon.webp","alt","",1,"mr-10"],[1,"f-14","mb-0","roboto","f-400"],["class","bg-white br-4 m-8 mt-16 p-20",4,"ngFor","ngForOf"],[1,"bg-white","br-4","m-8","mt-16","p-20"],[1,"row"],[1,"col-6","pl-0"],[1,"m-0","mob-text-xs","f-14","roboto","f-400","lh-22"],[1,"col-6","pl-0","pr-10","text-right"],[1,"m-0","text-black","roboto","f-400","f-14","lh-22"],[1,"row","pt-6"],["appFormatNumber","",3,"value"]],template:function(M,I){1&M&&(d.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),d.NdJ("click",function(){return I.close()}),d._UZ(4,"img",4),d.qZA(),d._UZ(5,"div",5)(6,"div",6),d.qZA()(),d.TgZ(7,"div",7),d._UZ(8,"img",8),d.TgZ(9,"p",9),d._uU(10," Milestone details "),d.qZA()(),d.YNc(11,o,30,4,"div",10),d.qZA()),2&M&&(d.xp6(11),d.Q6J("ngForOf",I.mileStoneList))},dependencies:[p.sg,U.R]}),S})()},42192:(it,k,g)=>{g.d(k,{C:()=>p});var t=g(1996),d=g(94650),s=g(34793);let p=(()=>{class U{constructor(P,S){this.router=P,this.GoalService=S}ngOnInit(){this.plannerNotes=this.GoalService.getNotes()}close(){this.GoalService.removeNotes(),this.router.navigate(["/customer/detail/plan/goals/details"])}}return U.\u0275fac=function(P){return new(P||U)(d.Y36(s.F0),d.Y36(t.b))},U.\u0275cmp=d.Xpm({type:U,selectors:[["app-mobile-planner-notes"]],decls:18,vars:2,consts:[[1,"goal-new-house"],[1,"main-mob-nav"],[1,"row","mob-bg-common","pb-12","mobtop-navfixed"],[1,"col-2","col-md-1",3,"click"],[1,"material-icons","text-white"],[1,"col-7","col-md-7","p-0"],[1,"m-0","f-18","text-white"],[1,"col-3","col-md-3","text-right"],[1,"pt-80","p-8"],[1,"d-flex","align-items-center","ml-20","mb-20"],["width","19","src","https://res.cloudinary.com/futurewise/image/upload/v1621597094/myplanner/images/svg/webp/goal-details-icon.webp","alt","",1,"mr-10"],[1,"f-14","mb-0","wb"],[1,"ml-8","mr-8","br-4","bg-white","p-16"],[1,"f-16","l-18","ws-preline","mb-0"]],template:function(P,S){1&P&&(d.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),d.NdJ("click",function(){return S.close()}),d.TgZ(4,"span",4),d._uU(5," keyboard_backspace "),d.qZA()(),d.TgZ(6,"div",5)(7,"h5",6),d._uU(8),d.qZA()(),d._UZ(9,"div",7),d.qZA()(),d.TgZ(10,"div",8)(11,"div",9),d._UZ(12,"img",10),d.TgZ(13,"p",11),d._uU(14," Planner Notes "),d.qZA()(),d.TgZ(15,"div",12)(16,"p",13),d._uU(17),d.qZA()()()()),2&P&&(d.xp6(8),d.Oqu(S.plannerNotes.goalName),d.xp6(9),d.Oqu(S.plannerNotes.remainingData.notes))}}),U})()},85027:(it,k,g)=>{g.d(k,{E:()=>Q});var t=g(34793),d=g(17674),s=g(73555),p=g(33917),U=g(96512),o=g(42192),P=g(63922),S=g(56195),F=g(63312),M=g(9600),I=g(95177),O=g(94650);const J=[{path:"",pathMatch:"full",redirectTo:"detailView"},{path:"detailView",component:d.W},{path:"summary",component:I.Z},{path:"yearwise",component:p.o},{path:"loan",component:S.b},{path:"cost-delay",component:F.Z},{path:"key-info",component:U.t},{path:"planner-note",component:o.C},{path:"milestone",component:P.g},{path:"details",component:M.d}];let Q=(()=>{class N{}return N.\u0275fac=function(K){return new(K||N)},N.\u0275mod=O.oAB({type:N}),N.\u0275inj=O.cJS({imports:[t.Bz.forChild(J),s._t,t.Bz]}),N})()},40773:(it,k,g)=>{g.r(k),g.d(k,{PlanGoalsModule:()=>I});var t=g(36895),d=g(85027),s=g(14528),p=g(10049),U=g(49028),o=g(73555),P=g(25800),S=g(1325),F=g(63355),M=g(94650);let I=(()=>{class O{}return O.\u0275fac=function(Q){return new(Q||O)},O.\u0275mod=M.oAB({type:O}),O.\u0275inj=M.cJS({providers:[S.a],imports:[t.ez,d.E,s.q,U.Q,o._t,F.kx,P.CommonComponentModule,p.Z]}),O})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.