1"use strict";(self.webpackChunkmyplanner=self.webpackChunkmyplanner||[]).push([[4911],{1716:(Tt,pt,a)=>{a.d(pt,{B:()=>r});var t=a(65730),Y=a(21856),e=a(87051),v=a(73799),g=a(94650),O=a(36895),n=a(34793),ot=a(4859);const l=function(){return["/admin/account-billing/homepage"]};function et(w,q){if(1&w){const A=g.EpF();g.TgZ(0,"div",4)(1,"div",5),g._UZ(2,"img",6),g.TgZ(3,"h3",7),g._uU(4," You have a new unpaid invoice. "),g.qZA()(),g.TgZ(5,"div",8)(6,"button",9),g._UZ(7,"img",10),g._uU(8,"View & pay"),g.qZA(),g.TgZ(9,"img",11),g.NdJ("click",function(){g.CHM(A);const P=g.oxw();return g.KtG(P.closeFooter())}),g.qZA()()()}2&w&&(g.xp6(6),g.Q6J("routerLink",g.DdM(1,l)))}function i(w,q){if(1&w){const A=g.EpF();g.TgZ(0,"div",4)(1,"div",5),g._UZ(2,"img",6),g.TgZ(3,"h3",7),g._uU(4," Your unpaid invoice is approaching due date soon. "),g.qZA()(),g.TgZ(5,"div",8)(6,"button",9),g._UZ(7,"img",10),g._uU(8,"View & pay"),g.qZA(),g.TgZ(9,"img",11),g.NdJ("click",function(){g.CHM(A);const P=g.oxw();return g.KtG(P.closeFooter())}),g.qZA()()()}2&w&&(g.xp6(6),g.Q6J("routerLink",g.DdM(1,l)))}function c(w,q){if(1&w){const A=g.EpF();g.TgZ(0,"div",12)(1,"div",5),g._UZ(2,"img",13),g.TgZ(3,"h3",14),g._uU(4),g.qZA()(),g.TgZ(5,"div",8)(6,"button",15),g._UZ(7,"img",16),g._uU(8,"View & pay"),g.qZA(),g.TgZ(9,"img",11),g.NdJ("click",function(){g.CHM(A);const P=g.oxw();return g.KtG(P.closeFooter())}),g.qZA()()()}if(2&w){const A=g.oxw();g.xp6(4),g.AsE(" [ATTENTION - ",A.daysRemaining," days left] Due date of your unpaid invoice is ",A.thirtyDays,". Act fast. "),g.xp6(2),g.Q6J("routerLink",g.DdM(3,l))}}function $(w,q){if(1&w){const A=g.EpF();g.TgZ(0,"div",17)(1,"div",5),g._UZ(2,"img",6),g.TgZ(3,"h3",18),g._uU(4),g.qZA()(),g.TgZ(5,"div",8)(6,"button",19),g._UZ(7,"img",20),g._uU(8,"View & pay"),g.qZA(),g.TgZ(9,"img",11),g.NdJ("click",function(){g.CHM(A);const P=g.oxw();return g.KtG(P.closeFooter())}),g.qZA()()()}if(2&w){const A=g.oxw();g.xp6(4),g.AsE("[URGENT] Your account is overdue by ",A.daysRemaining," days. If no payment is made it will be locked on ",A.lockdate,"."),g.xp6(2),g.Q6J("routerLink",g.DdM(3,l))}}function s(w,q){if(1&w){const A=g.EpF();g.TgZ(0,"div",21)(1,"div",5),g._UZ(2,"img",6),g.TgZ(3,"h3",7),g._uU(4," [IMPORTANT] Your account has been locked for non payment of dues."),g.qZA()(),g.TgZ(5,"div",8)(6,"button",22),g._UZ(7,"img",23),g._uU(8,"View & pay"),g.qZA(),g.TgZ(9,"img",11),g.NdJ("click",function(){g.CHM(A);const P=g.oxw();return g.KtG(P.closeFooter())}),g.qZA()()()}2&w&&(g.xp6(6),g.Q6J("routerLink",g.DdM(1,l)))}function rt(w,q){if(1&w){const A=g.EpF();g.TgZ(0,"div",21)(1,"div",5),g._UZ(2,"img",6),g.TgZ(3,"h3",24),g._uU(4," [IMPORTANT] Your IFANOW subscription has been cancelled for non payment of dues."),g.qZA()(),g.TgZ(5,"div",8)(6,"button",25),g._UZ(7,"img",23),g._uU(8,"Resubscribe"),g.qZA(),g.TgZ(9,"img",11),g.NdJ("click",function(){g.CHM(A);const P=g.oxw();return g.KtG(P.closeFooter())}),g.qZA()()()}2&w&&(g.xp6(6),g.Q6J("routerLink",g.DdM(1,l)))}let r=(()=>{class w{constructor(A,N,P,o,z,I,j){this.auth=A,this.enumDataService=N,this.datePipe=P,this.accountService=o,this.loginService=z,this.router=I,this.activatedRoute=j,this.showFifteen=!1,this.showTwentyFive=!1,this.showThirty=!1,this.accountStatus=null,this.lock=!1}ngOnInit(){this.userData=t.e.getUserInfo(),this.updateUserInfo(),this.getcontent()}updateUserInfo(){const A={advisorId:t.e.getAdvisorId()};this.accountService.updateUser(A).subscribe(N=>{if(N){let P=Object.assign(this.userData,N);this.auth.setUserInfo(P),this.userData=t.e.getUserInfo(),this.calculateDates()}})}getcontent(){this.loginService.getFreeAccessContentDetails({status:this.userData.offerId}).subscribe(N=>{this.enumDataService.PRODUCTION||console.log(N),this.contentDetails=N})}calculateDates(){this.accountStatus=this.userData.accountStatus;let A=new Date,N=new Date(this.userData.lockDate),P=new Date(this.userData.paidUpto);this.invoiceDate=this.datePipe.transform(P,"dd/MM/yyyy"),this.lockdate=this.datePipe.transform(N,"dd/MM/yyyy"),this.lock=this.differenceBetweenTwoDates(N,A)<=0;let o=this.futureDate(P,15),z=this.futureDate(P,25),I=this.futureDate(P,30);this.thirtyDays=this.datePipe.transform(I,"dd/MM/yyyy"),this.show
1Fifteen=this.flagDateOne(P,A,o),this.showTwentyFive=this.flagDateOne(o,A,z),this.showThirty=this.flagDateOne(z,A,I),this.lockThirty=this.flagDateOne(I,A,N),this.daysRemaining=Math.abs(this.differenceBetweenTwoDates(I,A))}differenceBetweenTwoDates(A,N){let P=A.getTime()-N.getTime();return Math.ceil(P/864e5)}flagDateOne(A,N,P){return A.getTime()<N.getTime()&&N.getTime()<P.getTime()}closeFooter(){this.accountStatus=null}futureDate(A,N){return new Date(A.getTime()+24*N*60*60*1e3)}}return w.\u0275fac=function(A){return new(A||w)(g.Y36(t.e),g.Y36(v.p),g.Y36(O.uU),g.Y36(e.B),g.Y36(Y.r6),g.Y36(n.F0),g.Y36(n.gz))},w.\u0275cmp=g.Xpm({type:w,selectors:[["app-pricing-footers"]],decls:6,vars:6,consts:[["class","row bottom-fixed-firstfooter pt-12 pb-12 d-none-768",4,"ngIf"],["class","row bottom-fixed-secondfooter pt-12 pb-12 d-none-768",4,"ngIf"],["class","row bottom-fixed-firstfooter bg-ltorange pt-12 pb-12 d-none-768",4,"ngIf"],["class","row bottom-fixed-firstfooter bg-danger pt-12 pb-12 d-none-768",4,"ngIf"],[1,"row","bottom-fixed-firstfooter","pt-12","pb-12","d-none-768"],[1,"col-md-8","col-12","pl-20","mob-pl-15","d-flex"],["src","/assets/images/svg/bottom-danger.svg","width","30"],[1,"mb-0","ml-20","text-white","f-20","mob-pt-15","mt-4"],[1,"col-md-4","col-12","pl-0","text-center-768"],["mat-stroked-button","",1,"bg-white","text-success","h-40","f-16","f-500",3,"routerLink"],["src","https://res.cloudinary.com/futurewise/image/upload/v1635400367/Padlock_gvnkjf.png",1,"pr-8"],["alt","close icon","height","20","src","/assets/images/svg/white-close.svg","width","20",1,"close-icons-pgim",3,"click"],[1,"row","bottom-fixed-secondfooter","pt-12","pb-12","d-none-768"],["src","https://res.cloudinary.com/futurewise/image/upload/v1635408043/Group_tjehzs.png","width","30"],[1,"mb-0","ml-20","text-black","f-20","mob-pt-15"],["mat-stroked-button","",1,"bg-grey-lighter","text-black","h-40","f-16","f-500",3,"routerLink"],["src","https://res.cloudinary.com/futurewise/image/upload/v1635407949/Padlock_icfg1z.png",1,"pr-8"],[1,"row","bottom-fixed-firstfooter","bg-ltorange","pt-12","pb-12","d-none-768"],[1,"mb-0","ml-20","text-white","f-17","mob-pt-15","mt-4"],["mat-stroked-button","",1,"bg-white","text-ltorange","h-40","f-16","f-500",3,"routerLink"],["src","https://res.cloudinary.com/futurewise/image/upload/v1635412606/Padlock_gdzbsz.png",1,"pr-8"],[1,"row","bottom-fixed-firstfooter","bg-danger","pt-12","pb-12","d-none-768"],["mat-stroked-button","",1,"bg-white","text-danger","h-40","f-16","f-500",3,"routerLink"],["src","https://res.cloudinary.com/futurewise/image/upload/v1635405798/Padlock_jz58vy.png",1,"pr-8"],[1,"mb-0","ml-20","text-white","mt-4","f-20","mob-pt-15"],["S","","mat-stroked-button","",1,"bg-white","text-danger","h-40","f-16","f-500",3,"routerLink"]],template:function(A,N){1&A&&(g.YNc(0,et,10,2,"div",0),g.YNc(1,i,10,2,"div",0),g.YNc(2,c,10,4,"div",1),g.YNc(3,$,10,4,"div",2),g.YNc(4,s,10,2,"div",3),g.YNc(5,rt,10,2,"div",3)),2&A&&(g.Q6J("ngIf",2==N.accountStatus&&N.showFifteen&&0==N.userData.adminAdvisorId),g.xp6(1),g.Q6J("ngIf",2==N.accountStatus&&N.showTwentyFive&&0==N.userData.adminAdvisorId),g.xp6(1),g.Q6J("ngIf",2==N.accountStatus&&N.showThirty&&0==N.userData.adminAdvisorId),g.xp6(1),g.Q6J("ngIf",2==N.accountStatus&&N.lockThirty&&0==N.userData.adminAdvisorId),g.xp6(1),g.Q6J("ngIf",2==N.accountStatus&&N.lock&&0==N.userData.adminAdvisorId),g.xp6(1),g.Q6J("ngIf",(0==N.accountStatus||3==N.accountStatus)&&N.lock&&0==N.userData.adminAdvisorId))},dependencies:[ot.lW,O.O5,n.rH],styles:[".bottom-fixed-firstfooter[_ngcontent-%COMP%]{background-color:#2fd17c;position:fixed;bottom:0;align-items:center;z-index:100;width:100%}.bottom-fixed-firstfooter[_ngcontent-%COMP%] .close-icons-pgim[_ngcontent-%COMP%]{position:absolute;top:11px;left:185px;cursor:pointer}.bottom-fixed-secondfooter[_ngcontent-%COMP%]{background-color:#ffe050;position:fixed;bottom:0;align-items:center;z-index:9;width:100%}.bottom-fixed-secondfooter[_ngcontent-%COMP%] .close-icons-pgim[_ngcontent-%COMP%]{position:absolute;top:11px;left:185px;cursor:pointer}.bottom-fixed-thirdfooter[_ngcontent-%COMP%]{background-color:#ffc350;position:fixed;bottom:0;align-items:center;z-index:9;width:100%}.bottom-fixed-thirdfooter[_ngcontent-%COMP%] .close-icons-pgim[_ngcontent-%COMP%]{position:absolute;top:11px;left:185px;cursor:pointer}"]}),w})()},44796:(Tt,pt,a)=>{a.d(pt,{h:()=>rt});var t=a(34793),Y=a(83366),e=a(24115),v=a(53027),g=a(60591),O=a(35938),n=a(20206),ot=a(16041),l=a(55814),et=a(97720),i=a(33506),c=a(81026),$=a(94650);const s=[{path:"",component:Y.b,children:[{path:"dashboard",component:l.Q},{path:"clients",component:e.P},{path:"subscriptions",component:v.i},{path:"quotations",component:g.M},{path:"billing",component:i.t,canActivate:[c.L]},{path:"invoices",component:O.q},{path:"documents",component:n.D},{path:"mandates",component:et.P,canActivate:[c.L]},{path:"settings/:label",component:ot.b}]}];let rt=(()=>{class r{}return r.\u0275fac=function(q){return new(q||r)},r.\u0275mod=$.oAB({type:r}),r.\u0275inj=$.cJS({imports:[t.Bz.forChild(s),t.Bz]}),r})()},24911:(Tt,pt,a)=>{a.r(pt),a.d(pt,{SubscriptionModule:()=>bt,componentList:()=>gt});var t=a(36895),Y=a(24006),e=a(18449),v=a(5029),g=a(56724),O=a(71565),n=a(49028),ot=a(14528),l=a(25800),et=a(44796),i=a(61132),c=a(21153),$=a(24115),s=a(23110),rt=a(99386),r=a(64018),w=a(18815),q=a(3888),A=a(55814),N=a(413),P=a(20206),o=a(13619),z=a(60591),I=a(47517),j=a(66192),M=a(15304),L=a(66085),X=a(16041),H=a(83366),lt=a(53027),J=a(47873),st=a(8277),Q=a(94562),at=a(10049),B=a(97720),tt=a(94650);const gt=[H.b,o.Q,q.W,B.P,P.D,A.Q,$.P,lt.i,z.M,X.b,j.Z,L.W,I.w,M.y,N.t,r.W,s.H,w.d,rt.B];let bt=(()=>{class ft{}return ft.\u0275fac=function(St){return new(St||ft)},ft.\u0275mod=tt.oAB({type:ft}),ft.\u0275inj=tt.cJS({providers:[{provide:J._A,useClass:st.t7,deps:[J.Ad]},{provide:J.sG,useValue:Q.c}],imports:[ot.q,t.ez,Y.u5,Y.UX,g.hy.forRoot({radius:100,outerStrokeWidth:16,innerStrokeWidth:8,outerStrokeColor:"#78C000",innerStrokeColor:"#C7E596",animationDuration:1e3}),v.SD,e.g_.forRoot(),e.gD.forRoot(),c.Q,O.v,l.CommonComponentModule,n.Q,et.h,i.SubscriptionUpperEntry,at.Z]}),ft})()},24115:(Tt,pt,a)=>{a.d(pt,{P:()=>It});var t=a(96308),Y=a(53626),e=a(41074),v=a(70591),g=a(67241),O=a(65730),n=a(6363),ot=a(3900),l=a(57451),et=a(1059),i=a(80013),c=a(94650),$=a(65938),s=a(23767),rt=a(34793),r=a(36895),w=a(59549),q=a(284),A=a(51572),N=a(77400),P=a(81638),o=a(21112);const z=["tableEl"];function I(F,mt){if(1&F){const R=c.EpF();c.TgZ(0,"mat-form-field",9)(1,"input",10,11),c.NdJ("keyup",function(){c.CHM(R);const _t=c.MAs(2),ut=c.oxw();return c.KtG(ut.applyFilter(_t.value))}),c.qZA()()}}function j(F,mt){1&F&&(c.TgZ(0,"th",30),c._uU(1," Client name"),c.qZA())}function M(F,mt){if(1&F){const R=c.EpF();c.TgZ(0,"td",31),c.NdJ("click",function(){const ut=c.CHM(R).$implicit,Ct=c.oxw(3);return c.KtG(Ct.openFragment("clients",ut))}),c.TgZ(1,"div",32),c._uU(2),c.qZA()()}if(2&F){const R=mt.$implicit,dt=c.oxw(3);c.xp6(2),c.hij(" ",dt.isLoading?"":R.name," ")}}function L(F,mt){1&F&&(c.TgZ(0,"th",33),c._uU(1," Email"),c.qZA())}function X(F,mt){if(1&F&&(c.TgZ(0,"span"),c._uU(1),c.qZA()),2&F){const R=c.oxw().$implicit;c.xp6(1),c.Oqu(R.userEmailId?R.userEmailId:"N/A")}}function H(F,mt){if(1&F){const R=c.EpF();c.TgZ(0,"td",31),c.NdJ("click",function(){const ut=c.CHM(R).$implicit,Ct=c.oxw(3);return c.KtG(Ct.openFragment("clients",ut))}),c.TgZ(1,"div",32),c.YNc(2,X,2,1,"span",34),c.qZA()()}if(2&F){const R=c.oxw(3);c.xp6(2),c.Q6J("ngIf",!R.isLoading)}}function lt(F,mt){1&F&&(c.TgZ(0,"th",35),c._uU(1," Contact no. "),c.qZA())}function J(F,mt){if(1&F&&(c.TgZ(0,"span"),c._uU(1),c.qZA()),2&F){const R=c.oxw().$implicit;c.xp6(1),c.hij(" ",R.mobileNumber?R.mobileNumber:"N/A","")}}function st(F,mt){if(1&F){const R=c.EpF();c.TgZ(0,"td",31),c.NdJ("click",function(){const ut=c.CHM(R).$implicit,Ct=c.oxw(3);return c.KtG(Ct.openFragment("clients",ut))}),c.TgZ(1,"div",32),c.YNc(2,J,2,1,"span",34),c.qZA()()}if(2&F){const R=c.oxw(3);c.xp6(2),c.Q6J("ngIf",!R.isLoading)}}function Q(F,mt){1&F&&(c.TgZ(0,"th",36),c._uU(1," Balance due "),c.qZA())}const at=function(F){return{floatRightClass:F}};function B(F,mt){if(1&F&&(c.TgZ(0,"div",39),c._uU(1,"\u20b9"),c.TgZ(2,"span",40),c._uU(3),c.qZA()()),2&F){const R=c.oxw().$implicit,dt=c.oxw(3);c.Q6J("ngClass",c.VKq(2,at,dt.isLoading)),c.xp6(3),c.Oqu(R.balanceDue)}}function tt(F,mt){if(1&F&&(c.TgZ(0,"div",39),c._uU(1),c.qZA()),2&F){const R=c.oxw(4);c.Q6J("ngClass",c.VKq(2,at,R.isLoading)),c.xp6(1),c.hij("",R.isLoading?"":"\u20b90"," ")}}function gt(F,mt){if(1&F){const R=c.EpF();c.TgZ(0,"td",37),c.NdJ("click",function(){const ut=c.CHM(R).$implicit,Ct=c.oxw(3);return c.KtG(Ct.openFragment("clients",ut))}),c.YNc(1,B,4,4,"div",38),c.YNc(2,tt,2,4,"div",38),c.qZA()}if(2&F){const R=mt.$implicit;c.xp6(1),c.Q6J("ngIf",null!=R.balanceDue),c.xp6(1),c.Q6J("ngIf",null==R.balanceDue)}}function bt(F,mt){1&F&&c._UZ(0,"tr",41)}function ft(F,mt){1&F&&c._UZ(0,"tr",42)}function Dt(F,mt){if(1&F&&(c.TgZ(0,"table",16,17),c.ynx(2,18),c.YNc(3,j,2,0,"th",19),c.YNc(4,M,3,1,"td",20),c.BQk(),c.ynx(5,21),c.YNc(6,L,2,0,"th",22),c.YNc(7,H,3,1,"td",20),c.BQk(),c.ynx(8,23),c.YNc(9,lt,2,0,"th",24),c.YNc(10,st,3,1,"td",20),c.BQk(),c.ynx(11,25),c.YNc(12,Q,2,0,"th",26),c.YNc(13,gt,3,2,"td",27),c.BQk(),c.YNc(14,bt,1,0,"tr",28),c.YNc(15,ft,1,0,"tr",29),c.qZA()),2&F){const R=c.oxw(2);c.Q6J("appSkeletonLoading",R.isLoading)("dataSource",R.dataSource),c.xp6(14),c.Q6J("matHeaderRowDef",R.displayedColumns)("matHeaderRowDefSticky",!0),c.xp6(1),c.Q6J("matRowDefColumns",R.displayedColumns)}}function St(F,mt){1&F&&c._UZ(0,"mat-spinner",43),2&F&&c.Q6J("diameter",30)}const Mt=function(F){return{"table-scroll":F}};function Pt(F,mt){if(1&F){const R=c.EpF();c.TgZ(0,"div",12),c.NdJ("scroll",function(_t){c.CHM(R);const ut=c.oxw();return c.KtG(ut.onWindowScroll(_t))}),c.YNc(1,Dt,16,5,"table",13),c.TgZ(2,"div",14),c.YNc(3,St,1,1,"mat-spinner",15),c.qZA()()}if(2&F){const R=c.oxw();c.Q6J("ngClass",c.VKq(3,Mt,0==R.isLoading)),c.xp6(1),c.Q6J("ngIf",R.dataSource.data.length>0),c.xp6(2),c.Q6J("ngIf",R.infiniteScrollingFlag)}}function At(F,mt){1&F&&(c.TgZ(0,"div",44)(1,"div",45),c._UZ(2,"img",46),c.TgZ(3,"p",47),c._uU(4," No data found "),c.qZA()()())}let It=(()=>{class F{constructor(R,dt,_t,ut,Ct,Ot){this.dialog=R,this.eventService=dt,this.subInjectService=_t,this.subService=ut,this.router=Ct,this.location=Ot,this.Questions=[{question:"How to apply subscription to client?"},{question:"Can we have more than one subscription applied to the client at the same time?"},{question:"What are the Future subscription?"}],this.data=[{},{},{}],this.dataSource=new Y.by(this.data),this.clientSearchObservable=new l.y,this.isAdvisor=!0,this.displayedColumns=["name","email","num","balance"],this.isLoading=!1}ngOnInit(){this.advisorId=O.e.getAdvisorId(),this.subService.clientSubscriptionList?this.getClientListResponse(this.subService.clientSubscriptionList):this.getClientSubData()}getClientSubData(){this.getClientSubscriptionList().subscribe(R=>{this.getClientListResponse(R)},R=>{this.searchoptionFlag=!1,this.dataSource.data=[],this.isLoading=!1})}getClientSubscriptionList(){const R={id:this.advisorId,offset:0,limit:20};return this.isLoading=!0,this.subService.getSubscriptionClientsList(R)}errorMessage(){const R={flag:"app-err-page-open",data:{},id:1,direction:"top",componentName:ot.z,state:"open"};R.data={positiveMethod:_t=>
1{_t.active=!0,this.getClientSubscriptionList().subscribe(ut=>{_t.active=!1,this.getClientListResponse(ut),this.eventService.changeUpperSliderState({state:"close"})},ut=>{_t.active=!1,this.eventService.openSnackBar("Wait for sometime....","Dismiss")})}},this.eventService.changeUpperSliderState(R).subscribe(_t=>{g.fK.isDialogClose(_t)})}onWindowScroll(R){this.tableEl._elementRef.nativeElement.querySelector("tbody").querySelector("tr:last-child").offsetTop<=R.target.scrollTop+R.target.offsetHeight+200&&(this.hasEndReached||(this.infiniteScrollingFlag=!0,this.hasEndReached=!0,this.scrollFunction()))}scrollFunction(){this.subService.getSubscriptionClientsList({id:this.advisorId,offset:this.dataSource.data.length,limit:20}).subscribe(_t=>{this.infiniteScrollingFlag=!1,_t&&(this.hasEndReached=!1,this.dataSource.data=this.dataSource.data.concat(_t),this.subService.clientSubscriptionList=this.dataSource.data)},_t=>{this.infiniteScrollingFlag=!1})}getClientListResponse(R){this.isLoading=!1,this.searchoptionFlag=!0,R&&R.length>0?(this.data=R,this.dataSource.data=R,this.subService.clientSubscriptionList=R,this.dataSource.sort=this.sort):(this.searchoptionFlag=!1,this.data=[],this.dataSource.data=R,this.dataSource.data=[],this.noData="No data found")}applyFilter(R){if(0==R.length)return void(this.subService.clientSubscriptionList?this.getClientListResponse(this.subService.clientSubscriptionList):this.getClientSubData());if(R.length<3)return;this.clientSearchSubscription&&!this.clientSearchSubscription.closed&&this.clientSearchSubscription.unsubscribe(),this.dataSource.data=[{},{},{}],this.isLoading=!0;const dt={id:O.e.getAdvisorId(),query:R};this.clientSearchSubscription=this.clientSearchObservable.pipe((0,et.O)(""),(0,i.b)(700)).subscribe(_t=>{this.subService.searchClientNameSubscription(dt).subscribe(ut=>{this.isLoading=!1,this.dataSource.data=ut||[]},ut=>{this.dataSource.data=[],this.isLoading=!1,this.eventService.openSnackBar(ut,"Dismiss")})})}openFragment(R,dt){if(!this.isLoading){this.location.replaceState("/subscription-upper"),dt.flag=R;const _t={flag:"clietns",id:1,data:dt,direction:"top",componentName:n.S,state:"open"};O.e.setSubscriptionUpperSliderData(_t);const ut=this.eventService.changeUpperSliderState(_t).subscribe(Ct=>{g.fK.isDialogClose(Ct)&&ut.unsubscribe()})}}}return F.\u0275fac=function(R){return new(R||F)(c.Y36($.uw),c.Y36(e.P),c.Y36(s.f),c.Y36(v.F),c.Y36(rt.F0),c.Y36(r.Ye))},F.\u0275cmp=c.Xpm({type:F,selectors:[["app-client-subscription"]],viewQuery:function(R,dt){if(1&R&&(c.Gf(t.YE,5),c.Gf(z,5)),2&R){let _t;c.iGM(_t=c.CRH())&&(dt.sort=_t.first),c.iGM(_t=c.CRH())&&(dt.tableEl=_t.first)}},inputs:{upperData:"upperData",isAdvisor:"isAdvisor"},decls:10,vars:3,consts:[[1,"bg-white","pl-20","pr-20","pt-125","pb-28","fade-in"],[1,"row","pt-8","pb-8"],[1,"col-md-8","p-0"],[1,"col-md-4","matClassView","right","text-right","p-0"],["appearance","standard","class","searchInputWidth","floatLabel","never",4,"ngIf"],[1,"client-sub"],[1,"col-md-12","p-0","people-clients","pb-16"],["class","ox-hide people-clients-scroll responsive-table-port",3,"ngClass","scroll",4,"ngIf"],["class","row",4,"ngIf"],["appearance","standard","floatLabel","never",1,"searchInputWidth"],["autocomplete","off","searchfieldSanitizehtml","","matInput","","placeholder","Type to filter data",1,"form-control","br-0","pt-8","mb-0",3,"keyup"],["searchName",""],[1,"ox-hide","people-clients-scroll","responsive-table-port",3,"ngClass","scroll"],["appSkeletonLoading","","class","skeletonAnimation","id","table-low","mat-table","","matSort","",3,"appSkeletonLoading","dataSource",4,"ngIf"],[1,"col-md-12","d-flex","justify-content-center","align-items-center"],[3,"diameter",4,"ngIf"],["appSkeletonLoading","","id","table-low","mat-table","","matSort","",1,"skeletonAnimation",3,"appSkeletonLoading","dataSource"],["tableEl",""],["matColumnDef","name"],["class","f-18","mat-header-cell","","mat-sort-header","name",4,"matHeaderCellDef"],["class","c-p","mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","email"],["class","f-18","mat-header-cell","","mat-sort-header","userEmailId",4,"matHeaderCellDef"],["matColumnDef","num"],["class","f-18","mat-header-cell","","mat-sort-header","mobileNumber",4,"matHeaderCellDef"],["matColumnDef","balance"],["class","f-18 bb-0 t-right","mat-header-cell","","mat-sort-header","balanceDue",4,"matHeaderCellDef"],["class","c-p tdPadding-20 text-right amt","mat-cell","",3,"click",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header","name",1,"f-18"],["mat-cell","",1,"c-p",3,"click"],[1,"bar"],["mat-header-cell","","mat-sort-header","userEmailId",1,"f-18"],[4,"ngIf"],["mat-header-cell","","mat-sort-header","mobileNumber",1,"f-18"],["mat-header-cell","","mat-sort-header","balanceDue",1,"f-18","bb-0","t-right"],["mat-cell","",1,"c-p","tdPadding-20","text-right","amt",3,"click"],["class","bar",3,"ngClass",4,"ngIf"],[1,"bar",3,"ngClass"],["appFormatNumber",""],["mat-header-row",""],["mat-row",""],[3,"diameter"],[1,"row"],[1,"col-md-12","d-flex","align-items-center","flex-column","justify-content-center"],["src","https://res.cloudinary.com/futurewise/image/upload/v1703919788/My-Planner_Whitewashed/Transaction-w_1.1.svg","alt","no data found icon",1,"width400"],[1,"f-22","f-600","pt-28"]],template:function(R,dt){1&R&&(c.TgZ(0,"div",0)(1,"div")(2,"div",1),c._UZ(3,"div",2),c.TgZ(4,"div",3),c.YNc(5,I,3,0,"mat-form-field",4),c.qZA()(),c.TgZ(6,"div",5)(7,"div",6),c.YNc(8,Pt,4,5,"div",7),c.qZA()()(),c.YNc(9,At,5,0,"div",8),c.qZA()),2&R&&(c.xp6(5),c.Q6J("ngIf",dt.searchoptionFlag),c.xp6(3),c.Q6J("ngIf",dt.dataSource.data.length>0),c.xp6(1),c.Q6J("ngIf",0==dt.dataSource.filteredData.length&&0==dt.isLoading))},dependencies:[w.KE,q.Nt,A.Ou,t.YE,t.nU,Y.BZ,Y.fO,Y.as,Y.w1,Y.Dz,Y.nj,Y.ge,Y.ev,Y.XQ,Y.Gk,r.mk,r.O5,N.k,P.d,o.R],styles:[".clientTable[_ngcontent-%COMP%] tr.mat-header-row[_ngcontent-%COMP%]{height:52px}#table-low[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:7px 8px!important;font-weight:600;font-size:13px!important}.width400[_ngcontent-%COMP%]{width:400px;margin-top:50px} .matClassView .mat-form-field-appearance-standard .mat-form-field-flex{padding-top:0}"]}),F})()},64018:(Tt,pt,a)=>{a.d(pt,{W:()=>ot});var t=a(24006),Y=a(69873),e=a(65938),v=a(94650),g=a(23767),O=a(4859),n=a(11411);let ot=(()=>{class l{constructor(i,c,$,s){this.dialogRef=i,this.subInjectService=c,this.dialog=$,this.fragmentData=s,this.mailForm=new t.nJ({mail_body:new t.p4("")}),this.editorContent=""==this.fragmentData?this.fragmentData:this.fragmentData.data.docText}ngOnInit(){}dialogClose(){this.dialogRef.close()}onSubmit(){}openDialog(i){this.dialog.open(Y.Z,{width:"30%",data:{flag:i},autoFocus:!1}).afterClosed().subscribe(s=>{})}}return l.\u0275fac=function(i){return new(i||l)(v.Y36(e.so),v.Y36(g.f),v.Y36(e.uw),v.Y36(e.WI))},l.\u0275cmp=v.Xpm({type:l,selectors:[["app-modify-fee-dialog"]],decls:88,vars:3,consts:[[1,"dialogclose"],[1,"row","bb-1","popup-header-fix-100"],[1,"col-md-2","border-right-1","p-0"],["src","https://res.cloudinary.com/futurewise/image/upload/v1566029063/icons_fakfxf.png","alt","logo",1,"pt-8"],[1,"col-md-8","p-0"],[1,"f-24","mb-0","pt-24","text-center"],[1,"col-md-2","text-right"],[1,"material-icons","pt-16","c-p","pr-16",3,"click"],[1,"wrapper-100","pt-24"],[1,"row","pt-32"],[1,"col-md-9"],[1,"mb-8","mt-20"],["id","ui-froala",3,"formGroup"],[3,"model","modelChange"],["type","submit","mat-stroked-button","",1,"mt-16","btn-primary","br-0",3,"disabled","click"],["id","ui-tc-insert",1,"col-md-3","pr-0"],[1,"m-0","pb-8","roboto","pt-32"],[1,"b-a"],[1,"row"],[1,"col-md-12",3,"click"],[1,"text-primary","m-0","pt-8","text-right","c-p","roboto"],[1,"wrapper-16","pb-0"],[1,"row","b-a","mb-16"],[1,"col-md-12","p-0"],[1,"bg-grey","lter","wrapper-12","pt-16"],[1,"m-0","text-black"],[1,"bg-white","wrapper-12"],[1,"row","b-a"],[1,"wrapper-16","pt-0","pb-0"],[1,"m-0","pt-20","pb-12","text-black"],[1,"wrapper-16","pb-28"],[1,"bottom-fixed","wrapper-12","w-100"],[1,"col-md-6"],[1,"mb-0","pt-8","text-white","c-p",3,"click"],[1,"col-md-2"],[1,"m-0","c-p","text-white","pt-8"],[1,"col-md-4"],[1,"col-md-9","p-0"],[1,"col-md-3","p-0"],["mat-button","",1,"btn-bottom","br-0","text-inherit"]],template:function(i,c){1&i&&(v.TgZ(0,"div",0)(1,"div",1)(2,"div",2),v._UZ(3,"img",3),v.qZA(),v.TgZ(4,"div",4)(5,"p",5),v._uU(6,"Investor agreement"),v.qZA()(),v.TgZ(7,"div",6)(8,"i",7),v.NdJ("click",function(){return c.dialogClose()}),v._uU(9," clear "),v.qZA()()(),v.TgZ(10,"div",8)(11,"div",9)(12,"div",10)(13,"h3",11),v._uU(14,"Terms of agreement"),v.qZA(),v.TgZ(15,"form",12)(16,"app-froala",13),v.NdJ("modelChange",function(s){return c.editorContent=s}),v.qZA(),v.TgZ(17,"button",14),v.NdJ("click",function(){return c.onSubmit()}),v._uU(18,"Submit "),v.qZA()()(),v.TgZ(19,"div",15)(20,"h5",16),v._uU(21,"Insert placeholders"),v.qZA(),v.TgZ(22,"div",17)(23,"div",18)(24,"div",19),v.NdJ("click",function(){return c.openDialog("howToUse")}),v.TgZ(25,"p",20),v._uU(26,"How to use?"),v.qZA()()(),v.TgZ(27,"div",21)(28,"div",22)(29,"div",23)(30,"div",24)(31,"p",25),v._uU(32,"Agreement date"),v.qZA()(),v.TgZ(33,"div",26)(34,"p",25),v._uU(35,"agreement-date"),v.qZA()()()()(),v.TgZ(36,"div",21)(37,"div",27)(38,"div",23)(39,"div",24)(40,"p",25),v._uU(41,"Client name"),v.qZA()(),v.TgZ(42,"div",26)(43,"p",25),v._uU(44,"client name"),v.qZA()()()()(),v.TgZ(45,"div",21)(46,"div",27)(47,"div",23)(48,"div",24)(49,"p",25),v._uU(50,"Client address"),v.qZA()(),v.TgZ(51,"div",26)(52,"p",25),v._uU(53,"client address"),v.qZA()()()()(),v.TgZ(54,"div",28)(55,"h5",29),v._uU(56,"Services - Fee details"),v.qZA(),v.TgZ(57,"div",27)(58,"div",23)(59,"div",24)(60,"p",25),v._uU(61,"Investment management & financial planning"),v.qZA()(),v.TgZ(62,"div",26)(63,"p",25),v._uU(64,"IMA124-fee"),v.qZA()()()()(),v.TgZ(65,"div",30)(66,"div",27)(67,"div",23)(68,"div",24)(69,"p",25),v._uU(70,"Retainer - AUM linked fee"),v.qZA()(),v.TgZ(71,"div",26)(72,"p",25),v._uU(73,"IMA125-fee"),v.qZA()()()()()()()()(),v.TgZ(74,"div",31)(75,"div",18)(76,"div",32)(77,"h5",33),v.NdJ("click",function(){return c.dialogClose()}),v._uU(78,"Cancel"),v.qZA()(),v.TgZ(79,"div",34)(80,"p",35),v._uU(81,"Help"),v.qZA()(),v.TgZ(82,"div",36)(83,"div",18),v._UZ(84,"div",37),v.TgZ(85,"div",38)(86,"button",39),v._uU(87,"PUBLISH"),v.qZA()()()()()()()),2&i&&(v.xp6(15),v.Q6J("formGroup",c.mailForm),v.xp6(1),v.Q6J("model",c.editorContent),v.xp6(1),v.Q6J("disabled",!c.mailForm.valid))},dependencies:[O.lW,t._Y,t.JL,t.sg,n.Q],styles:[".border-right-1[_ngcontent-%COMP%]{border-right:1px solid #ddd}img[_ngcontent-%COMP%]{max-width:100%}#ui-dashboard[_ngcontent-%COMP%]{padding-top:130px}#ui-dashboard[_ngcontent-%COMP%] .subscription-summary[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#000}hr[_ngcontent-%COMP%]{border-bottom:1px solid #DADCE0;width:90%;margin:0 auto;display:block}.bg-red[_ngcontent-%COMP%]{background-color:#ffd8d8}.btn-red[_ngcontent-%COMP%]{background-color:#d01010;color:#ffd5d5!important;font-size:20px;letter-spacing:.2px}h1[_ngcontent-%COMP%]{font-family:Playfair Display;font-style:normal;font-weight:400;padding-top:16px;line-height:40px;letter-spacing:.2px;margin-bottom:0}p[_ngcontent-%COMP%]{font-style:normal;font-weight:400;font-size:16px;line-height:130%;letter-spacing:.2px;color:#004164}.btn-red[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-left:2px;padding-top:2px}.dashboard-img[_ngcontent-%COMP%]{position:relative;margin-top:-85px}#ui-subscription-completeness[_ngcontent-%COMP%]{padding-top:50px}#ui-subscription-completeness[_ngcontent-%COMP%] .done-icons[_ngcontent-%COMP%]{background:#02B875;border-radius:50%;padding:5px;color:#fff;font-size:30px;margin-top:2px;text-align:center}#ui-subscription-completeness[_ngcontent-%COMP%] .default-icons[_ngcontent-%COMP%]{background:#BCC6CA;border-radius:50%;padding:5px;color:#fff;font-size:30px;margin-top:2px;text-align:center}#ui-subscription-completeness[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]:not([class*=mat-elevation-z]){box-shadow:none!important;border:1px solid rgba(0,0,0,.1);padding:0}#ui-subscription-completeness[_ngcontent-%COMP%] .w-110[_ngcontent-%COMP%]{width:110px!important}"]}),l})()},18815:(Tt,pt,a)=>{a.d(pt,{d:()=>z});var t=a(94650),Y=a(67241),e=a(41074),v=a(93584),g=a(6363),O=a(70591),n=a(65730),ot=a(70661),l=a(6
15938),et=a(34793),i=a(36895),c=a(4859),$=a(73546),s=a(28255),rt=a(10266),r=a(1078);function w(I,j){1&I&&(t.TgZ(0,"div",16)(1,"p",17),t._uU(2,"P"),t.qZA()())}function q(I,j){1&I&&(t.TgZ(0,"div",16)(1,"p",18),t._uU(2,"G"),t.qZA()())}function A(I,j){1&I&&(t.TgZ(0,"div",16)(1,"p",19),t._uU(2,"S"),t.qZA()())}function N(I,j){if(1&I){const M=t.EpF();t.TgZ(0,"a",20),t.NdJ("click",function(){t.CHM(M);const X=t.oxw(2);return t.KtG(X.editDocument())}),t._uU(1,"Edit document"),t.qZA()}}function P(I,j){if(1&I){const M=t.EpF();t.TgZ(0,"a",21),t.NdJ("click",function(){t.CHM(M);const X=t.oxw(2);return t.KtG(X.deleteModal("DOCUMENT",X.singleDocument.documentRepositoryId))}),t._uU(1,"Delete document"),t.qZA()}}function o(I,j){if(1&I){const M=t.EpF();t.TgZ(0,"mat-card",1)(1,"mat-card-header"),t._UZ(2,"app-custom-html",2),t.qZA(),t.TgZ(3,"mat-card-actions",3)(4,"div",4)(5,"div",5)(6,"mat-card-header")(7,"mat-card-title",6),t._uU(8),t.qZA(),t.TgZ(9,"mat-card-subtitle",7),t._uU(10),t.qZA()()(),t.YNc(11,w,3,0,"div",8),t.YNc(12,q,3,0,"div",8),t.YNc(13,A,3,0,"div",8),t.TgZ(14,"div",9),t.NdJ("click",function(){t.CHM(M);const X=t.oxw();return t.KtG(X.editDocument())}),t.TgZ(15,"button",10),t._uU(16,"VIEW"),t.qZA()(),t.TgZ(17,"div",11)(18,"i",12),t._uU(19," more_vert "),t.qZA(),t.TgZ(20,"mat-menu",null,13),t.YNc(22,N,2,0,"a",14),t.YNc(23,P,2,0,"a",15),t.qZA()()()()()}if(2&I){const M=t.MAs(21),L=t.oxw();t.xp6(2),t.Q6J("data",L.singleDocument.docText),t.xp6(6),t.hij(" ",L.singleDocument.name,""),t.xp6(2),t.hij(" ",L.singleDocument.code," "),t.xp6(1),t.Q6J("ngIf",1==L.singleDocument.mappedType),t.xp6(1),t.Q6J("ngIf",3==L.singleDocument.mappedType),t.xp6(1),t.Q6J("ngIf",2==L.singleDocument.mappedType),t.xp6(5),t.Q6J("matMenuTriggerFor",M),t.xp6(4),t.Q6J("ngIf",L.settingCapability.Edit),t.xp6(1),t.Q6J("ngIf",L.settingCapability.Delete)}}let z=(()=>{class I{constructor(M,L,X,H,lt,J){this.dialog=M,this.eventService=L,this.subService=X,this.router=H,this.location=lt,this.roleService=J,this.valueChange=new t.vpe}ngOnInit(){this.advisorId=n.e.getAdvisorId(),this.settingCapability=this.roleService.subscriptionPermission.subModule.settings.subModule.document.capabilityList}editDocument(){this.location.replaceState("/subscription-upper");const M={flag:"documents",id:1,data:{documentData:this.singleDocument,flag:"documents"},direction:"top",componentName:g.S,state:"open"},L=n.e.encrypt(JSON.stringify(M));sessionStorage.setItem("subUpperData",L);const X=this.eventService.changeUpperSliderState(M).subscribe(H=>{Y.fK.isDialogClose(H)&&(Y.fK.isRefreshRequired(H)&&this.valueChange.emit("close"),X.unsubscribe())})}deleteModal(M,L){const H=this.dialog.open(v.$,{width:"400px",data:{data:M,header:"DELETE",body:"Are you sure you want to delete?",body2:"This cannot be undone.",btnYes:"CANCEL",btnNo:"DELETE",positiveMethod:()=>{this.subService.deleteSettingsDocument(L).subscribe(lt=>{this.eventService.openSnackBar("Document is deleted","Dismiss"),this.valueChange.emit("close"),H.close(L)},lt=>this.eventService.showErrorMessage(lt))},negativeMethod:()=>{}},autoFocus:!1});H.afterClosed().subscribe(lt=>{this.valueChange.emit(lt)})}}return I.\u0275fac=function(M){return new(M||I)(t.Y36(l.uw),t.Y36(e.P),t.Y36(O.F),t.Y36(et.F0),t.Y36(i.Ye),t.Y36(ot.N))},I.\u0275cmp=t.Xpm({type:I,selectors:[["app-single-document-view"]],inputs:{singleDocument:"singleDocument"},outputs:{valueChange:"valueChange"},decls:1,vars:1,consts:[["class","example-card bg-grey lter p-0 b-a",4,"ngIf"],[1,"example-card","bg-grey","lter","p-0","b-a"],["id","ui-appcustomhtml",1,"customBoxDocument",3,"data"],[1,"pb-20","mb-0","p-0"],[1,"row","wrapper-8"],[1,"col-md-10"],["matTooltip","Document name",1,"mb-0","f-20","width235"],[1,"pt-8","pb-12","mb-0","text-left","f-16"],["class","col-md-2 pt-8 pr-0",4,"ngIf"],[1,"col-md-10","text-center",3,"click"],["mat-stroked-button","",1,"btn-header","addon","ml-44","br-0"],[1,"col-md-2"],[1,"material-icons","f-40","c-p","text-primitive",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","","class","bt-1",3,"click",4,"ngIf"],[1,"col-md-2","pt-8","pr-0"],["matTooltip","Plan document",1,"blue","text-white","f-16"],["matTooltip","Global document",1,"green","text-white","f-16"],["matTooltip","Service document",1,"green","text-white","f-16"],["mat-menu-item","",3,"click"],["mat-menu-item","",1,"bt-1",3,"click"]],template:function(M,L){1&M&&t.YNc(0,o,24,9,"mat-card",0),2&M&&t.Q6J("ngIf",L.singleDocument.name)},dependencies:[c.lW,$.a8,$.dk,$.n5,$.$j,$.hq,s.VK,s.OP,s.p6,rt.gM,i.O5,r.n],styles:[".customBoxDocument[_ngcontent-%COMP%]{background:#ffffff;height:350px;width:100%}.width235[_ngcontent-%COMP%]{width:235px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.green[_ngcontent-%COMP%]{background-color:#02b875;height:20px;width:20px;text-align:center;margin-left:10px}app-custom-html[_ngcontent-%COMP%]{font-size:8px;padding:10px 15px}"]}),I})()},3888:(Tt,pt,a)=>{a.d(pt,{W:()=>N});var t=a(94650),Y=a(4859),e=a(28255),v=a(53626);function g(P,o){1&P&&(t.TgZ(0,"th",30),t._uU(1," Date "),t.qZA())}
1function O(P,o){if(1&P){const z=t.EpF();t.TgZ(0,"td",31),t.NdJ("click",function(){t.CHM(z);const j=t.oxw();return t.KtG(j.showInvoice())}),t._uU(1),t.qZA()}if(2&P){const z=o.$implicit;t.xp6(1),t.hij(" ",z.date," ")}}function n(P,o){1&P&&(t.TgZ(0,"th",30),t._uU(1," Invoice Number "),t.qZA())}function ot(P,o){if(1&P&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&P){const z=o.$implicit;t.xp6(1),t.hij(" ",z.invoice," ")}}function l(P,o){1&P&&(t.TgZ(0,"th",30),t._uU(1," Status "),t.qZA())}function et(P,o){if(1&P&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&P){const z=o.$implicit;t.xp6(1),t.hij(" ",z.status," ")}}function i(P,o){1&P&&(t.TgZ(0,"th",30),t._uU(1," Due date "),t.qZA())}function c(P,o){if(1&P&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&P){const z=o.$implicit;t.xp6(1),t.hij(" ",z.ddate," ")}}function $(P,o){1&P&&(t.TgZ(0,"th",30),t._uU(1," Amount "),t.qZA())}function s(P,o){if(1&P&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&P){const z=o.$implicit;t.xp6(1),t.hij(" ",z.amount," ")}}function rt(P,o){1&P&&(t.TgZ(0,"th",30),t._uU(1," Balance date "),t.qZA())}function r(P,o){if(1&P&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&P){const z=o.$implicit;t.xp6(1),t.hij(" ",z.balance," ")}}function w(P,o){1&P&&t._UZ(0,"tr",33)}function q(P,o){1&P&&t._UZ(0,"tr",34)}const A=[{date:"26/08/2019",invoice:"INV-19-20-103001",status:"OVERDUE",ddate:"05/09/2019",amount:"Rs.20,000",balance:"Rs.20,000"},{date:"28/08/2019",invoice:"INV-19-20-103012",status:"PAID",ddate:"05/09/2019",amount:"Rs.1,20,000",balance:"Rs.0"},{date:"29/08/2019",invoice:"INV-19-20-103001",status:"SENT",ddate:"05/09/2019",amount:"Rs.7,000",balance:"Rs.7,000"}];let N=(()=>{class P{constructor(){this.displayedColumns=["date","invoice","status","ddate","amount","balance"],this.dataSource=A}ngOnInit(){}showInvoice(){}Close(){}}return P.\u0275fac=function(z){return new(z||P)},P.\u0275cmp=t.Xpm({type:P,selectors:[["app-clients-dashboard"]],decls:52,vars:4,consts:[[1,"row","popup-header-fix-60"],[1,"col-md-10","p-0"],[1,"mb-0","pt-24","pl-24"],[1,"col-md-2","text-right"],[1,"material-icons","pt-12","c-p",3,"click"],[1,"row","bb-1","wrapper-20"],[1,"mb-0","pt-4"],[1,"pt-4","c-p","mb-0"],[1,"wrapper-40"],["mat-table","","id","table-low",3,"dataSource"],["matColumnDef","date"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","invoice"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","ddate"],["matColumnDef","amount"],["matColumnDef","balance"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"bottom-fixed","wrapper-12"],[1,"row"],[1,"col-md-4"],[1,"mb-0","pt-8","text-white","c-p",3,"click"],[1,"col-md-8","right","text-right"],["mat-button","",1,"btn-bottom","br-0","text-inherit",3,"matMenuTriggerFor"],[1,"material-icons"],["menu","matMenu"],["mat-menu-item",""],["mat-header-cell",""],["mat-cell","",3,"click"],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(z,I){if(1&z&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h3",2),t._uU(3,"SUB-0001"),t.qZA()(),t.TgZ(4,"div",3)(5,"i",4),t.NdJ("click",function(){return I.Close()}),t._uU(6," clear"),t.qZA()()(),t.TgZ(7,"div",5)(8,"div",1)(9,"h5",6),t._uU(10,"Invoice History"),t.qZA()(),t.TgZ(11,"div",3)(12,"p",7),t._uU(13," Activity log"),t.qZA()()(),t.TgZ(14,"div",8)(15,"table",9),t.ynx(16,10),t.YNc(17,g,2,0,"th",11),t.YNc(18,O,2,1,"td",12),t.BQk(),t.ynx(19,13),t.YNc(20,n,2,0,"th",11),t.YNc(21,ot,2,1,"td",14),t.BQk(),t.ynx(22,15),t.YNc(23,l,2,0,"th",11),t.YNc(24,et,2,1,"td",14),t.BQk(),t.ynx(25,16),t.YNc(26,i,2,0,"th",11),t.YNc(27,c,2,1,"td",14),t.BQk(),t.ynx(28,17),t.YNc(29,$,2,0,"th",11),t.YNc(30,s,2,1,"td",14),t.BQk(),t.ynx(31,18),t.YNc(32,rt,2,0,"th",11),t.YNc(33,r,2,1,"td",14),t.BQk(),t.YNc(34,w,1,0,"tr",19),t.YNc(35,q,1,0,"tr",20),t.qZA()(),t.TgZ(36,"div",21)(37,"div",22)(38,"div",23)(39,"h5",24),t.NdJ("click",function(){return I.Close()}),t._uU(40,"Cancel"),t.qZA()(),t.TgZ(41,"div",25)(42,"button",26),t._uU(43,"Email with eSign Request "),t.TgZ(44,"i",27),t._uU(45," arrow_drop_up "),t.qZA()(),t.TgZ(46,"mat-menu",null,28)(48,"button",29),t._uU(49,"Item 1"),t.qZA(),t.TgZ(50,"button",29),t._uU(51,"Item 2"),t.qZA()()()()()),2&z){const j=t.MAs(47);t.xp6(15),t.Q6J("dataSource",I.dataSource),t.xp6(19),t.Q6J("matHeaderRowDef",I.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",I.displayedColumns),t.xp6(7),t.Q6J("matMenuTriggerFor",j)}},dependencies:[Y.lW,e.VK,e.OP,e.p6,v.BZ,v.fO,v.as,v.w1,v.Dz,v.nj,v.ge,v.ev,v.XQ,v.Gk]}),P})()},55814:(Tt,pt,a)=>{a.d(pt,{Q:()=>V});
1var t=a(94650),Y=a(41074),e=a(77491),v=a(93584),g=a(70591),O=a(67241),n=a(65730),ot=a(5029),l=a(54441),et=a(74226),i=a(38491),c=a(84829),$=a(32107),s=a(22351),rt=a(80853),r=a(23767),w=a(65938),q=a(34793),A=a(95661),N=a(4859),P=a(90811),o=a(28255),z=a(51572),I=a(53626),j=a(36895),M=a(24006),L=a(56724),X=a(81638),H=a(21112),lt=a(413);const J=["tableEl"];function st(d,b){1&d&&(t.TgZ(0,"div")(1,"p",55),t._uU(2,"We\u2019re excited to see you here! The dashboard currently looks barren. "),t.qZA(),t.TgZ(3,"p",31),t._uU(4," Fret not. We\u2019ll help you in this journey. We\u2019re in this together. "),t.qZA()())}function Q(d,b){1&d&&(t.TgZ(0,"p",56),t._uU(1," Welcome back !! "),t.qZA())}function at(d,b){if(1&d){const _=t.EpF();t.TgZ(0,"button",57),t.NdJ("click",function(){t.CHM(_);const k=t.oxw(2);return t.KtG(k.showSubscriptionSteps())}),t._uU(1,"Let's begin "),t.TgZ(2,"i",58),t._uU(3," arrow_forward "),t.qZA()()}}function B(d,b){if(1&d&&(t.TgZ(0,"div",59)(1,"div",60)(2,"div",13)(3,"div",61),t._UZ(4,"circle-progress",62),t.qZA()()(),t.TgZ(5,"p",63),t._uU(6,"Clients with subscription "),t.qZA(),t.TgZ(7,"div",64)(8,"p",65),t._uU(9,"Subscription summary"),t.qZA(),t.TgZ(10,"div",66)(11,"div",67)(12,"p",68),t._uU(13,"Total"),t.qZA(),t.TgZ(14,"h4",69),t._uU(15),t.qZA()(),t.TgZ(16,"div",70)(17,"p",68),t._uU(18,"This month"),t.qZA(),t.TgZ(19,"h4",69),t._uU(20),t.qZA()(),t.TgZ(21,"div",67)(22,"p",68),t._uU(23," Today"),t.qZA(),t.TgZ(24,"h4",69),t._uU(25),t.qZA()()()()()),2&d){const _=t.oxw(2);t.xp6(4),t.Q6J("animationDuration",1e3)("animation",!0)("innerStrokeColor","#e7e8ea")("innerStrokeWidth",10)("outerStrokeColor",_.priamaryColor)("outerStrokeWidth",10)("percent",_.dataSourceClientWithSub.activeClientPer)("radius",100)("responsive",!0)("showSubtitle",!1)("space",-10)("startFromZero",!1)("titleFontSize",35)("unitsFontSize",35),t.xp6(11),t.Oqu(_.dataSourceClientWithSub.activeClient),t.xp6(5),t.hij("",_.dataSourceClientWithSub.monthSubscription," "),t.xp6(5),t.Oqu(_.dataSourceClientWithSub.todayActive)}}function tt(d,b){if(1&d&&(t.TgZ(0,"span")(1,"p",80),t._uU(2),t.qZA()()),2&d){const _=t.oxw().$implicit;t.xp6(2),t.hij("",_.clientName," ")}}function gt(d,b){if(1&d&&(t.TgZ(0,"span")(1,"p",81),t._uU(2),t.qZA()()),2&d){const _=t.oxw().$implicit;t.xp6(2),t.hij(" ",_.invoiceNumber,"")}}function bt(d,b){if(1&d&&(t.TgZ(0,"span")(1,"p",82),t._uU(2,"\u20b9 "),t.TgZ(3,"span",83),t._uU(4),t.qZA()()()),2&d){const _=t.oxw().$implicit;t.xp6(3),t.Q6J("value",_.finalAmount),t.xp6(1),t.Oqu(_.finalAmount)}}function ft(d,b){if(1&d&&(t.TgZ(0,"span")(1,"p",84),t._uU(2),t.ALo(3,"date"),t.qZA()()),2&d){const _=t.oxw().$implicit;t.xp6(2),t.hij("",t.xi3(3,1,_.invoiceDate,"dd/MM/yyyy")," ")}}const Dt=function(d){return{"mb-10":d}};function St(d,b){if(1&d){const _=t.EpF();t.TgZ(0,"div",61,75)(2,"div",76),t.NdJ("click",function(){const nt=t.CHM(_).$implicit,ht=t.oxw(3);return t.KtG(ht.openInvoice(nt,"invoiceUpperSlider",""))}),t.TgZ(3,"div",77)(4,"div",78)(5,"div",35),t.YNc(6,tt,3,1,"span",9),t.qZA()(),t.TgZ(7,"div",78)(8,"div",35),t.YNc(9,gt,3,1,"span",9),t.qZA()()(),t.TgZ(10,"div",79)(11,"div",78)(12,"div",35),t.YNc(13,bt,5,2,"span",9),t.qZA()(),t.TgZ(14,"div",78)(15,"div",35),t.YNc(16,ft,4,4,"span",9),t.qZA()()()()()}if(2&d){const _=t.oxw(3);t.xp6(5),t.Q6J("ngClass",t.VKq(8,Dt,_.isLoadingInvoice)),t.xp6(1),t.Q6J("ngIf",!_.isLoadingInvoice),t.xp6(2),t.Q6J("ngClass",t.VKq(10,Dt,_.isLoadingInvoice)),t.xp6(1),t.Q6J("ngIf",!_.isLoadingInvoice),t.xp6(3),t.Q6J("ngClass",t.VKq(12,Dt,_.isLoadingInvoice)),t.xp6(1),t.Q6J("ngIf",!_.isLoadingInvoice),t.xp6(2),t.Q6J("ngClass",t.VKq(14,Dt,_.isLoadingInvoice)),t.xp6(1),t.Q6J("ngIf",!_.isLoadingInvoice)}}function Mt(d,b){1&d&&t._UZ(0,"mat-spinner",85),2&d&&t.Q6J("diameter",30)}function Pt(d,b){if(1&d){const _=t.EpF();t.TgZ(0,"div",71),t.NdJ("scroll",function(k){t.CHM(_);const nt=t.oxw(2);return t.KtG(nt.onWindowScroll(k))}),t.YNc(1,St,17,16,"div",72),t.TgZ(2,"div",73),t.YNc(3,Mt,1,1,"mat-spinner",74),t.qZA()()}if(2&d){const _=t.oxw(2);t.Q6J("appSkeletonLoading",_.isLoadingInvoice),t.xp6(1),t.Q6J("ngForOf",_.manualInvoice),t.xp6(2),t.Q6J("ngIf",_.infiniteScrollingFlag)}}function At(d,b){1&d&&(t.TgZ(0,"div",86)(1,"i",87),t._uU(2,"receipt"),t.qZA(),t.TgZ(3,"p",88),t._uU(4," No data found "),t.qZA()())}function It(d,b){if(1&d){const _=t.EpF();t.TgZ(0,"div",89)(1,"div",90),t.NdJ("click",function(){t.CHM(_);const k=t.oxw(2);return t.KtG(k.changeParentsTab(5))}
1),t._uU(2,"View all "),t.qZA()()}}const F=function(d){return{height23:d}};function mt(d,b){if(1&d&&(t.TgZ(0,"div",35),t._uU(1),t.qZA()),2&d){const _=t.oxw(2);t.Q6J("ngClass",t.VKq(2,F,_.isLoading)),t.xp6(1),t.hij(" ",_.dataSourceSingCount.sentCount," ")}}function R(d,b){if(1&d&&(t.TgZ(0,"div",35),t._uU(1),t.qZA()),2&d){const _=t.oxw(2);t.Q6J("ngClass",t.VKq(2,F,_.isLoading)),t.xp6(1),t.hij(" ",_.isLoading?"":"0"," ")}}function dt(d,b){if(1&d&&(t.TgZ(0,"div",35),t._uU(1),t.qZA()),2&d){const _=t.oxw(2);t.Q6J("ngClass",t.VKq(2,F,_.isLoading)),t.xp6(1),t.hij(" ",_.dataSourceSingCount.signedCount," ")}}function _t(d,b){if(1&d&&(t.TgZ(0,"div",35),t._uU(1),t.qZA()),2&d){const _=t.oxw(2);t.Q6J("ngClass",t.VKq(2,F,_.isLoading)),t.xp6(1),t.hij(" ",_.isLoading?"":"0"," ")}}function ut(d,b){1&d&&(t.TgZ(0,"th",107),t._uU(1," Client name"),t.qZA())}function Ct(d,b){if(1&d){const _=t.EpF();t.TgZ(0,"td",108),t.NdJ("click",function(){const nt=t.CHM(_).$implicit,ht=t.oxw(3);return t.KtG(ht.openPlanSlider("SUBSCRIPTIONS","open",nt))}),t.TgZ(1,"div",16),t._uU(2),t.qZA()()}if(2&d){const _=b.$implicit;t.xp6(2),t.hij(" ",_.clientName," ")}}function Ot(d,b){1&d&&(t.TgZ(0,"th",107),t._uU(1," Service name"),t.qZA())}function Lt(d,b){if(1&d&&(t.TgZ(0,"td",109)(1,"div",16),t._uU(2),t.qZA()()),2&d){const _=b.$implicit;t.xp6(2),t.hij(" ",_.serviceName," ")}}function Z(d,b){1&d&&(t.TgZ(0,"th",110),t._uU(1," Fee amount"),t.qZA())}function W(d,b){1&d&&t._UZ(0,"div",16)}function y(d,b){if(1&d){const _=t.EpF();t.TgZ(0,"div",115),t.NdJ("click",function(){t.CHM(_);const k=t.oxw().$implicit,nt=t.oxw(3);return t.KtG(nt.Open(k))}),t._uU(1),t.qZA()}if(2&d){const _=t.oxw(4);t.xp6(1),t.hij(" ",_.isLoadingSubSummary?" ":"View details"," ")}}function xt(d,b){if(1&d&&(t.TgZ(0,"div",116),t._uU(1),t.qZA()),2&d){const _=t.oxw().$implicit;t.xp6(1),t.hij(" \u20b9 ",_.pricing,"")}}function Et(d,b){if(1&d){const _=t.EpF();t.TgZ(0,"div",117),t.NdJ("click",function(){t.CHM(_);const k=t.oxw().$implicit,nt=t.oxw(3);return t.KtG(nt.Open(k))}),t._uU(1," View details"),t.qZA()}}function Nt(d,b){if(1&d){const _=t.EpF();t.TgZ(0,"td",108),t.NdJ("click",function(){const nt=t.CHM(_).$implicit,ht=t.oxw(3);return t.KtG(ht.Open(nt))}),t.YNc(1,W,1,0,"div",111),t.YNc(2,y,2,1,"div",112),t.YNc(3,xt,2,1,"div",113),t.YNc(4,Et,2,0,"div",114),t.qZA()}if(2&d){const _=b.$implicit,D=t.oxw(3);t.xp6(1),t.Q6J("ngIf",D.isLoadingSubSummary),t.xp6(1),t.Q6J("ngIf",null==_.startsOn&&1==_.feeTypeId),t.xp6(1),t.Q6J("ngIf",_.startsOn&&1==_.feeTypeId),t.xp6(1),t.Q6J("ngIf",2==_.feeTypeId)}}function wt(d,b){1&d&&(t.TgZ(0,"th",107),t._uU(1," Next billing date"),t.qZA())}function Ut(d,b){if(1&d&&(t.TgZ(0,"div",16),t._uU(1),t.ALo(2,"date"),t.qZA()),2&d){const _=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,_.nextBillingDate,"dd/MM/yyyy")," ")}}function Rt(d,b){if(1&d&&(t.TgZ(0,"div",16),t._uU(1),t.qZA()),2&d){const _=t.oxw(4);t.xp6(1),t.hij(" ",_.isLoadingSubSummary?"":"Not Started"," ")}}function U(d,b){if(1&d&&(t.TgZ(0,"td",118),t.YNc(1,Ut,3,4,"div",111),t.YNc(2,Rt,2,1,"div",111),t.qZA()),2&d){const _=b.$implicit;t.xp6(1),t.Q6J("ngIf",_.nextBillingDate),t.xp6(1),t.Q6J("ngIf",!_.nextBillingDate)}}function it(d,b){1&d&&t._UZ(0,"th",119)}function u(d,b){if(1&d&&(t.TgZ(0,"i",126),t._uU(1," more_vert "),t.qZA()),2&d){t.oxw();const _=t.MAs(4);t.Q6J("matMenuTriggerFor",_)}}function x(d,b){if(1&d){const _=t.EpF();t.TgZ(0,"a",125),t.NdJ("click",function(){t.CHM(_);const k=t.oxw().$implicit,nt=t.oxw(3);return t.KtG(nt.Open(k))}),t._uU(1,"View fee structure"),t.qZA()}}function h(d,b){if(1&d){const _=t.EpF();t.TgZ(0,"a",127),t.NdJ("click",function(){t.CHM(_);const k=t.oxw().$implicit,nt=t.oxw(3);return t.KtG(nt.openPlanSlider("billerSettings","open",k))}),t._uU(1,"Change biller"),t.qZA()}}function K(d,b){if(1&d){const _=t.EpF();t.TgZ(0,"a",125),t.NdJ("click",function(){t.CHM(_);const k=t.oxw().$implicit,nt=t.oxw(3);return t.KtG(nt.openPlanSlider("changePayee","open",k))}),t._uU(1,"Change payee"),t.qZA()}}function G(d,b){if(1&d){const _=t.EpF();t.TgZ(0,"a",125),t.NdJ("click",function(){t.CHM(_);const k=t.oxw().$implicit,nt=t.oxw(3);return t.KtG(nt.delete("cancelSubscription",k))}),t._uU(1,"Cancel subscription"),t.qZA()}}function vt(d,b){if(1&d){const _=t.EpF();t.TgZ(0,"td",120)(1,"div",16),t.YNc(2,u,2,1,"i",121),t.qZA(),t.TgZ(3,"mat-menu",null,122),t.YNc(5,x,2,0,"a",123),t.YNc(6,h,2,0,"a",124),t.YNc(7,K,2,0,"a",123),t.YNc(8,G,2,0,"a",123),t.TgZ(9,"a",125),t.NdJ("click",function(){const nt=t.CHM(_).$implicit,ht=t.oxw(3);return t.KtG(ht.deleteModal("SUBSCRIPTION",nt))}),t._uU(10,"Delete subscription"),t.qZA()()()}if(2&d){const _=b.$implicit,D=t.oxw(3);t.xp6(2),t.Q6J("ngIf",!D.isLoadingSubSummary),t.xp6(3),t.Q6J("ngIf",1==_.status||1==_.feeTypeId||2==_.feeTypeId),t.xp6(1),t.Q6J("ngIf",4!=_.status&&1!=_.status),t.xp6(1),t.Q6J("ngIf",4!=_.status&&1!=_.status),t.xp6(1),t.Q6J("ngIf",2==_.status||3==_.status)}}function yt(d,b){1&d&&t._UZ(0,"tr",128)}function T(d,b){1&d&&t._UZ(0,"tr",129)}const f=function(d){return{"ox-hide":d}};function m(d,b){if(1&d&&(t.TgZ(0,"div",91)(1,"table",92)(2,"tbody"),t.ynx(3,93),t.YNc(4,ut,2,0,"th",94),t.YNc(5,Ct,3,1,"td",95),t.BQk(),t.ynx(6,96),t.YNc(7,Ot,2,0,"th",94),t.YNc(8,Lt,3,1,"td",97),t.BQk(),t.ynx(9,98),t.YNc(10,Z,2,0,"th",99),t.YNc(11,Nt,5,4,"td",95),t.BQk(),t.ynx(12,100),t.YNc(13,wt,2,0,"th",94),t.YNc(14,U,3,2,"td",101),t.BQk(),t.ynx(15,102),t.YNc(16,it,1,0,"th",103),t.YNc(17,vt,11,5,"td",104),t.BQk(),t.YNc(18,yt,1,0,"tr",105),t.YNc(19,T,1,0,"tr",106),t.qZA()()()),2&d){const _=t.oxw(2);t.Q6J("ngClass",t.VKq(5,f,_.isLoadingSubSummary)),t.xp6(1),t.Q6J("appSkeletonLoading",_.isLoadingSubSummary)("dataSource",_.dataSource),t.xp6(17),t.Q6J("matHeaderRowDef",_.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",_.displayedColumns)}}function p(d,b){1&d&&(t.TgZ(0,"div",86),t._UZ(1,"img",130),t.qZA())}function C(d,b){if(1&d){const _=t.EpF();t.TgZ(0,"div",131)(1,"div",90),t.NdJ("click",function(){t.CHM(_);const k=t.oxw(2);return t.KtG(k.changeParentsTab(3))}
1),t._uU(2,"View all"),t.qZA()()}}const E=function(d){return{"bg-primary":d}};function ct(d,b){if(1&d){const _=t.EpF();t.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"img",6),t.NdJ("load",function(){t.CHM(_);const k=t.oxw();return t.KtG(k.onImageLoad())}),t.qZA()(),t.TgZ(5,"div",7)(6,"h1",8),t._uU(7),t.qZA(),t.YNc(8,st,5,0,"div",9),t.YNc(9,Q,2,0,"p",10),t.YNc(10,at,4,0,"button",11),t.qZA()(),t.TgZ(11,"div",12)(12,"div",13)(13,"div",14)(14,"div",13)(15,"div",15)(16,"div",16),t.YNc(17,B,26,17,"div",17),t.qZA()(),t.TgZ(18,"div",18)(19,"div",19)(20,"div",20)(21,"div",21)(22,"h4",22),t._uU(23,"Draft invoices "),t.qZA()(),t.YNc(24,Pt,4,3,"div",23),t.YNc(25,At,5,0,"div",24),t.qZA()()()(),t.YNc(26,It,3,0,"div",25),t.qZA(),t.TgZ(27,"div",26)(28,"div",13)(29,"div",27)(30,"div",28)(31,"div",29)(32,"div",30)(33,"p",31),t._uU(34,"Last 30 days "),t.qZA()()(),t.TgZ(35,"div",32)(36,"p",33),t._uU(37,"Total sales"),t.qZA(),t.TgZ(38,"h2",34)(39,"div",35),t._uU(40),t.qZA()()(),t.TgZ(41,"div",36)(42,"p",33),t._uU(43,"Fee received"),t.qZA(),t.TgZ(44,"h2",34)(45,"div",35),t._uU(46),t.qZA()()()()(),t.TgZ(47,"div",37)(48,"div",28)(49,"div",32)(50,"div")(51,"p",38),t._uU(52,"Docs sent "),t.qZA(),t.TgZ(53,"h2",39),t.YNc(54,mt,2,4,"div",40),t.YNc(55,R,2,4,"div",40),t.qZA()()(),t.TgZ(56,"div",41)(57,"div")(58,"p",42),t._uU(59,"Docs signed "),t.qZA(),t.TgZ(60,"h2",43),t.YNc(61,dt,2,4,"div",40),t.YNc(62,_t,2,4,"div",40),t.qZA()()()()()(),t.TgZ(63,"div",44)(64,"div",45)(65,"div",46)(66,"div",13)(67,"div",47)(68,"h4",48),t._uU(69,"Subscription summary"),t.qZA()(),t.TgZ(70,"div",49)(71,"mat-button-toggle-group",50),t.NdJ("change",function(){t.CHM(_);const k=t.oxw();return t.KtG(k.getSummaryDataDashboard())})("ngModelChange",function(k){t.CHM(_);const nt=t.oxw();return t.KtG(nt.subscriptionSummaryStatusFilter=k)}),t.TgZ(72,"mat-button-toggle",51),t._uU(73,"NOT STARTED"),t.qZA(),t.TgZ(74,"mat-button-toggle",52),t._uU(75,"UPCOMING"),t.qZA()()()(),t.YNc(76,m,20,7,"div",53),t.YNc(77,p,2,0,"div",24),t.qZA(),t.YNc(78,C,3,0,"div",54),t.qZA()()()()()()()}if(2&d){const _=t.oxw();
1t.xp6(4),t.Q6J("ngClass",t.VKq(26,E,_.isImageLoaded)),t.xp6(3),t.AsE("Hi ",_.advisorName,", ",_.greeting,""),t.xp6(1),t.Q6J("ngIf",_.showLetsBegin),t.xp6(1),t.Q6J("ngIf",!_.showLetsBegin&&!_.isLoading),t.xp6(1),t.Q6J("ngIf",_.showLetsBegin),t.xp6(7),t.Q6J("ngIf",null!=_.dataSourceClientWithSub),t.xp6(7),t.Q6J("ngIf",_.manualInvoice.length>0),t.xp6(1),t.Q6J("ngIf",0==_.manualInvoice.length),t.xp6(1),t.Q6J("ngIf",_.manualInvoice.length>0),t.xp6(9),t.Q6J("appSkeletonLoading",_.isLoading),t.xp6(4),t.Q6J("ngClass",t.VKq(28,F,_.isLoading)),t.xp6(1),t.hij(" ",_.totalSales," "),t.xp6(1),t.Q6J("appSkeletonLoading",_.isLoading),t.xp6(4),t.Q6J("ngClass",t.VKq(30,F,_.isLoading)),t.xp6(1),t.hij(" ",_.feeRecieved," "),t.xp6(3),t.Q6J("appSkeletonLoading",_.isLoadingDocsSent),t.xp6(5),t.Q6J("ngIf",null!=_.dataSourceSingCount),t.xp6(1),t.Q6J("ngIf",null==_.dataSourceSingCount),t.xp6(1),t.Q6J("appSkeletonLoading",_.isLoadingDocsSent),t.xp6(5),t.Q6J("ngIf",null!=_.dataSourceSingCount),t.xp6(1),t.Q6J("ngIf",null==_.dataSourceSingCount),t.xp6(9),t.Q6J("ngModel",_.subscriptionSummaryStatusFilter),t.xp6(5),t.Q6J("ngIf",_.dataSource.length>0),t.xp6(1),t.Q6J("ngIf",0==_.dataSource.length),t.xp6(1),t.Q6J("ngIf",_.dataSource)}}function Zt(d,b){if(1&d){const _=t.EpF();t.TgZ(0,"app-subscription-completeness",132),t.NdJ("dashboard",function(k){t.CHM(_);const nt=t.oxw();return t.KtG(nt.display(k))})("subscriptionIndex",function(k){t.CHM(_);const nt=t.oxw();return t.KtG(nt.getIndex(k))}),t.qZA()}}let V=(()=>{class d{constructor(_,D,k,nt,ht,Qt,Bt,Kt,Ft){this.enumService=_,this.subInjectService=D,this.eventService=k,this.dialog=nt,this.subService=ht,this.router=Qt,this.activatedRoute=Bt,this.utilservice=Kt,this.themingService=Ft,this.dataSource=[{},{},{}],this.isLoading=!1,this.isLoadingSubSummary=!1,this.isLoadingTotal=!1,this.isLoadingFee=!1,this.isLoadingDocsSent=!1,this.isLoadingDocsSigned=!1,this.subIndex=new t.vpe,this.dataSourceClientWithSub={},this.showSubStep=!1,this.displayedColumns=["name","service","amt","billing","icons"],this.subscriptionSummaryStatusFilter="1",this.showLetsBegin=!1,this.isAdvisor=!0,this.manualInvoice=[{},{},{}],this.offestInc=0,this.isImageLoaded=!1;const Jt=(new Date).getHours();this.greeting=Jt<12?"Good morning":Jt<16?"Good afternoon":"Good evening"}ngOnInit(){this.priamaryColor=this.themingService.getThemeColor(),this.advisorId=n.e.getAdvisorId(),this.advisorName=n.e.getUserInfo().name,this.initChart(),this.getDashboardResponse(),this.subService.dataSourceSingCount?this.docSentSignedCountResponse(this.subService.dataSourceSingCount):this.docSentSignedCountData(),this.subService.dataSourceClientWithSub?this.clientWithSubscriptionRes(this.subService.dataSourceClientWithSub):this.clientWithSubscription(),this.invoiceData(),this.get
1SummaryDataDashboard(),this.subService.totalSalesRes?this.getTotalRecivedRes(this.subService.totalSalesRes):this.getTotalRecivedByDash()}onImageLoad(){this.isImageLoaded=!0}invoiceData(){this.isLoadingInvoice=!0,this.subService.filterInvoices({Id:this.advisorId,limit:10,module:1,offset:0,fromDate:null,toDate:null,statusIdList:7,dateType:0}).subscribe(D=>{this.filterSubscriptionRes(D)})}onWindowScroll(_){this.tableEl.nativeElement.offsetParent.offsetTop+880+50*this.offestInc<=_.target.scrollTop+_.target.offsetHeight&&(this.hasEndReached||(this.offestInc=this.offestInc+10,this.infiniteScrollingFlag=!0,this.hasEndReached=!0,this.scrollFunction(this.offestInc)))}scrollFunction(_){this.subService.filterInvoices({Id:this.advisorId,limit:10,module:1,offset:_,fromDate:null,toDate:null,statusIdList:7,dateType:0}).subscribe(k=>{this.infiniteScrollingFlag=!1,k&&k.length>0&&(this.manualInvoice=this.manualInvoice.concat(k),this.hasEndReached=!1)},k=>{this.infiniteScrollingFlag=!1,this.eventService.openSnackBar(k,"Dismiss")})}filterSubscriptionRes(_){this.isLoading=!1,this.manualInvoice=_||[],this.isLoadingInvoice=!1}
1getIndex(_){this.subIndex.emit(_)}display(_){this.showSubStep=!1}getDashboardResponse(){this.subService.getDashboardSubscriptionResponse(this.advisorId).subscribe(_=>{this.showLetsBegin=!_.show,this.showLetsBeginData=_.advisorAccomplishedSubscriptionFinalList,this.utilservice.subscriptionStepData=this.showLetsBeginData})}initChart(){const _=new ot.kL({chart:{type:"line"},title:{text:"Linechart"},credits:{enabled:!1},series:[{name:"Line 1",data:[1,2,3],type:"line"}]});_.addPoint(4),this.chart=_,_.addPoint(5),_.ref$.subscribe(D=>{setTimeout(()=>{D.reflow(),_.addPoint(6)},100)})}Open(_){let D;_.isCreateSub=!0,D=1==_.subscriptionPricing.feeTypeId?et.B:l.i;const nt=this.subInjectService.changeNewRightSliderState({data:_,id:1,state:"open",componentName:D}).subscribe(ht=>{O.fK.isDialogClose(ht)&&nt.unsubscribe()})}openPlanSlider(_,D,k){let nt;if(this.isLoading)return;"billerSettings"==_?nt=i.P:"changePayee"==_?nt=c.a:"SUBSCRIPTIONS"==_?nt=$.F:_=1==k.subscriptionPricing.feeTypeId?"createSubFixed":"createSubVariable",k.isCreateSub=!1;const Qt=this.subInjectService.changeNewRightSliderState({flag:_,data:k,id:1,state:"open",componentName:nt}).subscribe(Bt=>{O.fK.isDialogClose(Bt)&&Qt.unsubscribe()})}getTotalRecivedByDash(){this.isLoading=!0;const _=new Date;_.setMonth(_.getMonth()-1);const D={advisorId:this.advisorId,fromDate:O.fK.getStartOfTheDay(_).getTime(),toDate:O.fK.getEndOfDay(new Date).getTime()};this.subService.getTotalRecived(D).subscribe(k=>this.getTotalRecivedRes(k))}formatDate(_){return new Date(_).getFullYear()+"-"+new Date(_).getMonth()+"1-"+new Date(_).getDate()}getTotalRecivedRes(_){this.isLoading=!1,this.subService.totalSalesRes=_,this.totalSaleReceived=_,this.totalSales=null!=_?O.fK.getNumberToWord(_.totalSales):"0",this.feeRecieved=null!=_?O.fK.getNumberToWord(_.feeRecieved):"0"}showSubscriptionSteps(){this.showSubStep=!0}changeParentsTab(_){this.eventService.tabData(_),3===_?this.router.navigate(["../subscriptions"],{relativeTo:this.activatedRoute}):5===_&&this.router.navigate(["../billing"],{relativeTo:this.activatedRoute})}delete(_,D){"cancelSubscription"===_&&this.dialog.open(e.i,{width:"400px",data:{flag:_,subData:D},autoFocus:!1}).afterClosed().subscribe(ht=>{ht&&this.getSummaryDataDashboard()})}getSummaryDataDashboard(){const _={advisorId:this.advisorId,limit:9,offset:0,dateType:0,statusIdList:[this.subscriptionSummaryStatusFilter],fromDate:null,toDate:null};this.dataSource=[{},{},{}],this.isLoadingSubSummary=!0,this.subService.filterSubscription(_).subscribe(D=>this.getSubSummaryRes(D),D=>{this.isLoadingSubSummary=!1,this.dataSource=[]})}getSubSummaryRes(_){this.isLoadingSubSummary=!1,_?(_.forEach(D=>{D.feeTypeId=D.subscriptionPricing.feeTypeId,D.pricing=1==D.subscriptionPricing.feeTypeId?D.subscriptionPricing.subscriptionAssetPricingList[0].pricing:""}),this.dataSource=_):this.dataSource=[]}docSentSignedCountData(){this.isLoadingDocsSent=!0,this.subService.docSentSignedCount({advisorId:this.advisorId}).subscribe(D=>this.docSentSignedCountResponse(D))}docSentSignedCountResponse(_){_?(this.isLoadingDocsSent=!1,this.subService.dataSourceSingCount=_,this.dataSourceSingCount=_):this.dataSourceSingCount={}}clientWithSubscription(){this.subService.clientWithSubcribe({advisorId:this.advisorId}).subscribe(D=>this.clientWithSubscriptionRes(D))}clientWithSubscriptionRes(_){_?(this.dataSourceClientWithSub=_,this.subService.dataSourceClientWithSub=_):(this.dataSourceClientWithSub=null,this.dataSourceClientWithSub={})}invoiceToBeReviewed(){this.subService.invoiceReviewed({advisorId:this.advisorId,limit:10,offset:0}).subscribe(D=>this.invoiceToBeReviewedRes(D))}invoiceToBeReviewedRes(_){this.dataSourceInvoice=_,this.manualInvoice=this.dataSourceInvoice.filter(D=>0==D.auto)}deleteModal(_,D){const nt=this.dialog.open(v.$,{width:"400px",data:{data:D,header:"DELETE",body:"Are you sure you want to delete the document?",body2:"This cannot be undone.",btnYes:"CANCEL",btnNo:"DELETE",positiveMethod:()=>{this.subService.deleteSubscriptionData(D.id).subscribe(ht=>{this.deletedData(ht),nt.close(D),this.getSummaryDataDashboard()})},negativeMethod:()=>{}},autoFocus:!1});nt.afterClosed().subscribe(ht=>{null!=ht&&(this.dataSource=[{},{},{}])})}deletedData(_){_&&(this.eventService.changeUpperSliderState({state:"close"}),this.eventService.openSnackBar("Deleted successfully!","Dismiss"))}openInvoice(_,D,k){_.isAdvisor=this.isAdvisor,_.showBottomBar=!0;const ht=this.subInjectService.changeNewRightSliderState({flag:D,data:_,id:1,state:"open",componentName:s.F}).subscribe(Qt=>{O.fK.isDialogClose(Qt)&&(O.fK.isRefreshRequired(Qt)&&this.invoiceData(),ht.unsubscribe())})}}return d.\u0275fac=function(_){return new(_||d)(t.Y36(rt.c),t.Y36(r.f),t.Y36(Y.P),t.Y36(w.uw),t.Y36(g.F),t.Y36(q.F0),t.Y36(q.gz),t.Y36(O.fK),t.Y36(A.m))},d.\u0275cmp=t.Xpm({type:d,selectors:[["app-dashboard-subscription"]],viewQuery:function(_,D){if(1&_&&t.Gf(J,5),2&_){let k;t.iGM(k=t.CRH())&&(D.tableEl=k.first)}},outputs:{subIndex:"subIndex"},decls:2,vars:2,consts:[["class","full-lights responsive-subscription pb-36 pt-180 fade-in","i
1d","ui-dashboard",4,"ngIf"],[3,"dashboard","subscriptionIndex",4,"ngIf"],["id","ui-dashboard",1,"full-lights","responsive-subscription","pb-36","pt-180","fade-in"],[1,"wrapper-20","mob-pl-10","mob-pr-10"],[1,"row","bg-red","mt-20","mb-36"],[1,"col-lg-5","col-md-12","d-none-992"],["src","https://res.cloudinary.com/futurewise/image/upload/v1704284557/My-Planner_Whitewashed/Subscription-w_1.2.svg","width","349","height","273","alt","Dashboard",1,"dashboard-img",2,"position","relative","margin-top","-84px",3,"ngClass","load"],[1,"col-lg-7","col-md-12","text-center-992"],[1,"playairFont"],[4,"ngIf"],["class","mt-10 roboto",4,"ngIf"],["class","btn-red roboto addon mb-28 mt-16","mat-flat-button","",3,"click",4,"ngIf"],[1,"subscription-summary","pt-40"],[1,"row"],[1,"col-xl-4","col-lg-5","col-md-12","pl-0","pr-0-992","relClass"],[1,"col-md-12","p-0"],[1,"bar"],["class","bg-white pt-20 pb-16 text-center",4,"ngIf"],[1,"col-md-12","p-0","pt-15-922"],[1,"col-md-12","p-0","mt-28"],[1,"row","bg-white"],[1,"col-md-12","p-0","b-b"],[1,"f-300","roboto","pl-16","pt-16","mb-16"],["class","col-md-12 h-290 skeletonAnimation","appSkeletonLoading","","style","overflow-x: hidden;",3,"appSkeletonLoading","scroll",4,"ngIf"],["class","noDataFound",4,"ngIf"],["class","bg-white col-md-12 text-right pt-8 pb-8",4,"ngIf"],[1,"col-xl-8","col-lg-7","col-md-12","pr-0","pt-20-992","pl-0-992","pr-0-1200"],[1,"col-xl-6","col-lg-12","pl-0","pr-0-1200"],[1,"row","bg-white","h-121"],[1,"dash-info-header"],[1,"dash-info-p"],[1,"roboto"],["appSkeletonLoading","",1,"col-md-6","skeletonAnimation",3,"appSkeletonLoading"],[1,"f-300","f-18","roboto","pt-28","text-center","mb-0"],[1,"text-primary","text-center","mb-0","pb-28","pt-8","relClass"],[1,"bar",3,"ngClass"],["appSkeletonLoading","",1,"col-md-6","p-0","skeletonAnimation","pr-0-992",3,"appSkeletonLoading"],[1,"col-xl-6","col-lg-12","pr-0","pl-0-1200","pt-15-1200"],[1,"f-300","roboto","f-18","pt-28","text-center","mb-0"],[1,"f-26","text-primary","mb-0","text-center","pb-28","pt-8","relClass"],["class","bar",3,"ngClass",4,"ngIf"],["appSkeletonLoading","",1,"col-md-6","pr-0","skeletonAnimation",3,"appSkeletonLoading"],[1,"f-300","roboto","f-18","text-center","pt-28","mb-0"],[1,"f-26","text-primary","text-center","mb-0","pb-28","pt-8","relClass"],[1,"col-md-12","p-0","bg-white","mt-28"],[1,"wrapper-16","pt-24","bg-white","mt-12","pb-20","h-588"],[1,"pl-20","pr-2","pl-0-992"],[1,"col-xl-6","col-lg-12","pl-0"],[1,"f-300","mb-0","roboto","pt-8"],[1,"col-xl-6","col-lg-12","right","text-right","p-0","pt-15-1200"],["id","custom-toggle","multiple","false",1,"subscription-summary",3,"ngModel","change","ngModelChange"],["value","1",1,"f-14"],["value","3",1,"f-14"],["class","overflow-hidden mt-12 mb-12",3,"ngClass",4,"ngIf"],["class","col-md-12 text-right pt-8",4,"ngIf"],[1,"mb-0","pt-12","roboto"],[1,"mt-10","roboto"],["mat-flat-button","",1,"btn-red","roboto","addon","mb-28","mt-16",3,"click"],[1,"material-icons","right","text-right"],[1,"bg-white","pt-20","pb-16","text-center"],[1,"container"],[1,"col-md-12"],[1,"progress",3,"animationDuration","animation","innerStrokeColor","innerStrokeWidth","outerStrokeColor","outerStrokeWidth","percent","radius","responsive","showSubtitle","space","startFromZero","titleFontSize","unitsFontSize"],[1,"text-center","roboto","f-300","pt-12","pb-24","f-18","mb-0"],[1,"btl-1"],[1,"text-center","roboto","pt-16","f-300","f-18","mb-0"],[1,"row","pt-16","pb-8"],[1,"col-md-3"],[1,"f-300","roboto","f-18"],[1,"text-center"],[1,"col-md-6"],["appSkeletonLoading","",1,"col-md-12","h-290","skeletonAnimation",2,"overflow-x","hidden",3,"appSkeletonLoading","scroll"],["class","col-md-12",4,"ngFor","ngForOf"],[1,"col-md-12","d-flex","justify-content-center","align-items-center"],[3,"diameter",4,"ngIf"],["tableEl",""],[1,"row","pt-16","b-b","c-p",3,"click"],[1,"col-md-8","pl-8"],[1,"relClass"],[1,"col-md-4","p-0"],[1,"f-15","roboto","mb-28","c-p"],[1,"f-13","roboto","mb-12","c-p"],[1,"f-15","roboto","mb-28"],["appFormatNumber","",3,"value"],[1,"f-13","roboto","mb-12"],[3,"diameter"],[1,"noDataFound"],[1,"material-icons","font100"],[1,"m-0","roboto"],[1,"bg-white","col-md-12","text-right","pt-8","pb-8"],[1,"c-p",3,"click"],[1,"overflow-hidden","mt-12","mb-12",3,"ngClass"],["appSkeletonLoading","","id","table-low","mat-table","",1,"skeletonAnimation",3,"appSkeletonLoading","dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","c-p","mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","service"],["class","c-p","mat-cell","",4,"matCellDef"],["matColumnDef","amt"],["class","w-22","mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","billing"],["mat-cell","",4,"matCellDef"],["matColumnDef","icons"],["class","f-18","mat-header-cell","","style","width: 2%;",4,"matHeaderCellDef"],["mat-cell","","style","width: 2%",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"c-p",3,"click"],["mat-cell","",1,"c-p"],["mat-header-cell","",1,"w-22"],["class","bar",4,"ngIf"],["class","bar text-primary text-underline c-p",3,"click",4,"ngIf"],["appFormatNumber","",4,"ngIf"],["appFormatNumber","","class","text-primary text-underline c-p",3,"click",4,"ngIf"],[1,"bar","text-primary","text-underline","c-p",3,"click"],["appFormatNumber",""],["appFormatNumber","",1,"text-primary","text-underline","c-p",3,"click"],["mat-cell",""],["mat-header-cell","",1,"f-18",2,"width","2%"],["mat-cell","",2,"width","2%"],["class","material-icons c-p iconscolors",3,"matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["class","bt-1","mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","c-p","iconscolors",3,"matMenuTriggerFor"],["mat-menu-item","",1,"bt-1",3,"click"],["mat-header-row",""],["mat-row",""],["width","200","src","https://res.cloudinary.com/futurewise/image/upload/v1704796831/My-Planner_Whitewashed/run-w_2.2-svg.svg",1,"bg-primary"],[1,"col-md-12","text-right","pt-8"],[3,"dashboard","subscriptionIndex"]],template:function(_,D){1&_&&(t.YNc(0,ct,79,32,"div",0),t.YNc(1,Zt,1,0,"app-subscription-completeness",1)),2&_&&(t.Q6J("ngIf",0==D.showSubStep),t.xp6(1),t.Q6J("ngIf",D.showSubStep))},dependencies:[N.lW,P.A9,P.Yi,o.VK,o.OP,o.p6,z.Ou,I.BZ,I.fO,I.as,I.w1,I.Dz,I.nj,I.ge,I.ev,I.XQ,I.Gk,j.mk,j.sg,j.O5,M.JJ,M.On,L.nu,X.d,H.R,lt.t,j.uU],styles:['.ima[_ngcontent-%COMP%]{background-position:left;background-size:cover;min-height:200px;width:100%}hr[_ngcontent-%COMP%]{border-bottom:1px solid #DADCE0;width:90%;margin:0 auto;display:block}.bg-red[_ngcontent-%COMP%]{background-color:#ffd8d8}.dash-info-header[_ngcontent-%COMP%]{width:100%;height:30px;text-align:right;display:flex;padding:0 1%;align-items:center;justify-content:right;margin-bottom:-26px}.dash-info-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:3% 2% 3% 3%;font-size:13px;color:#888!important}.dash-info-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:0!important;padding:0!important}.dash-info-header[_ngcontent-%COMP%] .dash-info-menu[_ngcontent-%COMP%]{width:10px}.dash-info-header[_ngcontent-%COMP%] .dash-info-p[_ngcontent-%COMP%]{width:100%}.dash-info-header[_ngcontent-%COMP%] .dash-info-menu-ho[_ngcontent-%COMP%]{text-align:right;width:100%;margin:3%}.dash-info-header[_ngcontent-%COMP%] .dash-info-menu-ho[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{transform:rotate(90deg)} .h-290{height:290px;overflow-x:auto} .h-290 ::-webkit-scrollbar-track{margin-top:0!important}.full-lights[_ngcontent-%COMP%]{background-color:#f7f8f9}.btn-red[_ngcontent-%COMP%]{background-color:#d01010;color:#ffd5d5!important;font-size:20px;letter-spacing:.2px}h1[_ngcontent-%COMP%]{font-style:normal;font-weight:400;padding-top:16px;line-height:40px;letter-spacing:.2px;margin-bottom:0;color:#d01010!important}p[_ngcontent-%COMP%]{font-style:normal;font-weight:400;font-size:16px;line-height:130%;letter-spacing:.2px;color:#004164}.btn-red[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-left:2px;padding-top:2px}.dashboard-img[_ngcontent-%COMP%]{position:relative;margin-top:-85px}#ui-subscription-completeness[_ngcontent-%COMP%]{padding-top:50px}#ui-subscription-completeness[_ngcontent-%COMP%] .done-icons[_ngcontent-%COMP%]{background:#02B875;border-radius:50%;padding:5px;color:#fff;font-size:30px;margin-top:2px;text-align:center}#ui-subscription-completeness[_ngcontent-%COMP%] .default-icons[_ngcontent-%COMP%]{background:#BCC6CA;border-radius:50%;padding:5px;color:#fff;font-size:30px;margin-top:2px;text-align:center}#ui-subscription-completeness[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]:not([class*=mat-elevation-z]){box-shadow:none!important;border:1px solid rgba(0,0,0,.1);padding:0}#ui-subscription-completeness[_ngcontent-%COMP%] .w-110[_ngcontent-%COMP%]{width:110px!important}.chart[_ngcontent-%COMP%]{height:200px}
1.noDataFound[_ngcontent-%COMP%]{width:100%;text-align:center;padding:10px}.noDataFound[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:200px}.font100[_ngcontent-%COMP%]{font-size:100px}.height23[_ngcontent-%COMP%]{height:23px}.h-290[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;cursor:pointer}.h-290[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#f1f1f1}.h-290[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#555}.h-290[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:window-inactive{background:#555}.h-290[_ngcontent-%COMP%]::-webkit-scrollbar-button:horizontal:decrement:hover{background:#555}.skeletonAnimation[_ngcontent-%COMP%] .relClass[_ngcontent-%COMP%]{position:relative}.skeletonAnimation[_ngcontent-%COMP%] .relClass[_ngcontent-%COMP%] .h-100[_ngcontent-%COMP%]:after{top:61%!important;background-size:70px 100px!important;background-position:33px 0!important;height:124px!important}.skeletonAnimation[_ngcontent-%COMP%] .relClass[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]{background-color:#e7e7e7;width:96%}.skeletonAnimation[_ngcontent-%COMP%] .relClass[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]:after{position:relative;top:8px;left:0;content:"";display:block;width:100%;height:24px;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 135px;background-position:-10px 0;background-repeat:no-repeat;animation:loading 1s infinite}.h-121[_ngcontent-%COMP%]{height:121px!important}']}),d})()},413:(Tt,pt,a)=>{a.d(pt,{t:()=>s});var t=a(70591),Y=a(83366),e=a(41074),v=a(3487),g=a(65730),O=a(94650),n=a(65938),ot=a(34793),l=a(73546),et=a(51572),i=a(36895);function c(rt,r){1&rt&&(O.TgZ(0,"div"),O._UZ(1,"mat-spinner",16),O.qZA()),2&rt&&(O.xp6(1),O.Q6J("diameter",30))}function $(rt,r){if(1&rt){const w=O.EpF();O.TgZ(0,"mat-card",17)(1,"div",18),O.NdJ("click",function(){const A=O.CHM(w),N=A.$implicit,P=A.index,o=O.oxw();return O.KtG(o.currentTabs(N,P))}),O.TgZ(2,"div",19)(3,"i",20),O._uU(4),O.qZA()(),O.TgZ(5,"div",21),O.NdJ("click",function(){O.CHM(w);const A=O.oxw();return O.KtG(A.goToSelectivePage())}),O.TgZ(6,"h4",22),O._uU(7),O.qZA(),O.TgZ(8,"p",23),O._uU(9),O.qZA()()()()}if(2&rt){const w=r.$implicit;O.xp6(3),O.Q6J("ngClass",w.completed?"material-icons done-icons":"material-icons default-icons"),O.xp6(1),O.hij(" ",w.completed?"done":"more_horiz"," "),O.xp6(3),O.Oqu(w.stepType),O.xp6(2),O.Oqu(w.stepTypeDescription)}}let s=(()=>{class rt{constructor(w,q,A,N,P){this.dialog=w,this.subscription=q,this.sub=A,this.eventService=N,this.router=P,this.subscriptionIndex=new O.vpe,this.dashboard=new O.vpe}ngOnInit(){this.advisorId=g.e.getAdvisorId(),this.getDashboardResponse(),this.showLoader=!0}getDashboardResponse(){this.subscription.getDashboardSubscriptionResponse(this.advisorId).subscribe(w=>this.getDashboardData(w.advisorAccomplishedSubscriptionFinalList))}getDashboardData(w){w&&w.length>0&&w.forEach(q=>{(1==q.stepTypeId||2==q.stepTypeId)&&(q.selectedTab=7),3==q.stepTypeId&&(q.selectedTab=2),5==q.stepTypeId&&(q.selectedTab=6),4==q.stepTypeId&&(q.selectedTab=4),6==q.stepTypeId&&(q.selectedTab=5)}),this.dataObj=w,this.showLoader=!1}getSubStagesRecordResponse(w){this.showLoader=!1}goToSelectivePage(){this.sub.subscriptionTab="SETTINGS"}currentTabs(w,q){switch(this.eventService.tabData(w.selectedTab),this.router.navigate(7==w.selectedTab&&0==q?["/admin/subscription/settings","plans"]:["/admin/subscription/settings","preferences"]),w.selectedTab){case 2:this.router.navigate(["admin","subscription","clients"]);break;case 4:this.router.navigate(["admin","subscription","quotations"]);break;case 5:this.router.navigate(["admin","subscription","invoices"]);break;case 6:this.router.navigate(["admin","subscription","documents"])}}close(){this.dashboard.emit(!1)}openPopup(w){this.dialog.open(v.T,{width:"70%",data:{flag:w},autoFocus:!1}).afterClosed().subscribe(N=>{})}}return rt.\u0275fac=function(w){return new(w||rt)(O.Y36(n.uw),O.Y36(t.F),O.Y36(Y.b),O.Y36(e.P),O.Y36(ot.F0))},rt.\u0275cmp=O.Xpm({type:rt,selectors:[["app-subscription-completeness"]],inputs:{dataObj:"dataObj"},outputs:{subscriptionIndex:"subscriptionIndex",dashboard:"dashboard"},decls:20,vars:2,consts:[[4,"ngIf"],["id","ui-subscription-completeness",1,"full-lights","pb-36","pt-100"],[1,"wrapper-20"],[1,"row"],[1,"col-md-10"],[1,"pt-28","mb-0","proxima"],[1,"col-md-2","text-right"],[1,"wrapper-12","pr-0"],[1,"material-icons","c-p","pt-8","v-middle",3,"click"],[1,"wrapper-4"],[1,"col-lg-6","col-md-12"],["class","mt-12",4,"ngFor","ngForOf"],[1,"col-lg-6","col-md-12","d-none-992","pt-12"],[1,"b-a","p-0"],[1,"bg-grey","lter","c-p",3,"click"],["src","https://res.cloudinary.com/futurewise/image/upload/v1707370991/1_subscriptions_flow_w_2.1_lc9es3.svg",1,"w-100","bg-primary"],[1,"loader",3,"diameter"],[1,"mt-12"],[1,"row","c-p",3,"click"],[1,"col-md-2"],[3,"ngClass"],[1,"col-md-10","p-0",3,"click"],[1,"mb-0","c-p","proxima"],[1,"text-primitive","roboto","mb-0","f-13","pt-8"]],template:function(w,q){1&w&&(O.YNc(0,c,2,1,"div",0),O.TgZ(1,"div")(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"h4",5),O._uU(7,"Subscription completeness"),O.qZA()(),O.TgZ(8,"div",6)(9,"div",7)(10,"i",8),O.NdJ("click",function(){return q.close()}),O._uU(11," clear"),O.qZA()()()(),O.TgZ(12,"div",9)(13,"div",3)(14,"div",10),O.YNc(15,$,10,4,"mat-card",11),O.qZA(),O.TgZ(16,"div",12)(17,"mat-card",13)(18,"div",14),O.NdJ("click",function(){return q.openPopup("subscriptionPopup")}),O._UZ(19,"img",15),O.qZA()()()()()()()()),2&w&&(O.Q6J("ngIf",q.showLoader),O.xp6(15),O.Q6J("ngForOf",q.dataObj))},dependencies:[l.a8,et.Ou,i.mk,i.sg,i.O5],styles:["#ui-dashboard[_ngcontent-%COMP%]{padding-top:130px}#ui-dashboard[_ngcontent-%COMP%] .subscription-summary[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#000}hr[_ngcontent-%COMP%]{border-bottom:1px solid #DADCE0;width:90%;margin:0 auto;display:block}.bg-red[_ngcontent-%COMP%]{background-color:#ffd8d8}.btn-red[_ngcontent-%COMP%]{background-color:#d01010;color:#ffd5d5!important;font-size:20px;letter-spacing:.2px}h1[_ngcontent-%COMP%]{font-style:normal;font-weight:400;padding-top:16px;line-height:40px;letter-spacing:.2px;margin-bottom:0}p[_ngcontent-%COMP%]{font-style:normal;font-weight:400;font-size:16px;line-height:130%;letter-spacing:.2px}.btn-red[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-left:2px;padding-top:2px}.dashboard-img[_ngcontent-%COMP%]{position:relative;margin-top:-85px}#ui-subscription-completeness[_ngcontent-%COMP%]{padding-top:50px}#ui-subscription-completeness[_ngcontent-%COMP%] .done-icons[_ngcontent-%COMP%]{background:#02B875;border-radius:50%;padding:5px;color:#fff;font-size:30px;margin-top:2px;text-align:center}#ui-subscription-completeness[_ngcontent-%COMP%] .default-icons[_ngcontent-%COMP%]{background:#BCC6CA;border-radius:50%;padding:5px;color:#fff;font-size:30px;margin-top:2px;text-align:center}#ui-subscription-completeness[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]:not([class*=mat-elevation-z]){box-shadow:none!important;border:1px solid rgba(0,0,0,.1)}#ui-subscription-completeness[_ngcontent-%COMP%] .w-110[_ngcontent-%COMP%]{width:110px!important}"]}),rt})()},20206:(Tt,pt,a)=>{a.d(pt,{D:()=>yt});var t=a(93584),Y=a(96308),e=a(53626),v=a(41074),g=a(70591),O=a(65730),n=a(67241),ot=a(36895),l=a(94562),et=a(77954),i=a(3900),c=a(70661),$=a(47873),s=a(94650),rt=a(23767),r=a(65938),w=a(4859),q=a(56709),A=a(28255),N=a(51572),P=a(10266),o=a(24006),z=a(81638),I=a(16649);const j=["tableEl"];function M(T,f){1&T&&(s.TgZ(0,"a",22),s._uU(1,"Select documents to see more actions "),s.qZA())}function L(T,f){if(1&T){const m=s.EpF();
1s.TgZ(0,"a",23),s.NdJ("click",function(){s.CHM(m);const C=s.oxw(2);return s.KtG(C.deleteModal(null))}),s._uU(1,"Delete documents "),s.qZA()}}function X(T,f){if(1&T){const m=s.EpF();s.TgZ(0,"a",23),s.NdJ("click",function(){s.CHM(m);const C=s.oxw(2);return s.KtG(C.deleteModal(null))}),s._uU(1,"Delete document "),s.qZA()}}function H(T,f){if(1&T&&(s.TgZ(0,"div",16)(1,"button",17),s._uU(2,"Actions "),s.TgZ(3,"i",18),s._uU(4," arrow_drop_down "),s.qZA()(),s.TgZ(5,"mat-menu",null,19),s.YNc(7,M,2,0,"a",20),s.YNc(8,L,2,0,"a",21),s.YNc(9,X,2,0,"a",21),s.qZA()()),2&T){const m=s.MAs(6),p=s.oxw();s.xp6(1),s.Q6J("matMenuTriggerFor",m),s.xp6(6),s.Q6J("ngIf",0==p.dataCount),s.xp6(1),s.Q6J("ngIf",0!=p.dataCount&&p.dataCount>1&&p.roleService.subscriptionPermission.subModule.documents.documentsCapabilityList.Delete),s.xp6(1),s.Q6J("ngIf",0!=p.dataCount&&p.dataCount<=1&&p.roleService.subscriptionPermission.subModule.documents.documentsCapabilityList.Delete)}}function lt(T,f){if(1&T&&(s.TgZ(0,"p",26),s._uU(1),s.qZA()),2&T){const m=s.oxw(2);s.xp6(1),s.hij("",m.dataCount," document selected ")}}function J(T,f){if(1&T&&(s.TgZ(0,"p",26),s._uU(1),s.qZA()),2&T){const m=s.oxw(2);s.xp6(1),s.hij("",m.dataCount," documents selected ")}}function st(T,f){if(1&T&&(s.TgZ(0,"div",24),s.YNc(1,lt,2,1,"p",25),s.YNc(2,J,2,1,"p",25),s.qZA()),2&T){const m=s.oxw();s.xp6(1),s.Q6J("ngIf",1==m.dataCount),s.xp6(1),s.Q6J("ngIf",m.dataCount>1)}}function Q(T,f){if(1&T){const m=s.EpF();s.TgZ(0,"th",61)(1,"mat-checkbox",62),s.NdJ("change",function(C){s.CHM(m);const E=s.oxw(3);return s.KtG(E.selectAll(C))}),s.qZA()()}if(2&T){const m=s.oxw(3);s.xp6(1),s.Q6J("checked",m.dataCount==m.dataSource.data.length)("indeterminate",m.dataCount>0&&m.dataCount!=m.dataSource.data.length)}}function at(T,f){if(1&T){const m=s.EpF();s.TgZ(0,"td",63)(1,"mat-checkbox",64),s.NdJ("ngModelChange",function(C){const ct=s.CHM(m).$implicit;return s.KtG(ct.selected=C)})("change",function(){s.CHM(m);const C=s.oxw(3);return s.KtG(C.changeSelect())}),s.qZA()()}if(2&T){const m=f.$implicit;s.xp6(1),s.Q6J("ngModel",m.selected)}}function B(T,f){1&T&&(s.TgZ(0,"th",65),s._uU(1," Client name "),s.qZA())}function tt(T,f){if(1&T){const m=s.EpF();s.TgZ(0,"td",66),s.NdJ("click",function(){const E=s.CHM(m).$implicit,ct=s.oxw(3);return s.KtG(ct.openViewDocument("viewDocuments",E))}),s.TgZ(1,"div",67),s._uU(2),s.qZA()()}if(2&T){const m=f.$implicit;s.xp6(2),s.hij(" ",m.clientName," ")}}function gt(T,f){1&T&&(s.TgZ(0,"th",68),s._uU(1," Document name "),s.qZA())}function bt(T,f){if(1&T&&(s.TgZ(0,"td",69)(1,"div",67),s._uU(2),s.qZA()()),2&T){const m=f.$implicit;s.xp6(2),s.hij(" ",m.documentName," ")}}function ft(T,f){1&T&&(s.TgZ(0,"th",70),s._uU(1," Plan name"),s.qZA())}function Dt(T,f){if(1&T&&(s.TgZ(0,"td",69)(1,"div",67),s._uU(2),s.qZA()()),2&T){const m=f.$implicit;s.xp6(2),s.hij(" ",m.planName," ")}}function St(T,f){1&T&&(s.TgZ(0,"th",71),s._uU(1," Service name "),s.qZA())}function Mt(T,f){if(1&T&&(s.TgZ(0,"td",69)(1,"div",67),s._uU(2),s.qZA()()),2&T){const m=f.$implicit;s.xp6(2),s.hij(" ",m.serviceName," ")}}function Pt(T,f){1&T&&(s.TgZ(0,"th",72),s._uU(1," Created date "),s.qZA())}function At(T,f){if(1&T&&(s.TgZ(0,"td",69)(1,"div",67),s._uU(2),s.ALo(3,"date"),s.qZA()()),2&T){const m=f.$implicit;s.xp6(2),s.hij(" ",s.xi3(3,1,m.startDate,"dd/MM/yyyy")," ")}}function It(T,f){1&T&&(s.TgZ(0,"th",73),s._uU(1," Sent date"),s.qZA())}function F(T,f){if(1&T&&(s.TgZ(0,"span"),s._uU(1),s.qZA()),2&T){const m=s.oxw().$implicit;s.xp6(1),s.hij(" ",m.sentDateInFormat?m.sentDateInFormat:"N/A","")}}function mt(T,f){if(1&T&&(s.TgZ(0,"td",69)(1,"div",67),s.YNc(2,F,2,1,"span",74),s.qZA()()),2&T){const m=s.oxw(3);s.xp6(2),s.Q6J("ngIf",!m.isLoading)}}function R(T,f){1&T&&(s.TgZ(0,"th",75),s._uU(1," Client sign... "),s.qZA())}function dt(T,f){if(1&T&&(s.TgZ(0,"span"),s._uU(1),s.ALo(2,"date"),s.qZA()),2&T){const m=s.oxw().$implicit;s.xp6(1),s.Oqu(s.xi3(2,1,m.signedDate,"dd/MM/yyyy"))}}function _t(T,f){1&T&&(s.TgZ(0,"span"),s._uU(1,"N/A"),s.qZA())}function ut(T,f){if(1&T&&(s.TgZ(0,"td",69)(1,"div",67),s.YNc(2,dt,3,4,"span",74),s.YNc(3,_t,2,0,"span",74),s.qZA()()),2&T){const m=f.$implicit,p=s.oxw(3);s.xp6(2),s.Q6J("ngIf",m.signedDate),s.xp6(1),s.Q6J("ngIf",null==m.signedDate&&!p.isLoading)}}function Ct(T,f){1&T&&(s.TgZ(0,"th",76),s._uU(1," Status"),s.qZA())}function Ot(T,f){1&T&&(s.TgZ(0,"span",80),s._uU(1,"READY TO SEND"),s.qZA())}function Lt(T,f){1&T&&(s.TgZ(0,"span",80),s._uU(1,"SENT"),s.qZA())}function Z(T,f){1&T&&(s.TgZ(0,"span",81),s._uU(1,"ESIGNED"),s.qZA())}function W(T,f){if(1&T){const m=s.EpF();
1s.TgZ(0,"td",77),s.NdJ("click",function(){const E=s.CHM(m).$implicit,ct=s.oxw(3);return s.KtG(ct.openViewDocument("openEmailQuot",E))}),s.TgZ(1,"div",67)(2,"span"),s.YNc(3,Ot,2,0,"span",78),s.YNc(4,Lt,2,0,"span",78),s.YNc(5,Z,2,0,"span",79),s.qZA()()()}if(2&T){const m=f.$implicit;s.xp6(3),s.Q6J("ngIf",1==m.status),s.xp6(1),s.Q6J("ngIf",2==m.status),s.xp6(1),s.Q6J("ngIf",3==m.status)}}function y(T,f){1&T&&s._UZ(0,"th",82)}function xt(T,f){if(1&T){const m=s.EpF();s.TgZ(0,"a",86),s.NdJ("click",function(){s.CHM(m);const C=s.oxw(2).$implicit,E=s.oxw(3);return s.KtG(E.openViewDocument("viewDoc",C))}),s._uU(1,"Edit document"),s.qZA()}if(2&T){const m=s.oxw(2).$implicit;s.Q6J("disabled",3==m.status)}}function Et(T,f){if(1&T){const m=s.EpF();s.TgZ(0,"a",87),s.NdJ("click",function(){s.CHM(m);const C=s.oxw(2).$implicit,E=s.oxw(3);return s.KtG(E.downloadEsign(C))}),s._uU(1,"Download eSigned document"),s.qZA()}if(2&T){const m=s.oxw(2).$implicit;s.Q6J("disabled",3==m.status)}}function Nt(T,f){if(1&T){const m=s.EpF();s.TgZ(0,"a",86),s.NdJ("click",function(){s.CHM(m);const C=s.oxw(2).$implicit,E=s.oxw(3);return s.KtG(E.deleteModal(C))}),s._uU(1,"Delete document"),s.qZA()}if(2&T){const m=s.oxw(2).$implicit;s.Q6J("disabled",3==m.status)}}function wt(T,f){if(1&T&&(s.TgZ(0,"div")(1,"i",83),s._uU(2," more_vert "),s.qZA(),s.TgZ(3,"mat-menu",null,19),s.YNc(5,xt,2,1,"a",84),s.YNc(6,Et,2,1,"a",85),s.YNc(7,Nt,2,1,"a",84),s.qZA()()),2&T){const m=s.MAs(4),p=s.oxw().$implicit,C=s.oxw(3);s.xp6(1),s.Q6J("matMenuTriggerFor",m),s.xp6(4),s.Q6J("ngIf",C.roleService.subscriptionPermission.subModule.documents.documentsCapabilityList.Edit),s.xp6(1),s.Q6J("ngIf",p.signed&&C.roleService.subscriptionPermission.subModule.documents.documentsCapabilityList.Download),s.xp6(1),s.Q6J("ngIf",C.roleService.subscriptionPermission.subModule.documents.documentsCapabilityList.Delete)}}function Ut(T,f){if(1&T&&(s.TgZ(0,"td",69),s.YNc(1,wt,8,4,"div",74),s.qZA()),2&T){const m=s.oxw(3);s.xp6(1),s.Q6J("ngIf",!m.isLoading)}}function Rt(T,f){1&T&&s._UZ(0,"tr",88)}function U(T,f){1&T&&s._UZ(0,"tr",89)}function it(T,f){if(1&T&&(s.TgZ(0,"table",33,34),s.ynx(2,35),s.YNc(3,Q,2,2,"th",36),s.YNc(4,at,2,1,"td",37),s.BQk(),s.ynx(5,38),s.YNc(6,B,2,0,"th",39),s.YNc(7,tt,3,1,"td",40),s.BQk(),s.ynx(8,41),s.YNc(9,gt,2,0,"th",42),s.YNc(10,bt,3,1,"td",43),s.BQk(),s.ynx(11,44),s.YNc(12,ft,2,0,"th",45),s.YNc(13,Dt,3,1,"td",43),s.BQk(),s.ynx(14,46),s.YNc(15,St,2,0,"th",47),s.YNc(16,Mt,3,1,"td",43),s.BQk(),s.ynx(17,48),s.YNc(18,Pt,2,0,"th",49),s.YNc(19,At,4,4,"td",43),s.BQk(),s.ynx(20,50),s.YNc(21,It,2,0,"th",51),s.YNc(22,mt,3,1,"td",43),s.BQk(),s.ynx(23,52),s.YNc(24,R,2,0,"th",53),s.YNc(25,ut,4,2,"td",43),s.BQk(),s.ynx(26,54),s.YNc(27,Ct,2,0,"th",55),s.YNc(28,W,6,3,"td",56),s.BQk(),s.ynx(29,57),s.YNc(30,y,1,0,"th",58),s.YNc(31,Ut,2,1,"td",43),s.BQk(),s.YNc(32,Rt,1,0,"tr",59),s.YNc(33,U,1,0,"tr",60),s.qZA()),2&T){const m=s.oxw(2);s.Q6J("appSkeletonLoading",m.isLoading)("dataSource",m.dataSource),s.xp6(32),s.Q6J("matHeaderRowDef",m.displayedColumns)("matHeaderRowDefSticky",!0),s.xp6(1),s.Q6J("matRowDefColumns",m.displayedColumns)}}
1function u(T,f){1&T&&s._UZ(0,"mat-spinner",90),2&T&&s.Q6J("diameter",30)}const x=function(T){return{"pe-none":T}},h=function(T){return{"table-scroll":T}};function K(T,f){if(1&T){const m=s.EpF();s.TgZ(0,"div",27)(1,"div",28)(2,"div",29),s.NdJ("scroll",function(C){s.CHM(m);const E=s.oxw();return s.KtG(E.onWindowScroll(C))}),s.YNc(3,it,34,5,"table",30),s.TgZ(4,"div",31),s.YNc(5,u,1,1,"mat-spinner",32),s.qZA()()()()}if(2&T){const m=s.oxw();s.Q6J("ngClass",s.VKq(4,x,m.isLoading)),s.xp6(2),s.Q6J("ngClass",s.VKq(6,h,0==m.isLoading)),s.xp6(1),s.Q6J("ngIf",m.dataSource.data.length>0),s.xp6(2),s.Q6J("ngIf",m.infiniteScrollingFlag)}}function G(T,f){1&T&&(s.TgZ(0,"div",6)(1,"div",91),s._UZ(2,"img",92),s.TgZ(3,"p",93),s._uU(4," No data found "),s.qZA()()())}const vt=function(T){return{"event-none":T}};let yt=(()=>{class T{constructor(m,p,C,E,ct,Zt,S,V){this.subInjectService=m,this.dialog=p,this.eventService=C,this.subscription=E,this.datePipe=ct,this.subService=Zt,this.utilservice=S,this.roleService=V,this.displayedColumns=["checkbox","name","docname","plan","servicename","cdate","sdate","clientsign","status","icons"],this.isLoading=!1,this.filterStatus=[],this.filterDate=[],this.statusIdList=[],this.scrollLoad=!1,this.filterDataArr=[],this.statusIdLength=0,this.selectedDateFilter="dateFilter",this.selectedStatusFilter="statusFilter",this.chips=[{name:"NOT STARTED",value:0},{name:"READY TO SEND",value:1},{name:"SENT",value:2},{name:"ESIGNED",value:3}],this.dateChips=[{name:"Created date",value:1},{name:"Sent date",value:2},{name:"Client Signitature",value:3}],this.passFilterData={data:"",selectedCount:"",statusFilter:this.chips,dateFilter:this.dateChips},this.isFilter=!1,this.showFilter=!1,this.data=[{},{},{}],this.dataSource=new e.by(this.data),this.maxDate=new Date,this.hasEndReached=!1}ngOnInit(){this.isLoading=!0,this.advisorId=O.e.getAdvisorId(),this.clientId=O.e.getClientId(),this.dataCount=0,this.dataSource.data=null==this.utilservice.checkSubscriptionastepData(5)?[{},{},{}]:0==this.utilservice.checkSubscriptionastepData(5)?[]:[{},{},{}],this.subService.documentSubscriptionList?this.getdocumentResponseData(this.subService.documentSubscriptionList,!1):this.getClientSubData(this.scrollLoad)}getClientSubData(m){this.isLoading=!0,this.dataSource.data=[{},{},{}],this.getdocumentSubData(m).subscribe(p=>{this.getdocumentResponseData(p,m)},p=>{this.dataSource.data=[],this.isLoading=!1})}changeSelect(){this.dataCount=0,this.dataSource.filteredData.forEach(m=>{m.selected&&this.dataCount++})}onWindowScroll(m){this.tableEl._elementRef.nativeElement.querySelector("tbody").querySelector("tr:last-child").offsetTop<=m.target.scrollTop+m.target.offsetHeight+200&&(this.hasEndReached||(this.infiniteScrollingFlag=!0,this.hasEndReached=!0,this.scrollFunction()))}errorMessage(){const m={flag:"app-err-page-open",data:{},id:1,direction:"top",componentName:i.z,state:"open"};m.data={positiveMethod:C=>{C.active=!0,this.getdocumentSubData(!1).subscribe(E=>{C.active=!1,this.getdocumentResponseData(E,!1),this.eventService.changeUpperSliderState({state:"close"})},E=>{C.active=!1,this.eventService.openSnackBar("Wait for sometime....","Dismiss")})}},this.eventService.changeUpperSliderState(m).subscribe(C=>{n.fK.isDialogClose(C)})}selectAll(m){this.dataCount=0,null!=this.dataSource&&this.dataSource.filteredData.forEach(p=>{p.selected=m.checked,p.selected&&this.dataCount++})}openEsignDocument(m){const p={advisorId:this.advisorId,templateType:3,documentList:[]};m?p.documentList.push(m):this.dataSource.filteredData.forEach(C=>{C.selected&&p.documentList.push(C)}),this.openViewDocument("eSignDocument",p)}openViewDocument(m,p){if(!this.roleService.subscriptionPermission.subModule.documents.documentsCapabilityList.Edit)return;p.sendEsignFlag=!!this.roleService.subscriptionPermission.subModule.clients.subModule.documentsCapabilityList.Emailwithesignrequest,p.feeStructureFlag=p.documentText.includes("<service_fee>"),p.isAdvisor=!0,p.isEmail=!!this.roleService.subscriptionPermission.subModule.documents.documentsCapabilityList.Email,p.isDownload=!!this.roleService.subscriptionPermission.subModule.documents.documentsCapabilityList.Download;const C={flag:m,data:p,id:1,state:"open",componentName:et.E};C.data.documentText=this.utilservice.replacePlaceholder(C.data.documentText,{advisorAddress:"",advisorName:"",clientAddress:"",clientName:C.data.clientName}),C.data.isDocument=!0;const ct=this.subInjectService.changeNewRightSliderState(C).subscribe(Zt=>{n.fK.isDialogClose(Zt)&&(n.fK.isRefreshRequired(Zt)&&this.getClientSubData(!1),ct.unsubscribe())})}downloadEsign(m){this.subscription.getEsignedDocument({id:m.id}).subscribe(C=>this.downloadEsignResponseData(C),C=>{})}downloadEsignResponseData(m){window.open(m.presginedUrl)}
1showFilters(m){this.showFilter=1!=m}orgValueChange(m){const p=new Date;p.setMonth(p.getMonth()-1),n.fK.getStartOfTheDay(p);const C=new Date;n.fK.getStartOfTheDay(C),this.selectedDateRange={begin:m.begin,end:m.end}}getdocumentSubData(m){const p={advisorId:this.advisorId,flag:3,limit:10,offset:0,dateType:0};return this.dataCount=0,this.isLoading=!0,this.subscription.getDocumentData(p)}getClientSubscriptionList(){this.subService.getSubscriptionClientsList({id:this.advisorId}).subscribe(p=>{this.isLoading=!1},p=>{this.eventService.showErrorMessage(p)})}getFiterRes(m){this.filterStatus=m.statusFilterJson,this.filterDate=m.dateFilterArr,this.selectedDateRange=m.dateFilterJson,this.lastFilterDataId=0,this.filterDataArr=[],this.dataSource.data=[{},{},{}],this.isLoading=!0,this.isFilter=!0,this.callFilter(!1)}scrollFunction(){this.filterStatus&&this.filterStatus.length>0?this.filterStatus.forEach(p=>{this.statusIdList.push(p.value)}):this.statusIdList=[],this.infiniteScrollingFlag=!0;const m={advisorId:this.advisorId,limit:20,offset:this.lastFilterDataId,fromDate:this.filterDate.length>0?this.datePipe.transform(this.selectedDateRange.begin,"yyyy-MM-dd"):null,toDate:this.filterDate.length>0?this.datePipe.transform(this.selectedDateRange.end,"yyyy-MM-dd"):null,statusIdList:this.statusIdList,dateType:0==this.filterDate.length?0:this.filterDate,flag:3};this.subService.getDocumentData(m).subscribe(p=>{this.infiniteScrollingFlag=!1,p&&p.length>0&&(this.lastFilterDataId=p[p.length-1].id,p.forEach(C=>{C.sentDateInFormat=this.datePipe.transform(C.sentDate?C.sentDate:void 0,"dd/MM/yyyy"),C.documentText=C.docText}),this.filterDataArr=this.filterDataArr.concat(p),this.dataSource.data=this.filterDataArr),this.scrollCallData=!0})}callFilter(m){this.dataCount=0,this.filterStatus&&this.filterStatus.length>0?(this.statusIdList=[],this.dataSource.data=[{},{},{}],this.isLoading=!0,this.filterStatus.forEach(C=>{this.statusIdList.push(C.value)})):this.statusIdList=[];const p={advisorId:this.advisorId,limit:20,offset:this.lastFilterDataId,fromDate:this.filterDate.length>0?this.datePipe.transform(this.selectedDateRange.begin,"yyyy-MM-dd"):null,toDate:this.filterDate.length>0?this.datePipe.transform(this.selectedDateRange.end,"yyyy-MM-dd"):null,statusIdList:this.statusIdList,dateType:0==this.filterDate.length?0:this.filterDate,flag:3};0==p.statusIdList.length&&null==p.fromDate?this.getClientSubData(!1):this.subService.getDocumentData(p).subscribe(C=>{this.filterSubscriptionRes(C,m)})}filterSubscriptionRes(m,p){this.isLoading=!1,null==m&&this.statusIdLength<1?(this.noData="No data found",this.dataSource.data=p?this.filterDataArr:[]):(this.lastFilterDataId=m[m.length-1].id,m.forEach(C=>{C.sentDateInFormat=this.datePipe.transform(C.sentDate?C.sentDate:void 0,"dd/MM/yyyy"),C.documentText=C.docText}),this.filterDataArr=this.filterDataArr.length<=0?m:this.filterDataArr.concat(m),this.scrollCallData=!0,this.dataSource.data=this.filterDataArr)}getdocumentResponseData(m,p){this.isLoading=!1,null==m?(this.dataSource.data=[],this.noData="No data found"):(m.forEach(C=>{C.sentDateInFormat=this.datePipe.transform(C.sentDate?C.sentDate:void 0,"dd/MM/yyyy"),C.documentText=C.docText}),this.lastFilterDataId=m[m.length-1].id,this.dataSource.data=m,console.log(this.dataSource.data),this.filterDataArr=m,p||(this.subService.documentSubscriptionList=m),this.dataSource.sort=this.sort)}deleteModal(m){let p=[];null==m?this.dataSource.filteredData.forEach(ct=>{ct.selected&&p.push(ct.id)}):p=[m.id];const E=this.dialog.open(t.$,{width:"400px",data:{data:"DOCUMENT",header:"DELETE",body:1==p.length?"Are you sure you want to delete the document?":"Are you sure you want to delete these documents?",body2:"This cannot be undone.",btnYes:"CANCEL",btnNo:"DELETE",positiveMethod:()=>{this.subService.deleteClientDocumentsMultiple(p).subscribe(ct=>{this.eventService.openSnackBar("Document is deleted","Dismiss"),this.subService.documentSubscriptionList=null,E.close(p)},ct=>this.eventService.showErrorMessage(ct))},negativeMethod:()=>{}},autoFocus:!1});E.afterClosed().subscribe(ct=>{if(ct.length>0){const Zt=[];this.dataSource.data.forEach(S=>{ct.length>1?S.selected||Zt.push(S):ct[0]!=S.id&&Zt.push(S)}),this.dataSource.data=Zt}})}}return T.\u0275fac=function(m){return new(m||T)(s.Y36(rt.f),s.Y36(r.uw),s.Y36(v.P),s.Y36(g.F),s.Y36(ot.uU),s.Y36(g.F),s.Y36(n.fK),s.Y36(c.N))},T.\u0275cmp=s.Xpm({type:T,selectors:[["app-documents-subscriptions"]],viewQuery:function(m,p){if(1&m&&(s.Gf(Y.YE,5),s.Gf(j,5)),2&m){let C;s.iGM(C=s.CRH())&&(p.sort=C.first),s.iGM(C=s.CRH())&&(p.tableEl=C.first)}},features:[s._Bn([[ot.uU],{provide:$.sG,useValue:l.c}])],decls:18,vars:12,consts:[[1,"bg-white","pl-20","pr-20","pt-120","pb-16","fade-in"],[1,"filterBox",3,"ngClass"],[1,"row","pt-20","pb-8",3,"ngClass"],[1,"col-lg-1","col-md-2","p-0"],[1,"pt-8","mb-0"],[1,"col-lg-5","col-md-3","pr-0"],[1,"row"],["class","col-md-3 p-0",4,"ngIf"],["class","col-md-8 p-0",4,"ngIf"],[1,"col-lg-6","col-md-7","full-end","p-0"],["mat-stroked-button","",1,"btn-default","addon",3,"click"],["src","https://res.cloudinary.com/futurewise/image/upload/v1622786830/myplanner/images/svg/filter-vector.svg","height","25","width","25","alt","",1,"material-icons2"],[1,"row","pt-12",3,"ngClass"],[3,"dataToFilter","FilterOneName","FilterTwoName","filterRes"],["class","row",3,"ngClass",4,"ngIf"],["class","row",4,"ngIf"],[1,"col-md-3","p-0"],["mat-button","",1,"b-a","pr-0","br-0",3,"matMenuTriggerFor"],[1,"material-icons","text-custom"],["menu","matMenu"],["mat-menu-item","",4,"ngIf"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item",""],["mat-menu-item","",3,"click"],[1,"col-md-8","p-0"],["class","m-0 text-black text-left pt-12",4,"ngIf"],[1,"m-0","text-black","text-left","pt-12"],[1,"row",3,"ngClass"],[1,"col-md-12","p-0","people-clients"],[1,"subs-documents","ox-hide","people-clients-scroll","responsive-table-port",3,"ngClass","scroll"],["appSkeletonLoading","","class"," skeletonAnimation","id","tbs","mat-table","","matSort","",3,"appSkeletonLoading","dataSource",4,"ngIf"],[1,"col-md-12","d-flex","justify-content-center","align-items-center"],[3,"diameter",4,"ngIf"],["appSkeletonLoading","","id","tbs","mat-table","","matSort","",1,"skeletonAnimation",3,"appSkeletonLoading","dataSource"],["tableEl",""],["matColumnDef","checkbox","sticky",""],["mat-header-cell","","class","f-18","style","width: 2%;",4,"matHeaderCellDef"],["mat-cell","","style","width: 2%;","class","c-p",4,"matCellDef"],["matColumnDef","name"],["class","f-18","mat-header-cell","","mat-sort-header","clientName",4,"matHeaderCellDef"],["class","c-p","mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","docname"],["class","f-18","mat-header-cell","","mat-sort-header","documentName",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","plan"],["class","f-18","mat-header-cell","","mat-sort-header","planName",4,"matHeaderCellDef"],["matColumnDef","servicename"],["mat-sort-header","serviceName","class","f-18","mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","cdate"],["class","f-18","mat-header-cell","","mat-sort-header","startDate",4,"matHeaderCellDef"],["matColumnDef","sdate"],["class","f-18","mat-header-cell","","mat-sort-header","sentDate",4,"matHeaderCellDef"],["matColumnDef","clientsign"],["class","f-18","mat-header-cell","","mat-sort-header","clientsign","matTooltip","Client signature date","aria-label","Button that displays a tooltip when focu
1sed or hovered over",4,"matHeaderCellDef"],["matColumnDef","status"],["class"," t-10","mat-header-cell","","mat-sort-header","status",4,"matHeaderCellDef"],["mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","icons","sticky",""],["class","f-18","mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","",1,"f-18",2,"width","2%"],["name","selectAll",3,"checked","indeterminate","change"],["mat-cell","",1,"c-p",2,"width","2%"],["name","selectedData",3,"ngModel","ngModelChange","change"],["mat-header-cell","","mat-sort-header","clientName",1,"f-18"],["mat-cell","",1,"c-p",3,"click"],[1,"bar"],["mat-header-cell","","mat-sort-header","documentName",1,"f-18"],["mat-cell",""],["mat-header-cell","","mat-sort-header","planName",1,"f-18"],["mat-sort-header","serviceName","mat-header-cell","",1,"f-18"],["mat-header-cell","","mat-sort-header","startDate",1,"f-18"],["mat-header-cell","","mat-sort-header","sentDate",1,"f-18"],[4,"ngIf"],["mat-header-cell","","mat-sort-header","clientsign","matTooltip","Client signature date","aria-label","Button that displays a tooltip when focused or hovered over",1,"f-18"],["mat-header-cell","","mat-sort-header","status",1,"t-10"],["mat-cell","",3,"click"],["class","text-primary t-10 f-500 c-p",4,"ngIf"],["class","text-primary t-10 f-500",4,"ngIf"],[1,"text-primary","t-10","f-500","c-p"],[1,"text-primary","t-10","f-500"],["mat-header-cell","",1,"f-18"],[1,"material-icons","c-p","iconscolors",3,"matMenuTriggerFor"],["mat-menu-item","",3,"disabled","click",4,"ngIf"],["class","bt-1","mat-menu-item","",3,"disabled","click",4,"ngIf"],["mat-menu-item","",3,"disabled","click"],["mat-menu-item","",1,"bt-1",3,"disabled","click"],["mat-header-row",""],["mat-row",""],[3,"diameter"],[1,"col-md-12","d-flex","align-items-center","flex-column","justify-content-center"],["src","https://res.cloudinary.com/futurewise/image/upload/v1703919788/My-Planner_Whitewashed/Transaction-w_1.1.svg","width","400","height","334","alt","Transaction Icon","loading","eager","decoding","async",1,"width400","bg-primary"],[1,"f-22","f-600","pt-28"]],template:function(m,p){1&m&&(s.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h4",4),s._uU(5,"Documents"),s.qZA()(),s.TgZ(6,"div",5)(7,"div",6),s.YNc(8,H,10,4,"div",7),s.YNc(9,st,3,2,"div",8),s.qZA()(),s.TgZ(10,"div",9)(11,"button",10),s.NdJ("click",function(){return p.showFilters(p.showFilter)}),s._UZ(12,"img",11),s._uU(13," FILTERS "),s.qZA()()(),s.TgZ(14,"div",12)(15,"app-sudscription-table-filter",13),s.NdJ("filterRes",function(E){return p.getFiterRes(E)}),s.qZA()()(),s.YNc(16,K,6,8,"div",14),s.YNc(17,G,5,0,"div",15),s.qZA()),2&m&&(s.xp6(1),s.Q6J("ngClass",p.dataSource.data.length>0||p.isFilter?"block":"none"),s.xp6(1),s.Q6J("ngClass",s.VKq(10,vt,p.isLoading)),s.xp6(6),s.Q6J("ngIf",p.dataSource.data.length>0&&p.roleService.subscriptionPermission.subModule.documents.documentsCapabilityList.Delete),s.xp6(1),s.Q6J("ngIf",p.dataSource.data.length>0&&p.dataCount>0),s.xp6(5),s.Q6J("ngClass",!0===p.showFilter?"block":"none"),s.xp6(1),s.Q6J("dataToFilter",p.passFilterData)("FilterOneName","Status")("FilterTwoName","Date"),s.xp6(1),s.Q6J("ngIf",p.dataSource.data.length>0),s.xp6(1),s.Q6J("ngIf",0==p.dataSource.data.length))},dependencies:[w.lW,q.oG,A.VK,A.OP,A.p6,N.Ou,Y.YE,Y.nU,e.BZ,e.fO,e.as,e.w1,e.Dz,e.nj,e.ge,e.ev,e.XQ,e.Gk,P.gM,ot.mk,ot.O5,o.JJ,o.On,z.d,I.E0,ot.uU],styles:[".sub_input .mat-form-field-appearance-legacy .mat-form-field-infix{padding:0!important;border:1px solid #BCC6CA!important}.width400[_ngcontent-%COMP%]{width:400px;margin-top:50px}"]}),T})()},13619:(Tt,pt,a)=>{a.d(pt,{Q:()=>Lt});var t=a(35938),Y=a(93584),e=a(94650),v=a(65938),g=a(4859),O=a(56709),n=a(53626),ot=a(36895);function l(Z,W){if(1&Z){const y=e.EpF();e.TgZ(0,"button",47),e.NdJ("click",function(){e.CHM(y);const Et=e.oxw();return e.KtG(Et.recordPayment())}),e._uU(1,"RECORD PAYMENT"),e.qZA()}}function et(Z,W){if(1&Z&&(e.TgZ(0,"div",67)(1,"h4",68),e._uU(2),e.qZA(),e.TgZ(3,"p",69),e._uU(4),e._UZ(5,"br"),e._uU(6," Lokhandwala Township "),e._UZ(7,"br"),e._uU(8),e._UZ(9,"br"),e._uU(10),e._UZ(11,"br"),e._uU(12," GSTIN: 27AABCF7765A1Z7 "),e.qZA()()),2&Z){const y=e.oxw(2);e.xp6(2),e.Oqu(y.singleInvoiceData.billerNameAsPerBank),e.xp6(2),e.hij("",y.singleInvoiceData.billerAddress,", Street 1, "),e.xp6(4),e.hij(" ",y.singleInvoiceData.billerCity," East "),e.xp6(2),e.hij(" Mumbai ",y.singleInvoiceData.billerZipCode," ")}}function i(Z,W){if(1&Z&&(e.TgZ(0,"div",67)(1,"h4",68),e._uU(2,"Steve Jobs"),e.qZA(),e.TgZ(3,"p",69),e._uU(4),e._UZ(5,"br"),e._uU(6," Lokhandwala Township "),e._UZ(7,"br"),e._uU(8),e._UZ(9,"br"),e._uU(10),e._UZ(11,"br"),e._uU(12," GSTIN: 27AABCF7765A1Z7 "),e.qZA()()),2&Z){const y=e.oxw(2);e.xp6(4),e.hij("",y.singleInvoiceData.billingAddress,", Street 1, "),e.xp6(4),e.hij(" ",y.singleInvoiceData.billingCity," East "),e.xp6(2),e.hij(" Mumbai ",y.singleInvoiceData.billingZipCode," ")}}function c(Z,W){if(1&Z&&(e.TgZ(0,"p",60)(1,"span",70),e._uU(2,"Invoice no"),e.qZA(),e._uU(3),e.qZA()),2&Z){const y=e.oxw(2);e.xp6(3),e.hij(": ",y.singleInvoiceData.invoiceNumber," ")}}function $(Z,W){if(1&Z&&(e.TgZ(0,"p",60)(1,"span",70),e._uU(2,"Invoice date"),e.qZA(),e._uU(3),e.ALo(4,"date"),e.qZA()),2&Z){const y=e.oxw(2);e.xp6(3),e.hij(": ",e.xi3(4,1,y.singleInvoiceData.invoiceDate,"dd/MM/yyyy"),"")}}function s(Z,W){if(1&Z&&(e.TgZ(0,"h2",71),e._uU(1),e.qZA()),2&Z){const y=e.oxw(2);e.xp6(1),e.hij(" ",y.singleInvoiceData.status,"")}}function rt(Z,W){if(1&Z&&(e.TgZ(0,"div",72)(1,"p",73),e._uU(2),e.qZA()()),2&Z){const y=e.oxw(2);e.xp6(2),e.xDo(" For payment via NEFT/IMPS/Cheque, see details below. A/c: A/c No: ",y.singleInvoiceData.billerAcNumber," IFSC: ",y.singleInvoiceData.billerIfscCode," Bank: ",y.singleInvoiceData.billerBankName," (Akurli road, ",y.singleInvoiceData,", Mumbai ",y.singleInvoiceData.billerBranchZipCode,")")}}function r(Z,W){if(1&Z&&(e.TgZ(0,"div",21)(1,"p"),e._uU(2),e.qZA()()),2&Z){const y=e.oxw(2);e.xp6(2),e.hij("IGST (",y.singleInvoiceData.igst,"%)")}}function w(Z,W){if(1&Z&&(e.TgZ(0,"div",5)(1,"p"),e._uU(2),e.qZA()()),2&Z){const y=e.oxw(2);e.xp6(2),e.hij("Rs.",y.singleInvoiceData.igstTaxAmount,"")}}function q(Z,W){if(1&Z&&(e.TgZ(0,"div",5)(1,"p",64),e._uU(2),e.qZA()()),2&Z){const y=e.oxw(2);e.xp6(2),e.Oqu(y.singleInvoiceData.finalAmount)}}function A(Z,W){if(1&Z&&(e.TgZ(0,"p",64),e._uU(1),e.qZA()),2&Z){const y=e.oxw(2);e.xp6(1),e.hij(" ",y.singleInvoiceData.balanceDue,"")}}function N(Z,W){if(1&Z&&(e.TgZ(0,"div",48)(1,"div",4)(2,"div",49)(3,"div",4)(4,"div",50)(5,"h1",51),e._uU(6,"INVOICE"),e.qZA()(),e.TgZ(7,"div",52),e._UZ(8,"img",53),e.qZA()()()(),e.TgZ(9,"div",4)(10,"div",54)(11,"div",4),e.YNc(12,et,13,4,"div",55),e.YNc(13,i,13,3,"div",55),e.qZA(),e.TgZ(14,"div",56)(15,"div",21),e.YNc(16,c,4,1,"p",57),e.YNc(17,$,5,4,"p",57),e.qZA(),e.TgZ(18,"div",5),e.YNc(19,s,2,1,"h2",58),e.qZA()(),e.TgZ(20,"div",4),e.YNc(21,rt,3,5,"div",59),e.TgZ(22,"div",24)(23,"div",56)(24,"div",21)(25,"p",60),e._uU(26,"Sub total"),e.qZA()(),e.TgZ(27,"div",5)(28,"p",60),e._uU(29,"Rs.8,000"),e.qZA()()(),e.TgZ(30,"div",4),e.YNc(31,r,3,1,"div",61),e.YNc(32,w,3,1,"div",62),e.qZA(),e.TgZ(33,"div",63)(34,"div",21)(35,"p",64),e._uU(36,"Total"),e.qZA()(),e.YNc(37,q,3,1,"div",62),e.qZA(),e.TgZ(38,"div",65)(39,"div",21)(40,"p",64),e._uU(41,"Balance due"),e.qZA()(),e.TgZ(42,"div",5),e.YNc(43,A,2,1,"p",66),e.qZA()()()()()()()),2&Z){const y=e.oxw();e.xp6(12),e.Q6J("ngIf",y.singleInvoiceData),e.xp6(1),e.Q6J("ngIf",y.singleInvoiceData),e.xp6(3),e.Q6J("ngIf",y.singleInvoiceData),e.xp6(1),e.Q6J("ngIf",y.singleInvoiceData),e.xp6(2),e.Q6J("ngIf",y.singleInvoiceData),e.xp6(2),e.Q6J("ngIf",y.singleInvoiceData),e.xp6(10),e.Q6J("ngIf",y.singleInvoiceData),e.xp6(1),e.Q6J("ngIf",y.singleInvoiceData),e.xp6(
15),e.Q6J("ngIf",y.singleInvoiceData),e.xp6(6),e.Q6J("ngIf",y.singleInvoiceData)}}function P(Z,W){1&Z&&(e.TgZ(0,"th",107),e._uU(1," Scheme Name. "),e.qZA())}function o(Z,W){if(1&Z&&(e.TgZ(0,"td",108),e._uU(1),e.qZA()),2&Z){const y=W.$implicit;e.xp6(1),e.hij(" ",y.position," ")}}function z(Z,W){1&Z&&(e.TgZ(0,"th",107),e._uU(1," Type "),e.qZA())}function I(Z,W){if(1&Z&&(e.TgZ(0,"td",108),e._uU(1),e.qZA()),2&Z){const y=W.$implicit;e.xp6(1),e.hij(" ",y.name," ")}}function j(Z,W){1&Z&&(e.TgZ(0,"th",109),e._uU(1," Average AUM "),e.qZA())}function M(Z,W){if(1&Z&&(e.TgZ(0,"td",110),e._uU(1),e.qZA()),2&Z){const y=W.$implicit;e.xp6(1),e.hij(" ",y.weight," ")}}function L(Z,W){1&Z&&(e.TgZ(0,"th",109),e._uU(1," Fee Amount "),e.qZA())}function X(Z,W){if(1&Z&&(e.TgZ(0,"td",110),e._uU(1),e.qZA()),2&Z){const y=W.$implicit;e.xp6(1),e.hij(" ",y.symbol," ")}}function H(Z,W){1&Z&&e._UZ(0,"tr",111)}function lt(Z,W){1&Z&&e._UZ(0,"tr",112)}function J(Z,W){1&Z&&(e.TgZ(0,"th",107),e._uU(1," Scheme Name. "),e.qZA())}function st(Z,W){if(1&Z&&(e.TgZ(0,"td",108),e._uU(1),e.qZA()),2&Z){const y=W.$implicit;e.xp6(1),e.hij(" ",y.position," ")}}function Q(Z,W){1&Z&&(e.TgZ(0,"th",107),e._uU(1," Type "),e.qZA())}function at(Z,W){if(1&Z&&(e.TgZ(0,"td",108),e._uU(1),e.qZA()),2&Z){const y=W.$implicit;e.xp6(1),e.hij(" ",y.name," ")}}function B(Z,W){1&Z&&(e.TgZ(0,"th",109),e._uU(1," Average AUM "),e.qZA())}function tt(Z,W){if(1&Z&&(e.TgZ(0,"td",110),e._uU(1),e.qZA()),2&Z){const y=W.$implicit;e.xp6(1),e.hij(" ",y.weight," ")}}function gt(Z,W){1&Z&&(e.TgZ(0,"th",109),e._uU(1," Fee Amount "),e.qZA())}function bt(Z,W){if(1&Z&&(e.TgZ(0,"td",110),e._uU(1),e.qZA()),2&Z){const y=W.$implicit;e.xp6(1),e.hij(" ",y.symbol," ")}}function ft(Z,W){1&Z&&e._UZ(0,"tr",111)}function Dt(Z,W){1&Z&&e._UZ(0,"tr",112)}function St(Z,W){1&Z&&(e.TgZ(0,"th",107),e._uU(1," Scheme Name. "),e.qZA())}function Mt(Z,W){if(1&Z&&(e.TgZ(0,"td",108),e._uU(1),e.qZA()),2&Z){const y=W.$implicit;e.xp6(1),e.hij(" ",y.position," ")}}function Pt(Z,W){1&Z&&(e.TgZ(0,"th",107),e._uU(1," Type "),e.qZA())}function At(Z,W){if(1&Z&&(e.TgZ(0,"td",108),e._uU(1),e.qZA()),2&Z){const y=W.$implicit;e.xp6(1),e.hij(" ",y.name," ")}}function It(Z,W){1&Z&&(e.TgZ(0,"th",109),e._uU(1," Average AUM "),e.qZA())}function F(Z,W){if(1&Z&&(e.TgZ(0,"td",110),e._uU(1),e.qZA()),2&Z){const y=W.$implicit;e.xp6(1),e.hij(" ",y.weight," ")}}function mt(Z,W){1&Z&&(e.TgZ(0,"th",109),e._uU(1," Fee Amount "),e.qZA())}function R(Z,W){if(1&Z&&(e.TgZ(0,"td",110),e._uU(1),e.qZA()),2&Z){const y=W.$implicit;e.xp6(1),e.hij(" ",y.symbol," ")}}function dt(Z,W){1&Z&&e._UZ(0,"tr",111)}function _t(Z,W){1&Z&&e._UZ(0,"tr",112)}function ut(Z,W){if(1&Z&&(e.TgZ(0,"div",74)(1,"div",4)(2,"div",75)(3,"h3",76),e._uU(4,"Fee Breakup"),e.qZA()(),e.TgZ(5,"div",19)(6,"i",77),e._uU(7," save_alt "),e.qZA()()(),e.TgZ(8,"div",78)(9,"div",50)(10,"p",79),e._uU(11,"Invoice Peroid"),e.qZA(),e.TgZ(12,"p",80),e._uU(13,"21-09-2018 to 20-09-2019"),e.qZA()(),e.TgZ(14,"div",81)(15,"p",82),e._uU(16,"Fee Amount"),e.qZA(),e.TgZ(17,"p",83),e._uU(18,"Rs. 9,640"),e.qZA()()(),e.TgZ(19,"div",84)(20,"h3",85),e._uU(21,"Mutual Funds"),e.qZA(),e.TgZ(22,"h4",86),e._uU(23,"Direct"),e.qZA(),e.TgZ(24,"table",87),e.ynx(25,88),e.YNc(26,P,2,0,"th",89),e.YNc(27,o,2,1,"td",90),e.BQk(),e.ynx(28,91),e.YNc(29,z,2,0,"th",89),e.YNc(30,I,2,1,"td",90),e.BQk(),e.ynx(31,92),e.YNc(32,j,2,0,"th",93),e.YNc(33,M,2,1,"td",94),e.BQk(),e.ynx(34,95),e.YNc(35,L,2,0,"th",93),e.YNc(36,X,2,1,"td",94),e.BQk(),e.YNc(37,H,1,0,"tr",96),e.YNc(38,lt,1,0,"tr",97),e.qZA(),e.TgZ(39,"div",4),e._UZ(40,"div",98),e.TgZ(41,"div",99)(42,"div",100)(43,"div",101)(44,"h5",102),e._uU(45,"Total"),e.qZA()(),e.TgZ(46,"div",103)(47,"h5",104),e._uU(48,"47,000"),e.qZA()()()()(),e.TgZ(49,"div")(50,"h4",86),e._uU(51,"Regular"),e.qZA()(),e.TgZ(52,"table",87),e.ynx(53,88),e.YNc(54,J,2,0,"th",89),e.YNc(55,st,2,1,"td",90),e.BQk(),e.ynx(56,91),e.YNc(57,Q,2,0,"th",89),e.YNc(58,at,2,1,"td",90),e.BQk(),e.ynx(59,92),e.YNc(60,B,2,0,"th",93),e.YNc(61,tt,2,1,"td",94),e.BQk(),e.ynx(62,95),e.YNc(63,gt,2,0,"th",93),e.YNc(64,bt,2,1,"td",94),e.BQk(),e.YNc(65,ft,1,0,"tr",96),e.YNc(66,Dt,1,0,"tr",97),e.qZA(),e.TgZ(67,"div",4),e._UZ(68,"div",98),e.TgZ(69,"div",99)(70,"div",100)(71,"div",101)(72,"h5",102),e._uU(73,"Total"),e.qZA()(),e.TgZ(74,"div",103)(75,"h
15",104),e._uU(76,"47,000"),e.qZA()()()()(),e.TgZ(77,"div")(78,"h4",86),e._uU(79,"Other Asset Classes"),e.qZA()(),e.TgZ(80,"table",87),e.ynx(81,88),e.YNc(82,St,2,0,"th",89),e.YNc(83,Mt,2,1,"td",90),e.BQk(),e.ynx(84,91),e.YNc(85,Pt,2,0,"th",89),e.YNc(86,At,2,1,"td",90),e.BQk(),e.ynx(87,92),e.YNc(88,It,2,0,"th",93),e.YNc(89,F,2,1,"td",94),e.BQk(),e.ynx(90,95),e.YNc(91,mt,2,0,"th",93),e.YNc(92,R,2,1,"td",94),e.BQk(),e.YNc(93,dt,1,0,"tr",96),e.YNc(94,_t,1,0,"tr",97),e.qZA(),e.TgZ(95,"div",4),e._UZ(96,"div",98),e.TgZ(97,"div",99)(98,"div",100)(99,"div",101)(100,"h5",102),e._uU(101,"Total"),e.qZA()(),e.TgZ(102,"div",103)(103,"h5",104),e._uU(104,"47,000"),e.qZA()()()()(),e.TgZ(105,"div",4),e._UZ(106,"div",98),e.TgZ(107,"div",99)(108,"div",100)(109,"div",101)(110,"h5",102),e._uU(111,"Total"),e.qZA()(),e.TgZ(112,"div",103)(113,"h5",104),e._uU(114,"47,000"),e.qZA()()()()(),e.TgZ(115,"div",4),e._UZ(116,"div",98),e.TgZ(117,"div",99)(118,"div",100)(119,"div",101)(120,"h5",105),e._uU(121,"Split Ratio (40%)"),e.qZA()(),e.TgZ(122,"div",103)(123,"h5",106),e._uU(124,"30,000"),e.qZA()()()()()()()),2&Z){const y=e.oxw();e.xp6(24),e.Q6J("dataSource",y.dataSource),e.xp6(13),e.Q6J("matHeaderRowDef",y.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",y.displayedColumns),e.xp6(14),e.Q6J("dataSource",y.dataSource),e.xp6(13),e.Q6J("matHeaderRowDef",y.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",y.displayedColumns),e.xp6(14),e.Q6J("dataSource",y.dataSource),e.xp6(13),e.Q6J("matHeaderRowDef",y.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",y.displayedColumns)}}function Ct(Z,W){if(1&Z){const y=e.EpF();e.TgZ(0,"div")(1,"p"),e._uU(2,"dsfsagggggggggggggggggggggggggggggggggggsdgsdg"),e.qZA(),e.TgZ(3,"button",113),e.NdJ("click",function(){e.CHM(y);const Et=e.oxw();return e.KtG(Et.cancel())}),e._uU(4,"close"),e.qZA()()}}const Ot=[{position:"ICICI Top 100 fund - weekly dividend plan regular",name:"Liquid",weight:"47,240",symbol:"12,000"},{position:"DSP Equity Fund",name:"Liquid",weight:"36,005",symbol:"1,400"}];let Lt=(()=>{class Z{constructor(y,xt){this.invoiveSub=y,this.dialog=xt,this.displayedColumns=["position","name","weight","symbol"],this.dataSource=Ot}ngOnInit(){this.showRecord=!1,this.showEdit=!1}Close(){this.invoiveSub.showPdfInvoice=!1}recordPayment(){this.showRecord=!0}cancel(){this.showRecord=!1,this.showEdit=!1}editInvoice(){this.showEdit=!0}deleteModal(y){this.dialog.open(Y.$,{width:"400px",data:{data:y,header:"DELETE",body:"Are you sure you want to delete the document?",body2:"This cannot be undone.",btnYes:"CANCEL",btnNo:"DELETE"},autoFocus:!1}).afterClosed().subscribe(Nt=>{})}}return Z.\u0275fac=function(y){return new(y||Z)(e.Y36(t.q),e.Y36(v.uw))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["app-invoice-pdf-document"]],inputs:{singleInvoiceData:"singleInvoiceData"},decls:195,vars:4,consts:[["id","ui-invoice-pdf-documents"],[1,"bg-white","pb-36","mt-70"],[1,"row","b-a"],[1,"col-md-4","p-0"],[1,"row"],[1,"col-md-4"],[1,"mb-0","wrapper-8"],[1,"material-icons","pl-24"],[1,"col-md-8","text-right","pt-8","right"],["mat-stroked-button","",1,"btn-header","btn-xs","br-0","f-12","h-28","mt-4"],[1,"material-icons","v-middle","f-28","c-p","text-custom"],["mat-stroked-button","",1,"btn-primary","br-0","my-btn","mt-4"],[1,"material-icons"],[1,"col-md-8","bl-1","p-0"],[1,"col-md-10"],[1,"f-400","wrapper-16","pl-8","mb-0"],[1,"col-md-2",3,"click"],[1,"material-icons","text-right","pt-16","c-p","right"],[1,"row","pt-12","pb-12","bg-white","hover","roboto"],[1,"col-md-1"],["checked","false"],[1,"col-md-8"],[1,"m-0","f-15"],[1,"col-md-3","text-right","pr-8"],[1,"col-md-5"],[1,"m-0","f-13","pt-12"],[1,"col-md-2","p-0"],[1,"col-md-4","text-right","pr-8"],[1,"m-0","f-13","pt-12","text-danger"],[1,"row","pt-12","pb-12","bg-white","hover","bt-1","roboto"],[1,"m-0","f-13","pt-12","text-primary"],[1,"m-0","f-13","pt-12","text-success"],[1,"col-md-8","p-0"],[1,"bl-1"],[1,"row","bb-1"],[1,"col-md-5","text-custom","mt-12","pl-24","pr-0"],["src","https://res.cloudinary.com/futurewise/image/upload/v1619592698/myplanner/images/svg/pencil.svg",1,"b-a","wrapper-8","c-p"],["src","https://res.cloudinary.com/futurewise/image/upload/v1619592670/myplanner/images/svg/mail-light.svg",1,"b-a","wrapper-8"],["src","https://res.cloudinary.com/futurewise/image/upload/v1619592698/myplanner/images/svg/pdf-icons.svg",1,"b-a","wrapper-8"],["src","https://res.cloudinary.com/futurewise/image/upload/v1619592706/myplanner/images/svg/printer.svg",1,"b-a","wrapper-8"],["src","https://res.cloudinary.com/futurewise/image/upload/v1619592587/myplanner/images/svg/attech-light.svg",1,"b-a","wrapper-8"],["src","https://res.cloudinary.com/futurewise/image/upload/v1619592620/myplanner/images/svg/delete.svg",1,"b-a","wrapper-8","ml-8"],[1,"col-md-5","right","text-right"],["mat-stroked-button","","class","btn-primary br-0 mt-12 mb-12 h-40",3,"click",4,"ngIf"],["class","b-a m-20 pb-28",4,"ngIf"],["class","pt-20 pb-20 b-b",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"btn-primary","br-0","mt-12","mb-12","h-40",3,"click"],[1,"b-a","m-20","pb-28"],[1,"col-md-12","minheight-900"],[1,"col-md-9"],[1,"f-42","text-custom","pt-48","f-700"],[1,"col-md-3","text-right"],["src","https://res.cloudinary.com/futurewise/image/upload/v1568097552/icons_fnvpa7.png",1,"pt-20"],[1,"col-md-12"],["class","col-md-6",4,"ngIf"],[1,"row","pt-44"],["class","text-black f-400",4,"ngIf"],["class","text-danger f-400",4,"ngIf"],["class","col-md-7 mt-70",4,"ngIf"],[1,"text-black","f-400"],["class","col-md-8",4,"ngIf"],["class","col-md-4",4,"ngIf"],[1,"row","bt-1"],[1,"f-500","roboto","pt-8"],[1,"row","bt-1","bb-1"],["class","f-500 roboto pt-8",4,"ngIf"],[1,"col-md-6"],[1,"text-black","pt-48"],[1,"f-14","text-custom","l-20"],[1,"text-custom","f-16"],[1,"text-danger","f-400"],[1,"col-md-7","mt-70"],[1,"f-12","text-black","f-400","roboto"],[1,"pt-20","pb-20","b-b"],[1,"col-md-11"],[1,"f-22","m-0","pt-4","pl-8"],[1,"material-icons","text-light","c-p","p-8","f-24","b-a","text-right","right"],[1,"row","pt-32","pb-28","bb-1"],[1,"text-custom","m-0","f-16","pl-8"],[1,"f-18","m-0","pt-4","pl-8"],[1,"col-md-3","pr-0"],[1,"text-custom","m-0","f-16"],[1,"f-18","m-0","pt-4"],[1,"wrapper-20"],[1,"m-0","text-black","pt-20"],[1,"m-0","pt-20"],["mat-table","","id","table-low",1,"mt-12",3,"dataSource"],["matColumnDef","position"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","weight"],["mat-header-cell","","class","text-right",4,"matHeaderCellDef"],["mat-cell","","class","text-right",4,"matCellDef"],["matColumnDef","symbol"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"col-md-7"],[1,"col-md-5","b-b","p-0"],[1,"row","pt-12","pb-12","text-center"],[1,"col-md-7","p-0"],[1,"m-0","text-black","text-right","f-500"],[1,"col-md-5","p-0"],[1,"m-0","text-black","text-right","f-500","pr-8"],[1,"m-0","text-black","f-500","text-right"],[1,"m-0","text-black","f-500","pr-8","text-right"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","",1,"text-right"],["mat-cell","",1,"text-right"],["mat-header-row",""],["mat-row",""],[3,"click"]],template:function(y,xt){1&y&&
1(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"h4",6),e._uU(7,"Invoices123 "),e.TgZ(8,"i",7),e._uU(9," arrow_drop_down "),e.qZA()()(),e.TgZ(10,"div",8)(11,"button",9),e._uU(12,"SEND"),e.qZA(),e.TgZ(13,"i",10),e._uU(14," more_vert "),e.qZA(),e.TgZ(15,"button",11)(16,"i",12),e._uU(17," add "),e.qZA()()()()(),e.TgZ(18,"div",13)(19,"div",4)(20,"div",14)(21,"h3",15),e._uU(22,"INV-19-20-103201"),e.qZA()(),e.TgZ(23,"div",16),e.NdJ("click",function(){return xt.Close()}),e.TgZ(24,"i",17),e._uU(25," clear "),e.qZA()()()()(),e.TgZ(26,"div",4)(27,"div",3)(28,"div",18)(29,"div",19),e._UZ(30,"mat-checkbox",20),e.qZA(),e.TgZ(31,"div",21)(32,"p",22),e._uU(33,"Drasti Zaveri"),e.qZA()(),e.TgZ(34,"div",23)(35,"p",22),e._uU(36,"Rs.20,000"),e.qZA()(),e._UZ(37,"div",19),e.TgZ(38,"div",24)(39,"p",25),e._uU(40,"INV-19-20-103001"),e.qZA()(),e.TgZ(41,"div",26)(42,"p",25),e._uU(43,"26/08/2019"),e.qZA()(),e.TgZ(44,"div",27)(45,"p",28),e._uU(46," OVERDUE"),e.qZA()()(),e.TgZ(47,"div",29)(48,"div",19),e._UZ(49,"mat-checkbox"),e.qZA(),e.TgZ(50,"div",21)(51,"p",22),e._uU(52,"Drasti Zaveri"),e.qZA()(),e.TgZ(53,"div",23)(54,"p",22),e._uU(55,"Rs.20,000"),e.qZA()(),e._UZ(56,"div",19),e.TgZ(57,"div",24)(58,"p",25),e._uU(59,"INV-19-20-103001"),e.qZA()(),e.TgZ(60,"div",26)(61,"p",25),e._uU(62,"26/08/2019"),e.qZA()(),e.TgZ(63,"div",27)(64,"p",28),e._uU(65," OVERDUE"),e.qZA()()(),e.TgZ(66,"div",29)(67,"div",19),e._UZ(68,"mat-checkbox"),e.qZA(),e.TgZ(69,"div",21)(70,"p",22),e._uU(71,"Drasti Zaveri"),e.qZA()(),e.TgZ(72,"div",23)(73,"p",22),e._uU(74,"Rs.20,000"),e.qZA()(),e._UZ(75,"div",19),e.TgZ(76,"div",24)(77,"p",25),e._uU(78,"INV-19-20-103001"),e.qZA()(),e.TgZ(79,"div",26)(80,"p",25),e._uU(81,"26/08/2019"),e.qZA()(),e.TgZ(82,"div",27)(83,"p",30),e._uU(84," SENT"),e.qZA()()(),e.TgZ(85,"div",29)(86,"div",19),e._UZ(87,"mat-checkbox",20),e.qZA(),e.TgZ(88,"div",21)(89,"p",22),e._uU(90,"Drasti Zaveri"),e.qZA()(),e.TgZ(91,"div",23)(92,"p",22),e._uU(93,"Rs.20,000"),e.qZA()(),e._UZ(94,"div",19),e.TgZ(95,"div",24)(96,"p",25),e._uU(97,"INV-19-20-103001"),e.qZA()(),e.TgZ(98,"div",26)(99,"p",25),e._uU(100,"26/08/2019"),e.qZA()(),e.TgZ(101,"div",27)(102,"p",31),e._uU(103," PAID"),e.qZA()()(),e.TgZ(104,"div",29)(105,"div",19),e._UZ(106,"mat-checkbox",20),e.qZA(),e.TgZ(107,"div",21)(108,"p",22),e._uU(109,"Drasti Zaveri"),e.qZA()(),e.TgZ(110,"div",23)(111,"p",22),e._uU(112,"Rs.20,000"),e.qZA()(),e._UZ(113,"div",19),e.TgZ(114,"div",24)(115,"p",25),e._uU(116,"INV-19-20-103001"),e.qZA()(),e.TgZ(117,"div",26)(118,"p",25),e._uU(119,"26/08/2019"),e.qZA()(),e.TgZ(120,"div",27)(121,"p",28),e._uU(122," OVERDUE"),e.qZA()()(),e.TgZ(123,"div",29)(124,"div",19),e._UZ(125,"mat-checkbox"),e.qZA(),e.TgZ(126,"div",21)(127,"p",22),e._uU(128,"Drasti Zaveri"),e.qZA()(),e.TgZ(129,"div",23)(130,"p",22),e._uU(131,"Rs.20,000"),e.qZA()(),e._UZ(132,"div",19),e.TgZ(133,"div",24)(134,"p",25),e._uU(135,"INV-19-20-103001"),e.qZA()(),e.TgZ(136,"div",26)(137,"p",25),e._uU(138,"26/08/2019"),e.qZA()(),e.TgZ(139,"div",27)(140,"p",28),e._uU(141," OVERDUE"),e.qZA()()(),e.TgZ(142,"div",29)(143,"div",19),e._UZ(144,"mat-checkbox"),e.qZA(),e.TgZ(145,"div",21)(146,"p",22),e._uU(147,"Drasti Zaveri"),e.qZA()(),e.TgZ(148,"div",23)(149,"p",22),e._uU(150,"Rs.20,000"),e.qZA()(),e._UZ(151,"div",19),e.TgZ(152,"div",24)(153,"p",25),e._uU(154,"INV-19-20-103001"),e.qZA()(),e.TgZ(155,"div",26)(156,"p",25),e._uU(157,"26/08/2019"),e.qZA()(),e.TgZ(158,"div",27)(159,"p",30),e._uU(160," SENT"),e.qZA()()(),e.TgZ(161,"div",29)(162,"div",19),e._UZ(163,"mat-checkbox"),e.qZA(),e.TgZ(164,"div",21)(165,"p",22),e._uU(166,"Drasti Zaveri"),e.qZA()(),e.TgZ(167,"div",23)(168,"p",22),e._uU(169,"Rs.20,000"),e.qZA()(),e._UZ(170,"div",19),e.TgZ(171,"div",24)(172,"p",25),e._uU(173,"INV-19-20-103001"),e.qZA()(),e.TgZ(174,"div",26)(175,"p",25),e._uU(176,"26/08/2019"),e.qZA()(),e.TgZ(177,"div",27)(178,"p",31),e._uU(179," PAID"),e.qZA()()()(),e.TgZ(180,"div",32)(181,"div",33)(182,"div",34)(183,"div",35),e._UZ(184,"img",36)(185,"img",37)(186,"img",38)(187,"img",39)(188,"img",40)(189,"img",41),e.qZA(),e.TgZ(190,"div",42),e.YNc(191,l,2,0,"button",43),e.qZA()(),e.YNc(192,N,44,10,"div",44),e.YNc(193,ut,125,9,"div",45),e.YNc(194,Ct,5,0,"div",46),e.qZA()()()()()),2&y&&(e.xp6(191),e.Q6J("ngIf",xt.singleInvoiceData.balanceDue>0),e.xp6(1),e.Q6J("ngIf",0==xt.showRecord),e.xp6(1),e.Q6J("ngIf",1==xt.showRecord),e.xp6(1),e.Q6J("ngIf",1==xt.showEdit))},dependencies:[g.lW,O.oG,n.BZ,n.fO,n.as,n.w1,n.Dz,n.nj,n.ge,n.ev,n.XQ,n.Gk,ot.O5,ot.uU],styles:[".form-control[_ngcontent-%COMP%]{border-radius:0}.bg-white.hover[_ngcontent-%COMP%]:hover{background-color:#e5e5e5!important;cursor:pointer}.f-42[_ngcontent-%COMP%]{font-size:42px!important}"]}),Z})()},97720:(Tt,pt,a)=>{a.d(pt,{P:()=>it});var t=a(41074),Y=a(53626),e=a(65730),v=a(67241),g=a(70591),O=a(62574),n=a(93584),ot=a(98739),l=a(94650),et=a(23767),i=a(65938),c=a(4859),$=a(97392),s=a(28255),rt=a(51572),r=a(96308),w=a(36895),q=a(81638),A=a(21112);const N=["tableEl"];
1function P(u,x){if(1&u){const h=l.EpF();l.TgZ(0,"div",6)(1,"button",7),l.NdJ("click",function(){l.CHM(h);const G=l.oxw();return l.KtG(G.addMandate())}),l._uU(2,"ADD NEW"),l.qZA()()}}function o(u,x){1&u&&(l.TgZ(0,"th",30),l._uU(1," Client Name "),l.qZA())}function z(u,x){if(1&u&&(l.TgZ(0,"div")(1,"div",34),l._uU(2),l.qZA()()),2&u){const h=l.oxw().$implicit,K=l.oxw(3);l.xp6(2),l.hij(" ",K.isLoading?"":h.clientName?h.clientName:"-"," ")}}function I(u,x){1&u&&l._UZ(0,"div",35)}function j(u,x){if(1&u&&(l.TgZ(0,"td",31),l.YNc(1,z,3,1,"div",32),l.YNc(2,I,1,0,"div",33),l.qZA()),2&u){const h=x.$implicit;l.xp6(1),l.Q6J("ngIf",!h.isLoading),l.xp6(1),l.Q6J("ngIf",h.isLoading)}}function M(u,x){1&u&&(l.TgZ(0,"th",30),l._uU(1,"Payee name "),l.qZA())}function L(u,x){if(1&u&&(l.TgZ(0,"div")(1,"div",34),l._uU(2),l.qZA()()),2&u){const h=l.oxw().$implicit,K=l.oxw(3);l.xp6(2),l.hij(" ",K.isLoading?"":h.payeeName?h.payeeName:"-"," ")}}function X(u,x){1&u&&l._UZ(0,"div",35)}function H(u,x){if(1&u&&(l.TgZ(0,"td",31),l.YNc(1,L,3,1,"div",32),l.YNc(2,X,1,0,"div",33),l.qZA()),2&u){const h=x.$implicit;l.xp6(1),l.Q6J("ngIf",!h.isLoading),l.xp6(1),l.Q6J("ngIf",h.isLoading)}}function lt(u,x){1&u&&(l.TgZ(0,"th",30),l._uU(1," Mandate type "),l.qZA())}function J(u,x){if(1&u&&(l.TgZ(0,"div")(1,"div",34),l._uU(2),l.qZA()()),2&u){const h=l.oxw().$implicit,K=l.oxw(3);l.xp6(2),l.hij(" ",K.isLoading?"":h.mandateTypeString?h.mandateTypeString:"-"," ")}}function st(u,x){1&u&&l._UZ(0,"div",35)}function Q(u,x){if(1&u&&(l.TgZ(0,"td",31),l.YNc(1,J,3,1,"div",32),l.YNc(2,st,1,0,"div",33),l.qZA()),2&u){const h=x.$implicit;l.xp6(1),l.Q6J("ngIf",!h.isLoading),l.xp6(1),l.Q6J("ngIf",h.isLoading)}}function at(u,x){1&u&&(l.TgZ(0,"th",30),l._uU(1," Mandate limit "),l.qZA())}function B(u,x){if(1&u&&(l.TgZ(0,"span",38),l._uU(1),l.qZA()),2&u){const h=l.oxw(2).$implicit,K=l.oxw(3);l.xp6(1),l.hij(" ",K.isLoading?"":h.mandateLimit?h.mandateLimit:"-","")}}function tt(u,x){1&u&&l._UZ(0,"span")}function gt(u,x){if(1&u&&(l.TgZ(0,"div")(1,"div",34),l._uU(2),l.YNc(3,B,2,1,"span",37),l.YNc(4,tt,1,0,"span",32),l.qZA()()),2&u){const h=l.oxw(4);l.xp6(2),l.Oqu(h.isLoading?"":"\u20b9"),l.xp6(1),l.Q6J("ngIf",!h.isLoading),l.xp6(1),l.Q6J("ngIf",h.isLoading)}}function bt(u,x){1&u&&l._UZ(0,"div",35)}function ft(u,x){if(1&u&&(l.TgZ(0,"td",36),l.YNc(1,gt,5,3,"div",32),l.YNc(2,bt,1,0,"div",33),l.qZA()),2&u){const h=x.$implicit;l.xp6(1),l.Q6J("ngIf",!h.isLoading),l.xp6(1),l.Q6J("ngIf",h.isLoading)}}function Dt(u,x){1&u&&(l.TgZ(0,"th",30),l._uU(1," Mandate expiry "),l.qZA())}function St(u,x){if(1&u&&(l.TgZ(0,"div")(1,"div",34),l._uU(2),l.qZA()()),2&u){const h=l.oxw().$implicit,K=l.oxw(3);l.xp6(2),l.hij(" ",K.isLoading?"":h.mandateExpire?h.mandateExpire:"-"," ")}}function Mt(u,x){1&u&&l._UZ(0,"div",35)}function Pt(u,x){if(1&u&&(l.TgZ(0,"td",31),l.YNc(1,St,3,1,"div",32),l.YNc(2,Mt,1,0,"div",33),l.qZA()),2&u){const h=x.$implicit;l.xp6(1),l.Q6J("ngIf",!h.isLoading),l.xp6(1),l.Q6J("ngIf",h.isLoading)}}function At(u,x){1&u&&(l.TgZ(0,"th",30),l._uU(1," Mandate frequency "),l.qZA())}function It(u,x){if(1&u&&(l.TgZ(0,"div")(1,"div",34),l._uU(2),l.qZA()()),2&u){const h=l.oxw().$implicit,K=l.oxw(3);l.xp6(2),l.hij(" ",K.isLoading?"":h.mandateFrequency?h.mandateFrequency:"-"," ")}}function F(u,x){1&u&&l._UZ(0,"div",35)}function mt(u,x){if(1&u&&(l.TgZ(0,"td",31),l.YNc(1,It,3,1,"div",32),l.YNc(2,F,1,0,"div",33),l.qZA()),2&u){const h=x.$implicit;l.xp6(1),l.Q6J("ngIf",!h.isLoading),l.xp6(1),l.Q6J("ngIf",h.isLoading)}}function R(u,x){1&u&&(l.TgZ(0,"th",30),l._uU(1," Status "),l.qZA())}function dt(u,x){if(1&u&&(l.TgZ(0,"div"),l._uU(1),l.qZA()),2&u){const h=l.oxw(2).$implicit,K=l.oxw(3);l.xp6(1),l.hij(" ",K.isLoading?"":h.mandateStatus?h.mandateStatus:"-"," ")}}function _t(u,x){if(1&u){const h=l.EpF();l.TgZ(0,"div",42),l.NdJ("click",function(){l.CHM(h);const G=l.oxw(2).$implicit,vt=l.oxw(3);return l.KtG(vt.refreshSingleRow(G))}),l.TgZ(1,"mat-icon"),l._uU(2,"refresh"),l.qZA()()}}function ut(u,x){if(1&u&&(l.TgZ(0,"div")(1,"div",40),l.YNc(2,dt,2,1,"div",32),l.YNc(3,_t,3,0,"div",41),l.qZA()()),2&u){const h=l.oxw().$implicit,K=l.oxw(3);l.xp6(1),l.Q6J("ngClass","Rejected"==h.mandateStatus?"text-danger":"Activated"==h.mandateStatus?"text-success":"text-warning"),l.xp6(1),l.Q6J("ngIf",!K.isLoading),l.xp6(1),l.Q6J("ngIf","Pending"==h.mandateStatus&&!K.isLoading)}}function Ct(u,x){1&u&&l._UZ(0,"div",35)}
1function Ot(u,x){if(1&u&&(l.TgZ(0,"td",39),l.YNc(1,ut,4,3,"div",32),l.YNc(2,Ct,1,0,"div",33),l.qZA()),2&u){const h=x.$implicit;l.xp6(1),l.Q6J("ngIf",!h.isLoading),l.xp6(1),l.Q6J("ngIf",h.isLoading)}}function Lt(u,x){1&u&&l._UZ(0,"th",43)}function Z(u,x){if(1&u&&(l.TgZ(0,"i",48),l._uU(1," more_vert "),l.qZA()),2&u){l.oxw();const h=l.MAs(4);l.Q6J("matMenuTriggerFor",h)}}function W(u,x){if(1&u){const h=l.EpF();l.TgZ(0,"td",44)(1,"div",34),l.YNc(2,Z,2,1,"i",45),l.TgZ(3,"mat-menu",null,46)(5,"button",47),l.NdJ("click",function(){const vt=l.CHM(h).$implicit,yt=l.oxw(3);return l.KtG(yt.deleteMandate(vt))}),l.TgZ(6,"span"),l._uU(7,"Delete"),l.qZA()()()()()}if(2&u){const h=l.oxw(3);l.xp6(2),l.Q6J("ngIf",!h.isLoading)}}function y(u,x){1&u&&l._UZ(0,"tr",49)}function xt(u,x){1&u&&l._UZ(0,"tr",50)}function Et(u,x){if(1&u){const h=l.EpF();l.TgZ(0,"table",12,13),l.NdJ("scroll",function(G){l.CHM(h);const vt=l.oxw(2);return l.KtG(vt.onPageChange(G))}),l.ynx(2,14),l.YNc(3,o,2,0,"th",15),l.YNc(4,j,3,2,"td",16),l.BQk(),l.ynx(5,17),l.YNc(6,M,2,0,"th",15),l.YNc(7,H,3,2,"td",16),l.BQk(),l.ynx(8,18),l.YNc(9,lt,2,0,"th",15),l.YNc(10,Q,3,2,"td",16),l.BQk(),l.ynx(11,19),l.YNc(12,at,2,0,"th",15),l.YNc(13,ft,3,2,"td",20),l.BQk(),l.ynx(14,21),l.YNc(15,Dt,2,0,"th",15),l.YNc(16,Pt,3,2,"td",16),l.BQk(),l.ynx(17,22),l.YNc(18,At,2,0,"th",15),l.YNc(19,mt,3,2,"td",16),l.BQk(),l.ynx(20,23),l.YNc(21,R,2,0,"th",15),l.YNc(22,Ot,3,2,"td",24),l.BQk(),l.ynx(23,25),l.YNc(24,Lt,1,0,"th",26),l.YNc(25,W,8,1,"td",27),l.BQk(),l.YNc(26,y,1,0,"tr",28),l.YNc(27,xt,1,0,"tr",29),l.qZA()}if(2&u){const h=l.oxw(2);l.Q6J("appSkeletonLoading",h.isLoading)("dataSource",h.dataSource),l.xp6(26),l.Q6J("matHeaderRowDef",h.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",h.displayedColumns)}}function Nt(u,x){1&u&&l._UZ(0,"mat-spinner",51),2&u&&l.Q6J("diameter",30)}const wt=function(u){return{"table-scroll":u}};function Ut(u,x){if(1&u){const h=l.EpF();l.TgZ(0,"div",8),l.NdJ("scroll",function(G){l.CHM(h);const vt=l.oxw();return l.KtG(vt.onWindowScroll(G))}),l.YNc(1,Et,28,4,"table",9),l.TgZ(2,"div",10),l.YNc(3,Nt,1,1,"mat-spinner",11),l.qZA()()}if(2&u){const h=l.oxw();l.Q6J("ngClass",l.VKq(3,wt,0==h.isLoading)),l.xp6(1),l.Q6J("ngIf",h.dataSource.data.length>0),l.xp6(2),l.Q6J("ngIf",h.infiniteScrollingFlag)}}function Rt(u,x){if(1&u){const h=l.EpF();l.TgZ(0,"div",52)(1,"div"),l._UZ(2,"img",53),l.TgZ(3,"p",54),l._uU(4," No data found "),l.qZA(),l.TgZ(5,"button",55),l.NdJ("click",function(){l.CHM(h);const G=l.oxw();return l.KtG(G.addMandate())}),l._uU(6,"Add Mandate"),l.qZA()()()}}let it=(()=>{class u{constructor(h,K,G,vt){this.subInjectService=h,this.subscriptionService=K,this.dialog=G,this.eventService=vt,this.displayedColumns=["cname","payname","mandatetype","mandatelimit","mandateexpiry","mandatefreq","status","icons"],this.dataSource=new Y.by([{},{},{}]),this.clientList=[],this.isLoading=!1,this.currentPage=0,this.pageSize=10}ngOnInit(){this.getClientDetails(0),this.dataSource.paginator=this.paginator,this.advisorId=e.e.getAdvisorId()}addMandate(){const K=this.subInjectService.changeNewRightSliderState({flag:"",data:"",id:"",state:"open",componentName:O.l}).subscribe(G=>{v.fK.isDialogClose(G)&&(v.fK.isRefreshRequired(G)&&this.getClientDetails(0),K.unsubscribe())})}getClientDetails(h){this.isLoading=!0;const K={advisorId:e.e.getAdvisorId(),limit:10,offset:h};this.subscriptionService.getClientDetails(K).subscribe(G=>{G?(G.forEach(vt=>{vt.isLoading=!1}),this.dataSource.data=G):this.dataSource.data=[],this.isLoading=!1},G=>{this.dataSource.data=[],this.isLoading=!1})}onPageChange(h){this.getClientDetails(h.pageIndex*h.pageSize),this.infiniteScrollingFlag=!0}onWindowScroll(h){this.tableEl._elementRef.nativeElement.querySelector("tbody").querySelector("tr:last-child").offsetTop<=h.target.scrollTop+h.target.offsetHeight+200&&(this.hasEndReached||(this.infiniteScrollingFlag=!0,this.hasEndReached=!0,this.scrollFunction()))}scrollFunction(){this.subscriptionService.getClientDetails({advisorId:this.advisorId,offset:this.dataSource.data.length,limit:10}).subscribe(G=>{this.infiniteScrollingFlag=!1,G&&(this.hasEndReached=!1,this.dataSource.data=this.dataSource.data.concat(G))},G=>{this.infiniteScrollingFlag=!1})}refreshSingleRow(h){h.isLoading=!0,this.subscriptionService.checkStatus
1Mandate({mandateId:h.id}).subscribe(G=>{G&&(h.clientName=G[0].clientName,h.payeeName=G[0].payeeName,h.mandateTypeString=G[0].mandateTypeString,h.mandateLimit=G[0].mandateLimit,h.mandateExpire=G[0].mandateExpire,h.mandateFrequency=G[0].mandateFrequency,h.mandateStatus=G[0].mandateStatus,h.isLoading=!1)})}deleteMandate(h){const vt=this.dialog.open(n.$,{width:"400px",data:{data:"mandate",header:"DELETE",body:"Are you sure you want to delete?",body2:"This cannot be undone.",btnYes:"CANCEL",btnNo:"DELETE",positiveMethod:()=>{const yt={adminId:e.e.getAdminAdvisorId(),advisorId:this.advisorId,id:h.id};this.subscriptionService.deleteMandate(yt).subscribe(T=>{T?this.eventService.openSnackBar("Deleted successfully!","Dismiss"):null==T&&this.eventService.openSnackBar("Mandate delete fail!","Dismiss"),vt.close()},T=>this.eventService.openSnackBar(T))},negativeMethod:()=>{}},autoFocus:!1});vt.afterClosed().subscribe(yt=>{this.getClientDetails(0)})}}return u.\u0275fac=function(h){return new(h||u)(l.Y36(et.f),l.Y36(g.F),l.Y36(i.uw),l.Y36(t.P))},u.\u0275cmp=l.Xpm({type:u,selectors:[["app-mandate-subscription"]],viewQuery:function(h,K){if(1&h&&(l.Gf(N,5),l.Gf(ot.NW,5)),2&h){let G;l.iGM(G=l.CRH())&&(K.tableEl=G.first),l.iGM(G=l.CRH())&&(K.paginator=G.first)}},decls:7,vars:3,consts:[[1,"row","bg-white","pl-20","pr-20","pt-125","pb-28","fade-in"],[1,"col-5","mb-20","pl-0","pt-32","col-md-5","d-none-992"],[1,"m-0"],["class","col-7 mb-20 pt-20 full-end p-0",4,"ngIf"],["class","ox-hide people-clients-scroll responsive-table-port col-12 p-0 ",3,"ngClass","scroll",4,"ngIf"],["class","col-12 d-flex align-items-center flex-column justify-content-center",4,"ngIf"],[1,"col-7","mb-20","pt-20","full-end","p-0"],[1,"btn-primary","ml-20",3,"click"],[1,"ox-hide","people-clients-scroll","responsive-table-port","col-12","p-0",3,"ngClass","scroll"],["appSkeletonLoading","","class","skeletonLoading","id","table-low","mat-table","","matSort","",3,"appSkeletonLoading","dataSource","scroll",4,"ngIf"],[1,"col-md-12","d-flex","justify-content-center","align-items-center"],[3,"diameter",4,"ngIf"],["appSkeletonLoading","","id","table-low","mat-table","","matSort","",1,"skeletonLoading",3,"appSkeletonLoading","dataSource","scroll"],["tableEl",""],["matColumnDef","cname"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","payname"],["matColumnDef","mandatetype"],["matColumnDef","mandatelimit"],["mat-cell","","class","text-right",4,"matCellDef"],["matColumnDef","mandateexpiry"],["matColumnDef","mandatefreq"],["matColumnDef","status"],["mat-cell","","class","text-s",4,"matCellDef"],["matColumnDef","icons","sticky",""],["class","f-18","mat-header-cell","","style","width: 2%;",4,"matHeaderCellDef"],["mat-cell","","style","width: 2%;",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["style","background-color: #e8e8e8;padding: 10px;",4,"ngIf"],[1,"bar"],[2,"background-color","#e8e8e8","padding","10px"],["mat-cell","",1,"text-right"],["appFormatNumber","",4,"ngIf"],["appFormatNumber",""],["mat-cell","",1,"text-s"],[1,"bar","d-flex","align-items-center",3,"ngClass"],["class","c-p",3,"click",4,"ngIf"],[1,"c-p",3,"click"],["mat-header-cell","",1,"f-18",2,"width","2%"],["mat-cell","",2,"width","2%"],["class","material-icons c-p iconscolors",3,"matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click"],[1,"material-icons","c-p","iconscolors",3,"matMenuTriggerFor"],["mat-header-row",""],["mat-row",""],[3,"diameter"],[1,"col-12","d-flex","align-items-center","flex-column","justify-content-center"],["width","370","height","309","alt","Transaction Icon","loading","eager","decoding","async","src","https://res.cloudinary.com/futurewise/image/upload/v1703919788/My-Planner_Whitewashed/Transaction-w_1.1.svg",1,"width370","bg-primary"],[1,"f-22","f-600","pt-28","text-center"],["mat-button","",1,"btn-primary","m-auto","d-block",3,"click"]],template:function(h,K){1&h&&(l.TgZ(0,"div",0)(1,"div",1)(2,"h3",2),l._uU(3,"Mandates"),l.qZA()(),l.YNc(4,P,3,0,"div",3),l.YNc(5,Ut,4,5,"div",4),l.YNc(6,Rt,7,0,"div",5),l.qZA()),2&h&&(l.xp6(4),l.Q6J("ngIf",K.dataSource.data.length>0),l.xp6(1),l.Q6J("ngIf",K.dataSource.data.length>0),l.xp6(1),l.Q6J("ngIf",0==K.dataSource.data.length))},dependencies:[c.lW,$.Hw,s.VK,s.OP,s.p6,rt.Ou,r.YE,Y.BZ,Y.fO,Y.as,Y.w1,Y.Dz,Y.nj,Y.ge,Y.ev,Y.XQ,Y.Gk,w.mk,w.O5,q.d,A.R],styles:[".people-clients-scroll[_ngcontent-%COMP%]{overflow-y:auto!important;height:460px;min-height:200px}.width370[_ngcontent-%COMP%]{width:370px}.back-office-table[_ngcontent-%COMP%] #table-low[_ngcontent-%COMP%] tr.mat-header-row[_ngcontent-%COMP%]{height:40px!important} .back-office-table{overflow:auto} .back-office-table #table-low th{top:-2px}"]}),u})()},60591:(Tt,pt,a)=>{a.d(pt,{M:()=>Rt});var t=a(96308),Y=a(53626),e=a(93584),v=a(70591),g=a(41074),O=a(65730),n=a(67241),ot=a(36895),l=a(94562),et=a(83317),i=a(77954),c=a(3900),$=a(33296),s=a(70661),rt=a(47873),r=a(94650),w=a(23767),q=a(65938),A=a(4859),N=a(56709),P=a(28255),o=a(51572),z=a(24006),I=a(81638),j=a(16649);const M=["tableEl"];function L(U,it){1&U&&(r.TgZ(0,"a",52),r._uU(1,"Select quotation to see more actions "),r.qZA())}function X(U,it){if(1&U){const u=r.EpF();r.TgZ(0,"a",53),r.NdJ("click",function(){r.CHM(u);const h=r.oxw(2);return r.KtG(h.deleteModal(null))}),r._uU(1,"Delete quotation "),r.qZA()}}function H(U,it){if(1&U&&(r.TgZ(0,"div",46)(1,"button",47),r._uU(2,"Actions "),r.TgZ(3,"i",48),r._uU(4," arrow_drop_down "),r.qZA()(),r.TgZ(5,"mat-menu",null,49),r.YNc(7,L,2,0,"a",50),r.YNc(8,X,2,0,"a",51),r.qZA()()),2&U){const u=r.MAs(6),x=r.oxw();r.xp6(1),r.Q6J("matMenuTriggerFor",u),r.xp6(6),r.Q6J("ngIf",0==x.dataCount),r.xp6(1),r.Q6J("ngIf",0!=x.dataCount&&x.roleService.subscriptionPermission.subModule.quotations.quotationsCapabilityList.Delete)}}function lt(U,it){if(1&U&&(r.TgZ(0,"p",56),r._uU(1),r.qZA()),2&U){const u=r.oxw(2);r.xp6(1),r.hij("",u.dataCount," quotation selected ")}}function J(U,it){if(1&U&&(r.TgZ(0,"p",56),r._uU(1),r.qZA()),2&U){const u=r.oxw(2);r.xp6(1),r.hij("",u.dataCount," quotations selected ")}}function st(U,it){if(1&U&&(r.TgZ(0,"div",54),r.YNc(1,lt,2,1,"p",55),r.YNc(2,J,2,1,"p",55),r.qZA()),2&U){const u=r.oxw();r.xp6(1),r.Q6J("ngIf",1==u.dataCount),r.xp6(1),r.Q6J("ngIf",u.dataCount>1)}}function Q(U,it){if(1&U){const u=r.EpF();r.TgZ(0,"button",57),r.NdJ("click",function(){r.CHM(u);const h=r.oxw();return r.KtG(h.addQuotation("addQuotation"))}),r._uU(1,"ADD NEW "),r.qZA()}}function at(U,it){if(1&U){const u=r.EpF();r.TgZ(0,"th",58)(1,"mat-checkbox",59),r.NdJ("change",function(h){r.CHM(u);const K=r.oxw();return r.KtG(K.selectAll(h))}),r.qZA()()}if(2&U){const u=r.oxw();r.xp6(1),r.Q6J("indeterminate",u.dataCount>0&&u.dataCount!=u.dataSource.data.length)("checked",u.dataCount==u.dataSource.data.length)}}function B(U,it){if(1&U){const u=r.EpF();r.TgZ(0,"td",60)(1,"mat-checkbox",61),r.NdJ("ngModelChange",function(h){const G=r.CHM(u).$implicit;return r.KtG(G.selected=h)})("change",function(){r.CHM(u);const h=r.oxw();return r.KtG(h.changeSelect())}),r.qZA()()}if(2&U){const u=it.$implicit;r.xp6(1),r.Q6J("ngModel",u.selected)}}function tt(U,it){1&U&&(r.TgZ(0,"th",62),r._uU(1," Client name "),r.qZA())}function gt(U,it){if(1&U){const u=r.EpF();r.TgZ(0,"td",63),r.NdJ("click",function(){const K=r.CHM(u).$implicit,G=r.oxw();return r.KtG(G.Open("viewQuotation",K))}),r.TgZ(1,"div",64),r._uU(2),r.qZA()()}if(2&U){const u=it.$implicit;r.xp6(2),r.hij(" ",u.clientName," ")}}function bt(U,it){1&U&&(r.TgZ(0,"th",65),r._uU(1," Document name "),r.qZA())}function ft(U,it){if(1&U&&(r.TgZ(0,"td",66)(1,"div",64),r._uU(2),r.qZA()()),2&U){const u=it.$implicit;r.xp6(2),r.hij(" ",u.documentName," ")}}function Dt(U,it){1&U&&(r.TgZ(0,"th",67),r._uU(1," Plan name"),r.qZA())}function St(U,it){if(1&U&&(r.TgZ(0,"td",66)(1,"div",64),r._uU(2),r.qZA()()),2&U){const u=it.$implicit;r.xp6(2),r.hij(" ",u.planName," ")}}function Mt(U,it){1&U&&(r.TgZ(0,"th",68),r._uU(1," Created date "),r.qZA())}function Pt(U,it){if(1&U&&(r.TgZ(0,"td",66)(1,"div",64),r._uU(2),r.ALo(3,"date"),r.qZA()()),2&U){const u=it.$implicit;r.xp6(2),r.hij(" ",r.xi3(3,1,u.createdDate,"dd/MM/yyyy")," ")}}function At(U,it){1&U&&(r.TgZ(0,"th",69),r._uU(1," Sent date "),r.qZA())}function It(U,it){if(1&U&&(r.TgZ(0,"span"),r._uU(1),r.qZA()),2&U){const u=r.oxw().$implicit;r.xp6(1),r.hij(" ",u.sentDateInFormat?u.sentDateInFormat:"N/A","")}}function F(U,it){if(1&U&&(r.TgZ(0,"td",66)(1,"div",64),r.YNc(2,It,2,1,"span",70),r.qZA()()),2&U){const u=r.oxw();r.xp6(2),r.Q6J("ngIf",!u.isLoading)}}function mt(U,it){1&U&&(r.TgZ(0,"th",71),r._uU(1," Status"),r.qZA())}function R(U,it){1&U&&(r.TgZ(0,"span",74),r._uU(1,"READY TO SEND"),r.qZA())}function dt(U,it){1&U&&(r.TgZ(0,"span",74),r._uU(1,"NOT STARTED"),r.qZA())}function _t(U,it){1&U&&(r.TgZ(0,"span",74),r._uU(1,"SENT"),r.qZA())}function ut(U,it){if(1&U&&(r.TgZ(0,"td",66)(1,"div",64)(2,"span",72),r.YNc(3,R,2,0,"span",73),r.YNc(4,dt,2,0,"span",73),r.YNc(5,_t,2,0,"span",73),r.qZA()()()),2&U){const u=it.$implicit;r.xp6(3),r.Q6J("ngIf",1==u.status),r.xp6(1),r.Q6J("ngIf",0==u.status),r.xp6(1),r.Q6J("ngIf",2==u.status)}}function Ct(U,it){1&U&&r._UZ(0,"th",58)}function Ot(U,it){if(1&U){const u=r.EpF();r.TgZ(0,"a",53),r.NdJ("click",function(){r.CHM(u);const h=r.oxw(2).$implicit,K=r.oxw();return r.KtG(K.Open("emailQuotation",h))}),r._uU(1,"View Quotation"),r.qZA()}}function Lt(U,it){if(1&U){const u=r.EpF();r.TgZ(0,"a",53),r.NdJ("click",function(){r.CHM(u);const h=r.oxw(2).$implicit,K=r.oxw();return r.KtG(K.deleteModal(h))}),r._uU(1,"Delete quotation"),r.qZA()}}function Z(U,it){if(1&U&&(r.TgZ(0,"div")(1,"i",76),r._uU(2," more_vert "),r.qZA(),r.TgZ(3,"mat-menu",null,49),r.YNc(5,Ot,2,0,"a",51),r.YNc(6,Lt,2,0,"a",51),r.qZA()()),2&U){const u=r.MAs(4),x=r.oxw(2);r.xp6(1),r.Q6J("matMenuTriggerFor",u),r.xp6(4),r.Q6J("ngIf",x.roleService.subscriptionPermission.subModule.quotations.quotationsCapabilityList.Edit),r.xp6(1),r.Q6J("ngIf",x.roleService.subscriptionPermission.subModule.quotations.quotationsCapabilityList.Delete)}}function W(U,it){if(1&U&&(r.TgZ(0,"td",75),r.YNc(1,Z,7,3,"div",70),r.qZA()),2&U){const u=r.oxw();r.xp6(1),r.Q6J("ngIf",!u.isLoading)}}function y(U,it){if(1&U&&r._UZ(0,"tr",77),2&U){const u=r.oxw();r.Q6J("ngClass",u.showFilter?"stickyHeader2":"stickyHeader1")}}function xt(U,it){1&U&&r._UZ(0,"tr",78)}function Et(U,it){1&U&&r._UZ(0,"mat-spinner",79),2&U&&r.Q6J("diameter",30)}function Nt(U,it){if(1&U){const u=r.EpF();r.TgZ(0,"button",84),r.NdJ("click",function(){r.CHM(u);const h=r.oxw(2);return r.KtG(h.addQuotation("addQuotation"))}),r._uU(1," ADD QUOTATION "),r.qZA()}}function wt(U,it){if(1&U&&(r.TgZ(0,"div",3)(1,"div",80),r._UZ(2,"img",81),r.TgZ(3,"p",82),r._uU(4," No data found "),r.qZA(),r.YNc(5,Nt,2,0,"button",83),r.qZA()()),2&U){const u=r.oxw();r.xp6(5),r.Q6J("ngIf",u.roleService.subscriptionPermission.subModule.quotations.quotationsCapabilityList.Add)}}const Ut=function(U){return{"event-none":U}};let Rt=(()=>{class U{constructor(u,x,h,K,G,vt,yt){this.eventService=u,this.subInjectService=x,this.dialog=h,this.subService=K,this.datePipe=G,this.utilservice=vt,this.roleService=yt,this.displayedColumns=["checkbox","name","docname","plan","cdate","sdate","status","icons"],this.maxDate=new Date,this.isLoading=!1,this.isFilter=!1,this.filterStatus=[],this.filterDate=[],this.statusIdList=[],this.filterDataArr=[],this.selectedStatusFilter="statusFilter",this.selectedDateFilter="dateFilter",this.statusIdLength=0,this.show
1Filter=!1,this.scrollLoad=!1,this.data=[{},{},{}],this.dataSource=new Y.by(this.data),this.getData="",this.scrollCallData=!0,this.tableData=[],this.chips=[{name:"LIVE",value:1},{name:"PAID",value:2},{name:"OVERDUE",value:3}],this.dateChips=[{name:"Created date",value:1},{name:"Sent date",value:2},{name:"Client consent",value:3}],this.passFilterData={data:"",selectedCount:"",statusFilter:this.chips,dateFilter:this.dateChips,filterQuotation:!0}}ngOnInit(){this.advisorId=O.e.getAdvisorId(),this.getQuotationRelatedClients(),this.dataSource.data=null==this.utilservice.checkSubscriptionastepData(5)?[{},{},{}]:0==this.utilservice.checkSubscriptionastepData(5)?[]:[{},{},{}],this.subService.quotationSubscriptionList?this.getQuotationsDataResponse(this.subService.quotationSubscriptionList,!1):this.getClientSubData(this.scrollLoad),this.dataCount=0}getClientSubData(u){this.dataSource.data=[{},{},{}],this.getQuotationsData(u).subscribe(x=>{this.getQuotationsDataResponse(x,u)},x=>{this.dataSource.data=[],this.isLoading=!1})}errorMessage(){const u={flag:"app-err-page-open",data:{},id:1,direction:"top",componentName:c.z,state:"open"};u.data={positiveMethod:h=>{h.active=!0,this.getQuotationsData(!1).subscribe(K=>{h.active=!1,this.getQuotationsDataResponse(K,!1),this.eventService.changeUpperSliderState({state:"close"})},K=>{h.active=!1,this.eventService.openSnackBar("Wait for sometime....","Dismiss")})}},this.eventService.changeUpperSliderState(u).subscribe(h=>{n.fK.isDialogClose(h)})}onWindowScroll(u){this.tableEl._elementRef.nativeElement.querySelector("tbody").querySelector("tr:last-child").offsetTop<=u.target.scrollTop+u.target.offsetHeight+200&&(this.hasEndReached||(this.infiniteScrollingFlag=!0,this.hasEndReached=!0,this.scrollFunction()))}scrollFunction(){this.dataCount=0;const x={limit:20,offset:this.dataSource.data.length,advisorId:this.advisorId,quotaionFlag:0==this.filterDate.length?1:2,fromDate:this.filterDate.length>0?this.datePipe.transform(this.selectedDateRange.begin,"yyyy-MM-dd"):null,toDate:this.filterDate.length>0?this.datePipe.transform(this.selectedDateRange.end,"yyyy-MM-dd"):null,dateType:0==this.filterDate.length?0:this.filterDate};this.subService.getSubscriptionQuotationData(x).subscribe(h=>{this.infiniteScrollingFlag=!1,h&&(this.dataSource.data=this.dataSource.data.concat(h),this.hasEndReached=!1)},h=>{this.infiniteScrollingFlag=!1,this.eventService.openSnackBar(h,"Dismiss")})}changeSelect(){this.dataCount=0,this.dataSource.filteredData.forEach(u=>{u.selected&&this.dataCount++})}selectAll(u){this.dataCount=0,null!=this.dataSource&&this.dataSource.filteredData.forEach(x=>{x.selected=u.checked,x.selected&&this.dataCount++})}scrollCall(u){const x=document.getElementById("ui-subs"),K=document.getElementById("wrapper").offsetHeight,G=x.scrollTop;G+window.innerHeight>=K&&null!=this.getData&&this.scrollCallData&&(this.scrollCallData=!1,null==this.scrollPosition?this.scrollPosition=K-G:this.scrollPosition<K&&(this.scrollPosition=K-window.innerHeight),this.statusIdList.length<=0&&this.getClientSubData(u))}getFiterRes(u){this.filterStatus=u.statusFilterJson,this.filterDate=u.dateFilterArr,this.selectedDateRange=u.dateFilterJson,this.lastFilterDataId=0,this.filterDataArr=[],this.dataSource.data=[{},{},{}],this.isFilter=!0,this.isLoading=!0,this.getClientSubData(!1)}orgValueChange(u){const x=new Date;x.setMonth(x.getMonth()-1),n.fK.getStartOfTheDay(x);const h=new Date;n.fK.getStartOfTheDay(h),this.selectedDateRange={begin:u.begin,end:u.end},this.getClientSubData(!1)}getQuotationsData(u){this.dataCount=0;const x={offset:0,limit:20,advisorId:this.advisorId,quotaionFlag:0==this.filterDate.length?1:2,fromDate:this.filterDate.length>0?this.datePipe.transform(this.selectedDateRange.begin,"yyyy-MM-dd"):null,toDate:this.filterDate.length>0?this.datePipe.transform(this.selectedDateRange.end,"yyyy-MM-dd"):null,dateType:0==this.filterDate.length?0:this.filterDate};return this.isLoading=!0,this.subService.getSubscriptionQuotationData(x)}getQuotationsDataResponse(u,x){this.isLoading=!1,u&&u.length>0?(u.forEach(h=>{h.sentDateInFormat=this.datePipe.transform(h.sentDate?h.sentDate:void 0,"dd/MM/yyyy")}),this.data=u,this.dataSource.data=u,x||(this.subService.quotationSubscriptionList=u),this.dataSource.sort=this.sort):(this.data=[],this.dataSource.data=u,this.dataSource.data=[],this.noData="No data found")}deleteModal(u){this.list=[],null==u?this.dataSource.filteredData.forEach(K=>{K.selected&&this.list.push(K.id)}
1):this.list=[u.id];const h=this.dialog.open(e.$,{width:"400px",data:{data:"QUOTATION",header:"DELETE",body:1==this.list.length?"Are you sure you want to delete the document?":"Are you sure you want to delete these documents?",body2:"This cannot be undone.",btnYes:"CANCEL",btnNo:"DELETE",positiveMethod:()=>{this.subService.deleteClientDocumentsMultiple(this.list).subscribe(K=>{this.eventService.openSnackBar("Document is deleted","Dismiss"),this.subService.quotationSubscriptionList=null,this.dataCount=0,this.getClientSubData(!1),h.close(this.list)},K=>this.eventService.showErrorMessage(K))},negativeMethod:()=>{this.list=[]}},autoFocus:!1});h.afterClosed().subscribe(K=>{if(this.list.length>0){const G=[];this.dataSource.data.forEach(vt=>{vt.selected||G.push(vt)}),this.dataSource.data=G}})}showFilters(u){this.showFilter=1!=u}addFilters(u){null==this.filterStatus.find(x=>x.name==u.name)&&(this.filterStatus.push(u),this.getClientSubData(!1))}filterSubscriptionRes(u){this.dataSource=u}addFiltersDate(u){this.filterDate.length>=1&&(this.filterDate=[]),this.filterDate.push(u.value);const x=new Date;x.setMonth(x.getMonth()-1),n.fK.getStartOfTheDay(x);const h=new Date;n.fK.getStartOfTheDay(h),this.selectedDateRange={begin:x,end:h},this.getClientSubData(!1)}openPopup(u){this.dialog.open(et.S,{width:"50%",data:{flag:u},autoFocus:!1}).afterClosed().subscribe(K=>{})}removeDate(u){this.filterDate.splice(u,1),this.getClientSubData(!1)}remove(u){this.filterStatus.splice(u,1)}getQuotationRelatedClients(){this.subService.getClientListWithSubscription({advisorId:this.advisorId}).subscribe(x=>{x&&(this.clientList=x)})}addQuotation(u){const h=this.subInjectService.changeNewRightSliderState({flag:u,data:this.clientList,id:1,state:"open",componentName:$.m}).subscribe(K=>{n.fK.isDialogClose(K)&&(n.fK.isRefreshRequired(K)&&(this.dataCount=0,this.hasEndReached=!1,this.getClientSubData(!1)),h.unsubscribe())})}Open(u,x){if(this.isLoading)return;x.isAdvisor=!0,x.sendEsignFlag=!1,x.isEmail=!!this.roleService.subscriptionPermission.subModule.quotations.quotationsCapabilityList.Email,x.isDownload=!!this.roleService.subscriptionPermission.subModule.quotations.quotationsCapabilityList.Download;const K=this.subInjectService.changeNewRightSliderState({flag:u,data:x,id:1,state:"open",componentName:i.E}).subscribe(G=>{n.fK.isDialogClose(G)&&(n.fK.isRefreshRequired(G)&&this.getClientSubData(!1),K.unsubscribe())})}}return U.\u0275fac=function(u){return new(u||U)(r.Y36(g.P),r.Y36(w.f),r.Y36(q.uw),r.Y36(v.F),r.Y36(ot.uU),r.Y36(n.fK),r.Y36(s.N))},U.\u0275cmp=r.Xpm({type:U,selectors:[["app-quotations-subscription"]],viewQuery:function(u,x){if(1&u&&(r.Gf(t.YE,5),r.Gf(M,5)),2&u){let h;r.iGM(h=r.CRH())&&(x.sort=h.first),r.iGM(h=r.CRH())&&(x.tableEl=h.first)}},features:[r._Bn([[ot.uU],{provide:rt.sG,useValue:l.c}])],decls:54,vars:19,consts:[[1,"bg-white","pt-120","fade-in"],[3,"ngClass"],[1,"p-20","pb-0","filterBox",3,"ngClass"],[1,"row"],[1,"col-lg-1","col-md-2","p-0"],[1,"pt-8","mb-0"],[1,"col-lg-5","col-md-3","pl-0"],["class","col-md-3 pl-0-992",4,"ngIf"],["class","col-md-8",4,"ngIf"],[1,"col-lg-6","col-md-7","right","text-right","p-0"],[1,"material-icons","mr-12","icon-light","c-p","v-sub"],["mat-stroked-button","",1,"btn-default","addon","mr-12",3,"click"],["src","https://res.cloudinary.com/futurewise/image/upload/v1622786830/myplanner/images/svg/filter-vector.svg","height","25","width","25","alt","",1,"material-icons2"],["class","btn-primary addon","mat-stroked-button","",3,"click",4,"ngIf"],[1,"row","pt-12",3,"ngClass"],[3,"dataToFilter","FilterOneName","filterRes"],["id","wrapper",1,"pt-8","pl-20","pr-20","pb-16","bg-white","quotations-subscriptions","row",3,"ngClass"],[1,"col-md-12","p-0","people-clients","pb-16"],[1,"ox-hide","people-clients-scroll","responsive-table-port",3,"ngClass","scroll"],["appSkeletonLoading","","id","tbs","mat-table","","matSort","",1,"skeletonAnimation",3,"appSkeletonLoading","dataSource"],["tableEl",""],["matColumnDef","checkbox","sticky",""],["mat-header-cell","","class","f-18","style","width: 2%;",4,"matHeaderCellDef"],["mat-cell","","style","width: 2%;","class","c-p",4,"matCellDef"],["matColumnDef","name"],["class","f-18","mat-header-cell","","mat-sort-header","clientName",4,"matHeaderCellDef"],["class","c-p","mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","docname"],["class","f-18","mat-header-cell","","mat-sort-header","documentName",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","plan"],["class","f-18","mat-header-cell","","mat-sort-header","planName",4,"matHeaderCellDef"],["matColumnDef","cdate"],["mat-sort-header","createdDate","mat-header-cell","","class","f-18",4,"matHeaderCellDef"],["matColumnDef","sdate"],["mat-sort-header","sentDate","mat-header-cell","","class","f-18",4,"matHeaderCellDef"],["matColumnDef","status"],["mat-sort-header","status","class"," t-12","mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","icons","sticky",""],["class","f-18","mat-header-cell","","style","width: 2%;",4,"matHeaderCellDef"],["mat-cell","","style","width: 2%;",4,"matCellDef"],["mat-header-row","",3,"ngClass",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"col-md-12","d-flex","justify-content-center","align-items-center"],[3,"diameter",4,"ngIf"],["class","row",4,"ngIf"],[1,"col-md-3","pl-0-992"],["mat-button","",1,"b-a","pr-0","br-0",3,"matMenuTriggerFor"],[1,"material-icons","text-custom"],["menu","matMenu"],["mat-menu-item","",4,"ngIf"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item",""],["mat-menu-item","",3,"click"],[1,"col-md-8"],["class","m-0 text-black text-left pt-12",4,"ngIf"],[1,"m-0","text-black","text-left","pt-12"],["mat-stroked-button","",1,"btn-primary","addon",3,"click"],["mat-header-cell","",1,"f-18",2,"width","2%"],["name","selectAll",3,"indeterminate","checked","change"],["mat-cell","",1,"c-p",2,"width","2%"],["name","selectedData",3,"ngModel","ngModelChange","change"],["mat-header-cell","","mat-sort-header","clientName",1,"f-18"],["mat-cell","",1,"c-p",3,"click"],[1,"bar"],["mat-header-cell","","mat-sort-header","documentName",1,"f-18"],["mat-cell",""],["mat-header-cell","","mat-sort-header","planName",1,"f-18"],["mat-sort-header","createdDate","mat-header-cell","",1,"f-18"],["mat-sort-header","sentDate","mat-header-cell","",1,"f-18"],[4,"ngIf"],["mat-sort-header","status","mat-header-cell","",1,"t-12"],[1,"ws-nowrap"],["class","text-success t-12 f-500 c-p",4,"ngIf"],[1,"text-success","t-12","f-500","c-p"],["mat-cell","",2,"width","2%"],[1,"material-icons","c-p","iconscolors",3,"matMenuTriggerFor"],["mat-header-row","",3,"ngClass"],["mat-row",""],[3,"diameter"],[1,"col-md-12","d-flex","align-items-center","flex-column","justify-content-center"],["src","https://res.cloudinary.com/futurewise/image/upload/v1703919788/My-Planner_Whitewashed/Transaction-w_1.1.svg","width","400","height","334","alt","Transaction Icon",1,"width400","bg-primary"],[1,"f-22","f-600","pt-28"],["mat-stroked-button","","class","btn-primary mt-20 br-0 right text-right addon",3,"click",4,"ngIf"],["mat-stroked-button","",1,"btn-primary","mt-20","br-0","right","text-right","addon",3,"click"]],template:function(u,x){1&u&&(r.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),r._uU(6,"Quotations"),r.qZA()(),r.TgZ(7,"div",6)(8,"div",3),r.YNc(9,H,9,3,"div",7),r.YNc(10,st,3,2,"div",8),r.qZA()(),r.TgZ(11,"div",9)(12,"i",10),r._uU(13," search "),r.qZA(),r.TgZ(14,"button",11),r.NdJ("click",function(){return x.show
1Filters(x.showFilter)}),r._UZ(15,"img",12),r._uU(16,"FILTERS "),r.qZA(),r.YNc(17,Q,2,0,"button",13),r.qZA()(),r.TgZ(18,"div",14)(19,"app-sudscription-table-filter",15),r.NdJ("filterRes",function(K){return x.getFiterRes(K)}),r.qZA()()()(),r.TgZ(20,"div",16)(21,"div",17)(22,"div",18),r.NdJ("scroll",function(K){return x.onWindowScroll(K)}),r.TgZ(23,"table",19,20),r.ynx(25,21),r.YNc(26,at,2,2,"th",22),r.YNc(27,B,2,1,"td",23),r.BQk(),r.ynx(28,24),r.YNc(29,tt,2,0,"th",25),r.YNc(30,gt,3,1,"td",26),r.BQk(),r.ynx(31,27),r.YNc(32,bt,2,0,"th",28),r.YNc(33,ft,3,1,"td",29),r.BQk(),r.ynx(34,30),r.YNc(35,Dt,2,0,"th",31),r.YNc(36,St,3,1,"td",29),r.BQk(),r.ynx(37,32),r.YNc(38,Mt,2,0,"th",33),r.YNc(39,Pt,4,4,"td",29),r.BQk(),r.ynx(40,34),r.YNc(41,At,2,0,"th",35),r.YNc(42,F,3,1,"td",29),r.BQk(),r.ynx(43,36),r.YNc(44,mt,2,0,"th",37),r.YNc(45,ut,6,3,"td",29),r.BQk(),r.ynx(46,38),r.YNc(47,Ct,1,0,"th",39),r.YNc(48,W,2,1,"td",40),r.BQk(),r.YNc(49,y,1,1,"tr",41),r.YNc(50,xt,1,0,"tr",42),r.qZA(),r.TgZ(51,"div",43),r.YNc(52,Et,1,1,"mat-spinner",44),r.qZA()()()(),r.YNc(53,wt,6,1,"div",45),r.qZA()),2&u&&(r.xp6(1),r.Q6J("ngClass",x.dataSource.data.length>0||x.isFilter?"block":"none"),r.xp6(1),r.Q6J("ngClass",r.VKq(17,Ut,x.isLoading)),r.xp6(7),r.Q6J("ngIf",x.roleService.subscriptionPermission.subModule.quotations.quotationsCapabilityList.Delete),r.xp6(1),r.Q6J("ngIf",x.dataSource.data.length>0&&x.dataCount>0),r.xp6(7),r.Q6J("ngIf",x.roleService.subscriptionPermission.subModule.quotations.quotationsCapabilityList.Add),r.xp6(1),r.Q6J("ngClass",!0===x.showFilter?"block":"none"),r.xp6(1),r.Q6J("dataToFilter",x.passFilterData)("FilterOneName","Date"),r.xp6(1),r.Q6J("ngClass",x.dataSource.data.length>0?"block":"none"),r.xp6(2),r.Q6J("ngClass",x.isLoading?"":"table-scroll"),r.xp6(1),r.Q6J("appSkeletonLoading",x.isLoading)("dataSource",x.dataSource),r.xp6(26),r.Q6J("matHeaderRowDef",x.displayedColumns)("matHeaderRowDefSticky",!0),r.xp6(1),r.Q6J("matRowDefColumns",x.displayedColumns),r.xp6(2),r.Q6J("ngIf",x.infiniteScrollingFlag),r.xp6(1),r.Q6J("ngIf",0==x.dataSource.data.length))},dependencies:[A.lW,N.oG,P.VK,P.OP,P.p6,o.Ou,t.YE,t.nU,Y.BZ,Y.fO,Y.as,Y.w1,Y.Dz,Y.nj,Y.ge,Y.ev,Y.XQ,Y.Gk,ot.mk,ot.O5,z.JJ,z.On,I.d,j.E0,ot.uU],styles:[".example-chip-list[_ngcontent-%COMP%]{width:100%}.btn-header.btn-xs[_ngcontent-%COMP%]{height:22px;min-width:55px}.btn-header.btn-xs[_ngcontent-%COMP%] .mat-stroked-button[_ngcontent-%COMP%]{padding:0 5px}.none[_ngcontent-%COMP%]{display:none!important} .mat-form-field{width:100%} .w-220{width:260px!important} .sub_input .mat-form-field-appearance-legacy .mat-form-field-infix{padding:0!important;border:1px solid #BCC6CA!important}#table-low[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:7px 8px!important;font-weight:600;font-size:13px!important}.width400[_ngcontent-%COMP%]{width:400px;margin-top:50px}"]}),U})()},47517:(Tt,pt,a)=>{a.d(pt,{w:()=>z});var t=a(41074),Y=a(70591),e=a(65730),v=a(67241),g=a(6363),O=a(70661),n=a(94650),ot=a(65938),l=a(23767),et=a(34793),i=a(36895),c=a(4859),$=a(73546),s=a(81638),rt=a(18815);function r(I,j){if(1&I){const M=n.EpF();n.TgZ(0,"div",9),n.NdJ("click",function(){n.CHM(M);const X=n.oxw(2);return n.KtG(X.openFragment("documents",null))}),n.TgZ(1,"mat-card",10)(2,"mat-card-content")(3,"p",11),n._UZ(4,"img",12),n.qZA()()()()}}function w(I,j){1&I&&(n.TgZ(0,"div",13)(1,"div",14)(2,"div",15),n._UZ(3,"div",16),n.qZA(),n.TgZ(4,"div",17),n._UZ(5,"div",18),n.qZA()()())}function q(I,j){1&I&&(n.TgZ(0,"div",13)(1,"div",14)(2,"div",15),n._UZ(3,"div",16),n.qZA(),n.TgZ(4,"div",17),n._UZ(5,"div",18),n.qZA()()())}function A(I,j){if(1&I){const M=n.EpF();n.TgZ(0,"div",19)(1,"div",20)(2,"div",17)(3,"div",21)(4,"app-single-document-view",22),n.NdJ("valueChange",function(X){n.CHM(M);const H=n.oxw(2);return n.KtG(H.display(X))}),n.qZA()()()()()}if(2&I){const M=j.$implicit,L=n.oxw(2);n.Q6J("hidden",null==L.documentSettingData),n.xp6(1),n.Q6J("appSkeletonLoading",L.isLoading),n.xp6(3),n.Q6J("singleDocument",M)}}function N(I,j){if(1&I&&(n.TgZ(0,"div")(1,"div",4)(2,"div",5),n.YNc(3,r,5,0,"div",6),n.YNc(4,w,6,0,"div",7),n.YNc(5,q,6,0,"div",7),n.YNc(6,A,5,3,"div",8),n.qZA()()()),2&I){const M=n.oxw();n.xp6(2),n.Q6J("appSkeletonLoading",M.isLoading),n.xp6(1),n.Q6J("ngIf",M.settingCapability.Add),n.xp6(1),n.Q6J("ngIf",M.isLoading),n.xp6(1),n.Q6J("ngIf",M.isLoading),n.xp6(1),n.Q6J("ngForOf",M.documentSettingData)}}function P(I,j){if(1&I){const M=n.EpF();
1n.TgZ(0,"button",29),n.NdJ("click",function(){n.CHM(M);const X=n.oxw(2);return n.KtG(X.openFragment("documents",null))}),n._uU(1," ADD DOCUMENTS "),n.qZA()}}function o(I,j){if(1&I&&(n.TgZ(0,"div",23)(1,"div",24),n._UZ(2,"img",25),n.TgZ(3,"p",26),n._uU(4," Create Documents "),n.qZA(),n.TgZ(5,"p",27),n._uU(6," We\u2019ve automated the complete process of documentation (a core part of RIA compliance). "),n._UZ(7,"br"),n._uU(8," You create documents easily using ready made templates or upload. "),n._UZ(9,"br"),n._uU(10," Email to clients, get eSigned and securely store. "),n.qZA(),n.YNc(11,P,2,0,"button",28),n.qZA()()),2&I){const M=n.oxw();n.xp6(11),n.Q6J("ngIf",M.settingCapability.Add)}}let z=(()=>{class I{constructor(M,L,X,H,lt,J,st,Q){this.dialog=M,this.eventService=L,this.subInjectService=X,this.utilservice=H,this.subService=lt,this.router=J,this.location=st,this.roleService=Q,this.Questions=[{question:"Can I create my own template for Quotations?"},{question:"Can I create my own template for Consent T&C?"},{question:"What are the Future subscriptions?"}],this.documentSettingData=[{},{}],this.isLoading=!1}ngOnInit(){this.settingCapability=this.roleService.subscriptionPermission.subModule.settings.subModule.document.capabilityList,this.advisorId=e.e.getAdvisorId(),this.subService.documentList?this.getDocumentsSettingResponse(this.subService.documentList):this.getDocumentsSetting()}getDocumentsSetting(){this.isLoading=!0,this.subService.getSubscriptionDocumentSetting({advisorId:this.advisorId}).subscribe(L=>this.getDocumentsSettingResponse(L),L=>{this.eventService.showErrorMessage(L),this.documentSettingData=void 0,this.isLoading=!1})}getDocumentsSettingResponse(M){null==M?(this.documentSettingData=[],this.isLoading=!1):(this.isLoading=!1,this.documentSettingData=M,this.subService.documentList=M)}display(M){null!=M&&(this.documentSettingData=[{},{}],this.getDocumentsSetting())}Open(M,L){this.eventService.sidebarData(M),this.subInjectService.rightSideData(L)}openFragment(M,L){this.location.replaceState("/subscription-upper"),null==L?L=M:L.flag=M;const X={flag:"documents",id:1,data:L,direction:"top",componentName:g.S,state:"open"};e.e.setSubscriptionUpperSliderData(X);const H=this.eventService.changeUpperSliderState(X).subscribe(lt=>{v.fK.isDialogClose(lt)&&(v.fK.isRefreshRequired(lt)&&this.getDocumentsSetting(),H.unsubscribe())})}}return I.\u0275fac=function(M){return new(M||I)(n.Y36(ot.uw),n.Y36(t.P),n.Y36(l.f),n.Y36(v.fK),n.Y36(Y.F),n.Y36(et.F0),n.Y36(i.Ye),n.Y36(O.N))},I.\u0275cmp=n.Xpm({type:I,selectors:[["app-documents-settings"]],decls:4,vars:2,consts:[["id","ui-document-settings"],[1,"bg-white","pb-36"],[4,"ngIf"],["class","row",4,"ngIf"],[1,"wrapper-20","pt-10","pr-0"],["appSkeletonLoading","",1,"row","skeletonAnimation",3,"appSkeletonLoading"],["class","col-lg-4 col-md-12 pr-20 pb-20 pl-0",3,"click",4,"ngIf"],["class","col-lg-4 col-md-12 overflow-hidden ",4,"ngIf"],["class","col-lg-4 col-md-12 pr-20 pb-20 pl-0 documents-body",3,"hidden",4,"ngFor","ngForOf"],[1,"col-lg-4","col-md-12","pr-20","pb-20","pl-0",3,"click"],[1,"example-card","height-484","bg-grey","lter","b-a"],[1,"text-center"],["src","https://res.cloudinary.com/futurewise/image/upload/v1622621286/myplanner/images/svg/plus-sub-settings.svg","height","42","width","42","alt","plus sub settings",1,"material-icons","icon-center"],[1,"col-lg-4","col-md-12","overflow-hidden"],[1,"emptyDocumentBox"],[1,"relClass","mb-12"],[1,"bar-new","height400"],[1,"relClass"],[1,"bar","height23"],[1,"col-lg-4","col-md-12","pr-20","pb-20","pl-0","documents-body",3,"hidden"],["appSkeletonLoading","",1,"skeletonAnimation",3,"appSkeletonLoading"],[1,"bar"],[3,"singleDocument","valueChange"],[1,"row"],[1,"col-md-12","d-flex","align-items-center","flex-column","justify-content-center"],["src","https://res.cloudinary.com/futurewise/image/upload/v1703919735/My-Planner_Whitewashed/add-documents-img_2-w_1.1.svg",1,"width200","bg-primary"],[1,"f-22","f-600","pt-28"],[1,"f-16","text-center","l-21"],["mat-stroked-button","","class","btn-primary d-flex align-items-center",3,"click",4,"ngIf"],["mat-stroked-button","",1,"btn-primary","d-flex","align-items-center",3,"click"]],template:function(M,L){1&M&&(n.TgZ(0,"div",0)(1,"div",1),n.YNc(2,N,7,5,"div",2),n.YNc(3,o,12,1,"div",3),n.qZA()()),2&M&&(n.xp6(2),n.Q6J("ngIf",L.documentSettingData.length>0),n.xp6(1),n.Q6J("ngIf",L.documentSettingData.length<=0))},dependencies:[c.lW,$.a8,$.dn,i.sg,i.O5,s.d,rt.d],styles:['.bottom-tops[_ngcontent-%COMP%]{bottom:-50%;position:relative}.green[_ngcontent-%COMP%]{background:#02B875;padding:4px 5px} .blue{background:#008FFF;height:20px;width:20px;text-align:center;margin-left:10px}.btn-success[_ngcontent-%COMP%]{background-color:#02b875}#ui-document-settings[_ngcontent-%COMP%]{margin-top:10px!important} .mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-4px!important}
1.height23[_ngcontent-%COMP%]{height:23px}.emptyDocumentBox[_ngcontent-%COMP%]{height:485px;padding:20px;border:1px solid rgba(0,0,0,.12)}.height400[_ngcontent-%COMP%]{height:400px;margin-bottom:20px}.skeletonAnimation[_ngcontent-%COMP%] .relClass[_ngcontent-%COMP%]{position:relative}.skeletonAnimation[_ngcontent-%COMP%] .relClass[_ngcontent-%COMP%] .bar-new[_ngcontent-%COMP%]{background-color:#e7e7e7;width:100%}.skeletonAnimation[_ngcontent-%COMP%] .relClass[_ngcontent-%COMP%] .bar-new[_ngcontent-%COMP%]:after{position:absolute;transform:translateY(-50%);top:50%;left:0;content:"";display:block;width:100%;height:400px;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 400px;background-repeat:no-repeat;animation:loading 1s infinite} #ui-appcustomhtml p{padding:0;width:100%}']}),I})()},66192:(Tt,pt,a)=>{a.d(pt,{Z:()=>z});var t=a(70591),Y=a(41074),e=a(65730),v=a(67241),g=a(6363),O=a(70661),n=a(94650),ot=a(65938),l=a(23767),et=a(34793),i=a(36895),c=a(4859),$=a(73546),s=a(10266),rt=a(81638);function r(I,j){if(1&I){const M=n.EpF();n.TgZ(0,"div",6),n.NdJ("click",function(){n.CHM(M);const X=n.oxw();return n.KtG(X.openFragment("","plan"))}),n.TgZ(1,"mat-card",7)(2,"mat-card-content")(3,"p",8),n._UZ(4,"img",9),n.qZA()()()()}}function w(I,j){if(1&I&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&I){const M=n.oxw().$implicit;n.xp6(1),n.hij(" ",M.description?M.description:"N/A","")}}function q(I,j){if(1&I){const M=n.EpF();n.TgZ(0,"div",34),n.NdJ("click",function(){n.CHM(M);const X=n.oxw().$implicit;return n.KtG(X.read=!X.read)}),n._uU(1),n.qZA()}if(2&I){const M=n.oxw().$implicit;n.xp6(1),n.hij(" ",M.read?"read less":"read more","")}}const A=function(I){return{height23:I}};function N(I,j){if(1&I){const M=n.EpF();n.TgZ(0,"div",10)(1,"mat-card",11)(2,"mat-card-header",12)(3,"div",13)(4,"mat-card-title",14)(5,"div",15),n._uU(6),n.qZA()(),n.TgZ(7,"mat-card-subtitle",16)(8,"div",17),n._uU(9),n.qZA()()()(),n.TgZ(10,"mat-card-content",18)(11,"div",19)(12,"div",20)(13,"p",21),n._uU(14,"DESCRIPTION"),n.qZA(),n.TgZ(15,"div",22)(16,"div",23)(17,"div",24),n.YNc(18,w,2,1,"span",25),n.qZA(),n.YNc(19,q,2,1,"div",26),n.qZA()()()(),n.TgZ(20,"div",27)(21,"div",28)(22,"p",29),n._uU(23,"SERVICES"),n.qZA(),n.TgZ(24,"div",30)(25,"div",23),n._uU(26),n.qZA()()(),n.TgZ(27,"div",31)(28,"p",29),n._uU(29,"DOCUMENTS"),n.qZA(),n.TgZ(30,"div",30)(31,"div",23),n._uU(32),n.qZA()()()()(),n.TgZ(33,"mat-card-actions",32)(34,"button",33),n.NdJ("click",function(){const H=n.CHM(M).$implicit,lt=n.oxw();return n.KtG(lt.openFragment(H,"plan"))}),n._uU(35,"INFO "),n.qZA()()()()}if(2&I){const M=j.$implicit,L=n.oxw();n.Q6J("appSkeletonLoading",L.isLoading),n.xp6(5),n.Q6J("ngClass",n.VKq(13,A,L.isLoading)),n.xp6(1),n.hij(" ",M.name," "),n.xp6(2),n.Q6J("ngClass",n.VKq(15,A,L.isLoading)),n.xp6(1),n.hij(" ",M.code," "),n.xp6(7),n.Q6J("ngClass",n.VKq(17,A,L.isLoading)),n.xp6(1),n.Q6J("ngClass",M.read?"":"height80"),n.xp6(1),n.Q6J("ngIf",!L.isLoading),n.xp6(1),n.Q6J("ngIf",M.description&&M.description.length>200),n.xp6(6),n.Q6J("ngClass",n.VKq(19,A,L.isLoading)),n.xp6(1),n.hij(" ",M.serviceCount," "),n.xp6(5),n.Q6J("ngClass",n.VKq(21,A,L.isLoading)),n.xp6(1),n.hij(" ",M.docCount," ")}}function P(I,j){if(1&I){const M=n.EpF();n.TgZ(0,"button",40),n.NdJ("click",function(){n.CHM(M);const X=n.oxw(2);return n.KtG(X.openFragment("","plan"))}),n._uU(1," ADD PLAN "),n.qZA()}}function o(I,j){if(1&I&&(n.TgZ(0,"div",35),n._UZ(1,"img",36),n.TgZ(2,"p",37),n._uU(3,"Create Plan "),n.qZA(),n.TgZ(4,"p",38),n._uU(5," You start by creating Plans first. Plans are your core offerings. You can have "),n._UZ(6,"br"),n._uU(7," multiple plans for different types of clients. Each plan will have sub offerings, also "),n._UZ(8,"br"),n._uU(9," known as Services (explained in next slide). "),n.qZA(),n.YNc(10,P,2,0,"button",39),n.qZA()),2&I){const M=n.oxw();n.xp6(10),n.Q6J("ngIf",M.settingCapability.Add)}}let z=(()=>{class I{constructor(M,L,X,H,lt,J,st,Q,at){this.dialog=M,this.subService=L,this.dataService=X,this.eventService=H,this.subinject=lt,this.utilservice=J,this.router=st,this.location=Q,this.roleService=at,this.planSettingData=[],this.isLoading=!1}ngOnInit(){this.settingCapability=this.roleService.subscriptionPermission.subModule.settings.subModule.plan.capabilityList,this.planSettingData=[{},{}],this.advisorId=e.e.getAdvisorId(),this.subService.plansList?this.get
1SettingsPlanResponse(this.subService.plansList):this.getSettingsPlanData()}getSettingsPlanData(){this.isLoading=!0,this.subService.getSubscriptionPlanSettingsData({advisorId:this.advisorId,mapped:!1}).subscribe(L=>this.getSettingsPlanResponse(L),L=>{this.eventService.showErrorMessage(L),this.planSettingData=[],this.isLoading=!1})}getSettingsPlanResponse(M){if(null!=M){this.isLoading=!1;for(let L of M)L.read=!1;this.planSettingData=M,this.subService.plansList=M}else this.planSettingData=[]}getFilerrorResponse(M){this.dataService.openSnackBar(M,"Dismiss")}openFragment(M,L){""==M?M=L:M.flag=L;const X={flag:"plan",id:1,data:M,direction:"top",componentName:g.S,state:"open",Name:"plan-upper-slider"};e.e.setSubscriptionUpperSliderData(X);const H=this.eventService.changeUpperSliderState(X).subscribe(lt=>{v.fK.isDialogClose(lt)&&(v.fK.isRefreshRequired(lt)&&(this.planSettingData=[{},{}],this.getSettingsPlanData()),H.unsubscribe())})}}return I.\u0275fac=function(M){return new(M||I)(n.Y36(ot.uw),n.Y36(t.F),n.Y36(Y.P),n.Y36(Y.P),n.Y36(l.f),n.Y36(v.fK),n.Y36(et.F0),n.Y36(i.Ye),n.Y36(O.N))},I.\u0275cmp=n.Xpm({type:I,selectors:[["app-plans-settings"]],decls:6,vars:3,consts:[[1,"bg-white","fade-in"],[1,"wrapper-20","pb-0","pr-0"],[1,"row"],["class","col-lg-4 col-md-12 pr-20 pb-20 pl-0 c-p",3,"click",4,"ngIf"],["class","col-lg-4 col-md-12 pr-20 pb-20 pl-0 skeletonAnimation","appSkeletonLoading","",3,"appSkeletonLoading",4,"ngFor","ngForOf"],["class","col-md-12 d-flex align-items-center flex-column justify-content-center",4,"ngIf"],[1,"col-lg-4","col-md-12","pr-20","pb-20","pl-0","c-p",3,"click"],[1,"example-card","b-a","h-468","bg-grey","lter","bd-1"],[1,"text-center"],["src","https://res.cloudinary.com/futurewise/image/upload/v1622621286/myplanner/images/svg/plus-sub-settings.svg","height","42","width","42","alt","plus icon",1,"material-icons","icon-center"],["appSkeletonLoading","",1,"col-lg-4","col-md-12","pr-20","pb-20","pl-0","skeletonAnimation",3,"appSkeletonLoading"],[1,"example-card","b-a","bg-grey","lter","p-0"],[1,"overflow-hidden"],[1,"wrapper-20","pb-10","height120","width100per"],[1,"mb-0","text-break","f-24","relClass","mb-10","l-26"],["matTooltip","Plan name",1,"bar",3,"ngClass"],[1,"pt-4","pb-12","relClass","mb-0"],["matTooltip","Plan code",1,"bar",3,"ngClass"],[1,"bg-white","mb-0"],[1,"row","wrapper-20","overflow-hidden"],[1,"col-md-12","p-0"],[1,"mb-0","text-primitive","f-12"],[1,"mb-0","pt-8","plan-description","relClass"],[1,"bar",3,"ngClass"],[1,"l-h",3,"ngClass"],[4,"ngIf"],["class","read-more c-p text-primary",3,"click",4,"ngIf"],[1,"row","wrapper-20","bt-1","bb-1","pr-0","pl-0","text-center","overflow-hidden"],[1,"col-md-6","pl-0","relClass"],[1,"f-14","text-primitive","mb-8"],[1,"f-24","mb-0","relClass"],[1,"col-md-6","p-0"],[1,"d-flex","height100","align-items-center","justify-content-center"],["mat-stroked-button","",1,"btn-header","addon","m-0","br-0",3,"click"],[1,"read-more","c-p","text-primary",3,"click"],[1,"col-md-12","d-flex","align-items-center","flex-column","justify-content-center"],["src","https://res.cloudinary.com/futurewise/image/upload/v1707195349/undraw_modern_professional_yt9h-w_2.1-svg_hzbrcj.svg",1,"width200","bg-primary"],[1,"f-22","f-600","pt-28"],[1,"f-16","text-center","l-21"],["mat-stroked-button","","class","btn-primary d-flex align-items-center",3,"click",4,"ngIf"],["mat-stroked-button","",1,"btn-primary","d-flex","align-items-center",3,"click"]],template:function(M,L){1&M&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2),n.YNc(3,r,5,0,"div",3),n.YNc(4,N,36,23,"div",4),n.YNc(5,o,11,1,"div",5),n.qZA()()()),2&M&&(n.xp6(3),n.Q6J("ngIf",L.planSettingData.length>0&&L.settingCapability.Add),n.xp6(1),n.Q6J("ngForOf",L.planSettingData),n.xp6(1),n.Q6J("ngIf",L.planSettingData.length<=0))},dependencies:[c.lW,$.a8,$.dk,$.dn,$.n5,$.$j,$.hq,s.gM,i.mk,i.sg,i.O5,rt.d],styles:['h2[_ngcontent-%COMP%]{color:#3f3f3f;text-align:center;padding:16px 12px;letter-spacing:.2px;line-height:32px}h3[_ngcontent-%COMP%]{letter-spacing:.2px;line-height:32px}.padder-80[_ngcontent-%COMP%]{padding-right:80px;padding-left:80px}
1.height23[_ngcontent-%COMP%]{height:24px}.h-468[_ngcontent-%COMP%]{height:468px}h3[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#757575}.btn-primary[_ngcontent-%COMP%]{border-radius:0!important}.material-icons[_ngcontent-%COMP%]{line-height:.7}.read-more[_ngcontent-%COMP%]{text-align:right;margin-bottom:-18px;font-size:14px}.height80[_ngcontent-%COMP%]{height:80px;overflow:hidden}.content[_ngcontent-%COMP%]{position:relative;right:20%}.l-h[_ngcontent-%COMP%]{line-height:20px}.box[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px}label[_ngcontent-%COMP%]{background:#004164;border-radius:4px;letter-spacing:.2px;color:#fff;font-size:14px;line-height:17px;display:inline-block;min-width:10px;padding:3px 10px;text-align:center;white-space:nowrap;vertical-align:baseline}.done-icons[_ngcontent-%COMP%]{background:#02B875;padding:0 0 4px 4px;color:#fff;float:right;text-align:right;line-height:.9}a[_ngcontent-%COMP%]{color:#00f;display:inline-block;padding:10px;text-decoration:none;background-color:orange;border-radius:4px;transition:background-color 1s .5s,color 2s}a[_ngcontent-%COMP%]:hover{color:red;background-color:#00f}.matCardTitleBox[_ngcontent-%COMP%]{width:250px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.width100per[_ngcontent-%COMP%]{width:100%}.paddTopBottom18[_ngcontent-%COMP%]{padding-top:18px;padding-bottom:18px}.height100[_ngcontent-%COMP%]{height:100px}.skeletonAnimation[_ngcontent-%COMP%] .relClass[_ngcontent-%COMP%]{position:relative}.skeletonAnimation[_ngcontent-%COMP%] .relClass[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]{background-color:#e7e7e7;width:100%}.skeletonAnimation[_ngcontent-%COMP%] .relClass[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]:after{position:absolute;transform:translateY(-50%);top:50%;left:0;content:"";display:block;width:100%;height:24px;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 24px;background-position:-10px 0;background-repeat:no-repeat;animation:loading 1s infinite}.bd-1[_ngcontent-%COMP%]{border:2px dotted rgba(0,0,0,.12)!important;box-shadow:0!important}']}),I})()},15304:(Tt,pt,a)=>{a.d(pt,{y:()=>T});var t=a(70591),Y=a(41074),e=a(93584),v=a(24006),g=a(89378),O=a(65730),n=a(67241),ot=a(35098),l=a(61642),et=a(70661),i=a(94650),c=a(65938),$=a(23767),s=a(4859),rt=a(73546),r=a(59549),w=a(284),q=a(28255),A=a(36895),N=a(33152),P=a(81638),o=a(93416);const z=function(f,m){return{"b-outline":f,"":m}};function I(f,m){if(1&f){const p=i.EpF();i.TgZ(0,"li",10),i.NdJ("click",function(){i.CHM(p);const E=i.oxw();return i.KtG(E.viewMode="tab1")}),i._uU(1," Biller profile "),i.qZA()}if(2&f){const p=i.oxw();i.Q6J("ngClass",i.WLB(1,z,"tab1"==p.viewMode,"tab1"==p.viewMode))}}function j(f,m){if(1&f){const p=i.EpF();i.TgZ(0,"li",10),i.NdJ("click",function(){i.CHM(p);const E=i.oxw();return E.viewMode="tab2",i.KtG(E.invoiceNumberData?E.getInvoiceQuotationResponse(E.invoiceNumberData,1):E.getPrefixData(1))}),i._uU(1," Invoice "),i.qZA()}if(2&f){const p=i.oxw();i.Q6J("ngClass",i.WLB(1,z,"tab2"==p.viewMode,"tab2"==p.viewMode))}}function M(f,m){if(1&f){const p=i.EpF();i.TgZ(0,"li",10),i.NdJ("click",function(){i.CHM(p);const E=i.oxw();return E.viewMode="tab3",i.KtG(E.quotationNumberData?E.getInvoiceQuotationResponse(E.quotationNumberData,2):E.getPrefixData(2))}),i._uU(1," Quotations "),i.qZA()}if(2&f){const p=i.oxw();i.Q6J("ngClass",i.WLB(1,z,"tab3"==p.viewMode,"tab3"==p.viewMode))}}function L(f,m){if(1&f){const p=i.EpF();i.TgZ(0,"li",10),i.NdJ("click",function(){i.CHM(p);const E=i.oxw();return E.viewMode="tab4",i.KtG(E.subscriptionNumberData?E.getInvoiceQuotationResponse(E.subscriptionNumberData,3):E.getPrefixData(3))}),i._uU(1," Subscriptions "),i.qZA()}if(2&f){const p=i.oxw();i.Q6J("ngClass",i.WLB(1,z,"tab4"==p.viewMode,"tab4"==p.viewMode))}}function X(f,m){1&f&&(i.TgZ(0,"div",11),i._UZ(1,"div",12),i.qZA())}function H(f,m){1&f&&i._UZ(0,"img",56)}function lt(f,m){1&f&&(i.TgZ(0,"button",57),i._uU(1," PRIMARY "),i.qZA())}function J(f,m){if(1&f){const p=i.EpF();i.TgZ(0,"a",58),i.NdJ("click",function(){i.CHM(p);const E=i.oxw().$implicit,ct=i.oxw(3);return i.KtG(ct.getBillerPrimary(E))}),i._uU(1,"Set as primary"),i.qZA()}}function st(f,m){if(1&f){const p=i.EpF();
1i.TgZ(0,"a",58),i.NdJ("click",function(){i.CHM(p);const E=i.oxw(4);return i.KtG(E.Open(null,"addbillerProfile",0))}),i._uU(1,"Add biller profile"),i.qZA()}}function Q(f,m){if(1&f){const p=i.EpF();i.TgZ(0,"a",58),i.NdJ("click",function(){i.CHM(p);const E=i.oxw().$implicit,ct=i.oxw(3);return i.KtG(ct.Open(E,"editbillerProfile",0))}),i._uU(1,"Edit biller profile"),i.qZA()}}function at(f,m){if(1&f){const p=i.EpF();i.TgZ(0,"a",59),i.NdJ("click",function(){i.CHM(p);const E=i.oxw().$implicit,ct=i.oxw(3);return i.KtG(ct.deleteModal(E))}),i._uU(1,"Delete biller profile"),i.qZA()}}function B(f,m){if(1&f&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&f){const p=i.oxw().$implicit;i.xp6(1),i.Oqu(p.gstin?p.gstin:"N/A")}}function tt(f,m){if(1&f&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&f){const p=i.oxw().$implicit;i.xp6(1),i.Oqu(p.pan?p.pan:"N/A")}}function gt(f,m){if(1&f&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&f){const p=i.oxw().$implicit;i.xp6(1),i.Oqu(p.billerAddress?p.billerAddress:"N/A")}}function bt(f,m){if(1&f&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&f){const p=i.oxw().$implicit;i.xp6(1),i.hij(" ",p.nameAsPerBank?p.nameAsPerBank:"N/A","")}}function ft(f,m){if(1&f&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&f){const p=i.oxw().$implicit;i.xp6(1),i.hij(" ",p.acNumber?p.acNumber:"N/A","")}}function Dt(f,m){if(1&f&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&f){const p=i.oxw().$implicit;i.xp6(1),i.Oqu(p.bankName?p.bankName:"N/A")}}function St(f,m){if(1&f&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&f){const p=i.oxw().$implicit;i.xp6(1),i.Oqu(p.ifscCode?p.ifscCode:"N/A")}}function Mt(f,m){if(1&f&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&f){const p=i.oxw().$implicit;i.xp6(1),i.Oqu(p.branchAddress?p.branchAddress:"N/A")}}function Pt(f,m){if(1&f&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&f){const p=i.oxw().$implicit;i.xp6(1),i.Oqu(p.footnote?p.footnote:"N/A")}}function At(f,m){if(1&f&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&f){const p=i.oxw().$implicit;i.xp6(1),i.Oqu(p.terms?p.terms:"N/A")}}function It(f,m){if(1&f){const p=i.EpF();i.TgZ(0,"div",21)(1,"div",22)(2,"div",23)(3,"div",24)(4,"h3",25),i._uU(5),i.qZA()()(),i.TgZ(6,"div",26),i.YNc(7,H,1,0,"img",27),i.YNc(8,lt,2,0,"button",28),i._UZ(9,"img",29),i.TgZ(10,"mat-menu",null,30),i.YNc(12,J,2,0,"a",31),i.YNc(13,st,2,0,"a",31),i.YNc(14,Q,2,0,"a",31),i.YNc(15,at,2,0,"a",32),i.qZA()()(),i.TgZ(16,"div",33)(17,"div",2)(18,"div",34)(19,"div",35)(20,"p",36),i._uU(21,"GST"),i.qZA(),i.TgZ(22,"div",24)(23,"h5",37),i.YNc(24,B,2,1,"span",13),i.qZA()(),i.TgZ(25,"p",38),i._uU(26,"PAN"),i.qZA(),i.TgZ(27,"div",24)(28,"h5",37),i.YNc(29,tt,2,1,"span",13),i.qZA()(),i.TgZ(30,"p",38),i._uU(31,"ADDRESS"),i.qZA(),i.TgZ(32,"div",24)(33,"h5",39),i.YNc(34,gt,2,1,"span",13),i.qZA()()(),i._UZ(35,"hr"),i.TgZ(36,"div",40)(37,"div",41)(38,"div",42)(39,"p",43),i._uU(40,"Name on bank A/c"),i.qZA(),i.TgZ(41,"div",24)(42,"h5",37),i.YNc(43,bt,2,1,"span",13),i.qZA()()(),i.TgZ(44,"div",42)(45,"p",43),i._uU(46,"Account No."),i.qZA(),i.TgZ(47,"div",24)(48,"h5",37),i.YNc(49,ft,2,1,"span",13),i.qZA()()()(),i.TgZ(50,"div",2)(51,"div",42)(52,"p",43),i._uU(53,"Bank name"),i.qZA(),i.TgZ(54,"div",24)(55,"div")(56,"h5",39),i.YNc(57,Dt,2,1,"span",13),i.qZA()()()(),i.TgZ(58,"div",44)(59,"p",45),i._uU(60,"IFSC code"),i.qZA(),i.TgZ(61,"div",24)(62,"div")(63,"h5",39),i.YNc(64,St,2,1,"span",13),i.qZA()()()()(),i.TgZ(65,"div",2)(66,"div",46)(67,"p",47),i._uU(68,"ADDRESS"),i.qZA(),i.TgZ(69,"div",24)(70,"h5",39),i.YNc(71,Mt,2,1,"span",13),i.qZA()()()()()(),i.TgZ(72,"div",48)(73,"div",49)(74,"p",50),i._uU(75,"YOUR LOGO"),i.qZA(),i.TgZ(76,"div",51),i._UZ(77,"img",52),i.TgZ(78,"div",53),i.NdJ("click",function(){const ct=i.CHM(p).$implicit,Zt=i.oxw(3);return i.KtG(Zt.Open(ct,"editbillerProfile",1))}),i.TgZ(79,"div",54),i._uU(80,"Edit Image"),i.qZA()()()(),i._UZ(81,"hr"),i.TgZ(82,"div",35)(83,"p",45),i._uU(84,"Footnote description"),i.qZA(),i.TgZ(85,"div",24)(86,"h5",39),i.YNc(87,Pt,2,1,"span",13),i.qZA()(),i.TgZ(88,"p",55),i._uU(89,"Terms & Conditions"),i.qZA(),i.TgZ(90,"div",24)(91,"h5",39),i.YNc(92,At,2,1,"span",13),i.qZA()()()()()()()}if(2&f){const p=m.$implicit,C=i.MAs(11),E=i.oxw(3);i.Q6J("appSkeletonLoading",E.isLoading),i.xp6(5),i.hij(" ",p.companyDisplayName,""),i.xp6(2),i.Q6J("ngIf",p.razorpayPartnerAaccountId),i.xp6(1),i.Q6J("ngIf",1==p.isPrimary),i.xp6(1),i.Q6J("matMenuTriggerFor",C),i.xp6(3),i.Q6J("ngIf",E.billerProfileData.length>1),i.xp6(1),i.Q6J("ngIf",E.billerProfileCapability.Add),i.xp6(1),i.Q6J("ngIf",E.billerProfileCapability.Edit),i.xp6(1),i.Q6J("ngIf",E.billerProfileData.length>1&&E.billerProfileCapability.Delete),i.xp6(9),i.Q6J("ngIf",!E.isLoading),i.xp6(5),i.Q6J("ngIf",!E.isLoading),i.xp6(5),i.Q6J("ngIf",!E.isLoading),i.xp6(9),i.Q6J("ngIf",!E.isLoading),i.xp6(6),i.Q6J("ngIf",!E.isLoading),i.xp6(8),i.Q6J("ngIf",!E.isLoading),i.xp6(7),i.Q6J("ngIf",!E.isLoading),i.xp6(7),i.Q6J("ngIf",!E.isLoading),i.xp6(6),i.Q6J("src",p.logoUrl,i.LSH),i.xp6(10),i.Q6J("ngIf",!E.isLoading),i.xp6(5),i.Q6J("ngIf",!E.isLoading)}}function F(f,m){if(1&f&&(i.TgZ(0,"div"),i.YNc(1,It,93,20,"div",20),i.qZA()),2&f){const p=i.oxw(2);i.xp6(1),i.Q6J("ngForOf",p.billerProfileData)}}function mt(f,m){if(1&f){const p=i.EpF();i.TgZ(0,"div"),i.YNc(1,F,2,1,"div",13),i.TgZ(2,"div",14)(3,"div",15),i._UZ(4,"img",16),i.TgZ(5,"p",17),i._uU(6,"Set up biller profile"),i.qZA(),i.TgZ(7,"p",18),i._uU(8," With the foundation now set, it\u2019s time to now do what you do the best - Plan "),i._UZ(9,"br"),i._uU(10," for your client's financial freedom. We do the background work for you - create "),i._UZ(11,"br"),i._uU(12," invoices, bill clients, execute agreements and s
1o on. "),i.qZA(),i.TgZ(13,"button",19),i.NdJ("click",function(){i.CHM(p);const E=i.oxw();return i.KtG(E.Open("Add","billerProfile",0))}),i._uU(14," ADD NEW"),i.qZA()()()()}if(2&f){const p=i.oxw();i.xp6(1),i.Q6J("ngIf",p.billerProfileData),i.xp6(1),i.Q6J("hidden",void 0!==p.billerProfileData)}}function R(f,m){if(1&f){const p=i.EpF();i.TgZ(0,"mat-form-field")(1,"input",70),i.NdJ("input",function(E){i.CHM(p);const ct=i.oxw(2);return ct.toUpperCase(ct.prefixData.get("prefix"),E),i.KtG(ct.changeNextNumberValidation())}),i.qZA(),i.TgZ(2,"mat-error",36),i._uU(3,"Invoice prefix required"),i.qZA()()}}function dt(f,m){1&f&&i._UZ(0,"div",71)}function _t(f,m){1&f&&(i.TgZ(0,"mat-error",36),i._uU(1," Invoice next number required"),i.qZA())}function ut(f,m){if(1&f&&(i.TgZ(0,"mat-error"),i._uU(1),i.qZA()),2&f){const p=i.oxw(3);i.xp6(1),i.hij(" Number must be greater than ",p.invoiceNumber,"")}}function Ct(f,m){if(1&f&&(i.TgZ(0,"mat-form-field"),i._UZ(1,"input",72),i.YNc(2,_t,2,0,"mat-error",73),i.YNc(3,ut,2,1,"mat-error",13),i.qZA()),2&f){const p=i.oxw(2);i.xp6(2),i.Q6J("ngIf",null==p.prefixData.get("nextNo").errors?null:p.prefixData.get("nextNo").errors.required),i.xp6(1),i.Q6J("ngIf",null==p.prefixData.get("nextNo").errors?null:p.prefixData.get("nextNo").errors.min)}}function Ot(f,m){1&f&&i._UZ(0,"div",71)}function Lt(f,m){if(1&f){const p=i.EpF();i.TgZ(0,"app-progress-button",74),i.NdJ("btnClick",function(){i.CHM(p);const E=i.oxw(2);return i.KtG(E.savePrefix(1))}),i.qZA()}if(2&f){const p=i.oxw(2);i.Q6J("options",p.barButtonOptions)}}function Z(f,m){if(1&f){const p=i.EpF();i.TgZ(0,"div")(1,"div",60)(2,"div",61)(3,"div",62)(4,"h5",63),i._uU(5,"Invoice prefix"),i.qZA(),i.TgZ(6,"div",64),i.YNc(7,R,4,0,"mat-form-field",13),i.YNc(8,dt,1,0,"div",65),i.qZA()(),i.TgZ(9,"div",66)(10,"h5",63),i._uU(11,"Invoice next number"),i.qZA(),i.TgZ(12,"div",64),i.YNc(13,Ct,4,2,"mat-form-field",13),i.YNc(14,Ot,1,0,"div",65),i.qZA()(),i.TgZ(15,"div",67),i.YNc(16,Lt,1,1,"app-progress-button",68),i.TgZ(17,"button",69),i.NdJ("click",function(){i.CHM(p);const E=i.oxw();return i.KtG(E.resetPrefix())}),i._uU(18,"CANCEL"),i.qZA()()()()()}if(2&f){const p=i.oxw();i.xp6(1),i.Q6J("formGroup",p.prefixData)("appSkeletonLoading",p.isLoading),i.xp6(6),i.Q6J("ngIf",!p.isLoading),i.xp6(1),i.Q6J("ngIf",p.isLoading),i.xp6(5),i.Q6J("ngIf",!p.isLoading),i.xp6(1),i.Q6J("ngIf",p.isLoading),i.xp6(2),i.Q6J("ngIf",p.invoiceCapability.Edit)}}function W(f,m){1&f&&(i.TgZ(0,"mat-form-field"),i._UZ(1,"input",76),i.TgZ(2,"mat-error",36),i._uU(3,"Quotation prefix required"),i.qZA()())}function y(f,m){1&f&&i._UZ(0,"div",71)}function xt(f,m){1&f&&(i.TgZ(0,"mat-error",36),i._uU(1," Quotation next number required"),i.qZA())}function Et(f,m){if(1&f&&(i.TgZ(0,"mat-error"),i._uU(1),i.qZA()),2&f){const p=i.oxw(3);i.xp6(1),i.hij(" Number must be greater than ",p.invoiceNumber,"")}}function Nt(f,m){if(1&f&&(i.TgZ(0,"mat-form-field"),i._UZ(1,"input",72),i.YNc(2,xt,2,0,"mat-error",73),i.YNc(3,Et,2,1,"mat-error",13),i.qZA()),2&f){const p=i.oxw(2);i.xp6(2),i.Q6J("ngIf",null==p.prefixData.get("nextNo").errors?null:p.prefixData.get("nextNo").errors.required),i.xp6(1),i.Q6J("ngIf",null==p.prefixData.get("nextNo").errors?null:p.prefixData.get("nextNo").errors.min)}}function wt(f,m){1&f&&i._UZ(0,"div",71)}function Ut(f,m){if(1&f){const p=i.EpF();i.TgZ(0,"app-progress-button",77),i.NdJ("btnClick",function(){i.CHM(p);const E=i.oxw(2);return i.KtG(E.savePrefix(2))}),i.qZA()}if(2&f){const p=i.oxw(2);i.Q6J("options",p.barButtonOptions)}}function Rt(f,m){if(1&f){const p=i.EpF();i.TgZ(0,"div")(1,"div",60)(2,"div",61)(3,"div",62)(4,"h5",63),i._uU(5,"Quotation prefix"),i.qZA(),i.TgZ(6,"div",64),i.YNc(7,W,4,0,"mat-form-field",13),i.YNc(8,y,1,0,"div",65),i.qZA()(),i.TgZ(9,"div",66)(10,"h5",63),i._uU(11,"Quotation next number"),i.qZA(),i.TgZ(12,"div",64),i.YNc(13,Nt,4,2,"mat-form-field",13),i.YNc(14,wt,1,0,"div",65),i.qZA()(),i.TgZ(15,"div",67),i.YNc(16,Ut,1,1,"app-progress-button",75),i.TgZ(17,"button",69),i.NdJ("click",function(){i.CHM(p);const E=i.oxw();return i.KtG(E.resetPrefix())}),i._uU(18,"CANCEL"),i.qZA()()()()()}if(2&f){const p=i.oxw();i.xp6(1),i.Q6J("formGroup",p.prefixData)("appSkeletonLoading",p.isLoading),i.xp6(6),i.Q6J("ngIf",!p.isLoading),i.xp6(1),i.Q6J("ngIf",p.isLoading),i.xp6(5),i.Q6J("ngIf",!p.isLoading),i.xp6(1),i.Q6J("ngIf",p.isLoading),i.xp6(2),i.Q6J("ngIf",p.quotationCapability.Edit)}}function U(f,m){if(1&f){const p=i.EpF();i.TgZ(0,"mat-form-field")(1,"input",70),i.NdJ("input",function(E){i.CHM(p);const ct=i.oxw(2);return ct.toUpperCase(ct.prefixData.get("prefix"),E),i.KtG(ct.changeNextNumberValidation())}),i.qZA(),i.TgZ(2,"mat-error",36),i._uU(3,"Subscription prefix required"),i.qZA()()}}function it(f,m){1&f&&i._UZ(0,"div",71)}function u(f,m){1&f&&(i.TgZ(0,"mat-error",36),i._uU(1," Subscription next number required"),i.qZA())}function x(f,m){if(1&f&&(i.TgZ(0,"mat-error"),i._uU(1),i.qZA()),2&f){const p=i.oxw(3);i.xp6(1),i.hij(" Number must be greater than ",p.invoiceNumber,"")}}function h(f,m){if(1&f&&(i.TgZ(0,"mat-form-field"),i._UZ(1,"input",72),i.YNc(2,u,2,0,"mat-error",73),i.YNc(3,x,2,1,"mat-error",13),i.qZA()),2&f){const p=i.oxw(2);i.xp6(2),i.Q6J("ngIf",null==p.prefixData.get("nextNo").errors?null:p.prefixData.get("nextNo").errors.required),i.xp6(1),i.Q6J("ngIf",null==p.prefixData.get("nextNo").errors?null:p.prefixData.get("nextNo").errors.min)}}function K(f,m){1&f&&i._UZ(0,"div",71)}function G(f,m){if(1&f){const p=i.EpF();i.TgZ(0,"app-progress-button",74),i.NdJ("btnClick",function(){i.CHM(p);const E=i.oxw(2);return i.KtG(E.savePrefix(3))}),i.qZA()}if(2&f){const p=i.oxw(2);i.Q6J("options",p.barButtonOptions)}}function vt(f,m){if(1&f){const p=i.EpF();i.TgZ(0,"div")(1,"div",60)(2,"div",61)(3,"div",62)(4,"h5",63),i._uU(5,"Subscription prefix"),i.qZA(),i.TgZ(6,"div",64),i.YNc(7,U,4,0,"mat-form-field",13),i.YNc(8,it,1,0,"div",65),i.qZA()(),i.TgZ(9,"div",66)(10,"h5",78),i._uU(11,"Subscription next number"),i.qZA(),i.TgZ(12,"div",64),i.YNc(13,h,4,2,"mat-form-field",13),i.YNc(14,K,1,0,"div",65),i.qZA()(),i.TgZ(15,"div",67),i.YNc(16,G,1,1,"app-progress-button",68),i.TgZ(17,"button",69),i.NdJ("
1click",function(){i.CHM(p);const E=i.oxw();return i.KtG(E.resetPrefix())}),i._uU(18,"CANCEL"),i.qZA()()()()()}if(2&f){const p=i.oxw();i.xp6(1),i.Q6J("formGroup",p.prefixData)("appSkeletonLoading",p.isLoading),i.xp6(6),i.Q6J("ngIf",!p.isLoading),i.xp6(1),i.Q6J("ngIf",p.isLoading),i.xp6(5),i.Q6J("ngIf",!p.isLoading),i.xp6(1),i.Q6J("ngIf",p.isLoading),i.xp6(2),i.Q6J("ngIf",p.subscriptionCapability.Edit)}}function yt(f,m){if(1&f){const p=i.EpF();i.TgZ(0,"div")(1,"div",79)(2,"div",80)(3,"div",81)(4,"h4"),i._uU(5,"Email templates"),i.qZA()()(),i.TgZ(6,"div",2)(7,"div",82),i.NdJ("click",function(){i.CHM(p);const E=i.oxw();return i.KtG(E.openEmailInvoice(E.storeData[0]))}),i.TgZ(8,"div",83)(9,"mat-card",84)(10,"div",85)(11,"div",2)(12,"div",86)(13,"h3",87),i._uU(14,"Invoice"),i.qZA()()()(),i.TgZ(15,"div",88)(16,"div",2)(17,"div",89)(18,"p"),i._uU(19,"This template is used while sending invoice to your clients. "),i.qZA()()()()()()(),i.TgZ(20,"div",82),i.NdJ("click",function(){i.CHM(p);const E=i.oxw();return i.KtG(E.openEmailInvoice(E.storeData[1]))}),i.TgZ(21,"div",83)(22,"mat-card",84)(23,"div",85)(24,"div",2)(25,"div",86)(26,"h3",87),i._uU(27," Quotations"),i.qZA()()()(),i.TgZ(28,"div",88)(29,"div",2)(30,"div",89)(31,"p"),i._uU(32,"This template is used while sending quotations to your clients. "),i.qZA()()()()()()()(),i.TgZ(33,"div",90)(34,"div",82),i.NdJ("click",function(){i.CHM(p);const E=i.oxw();return i.KtG(E.openEmailInvoice(E.storeData[2]))}),i.TgZ(35,"div",83)(36,"mat-card",84)(37,"div",85)(38,"div",2)(39,"div",86)(40,"h3",87),i._uU(41," Documents with esign request"),i.qZA()()()(),i.TgZ(42,"div",88)(43,"div",2)(44,"div",89)(45,"p"),i._uU(46,"This template is used while sending documents to your clients with eSign request."),i.qZA()()()()()()(),i.TgZ(47,"div",82),i.NdJ("click",function(){i.CHM(p);const E=i.oxw();return i.KtG(E.openEmailInvoice(E.storeData[3]))}),i.TgZ(48,"div",83)(49,"mat-card",84)(50,"div",85)(51,"div",2)(52,"div",86)(53,"h3",87),i._uU(54," Documents without eSign request "),i.qZA()()()(),i.TgZ(55,"div",88)(56,"div",2)(57,"div",89)(58,"p"),i._uU(59,"This template is used while sending documents to your clients without eSign. "),i.qZA()()()()()()()()()()}}let T=(()=>{class f{constructor(p,C,E,ct,Zt,S,V,d){this.subService=p,this.fb=C,this.dialog=E,this.subscription=ct,this.subInjectService=Zt,this.eventService=S,this.utilservice=V,this.roleService=d,this.barButtonOptions={active:!1,text:"SAVE",buttonColor:"primary",barColor:"accent",raised:!0,stroked:!1,mode:"determinate",value:10,disabled:!1,fullWidth:!1},this.viewMode="tab1",this.isLoading=!1}ngOnInit(){this.billerProfileCapability=this.roleService.subscriptionPermission.subModule.settings.subModule.prefrence.subModule.billerprofile.capabilityList,this.invoiceCapability=this.roleService.subscriptionPermission.subModule.settings.subModule.prefrence.subModule.invoices.capabilityList,this.quotationCapability=this.roleService.subscriptionPermission.subModule.settings.subModule.prefrence.subModule.quotations.capabilityList,this.subscriptionCapability=this.roleService.subscriptionPermission.subModule.settings.subModule.prefrence.subModule.subscriptions.capabilityList,this.prefrenceSetttingRoles=this.roleService.subscriptionPermission.subModule.settings.subModule.prefrence.subModule,this.advisorId=O.e.getAdvisorId(),this.billerProfileData=0==l.k.getLoderFlag(5)?void 0:[{},{},{}],this.subService.billerProfileList?this.getProfileBillerDataResponse(this.subService.billerProfileList):this.getProfileBillerData(),this.getNumberData(),this.prefrenceSetttingRoles.billerprofile.enabled?this.viewMode="tab1":this.prefrenceSetttingRoles.invoices.enabled||this.prefrenceSetttingRoles.quotations.enabled?this.viewMode="tab3":this.prefrenceSetttingRoles.subscriptions.enabled&&(this.viewMode="tab4")}getTemplate(){this.subService.getEmailTemplate({advisorId:this.advisorId}).subscribe(C=>this.getTemplateDate(C))}getTemplateDate(p){this.storeData=p,this.subService.settingPrefrenceEmailList=p}getProfileBillerData(){this.isLoading=!0,this.billerProfileData=[{isPrimary:!1}],this.subscription.getPreferenceBillerProfile(this.advisorId).subscribe(p=>this.getProfileBillerDataResponse(p),p=>{this.eventService.showErrorMessage(p),this.billerProfileData=[],this.isLoading=!1})}getBillerPrimary(p){this.subscription.setBillerPrimary({advisorId:this.advisorId,id:p.id}).subscribe(E=>this.setBillerPrimaryRes(E))}setBillerPrimaryRes(p){this.billerProfileData.forEach(C=>{C.id==p?(C.isPrimary=!0,this.eventService.openSnackBar("Primary set successfully","OK")):C.isPrimary=!1}),this.subService.billerProfileList=this.billerProfileData}getPrefixData(p){this.isLoading=!0,this.subscription.getPreferenceInvoiceQuotations({advisorId:this.advisorId,type:p}).subscribe(E=>this.getInvoiceQuotationResponse(E,p))}savePrefix(p){if(this.prefixData.invalid)this.prefixData.get("prefix").markAsTouched(),this.prefixData.get("nextNo").markAsTouched();else{this.barButtonOptions.active=!0;const C={advisorId:this.advisorId,id:0,nextNumber:parseInt(this.prefixData.value.nextNo),prefix:this.prefixData.value.prefix,type:p};null!=this.saveUpdateFlag.prefix&&null!=this.saveUpdateFlag.nextNumber?this.subscription.updatePreferenceInvoiceQuotationsSubscription(C).subscribe(E=>{this.savePrefixResponse(E,C.type)},E=>{this.barButtonOptions.active=!1}):this.subscription.savePreferenceInvoiceQuotationsSubscription(C).subscribe(E=>{this.savePrefixResponse(E,C.type)},E=>{this.barButtonOptions.active=!1})}}savePrefixResponse(p,C){this.sortInvQuoSubData(C,p),this.eventService.openSnackBar("tab2"==this.viewMode?"Invoice updated sucessfully":"Subscription updated sucessfully","Dismiss"),this.barButtonOptions.active=!1,this.prefixData.get("prefix").setValue(p.prefix),this.prefixData.get("nextNo").setValue(p.nextNumber)}toUpperCase(p,C){this.utilservice.toUpperCase(p,C)}resetPrefix(){this.prefixData.get("prefix").setValue(this.saveUpdateFlag.prefix),this.prefixData.get("nextNo").setValue(this.saveUpdateFlag.nextNumber)}getProfileBillerDataResponse(p){this.isLoading=!1;for(let C of p)C.read=!1;this.billerProfileData=p,this.subService.billerProfileList=this.billerProfileData}getInvoiceQuotationResponse(p,C){this.isLoading=!1,this.saveUpdateFlag=p,this.sortInvQuoSubData(C,p),this.prefixData=this.fb.group({prefix:[p.prefix,[v.kI.required]],nextNo:[p.nextNumber,[v.kI.required,v.kI.min(p.nextNumber)]]}),this.invoiceNumber=p.nextNumber}sortInvQuoSubData(p,C){switch(!0){case 1==p:return void(this.subService.invoiceNumberData=C);case 2==p:return void(this.subService.quotationNumberDara=C);default:this.subService.subscriptionNumberData=C}this.getNumberData()}getNumberData(){this.invoiceNumberData=this.subService.invoiceNumberData,this.quotationNumberData=this.subService.quotationNumberDara,this.subscriptionNumberData=this.subService.subscriptionNumberData}changeNextNumberValidation(){this.prefixData.controls.nextNo.setValidators([v.kI.required]),this.prefixData.controls.nextNo.updateV
1alueAndValidity()}Open(p,C,E){this.selected=0;const Zt=this.subInjectService.changeNewRightSliderState({flag:C,data:p,id:1,state:"open",componentName:ot.R,popupHeaderText:E}).subscribe(S=>{n.fK.isDialogClose(S)&&(n.fK.isRefreshRequired(S)&&this.getProfileBillerData(),Zt.unsubscribe())})}deleteModal(p){if(1==p.isPrimary)return void this.eventService.openSnackBar("You cannot delete primary biller profile","Dismiss");const E=this.dialog.open(e.$,{width:"400px",data:{header:"DELETE",body:"Are you sure you want to delete the biller profile?",body2:"This cannot be undone.",btnYes:"CANCEL",btnNo:"DELETE",positiveMethod:()=>{this.subService.deleteSubSettingBillerProfile(p.id).subscribe(ct=>{this.getProfileBillerData(),E.close(),this.eventService.openSnackBar("Biller is deleted","Dismiss")},ct=>this.eventService.showErrorMessage(ct))},negativeMethod:()=>{}},autoFocus:!1});E.afterClosed().subscribe(ct=>{})}openEmailInvoice(p){const E=this.eventService.changeUpperSliderState({flag:"app-preference-email-invoice",id:1,data:p,direction:"top",componentName:g.D,state:"open"}).subscribe(ct=>{n.fK.isDialogClose(ct)&&(this.getTemplate(),E.unsubscribe())})}}return f.\u0275fac=function(p){return new(p||f)(i.Y36(t.F),i.Y36(v.QS),i.Y36(c.uw),i.Y36(t.F),i.Y36($.f),i.Y36(Y.P),i.Y36(n.fK),i.Y36(et.N))},f.\u0275cmp=i.Xpm({type:f,selectors:[["app-preferences-settings"]],decls:16,vars:11,consts:[["id","ui-perferences",1,"bg-white"],[1,"wrapper-20"],[1,"row"],[1,"col-lg-2","col-md-12","p-0","pt-1","preferencesMenuList"],[1,"vertical-menu"],["class","c-p",3,"ngClass","click",4,"ngIf"],["class"," c-p",3,"ngClass","click",4,"ngIf"],[1,"col-lg-10","col-md-12","b-a","p-0","min-height",3,"ngSwitch"],["class","row pt-20 pr-16",4,"ngIf"],[4,"ngSwitchCase"],[1,"c-p",3,"ngClass","click"],[1,"row","pt-20","pr-16"],[1,"col-md-12","right","text-right","pr-0"],[4,"ngIf"],[1,"row",3,"hidden"],[1,"col-md-12","d-flex","align-items-center","flex-column","justify-content-center"],["src","https://res.cloudinary.com/futurewise/image/upload/v1619592596/myplanner/images/svg/buiness-shop.svg",1,"pt-20","width200"],[1,"f-22","f-600","pt-28","pb-16","t-dark"],[1,"f-16","text-center","l-21","t-dark","pb-16"],["mat-stroked-button","",1,"btn-primary","d-flex","align-items-center",3,"click"],["class","wrapper-16 pt-20 skeletonAnimation","appSkeletonLoading","",3,"appSkeletonLoading",4,"ngFor","ngForOf"],["appSkeletonLoading","",1,"wrapper-16","pt-20","skeletonAnimation",3,"appSkeletonLoading"],[1,"row","b-a","bg-grey","lter","pt-20","pb-16"],[1,"col-md-7","relClass"],[1,"bar"],[1,"mb-0","d-inline-block","playairFont"],[1,"col-md-5","d-flex","justify-content-end","align-items-center"],["src","https://res.cloudinary.com/futurewise/image/upload/v1669784542/myplanner/images/svg/Razorpay_enabled.svg","alt","dot menu icon",4,"ngIf"],["class","text-primary br-0 ml-12 ","style","cursor: default;border: 1px solid rgba(0, 0, 0, 0.12);padding: 0 15px;\n line-height: 34px;background: transparent;",4,"ngIf"],["src","https://res.cloudinary.com/futurewise/image/upload/v1619592625/myplanner/images/svg/dot-menu.svg","width","20","height","20","alt","dot menu icon",1,"material-icons","text-right","right","text-custom","f-28","c-p",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","","class","bt-1",3,"click",4,"ngIf"],[1,"b-a","bt-none"],[1,"col-lg-6","col-md-12","p-0"],[1,"wrapper-16","relClass"],[1,"f-12"],[1,"height20","proxima"],[1,"f-12","pt-24"],[1,"proxima"],[1,"wrapper-16"],[1,"row","pb-20"],[1,"col-md-6","p-0","relClass"],[1,"text-uppercase","f-12"],[1,"col-md-6","pl-0"],[1,"f-12","text-uppercase"],[1,"col-lg-6","col-md-10","p-0"],[1,"f-12","text-uppercase","pt-24"],[1,"col-lg-6","col-md-12","p-0","bl-1","bl-0-992"],[1,"wrapper-16","widthwebLogo"],[1,"f-12","text-uppercase","pb-16"],[1,"text-center","containerOne"],["height","64","width","256","alt","biller profile logo",1,"img-icons",3,"src"],[1,"overlay",3,"click"],[1,"text"],[1,"pt-32","text-uppercase","f-12"],["src","https://res.cloudinary.com/futurewise/image/upload/v1669784542/myplanner/images/svg/Razorpay_enabled.svg","alt","dot menu icon"],[1,"text-primary","br-0","ml-12",2,"cursor","default","border","1p
1x solid rgba(0, 0, 0, 0.12)","padding","0 15px","line-height","34px","background","transparent"],["mat-menu-item","",3,"click"],["mat-menu-item","",1,"bt-1",3,"click"],["appSkeletonLoading","",1,"wrapper-44","skeletonAnimation",3,"formGroup","appSkeletonLoading"],[1,"row","pl-44","pl-0-992"],[1,"col-lg-4","col-md-5","pr-0","mr-40"],[1,"m-0","mb-5","f-14","text-black","proxima"],[1,"form-group","relClass"],["class","bar height23",4,"ngIf"],[1,"col-lg-4","col-md-5","pr-0"],[1,"col-md-12","pt-44","d-flex"],["class","btn-primary br-0 mr-8",3,"options","btnClick",4,"ngIf"],["mat-stroked-button","",1,"text-primary","br-0",3,"click"],["matInput","","type","text","formControlName","prefix",1,"form-control","br-0",3,"input"],[1,"bar","height23"],["matInput","","formControlName","nextNo","type","text",1,"form-control","br-0"],["class","f-12",4,"ngIf"],[1,"btn-primary","br-0","mr-8",3,"options","btnClick"],["class","btn-primary br-0 mr-8","style","box-shadow: none;",3,"options","btnClick",4,"ngIf"],["matInput","","type","text","formControlName","prefix",1,"form-control","br-0"],[1,"btn-primary","br-0","mr-8",2,"box-shadow","none",3,"options","btnClick"],[1,"m-0","mb-5","f-14","text-black","tabs-wsn","proxima"],[1,"wrapper-12","pb-0"],[1,"row","pt-12"],[1,"col-md-12"],[1,"col-md-6","c-p",3,"click"],[1,"example-card"],[1,"p-0","b-a"],[1,"bg-grey","lter","wrapper-16","pl-24"],[1,"col-md-11","p-0"],[1,"f-20","l-26","playairFont"],[1,"wrapper-20","pl-24"],[1,"col-md-12","p-0"],[1,"row","pt-20"]],template:function(p,C){1&p&&(i.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"ul",4),i.YNc(5,I,2,4,"li",5),i.YNc(6,j,2,4,"li",5),i.YNc(7,M,2,4,"li",5),i.YNc(8,L,2,4,"li",6),i.qZA()(),i.TgZ(9,"div",7),i.YNc(10,X,2,0,"div",8),i.YNc(11,mt,15,2,"div",9),i.YNc(12,Z,19,7,"div",9),i.YNc(13,Rt,19,7,"div",9),i.YNc(14,vt,19,7,"div",9),i.YNc(15,yt,60,0,"div",9),i.qZA()()()()),2&p&&(i.xp6(5),i.Q6J("ngIf",C.prefrenceSetttingRoles.billerprofile.enabled),i.xp6(1),i.Q6J("ngIf",C.prefrenceSetttingRoles.invoices.enabled),i.xp6(1),i.Q6J("ngIf",C.prefrenceSetttingRoles.quotations.enabled),i.xp6(1),i.Q6J("ngIf",C.prefrenceSetttingRoles.subscriptions.enabled),i.xp6(1),i.Q6J("ngSwitch",C.viewMode),i.xp6(1),i.Q6J("ngIf",C.billerProfileData),i.xp6(1),i.Q6J("ngSwitchCase","tab1"),i.xp6(1),i.Q6J("ngSwitchCase","tab2"),i.xp6(1),i.Q6J("ngSwitchCase","tab3"),i.xp6(1),i.Q6J("ngSwitchCase","tab4"),i.xp6(1),i.Q6J("ngSwitchCase","tab5"))},dependencies:[s.lW,rt.a8,r.TO,r.KE,w.Nt,q.VK,q.OP,q.p6,A.mk,A.sg,A.O5,A.RF,A.n9,v.Fj,v.JJ,v.JL,v.sg,v.u,N.k,P.d,o.l],styles:['h3[_ngcontent-%COMP%]{font-style:normal;font-weight:400;font-size:24px;line-height:32px;letter-spacing:.2px;color:#3f3f3f}p[_ngcontent-%COMP%]{margin-bottom:0;color:#83959d;line-height:15px}h5[_ngcontent-%COMP%]{font-size:16px;line-height:22px;letter-spacing:.2px;color:#3f3f3f;font-weight:200}.img-icons[_ngcontent-%COMP%]{width:70%}.notes[_ngcontent-%COMP%]{font-style:normal;font-weight:400;font-size:16px;line-height:19px;color:#3f3f3f}.form-control[_ngcontent-%COMP%]{height:50px}.form-control[_ngcontent-%COMP%]:focus{box-shadow:none!important;border-color:#ced4da!important}.ba-danger[_ngcontent-%COMP%]{border:1px solid #FF6823;border-radius:2px;padding:1px}.min-height[_ngcontent-%COMP%]{min-height:965px}.active[_ngcontent-%COMP%]{background-color:#d90000;color:#fff}.mat-card[_ngcontent-%COMP%]:not([class*=mat-elevation-z]){box-shadow:none!important}.b-outline[_ngcontent-%COMP%]{outline:1px solid #dee5e7!important;position:relative}.b-outline[_ngcontent-%COMP%]:before{content:"";width:10px;height:40px;z-index:2;background:#fff;position:absolute;right:-5px;top:0}.read-more[_ngcontent-%COMP%]{text-align:right;color:#008fff;margin-bottom:-18px;font-size:14px}.preferencesMenuList[_ngcontent-%COMP%] .vertical-menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:10px 12px!important}.width350[_ngcontent-%COMP%]{width:350px}.height20[_ngcontent-%COMP%]{height:20px}.height23[_ngcontent-%COMP%]{height:23px}#ui-perferences[_ngcontent-%COMP%] .containerOne[_ngcontent-%COMP%]{position:relative}#ui-perferences[_ngcontent-%COMP%] .overlay[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;right:0;background-color:#00000080;overflow:hidden;width:70%;height:0;margin:0 auto;cursor:pointer}#ui-perferences[_ngcontent-%COMP%] .containerOne[_ngcontent-%COMP%]:hover .overlay[_ngcontent-%COMP%]{height:100%}#ui-perferences[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{color:#fff;font-size:20px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;font-size:14px}']}),f})()},66085:(Tt,pt,a)=>{a.d(pt,{W:()=>st});var t=a(70591),Y=a(41074),e=a(65730),v=a(67241),g=a(6363),O=a(70661),n=a(94650),ot=a(6
15938),l=a(34793),et=a(36895),i=a(4859),c=a(73546),$=a(10266),s=a(81638);function rt(Q,at){if(1&Q){const B=n.EpF();n.TgZ(0,"div",5),n.NdJ("click",function(){n.CHM(B);const gt=n.oxw(2);return n.KtG(gt.openFragment("","services"))}),n.TgZ(1,"mat-card",6)(2,"mat-card-content")(3,"p",7)(4,"i",8),n._uU(5," add "),n.qZA(),n._UZ(6,"img",9),n.qZA()()()()}}function r(Q,at){if(1&Q){const B=n.EpF();n.TgZ(0,"div",44),n.NdJ("click",function(){n.CHM(B);const gt=n.oxw().$implicit;return n.KtG(gt.read=!gt.read)}),n._uU(1),n.qZA()}if(2&Q){const B=n.oxw().$implicit;n.xp6(1),n.hij(" ",B.read?"read less":"read more","")}}function w(Q,at){1&Q&&(n.TgZ(0,"label",45),n._uU(1,"Fixed"),n.qZA())}function q(Q,at){1&Q&&(n.TgZ(0,"label",45),n._uU(1,"Variable"),n.qZA())}function A(Q,at){1&Q&&(n.TgZ(0,"p",46),n._uU(1," Recurring"),n.qZA())}function N(Q,at){1&Q&&(n.TgZ(0,"p",46),n._uU(1," Once"),n.qZA())}function P(Q,at){1&Q&&(n.TgZ(0,"p",47),n._uU(1," Start Of Period"),n.qZA())}function o(Q,at){1&Q&&(n.TgZ(0,"p",47),n._uU(1," End Of Period "),n.qZA())}function z(Q,at){1&Q&&(n.TgZ(0,"p",30),n._uU(1," FEES"),n.qZA())}function I(Q,at){1&Q&&(n.TgZ(0,"p",30),n._uU(1," FEES "),n.qZA())}function j(Q,at){if(1&Q&&(n.TgZ(0,"h4",48),n._uU(1),n.TgZ(2,"span"),n._uU(3),n.qZA()()),2&Q){const B=n.oxw().$implicit;n.xp6(1),n.hij(" \u20b9",B.averageFees,"/"),n.xp6(2),n.Oqu(B.billEveryMode)}}const M=function(Q){return{height23:Q}},L=function(Q){return{heightMar23:Q}};function X(Q,at){if(1&Q){const B=n.EpF();n.TgZ(0,"div",10)(1,"mat-card",11)(2,"div",12)(3,"mat-card-header",13)(4,"div",14)(5,"mat-card-title",15)(6,"div",16),n._uU(7),n.qZA()(),n.TgZ(8,"mat-card-subtitle",17)(9,"div",18),n._uU(10),n.qZA(),n.TgZ(11,"div",19)(12,"p",20),n._uU(13),n.qZA()(),n.YNc(14,r,2,1,"div",21),n.qZA()()(),n.TgZ(15,"mat-card-content",22)(16,"div",23)(17,"div",24)(18,"p",25),n._uU(19,"FEE TYPE"),n.qZA(),n.TgZ(20,"div",26)(21,"div",27),n.YNc(22,w,2,0,"label",28),n.YNc(23,q,2,0,"label",28),n.qZA()()(),n.TgZ(24,"div",29)(25,"p",30),n._uU(26,"BILLING NATURE"),n.qZA(),n.TgZ(27,"div",26)(28,"div",27),n.YNc(29,A,2,0,"p",31),n.YNc(30,N,2,0,"p",31),n.qZA()()()(),n.TgZ(31,"div",32)(32,"div",33)(33,"p",25),n._uU(34,"BILLING MODE"),n.qZA(),n.TgZ(35,"div",26)(36,"div",27),n.YNc(37,P,2,0,"p",34),n.YNc(38,o,2,0,"p",34),n.qZA()()(),n.TgZ(39,"div",35),n.YNc(40,z,2,0,"p",36),n.YNc(41,I,2,0,"p",36),n.TgZ(42,"div",26)(43,"div",27),n.YNc(44,j,4,2,"h4",37),n.qZA()()()(),n.TgZ(45,"div",38)(46,"div",39)(47,"p",40),n._uU(48,"PLANS"),n.qZA(),n.TgZ(49,"div",41)(50,"div",27),n._uU(51),n.qZA()()(),n.TgZ(52,"div",35)(53,"p",40),n._uU(54,"DOCUMENTS"),n.qZA(),n.TgZ(55,"div",41)(56,"div",27),n._uU(57),n.qZA()()()()(),n.TgZ(58,"mat-card-actions",42)(59,"button",43),n.NdJ("click",function(){const bt=n.CHM(B).$implicit,ft=n.oxw(2);return n.KtG(ft.openFragment(bt,"services"))}),n._uU(60,"INFO"),n.qZA()()()()()}if(2&Q){const B=at.$implicit,tt=n.oxw(2);n.Q6J("appSkeletonLoading",tt.isLoading),n.xp6(4),n.Q6J("ngClass",B.read?"":"height130"),n.xp6(2),n.Q6J("ngClass",n.VKq(27,M,tt.isLoading)),n.xp6(1),n.hij(" ",B.serviceName," "),n.xp6(2),n.Q6J("ngClass",n.VKq(29,M,tt.isLoading)),n.xp6(1),n.hij(" ",B.serviceCode," "),n.xp6(1),n.Q6J("ngClass",B.read?"h-a":""),n.xp6(1),n.MGl("matTooltip","Description : ",B.description,""),n.xp6(1),n.hij(" ",B.description," "),n.xp6(1),n.Q6J("ngIf",B.description&&B.description.length>100),n.xp6(7),n.Q6J("ngClass",n.VKq(31,M,tt.isLoading)),n.xp6(1),n.Q6J("ngIf",B.servicePricing&&1==B.servicePricing.feeTypeId),n.xp6(1),n.Q6J("ngIf",B.servicePricing&&2==B.servicePricing.feeTypeId),n.xp6(5),n.Q6J("ngClass",n.VKq(33,M,tt.isLoading)),n.xp6(1),n.Q6J("ngIf",B.servicePricing&&1==B.servicePricing.billingNature),n.xp6(1),n.Q6J("ngIf",B.servicePricing&&2==B.servicePricing.billingNature),n.xp6(6),n.Q6J("ngClass",n.VKq(35,M,tt.isLoading)),n.xp6(1),n.Q6J("ngIf",B.servicePricing&&1==B.servicePricing.billingMode),n.xp6(1),n.Q6J("ngIf",B.servicePricing&&2==B.servicePricing.billingMode),n.xp6(2),n.Q6J("ngIf",1==tt.feesDisplay),n.xp6(1),n.Q6J("ngIf",B.servicePricing&&1==B.servicePricing.feeTypeId),n.xp6(2),n.Q6J("ngClass",n.VKq(37,M,tt.isLoading)),n.xp6(1),n.Q6J("ngIf",B.servicePricing&&1==B.servicePricing.feeTypeId),n.xp6(6),n.Q6J("ngClass",n.VKq(39,M,tt.isLoading)),n.xp6(1),n.hij(" ",B.planCount," "),n.xp6(5),n.Q6J("ngClass",n.VKq(41,L,tt.isLoading)),n.xp6(1),n.hij(" ",B.docCount," ")}}function H(Q,at){if(1&Q&&(n.TgZ(0,"div",2),n.YNc(1,rt,7,0,"div",3),n.YNc(2,X,61,43,"div",4),n.qZA()),2&Q){const B=n.oxw();n.xp6(1),n.Q6J("ngIf",B.settingCapability.Add),n.xp6(1),n.Q6J("ngForOf",B.serviceSettingData)}}function lt(Q,at){if(1&Q){const B=n.EpF();
1n.TgZ(0,"button",54),n.NdJ("click",function(){n.CHM(B);const gt=n.oxw(2);return n.KtG(gt.openFragment("","services"))}),n._uU(1," ADD SERVICES "),n.qZA()}}function J(Q,at){if(1&Q&&(n.TgZ(0,"div",2)(1,"div",49),n._UZ(2,"img",50),n.TgZ(3,"p",51),n._uU(4,"Create Services "),n.qZA(),n.TgZ(5,"p",52),n._uU(6," Next up, you create Services. More than one Service can be added to a Plan. E.g. "),n._UZ(7,"br"),n._uU(8," Plan could be Financial Planning. It\u2019s Services could be 1) Planning fees 2) "),n._UZ(9,"br"),n._uU(10," Implementation services 3) Retainer services. "),n.qZA(),n.YNc(11,lt,2,0,"button",53),n.qZA()()),2&Q){const B=n.oxw();n.xp6(11),n.Q6J("ngIf",B.settingCapability.Add)}}let st=(()=>{class Q{constructor(B,tt,gt,bt,ft,Dt,St,Mt){this.dialog=B,this.subService=tt,this.dataService=gt,this.eventService=bt,this.utilservice=ft,this.router=Dt,this.location=St,this.roleService=Mt,this.serviceSettingData=[{},{}],this.isLoading=!1,this.read=!1}ngOnInit(){this.settingCapability=this.roleService.subscriptionPermission.subModule.settings.subModule.services.capabilityList,this.advisorId=e.e.getAdvisorId(),this.feesDisplay=!0,this.subService.serviceList?this.getServiceSettingSubResponse(this.subService.serviceList):this.getServiceSettingSubData()}openFragment(B,tt){this.location.replaceState("/subscription-upper"),""==B?B="":B.flag=tt;const gt={flag:"services",id:1,data:B,direction:"top",componentName:g.S,state:"open",Name:"service-upper-slider"};e.e.setSubscriptionUpperSliderData(gt);const bt=this.eventService.changeUpperSliderState(gt).subscribe(ft=>{v.fK.isDialogClose(ft)&&(v.fK.isRefreshRequired(ft)&&(this.serviceSettingData=[{},{}],this.getServiceSettingSubData()),bt.unsubscribe())})}getServiceSettingSubData(){this.isLoading=!0,this.subService.getSubscriptionServiceSettingsData({advisorId:this.advisorId}).subscribe(tt=>this.getServiceSettingSubResponse(tt),tt=>{this.eventService.showErrorMessage(tt),this.serviceSettingData=[],this.isLoading=!1})}getServiceSettingSubResponse(B){if(null!=B){this.isLoading=!1,this.feesDisplay=!1;for(let tt of B)tt.read=!1;B.forEach(tt=>{tt.billEveryMode=1==tt.servicePricing.billEvery?"Monthly":3==tt.servicePricing.billEvery?"Quarterly":6==tt.servicePricing.billEvery?"Half-yearly":"Yearly"}),this.serviceSettingData=B,this.subService.serviceList=B}else this.serviceSettingData=[]}getFileErrorResponse(B){this.dataService.openSnackBar(B,"Dismiss")}}return Q.\u0275fac=function(B){return new(B||Q)(n.Y36(ot.uw),n.Y36(t.F),n.Y36(Y.P),n.Y36(Y.P),n.Y36(v.fK),n.Y36(l.F0),n.Y36(et.Ye),n.Y36(O.N))},Q.\u0275cmp=n.Xpm({type:Q,selectors:[["app-services-settings"]],decls:3,vars:2,consts:[[1,"wrapper-20","pr-0"],["class","row",4,"ngIf"],[1,"row"],["class","col-lg-4 col-md-12 pr-20 pb-20 pl-0 c-p",3,"click",4,"ngIf"],["appSkeletonLoading","","class","col-lg-4 col-md-12 pr-20 pb-20 pl-0 skeletonAnimation service-setting",3,"appSkeletonLoading",4,"ngFor","ngForOf"],[1,"col-lg-4","col-md-12","pr-20","pb-20","pl-0","c-p",3,"click"],[1,"example-card","height-484","bg-grey","lter"],[1,"text-center"],[1,"material-icons","icon-center"],["src","https://res.cloudinary.com/futurewise/image/upload/v1622621286/myplanner/images/svg/plus-sub-settings.svg","height","42","width","42","alt","plus icon",1,"material-icons","icon-center"],["appSkeletonLoading","",1,"col-lg-4","col-md-12","pr-20","pb-20","pl-0","skeletonAnimation","service-setting",3,"appSkeletonLoading"],[1,"example-card","bg-grey","lter","p-0","b-a"],[1,"bar"],[1,"overflow-hidden"],[1,"wrapper-20","mb-5",3,"ngClass"],[1,"mb-10","l-26","text-break","text-lighter","relClass","f-24"],["matTooltip","Service name",1,"bar",3,"ngClass"],[1,"pt-4","pb-12","relClass"],["matTooltip","Service code",1,"bar",3,"ngClass"],[1,"serDic",3,"ngClass"],["aria-label","Button that displays a tooltip when focused or hovered over",1,"m-0","text-sl",3,"matTooltip"],["class","read-more c-p",3,"click",4,"ngIf"],[1,"bg-white","mb-0"],[1,"row","wrapper-20"],[1,"col-md-6","pl-0","overflow-hidden"],[1,"mb-0","text-primitive","f-12"],[1,"relClass"],[1,"bar",3,"ngClass"],["class","bg-header mt-4 proxima f-16",4,"ngIf"],[1,"col-md-6","p-0","overflow-hidden"],[1,"f-12","mb-0","text-primitive"],["class","f-18 pt-4 text-lighter mb-0 f-16",4,"ngIf"],[1,"row","wrapper-20","pt-0","overflow-hidden"],[1,"col-md-6","pl-0"],["class","mb-0 text-lighter f-16",4,"ngIf"],[1,"col-md-6","p-0"],["class","f-12 mb-0 text-primitive",4,"ngIf"],["class","m-0 p-0 text-lighter lh-16 f-16",4,"ngIf"],[1,"row","wrapper-20","bt-1","bb-1","pr-0","pl-0","text-center","overflow-hidden"],[1,"col-md-6","pl-0","relClass"],[1,"f-14","text-primitive","mb-8"],[1,"f-24","mb-0","relClass"],[1,"block","text-center","pt-20","pb-20","mb-0"],["mat-stroked-button","",1,"btn-header","addon","mb-12","mt-8","br
1-0",3,"click"],[1,"read-more","c-p",3,"click"],[1,"bg-header","mt-4","proxima","f-16"],[1,"f-18","pt-4","text-lighter","mb-0","f-16"],[1,"mb-0","text-lighter","f-16"],[1,"m-0","p-0","text-lighter","lh-16","f-16"],[1,"col-md-12","d-flex","align-items-center","flex-column","justify-content-center"],["src","https://res.cloudinary.com/futurewise/image/upload/v1704887478/My-Planner_Whitewashed/undraw_plans_y8ru-w_2.3-svg.svg",1,"width200","bg-primary"],[1,"f-22","f-600","pt-28"],[1,"f-16","text-center","l-21"],["mat-stroked-button","","class","btn-primary d-flex align-items-center",3,"click",4,"ngIf"],["mat-stroked-button","",1,"btn-primary","d-flex","align-items-center",3,"click"]],template:function(B,tt){1&B&&(n.TgZ(0,"div",0),n.YNc(1,H,3,2,"div",1),n.YNc(2,J,12,1,"div",1),n.qZA()),2&B&&(n.xp6(1),n.Q6J("ngIf",tt.serviceSettingData.length>0),n.xp6(1),n.Q6J("ngIf",0==tt.serviceSettingData.length))},dependencies:[i.lW,c.a8,c.dk,c.dn,c.n5,c.$j,c.hq,$.gM,et.mk,et.sg,et.O5,s.d],styles:['h2[_ngcontent-%COMP%]{color:#3f3f3f;text-align:center;padding:16px 12px;letter-spacing:.2px;line-height:32px}h3[_ngcontent-%COMP%]{letter-spacing:.2px;line-height:32px}.padder-80[_ngcontent-%COMP%]{padding-right:80px;padding-left:80px}.read-more[_ngcontent-%COMP%]{text-align:right;color:#008fff;margin-bottom:-47px;font-size:14px}.h-a[_ngcontent-%COMP%]{height:auto!important}h3[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#757575}.serDic[_ngcontent-%COMP%]{height:34px;margin-top:5px;overflow:hidden}.serDic[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{white-space:normal;white-space:initial;color:#4c4949;width:100%}.button-fix[_ngcontent-%COMP%]{right:0;position:fixed;text-align:right;margin-right:30px;z-index:2;margin-top:15px!important}.btn-primary[_ngcontent-%COMP%]{border-radius:0!important}.material-icons[_ngcontent-%COMP%]{line-height:.7}.content[_ngcontent-%COMP%]{position:relative;right:20%}.box[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px}label[_ngcontent-%COMP%]{background:#004164;border-radius:4px;letter-spacing:.2px;color:#fff;font-size:14px;line-height:17px;display:inline-block;min-width:10px;padding:3px 10px;text-align:center;white-space:nowrap;vertical-align:baseline}.done-icons[_ngcontent-%COMP%]{background:#02B875;padding:0 0 4px 4px;color:#fff;float:right;text-align:right;line-height:.9}.height23[_ngcontent-%COMP%]{height:23px}.heightMar23[_ngcontent-%COMP%]{margin-bottom:12px;height:23px}.height130[_ngcontent-%COMP%]{height:130px;width:100%}.skeletonAnimation[_ngcontent-%COMP%] .relClass[_ngcontent-%COMP%]{position:relative}.skeletonAnimation[_ngcontent-%COMP%] .relClass[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]{background-color:#e7e7e7;width:100%}.skeletonAnimation[_ngcontent-%COMP%] .relClass[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]:after{position:absolute;transform:translateY(-50%);top:50%;left:0;content:"";display:block;width:100%;height:24px;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 24px;background-position:-10px 0;background-repeat:no-repeat;animation:loading 1s infinite}']}),Q})()},16041:(Tt,pt,a)=>{a.d(pt,{b:()=>q});var t=a(3848),Y=a(70661),e=a(94650),v=a(34793),g=a(36895),O=a(66192),n=a(66085),ot=a(47517),l=a(15304);function et(A,N){1&A&&e._UZ(0,"app-plans-settings")}function i(A,N){1&A&&(e.TgZ(0,"mat-tab",7),e.YNc(1,et,1,0,"ng-template",8),e.qZA())}function c(A,N){1&A&&e._UZ(0,"app-services-settings")}function $(A,N){1&A&&(e.TgZ(0,"mat-tab",9),e.YNc(1,c,1,0,"ng-template",8),e.qZA())}function s(A,N){1&A&&e._UZ(0,"app-documents-settings")}function rt(A,N){1&A&&(e.TgZ(0,"mat-tab",10),e.YNc(1,s,1,0,"ng-template",8),e.qZA())}function r(A,N){1&A&&e._UZ(0,"app-preferences-settings")}function w(A,N){1&A&&(e.TgZ(0,"mat-tab",11),e.YNc(1,r,1,0,"ng-template",8),e.qZA())}let q=(()=>{class A{constructor(P,o,z){this.router=P,this.route=o,this.roleService=z}ngOnInit(){switch(this.route.paramMap.subscribe(P=>{this.label=P.get("label")}),this.label){case"plans":this.selected=0;break;case"services":this.selected=1;break;case"documents":this.selected=2;break;default:this.selected=3}}navTab(){switch(this.tabGroup.selectedIndex){case 0:this.label="plans";break;case 1:this.label="services";break;case 2:this.label="documents";break;case 3:this.label="preferences"}this.router.navigate(["/admin/subscription/settings",this.label])}}return A.\u0275fac=function(P){return new(P||A)(e.Y36(v.F0),e.Y36(v.gz),e.Y36(Y.N))},A.\u0275cmp=e.Xpm({type:A,selectors:[["app-settings-subscription"]],viewQuery:function(P,o){if(1&P&&e.Gf(t.SP,7),2&P){let z;e.iGM(z=e.CRH())&&(o.tabGroup=z.first)}},decls:7,vars:5,consts:[["id","ui-settingsHeaders",1,"bg-white","fae-in"],[1,"bg-white","pt-120"],["mat-align-tabs","","animationDuration","0ms","id","ui-settings-subs",1,"bg-white",3,"selectedIndex","focusChange"],["label","PLANS",4,"ngIf"],["label","SERVICES",4,"ngIf"],["label","DOCUMENTS",4,"ngIf"],["label","PREFERENCES",4,"ngIf"],["label","PLANS"],["matTabContent",""],["label","SERVICES"],["label","DOCUMENTS"],["label","PREFERENCES"]],template:function(P,o){1&P&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-tab-group",2),e.NdJ("focusChange",function(){return o.navTab()}),e.YNc(3,i,2,0,"mat-tab",3),e.YNc(4,$,2,0,"mat-tab",4),e.YNc(5,rt,2,0,"mat-tab",5),e.YNc(6,w,2,0,"mat-tab",6),e.qZA()()()),2&P&&(e.xp6(2),e.Q6J("selectedIndex",o.selected),e.xp6(1),e.Q6J("ngIf",o.roleService.subscriptionPermission.subModule.settings.subModule.plan.enabled),e.xp6(1),e.Q6J("ngIf",o.roleService.subscriptionPermission.subModule.settings.subModule.services.enabled),e.xp6(1),e.Q6J("ngIf",o.roleService.subscriptionPermission.subModule.settings.subModule.document.enabled),e.xp6(1),e.Q6J("ngIf",o.roleService.subscriptionPermission.subModule.settings.subModule.prefrence.enabled))},dependencies:[t.SP,t.uX,t.Vc,g.O5,O.Z,n.W,ot.w,l.y],styles:[".example-card[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}"]}),A})()},83366:(Tt,pt,a)=>{a.d(pt,{b:()=>X});var t=a(41074),Y=a(73799),e=a(3848),v=a(67241),g=a(65730),O=a(70591),n=a(61642),ot=a(22811),l=a(82129),et=a(70162),i=a(70661),c=a(94650),$=a(34793),s=a(47873),rt=a(59549),r=a(84385),w=a(36895),q=a(24006),A=a(1716);function N(H,lt){if(1&H){const J=c.EpF();c.TgZ(0,"a",8),c.NdJ("click",function(){c.CHM(J);const Q=c.oxw();return c.KtG(Q.value=1)}),c._uU(1,"DASHBOARD"),c.qZA()}if(2&H){const J=c.oxw();c.Q6J("ngClass",1==J._value?"active":"")("routerLink","./dashboard")}}function P(H,lt){if(1&H){const J=c.EpF();c.TgZ(0,"a",8),c.NdJ("click",function(){c.CHM(J);const Q=c.oxw();return c.KtG(Q.value=2)}),c._uU(1,"CLIENTS"),c.qZA()}if(2&H){const J=c.oxw();c.Q6J("ngClass",2==J._value?"active":"")("routerLink","./clients")}}function o(H,lt){if(1&H){const J=c.EpF();c.TgZ(0,"a",8),c.NdJ("click",function(){c.CHM(J);const Q=c.oxw();return c.KtG(Q.value=3)}),c._uU(1,"SUBSCRIPTIONS"),c.qZA()}if(2&H){const J=c.oxw();c.Q6J("ngClass",3==J._value?"active":"")("routerLink","./subscriptions")}}function z(H,lt){if(1&H){const J=c.EpF();c.TgZ(0,"a",8),c.NdJ("click",function(){c.CHM(J);const Q=c.oxw();return c.KtG(Q.value=4)}),c._uU(1,"QUOTATIONS"),c.qZA()}if(2&H){const J=c.oxw();c.Q6J("ngClass",4==J._value?"active":"")("routerLink","./quotations")}}function I(H,lt){if(1&H){const J=c.EpF();c.TgZ(0,"a",8),c.NdJ("click",function(){c.CHM(J);const Q=c.oxw();return c.KtG(Q.value=6)}),c._uU(1,"DOCUMENTS"),c.qZA()}if(2&H){const J=c.oxw();c.Q6J("ngClass",6==J._value?"active":"")("routerLink","./documents")}}const j=function(H){return["./settings",H]},M=function(){return{example:0}};function L(H,lt){if(1&H&&(c.TgZ(0,"a",15),c._uU(1,"SETTINGS"),c.qZA()),2&H){const J=c.oxw();c.Q6J("ngClass",J.isLinkActive()?"active":"")("routerLink",c.VKq(3,j,J.label))("state",c.DdM(5,M))}}let X=(()=>{class H{constructor(J,st,Q,at,B,tt,gt,bt){this.utilservice=J,this.eventService=st,this.enumDataService=Q,this.router=at,this._userService=B,this.subService=tt,this.route=gt,this.roleService=bt,this.setLabel=!1,this.label="plans",this.eventService.sidebarSubscribeData.subscribe(ft=>this.getFileResponseDataAum(ft)),this.eventService.tabChangeData.subscribe(ft=>this.getTabChangeData(ft))}set value(J){this._value=J}ngOnInit(){this.enumDataService.getClientRole(),this.enumDataService.getDataForSubscriptionEnumService(),this.selected=1,"dashboard"===this.router.url.split("/")[3]?this._value=1:"clients"===this.router.url.split("/")[3]?this._value=2:"subscriptions"===this.router.url.split("/")[3]?this._value=3:"quotations"===this.router.url.split("/")[3]?this._value=4:"invoices"===this.router.url.split("/")[3]?this._value=5:"documents"===this.router.url.split("/")[3]?this._value=6:"settings"===this.router.url.split("/")[3]?this._value=7:"mandates"===this.router.url.split("/")[3]&&(this._value=8),this.advisorId=g.e.getAdvisorId(),this.subService.getDashboardSubscriptionResponse(this.advisorId).subscribe(J=>{n.k.setLoderFlag(J.advisorAccomplishedSubscriptionFinalList)})}getFileDetails(J){if(this.enumDataService.Vapt)return this.eventService.openSnackBar("Wont work on UAT","Dismiss");const st=J.target.files[0];let at;at=ot.d.TRANSACT.includes("v2")||ot.d.TRANSACT.includes("v3")?this._userService.getJwtToken():this._userService.getToken(),et.J.uploadFileToServer(ot.d.TRANSACT+l.e.UPLOAD_FILE_IMAGE,st,{tpUserRequestId:1,documentType:1},at,(B,tt,gt,bt)=>{200==gt&&JSON.parse(tt)})}isLinkActive(){return"settings"===this.router.url.split("/")[3]}advisorId(J){throw new Error("Method not implemented.")}getIndex(J){J.selectedSettingTab&&(this.tabGroup.selectedIndex=J.selectedTab,this.settingIndex=J)}getFileResponseDataAum(J){this.subscriptionTab=J}getTabChangeData(J){this._value=J}tabClick(J){this.eventService.sidebarData(J.tab.textLabel),6!=J.index&&(this.settingIndex=0)}help(){}}return H.\u0275fac=function(J){return new(J||H)(c.Y36(v.fK),c.Y36(t.P),c.Y36(Y.p),c.Y36($.F0),c.Y36(g.e),c.Y36(O.F),c.Y36($.gz),c.Y36(i.N))},H.\u0275cmp=c.Xpm({type:H,selectors:[["app-subscription"]],viewQuery:function(J,st){if(1&J&&c.Gf(e.SP,7),2&J){let Q;c.iGM(Q=c.CRH())&&(st.tabGroup=Q.first)}},decls:41,vars:29,consts:[["id","ui-subscriptions",1,"fade-in"],[1,"row"],[1,"col-lg-2","col-md-5","d-none-992"],[1,"m-0","pt-16"],[1,"col-lg-10","col-md-5","p-0","pr-28-992"],[1,"subnav-fixed","responsive-subnav-fixed"],["mat-tab-nav-bar","",1,"d-none-992",3,"selectedTabChange"],["mat-tab-link","","routerLinkActive","active",3,"ngClass","routerLink","click",4,"ngIf"],["mat-tab-link","","routerLinkActive","active",3,"ngClass","routerLink","click"],["mat-tab-link","",3,"ngClass","routerLink","state",4,"ngIf"],[1,"d-lg-none","pt-10-992","pr-15-992","mob-pr-0","mob-pl-15"],[1,"w-350-992"],[1,"form-control",3,"ngModel","ngModelChange"],[3,"routerLink","value"],[1,"col-md-12","p-0"],["mat-tab-link","",3,"ngClass","routerLink","state"]],template:function(J,st){1&J&&(c.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),c._uU(4,"Subscriptions"),c.qZA()(),c.TgZ(5,"div",4)(6,"div",5)(7,"nav",6),c.NdJ("selectedTabChange",function(at){return st.tabClick(at)}),c.YNc(8,N,2,2,"a",7),c.YNc(9,P,2,2,"a",7),c.YNc(10,o,2,2,"a",7),c.YNc(11,z,2,2,"a",7),c.TgZ(12,"a",8),c.NdJ("click",function(){return st.value=9}),c._uU(13,"BILLING"),c.qZA(),c.YNc(14,I,2,2,"a",7),c.TgZ(15,"a",8),c.NdJ("click",function(){return st.value=8}),c._uU(16,"MANDATES"),c.qZA(),c.YNc(17,L,2,6,"a",9),c.qZA(),c.TgZ(18,"div",10)(19,"mat-form-field",11)(20,"mat-select",12),c.NdJ("ngModelChange",function(at){return st._value=at}),c.TgZ(21,"mat-option",13),c._uU(22,"DASHBOARD"),c.qZA(),c.TgZ(23,"mat-option",13),c._uU(24,"CLIENTS"),c.qZA(),c.TgZ(25,"mat-option",13),c._uU(26,"SUBSCRIPTIONS"),c.qZA(),c.TgZ(27,"mat-option",13),c._uU(28,"QUOTATIONS"),c.qZA(),c.TgZ(29,"mat-option",13),c._uU(30,"INVOICES"),c.qZA(),c.TgZ(31,"mat-option",13),c._uU(32,"DOCUMENTS"),c.qZA(),c.TgZ(33,"mat-option",13),c._uU(34,"MANDATES"),c.qZA(),c.TgZ(35,"mat-option",13),c._uU(36,"
1SETTINGS"),c.qZA()()()()()()()(),c.TgZ(37,"div",1)(38,"div",14),c._UZ(39,"router-outlet"),c.qZA()(),c._UZ(40,"app-pricing-footers")),2&J&&(c.xp6(8),c.Q6J("ngIf",st.roleService.subscriptionPermission.subModule.dashboard.enabled),c.xp6(1),c.Q6J("ngIf",st.roleService.subscriptionPermission.subModule.clients.enabled),c.xp6(1),c.Q6J("ngIf",st.roleService.subscriptionPermission.subModule.subscriptions.enabled),c.xp6(1),c.Q6J("ngIf",st.roleService.subscriptionPermission.subModule.quotations.enabled),c.xp6(1),c.Q6J("ngClass",9==st._value?"active":"")("routerLink","./billing"),c.xp6(2),c.Q6J("ngIf",st.roleService.subscriptionPermission.subModule.documents.enabled),c.xp6(1),c.Q6J("ngClass",8==st._value?"active":"")("routerLink","./mandates"),c.xp6(2),c.Q6J("ngIf",st.roleService.subscriptionPermission.subModule.settings.enabled),c.xp6(3),c.Q6J("ngModel",st._value),c.xp6(1),c.Q6J("routerLink","./dashboard")("value",1),c.xp6(2),c.Q6J("routerLink","./clients")("value",2),c.xp6(2),c.Q6J("routerLink","./subscriptions")("value",3),c.xp6(2),c.Q6J("routerLink","./quotations")("value",4),c.xp6(2),c.Q6J("routerLink","./billing")("value",5),c.xp6(2),c.Q6J("routerLink","./documents")("value",6),c.xp6(2),c.Q6J("routerLink","./mandates")("value",8),c.xp6(2),c.Q6J("routerLink",c.VKq(27,j,st.label))("value",7))},dependencies:[s.ey,rt.KE,r.gD,e.BU,e.Nj,w.mk,w.O5,q.JJ,q.On,$.lC,$.rH,$.yS,$.Od,A.B],styles:[".example-card[_ngcontent-%COMP%]{height:457px} .subnav-fixed{right:0;position:fixed;margin-right:10px}"]}),H})()},53027:(Tt,pt,a)=>{a.d(pt,{i:()=>Zt});var t=a(73799),Y=a(41074),e=a(47873),v=a(96308),g=a(53626),O=a(77491),n=a(70591),ot=a(93584),l=a(65730),et=a(67241),i=a(36895),c=a(94562),$=a(74226),s=a(54441),rt=a(9509),r=a(38491),w=a(84829),q=a(3900),A=a(21462),N=a(70661),P=a(6682),o=a(94650),z=a(65938),I=a(23767),j=a(80853),M=a(4859),L=a(28255),X=a(51572),H=a(10266),lt=a(81638),J=a(21112),st=a(16649);const Q=["tableEl"],at=function(S){return{"event-none":S}};function B(S,V){if(1&S){const d=o.EpF();o.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"h4",7),o._uU(4,"Subscriptions"),o.qZA()(),o.TgZ(5,"div",8)(6,"button",9),o.NdJ("click",function(){o.CHM(d);const _=o.oxw();return o.KtG(_.showFilters(_.showFilter))}),o._UZ(7,"img",10),o._uU(8," FILTERS "),o.qZA()()(),o.TgZ(9,"div",11)(10,"app-sudscription-table-filter",12),o.NdJ("filterRes",function(_){o.CHM(d);const D=o.oxw();return o.KtG(D.getFiterRes(_))}),o.qZA()()()}if(2&S){const d=o.oxw();o.xp6(1),o.Q6J("ngClass",o.VKq(5,at,d.isLoading)),o.xp6(8),o.Q6J("ngClass",!0===d.showFilter?"block":"none"),o.xp6(1),o.Q6J("dataToFilter",d.passFilterData)("FilterOneName","Status")("FilterTwoName","Date")}}function tt(S,V){1&S&&(o.TgZ(0,"th",51),o._uU(1," Client & plan details "),o.qZA())}function gt(S,V){if(1&S&&(o.TgZ(0,"td",52)(1,"div",53),o._uU(2),o._UZ(3,"br"),o.TgZ(4,"small",54),o._uU(5),o.qZA()()()),2&S){const d=V.$implicit;o.xp6(2),o.hij(" ",d.clientName," "),o.xp6(3),o.Oqu(d.planName)}}function bt(S,V){1&S&&(o.TgZ(0,"th",55),o._uU(1," Service name "),o.qZA())}function ft(S,V){if(1&S&&(o.TgZ(0,"td",56)(1,"div",53),o._uU(2),o.qZA()()),2&S){const d=V.$implicit;o.xp6(2),o.hij(" ",d.serviceName," ")}}function Dt(S,V){1&S&&(o.TgZ(0,"th",57),o._uU(1," Fee amount"),o.qZA())}function St(S,V){1&S&&o._UZ(0,"div",53)}function Mt(S,V){if(1&S){const d=o.EpF();o.TgZ(0,"div",63),o.NdJ("click",function(){o.CHM(d);const _=o.oxw().$implicit,D=o.oxw(2);return o.KtG(D.Open("open",_))}),o._uU(1),o.qZA()}if(2&S){const d=o.oxw(3);o.xp6(1),o.hij(" ",d.isLoading?" ":"View details"," ")}}function Pt(S,V){if(1&S&&(o.TgZ(0,"div",64),o._uU(1),o.qZA()),2&S){const d=o.oxw().$implicit;o.xp6(1),o.hij(" \u20b9 ",d.pricing,"")}}function At(S,V){if(1&S){const d=o.EpF();o.TgZ(0,"div",65),o.NdJ("click",function(){o.CHM(d);const _=o.oxw().$implicit,D=o.oxw(2);return o.KtG(D.Open("open",_))}),o._uU(1," View details"),o.qZA()}}function It(S,V){if(1&S&&(o.TgZ(0,"td",58),o.YNc(1,St,1,0,"div",59),o.YNc(2,Mt,2,1,"div",60),o.YNc(3,Pt,2,1,"div",61),o.YNc(4,At,2,0,"div",62),o.qZA()),2&S){const d=V.$implicit,b=o.oxw(2);o.xp6(1),o.Q6J("ngIf",b.isLoading),o.xp6(1),o.Q6J("ngIf",null==d.startsOn&&1==d.feeTypeId),o.xp6(1),o.Q6J("ngIf",d.startsOn&&1==d.feeTypeId),o.xp6(1),o.Q6J("ngIf",2==d.feeTypeId&&b.roleService.subscriptionPermission.subModule.subscriptions.subscriptionsCapabilityList.Edit)}}function F(S,V){1&S&&(o.TgZ(0,"th",66),o._uU(1," Subs # "),o.qZA())}function mt(S,V){if(1&S&&(o.TgZ(0,"td",67)(1,"div",53),o._uU(2),o.qZA()()),2&S){const d=V.$implicit;o.xp6(2),o.hij(" ",d.subscriptionNumber," ")}}function R(S,V){1&S&&(o.TgZ(0,"th",68),o._uU(1," Status"),o.qZA())}function dt(S,V){1&S&&(o.TgZ(0,"span",74),o._uU(1,"NOT STARTED"),o.qZA())}function _t(S,V){1&S&&(o.TgZ(0,"span",75),o._uU(1,"LIVE"),o.qZA())}function ut(S,V){1&S&&(o.TgZ(0,"span",76),o._uU(1,"FUTURE"),o.qZA())}function Ct(S,V){1&S&&(o.TgZ(0,"span",77),o._uU(1,"CANCELLED"),o.qZA())}function Ot(S,V){if(1&S&&(o.TgZ(0,"td",69)(1,"div",53),o.YNc(2,dt,2,0,"span",70),o.YNc(3,_t,2,0,"span",71),o.YNc(4,ut,2,0,"span",72),o.YNc(5,Ct,2,0,"span",73),o.qZA()()),2&S){const d=V.$implicit;o.xp6(2),o.Q6J("ngIf",1==d.status),o.xp6(1),o.Q6J("ngIf",2==d.status),o.xp6(1),o.Q6J("ngIf",3==d.status),o.xp6(1),o.Q6J("ngIf",4==d.status)}}function Lt(S,V){1&S&&(o.TgZ(0,"th",78),o._uU(1," Activation date "),o.qZA())}function Z(S,V){if(1&S&&(o.TgZ(0,"div",81),o._uU(1),o.ALo(2,"date"),o.qZA()),2&S){const d=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,d.startsOn,"dd/MM/yyyy")," ")}}function W(S,V){if(1&S){const d=o.EpF();o.TgZ(0,"div",82),o.NdJ("click",function(){o.CHM(d);const _=o.oxw().$implicit,D=o.oxw(2);return o.KtG(D.openPlanSlider("createSub","open",_))}),o.TgZ(1,"button",83),o._uU(2,"START "),o.qZA()()}}function y(S,V){if(1&S&&(o.TgZ(0,"td",69)(1,"div",53),o.YNc(2,Z,3,4,"div",79),o.YNc(3,W,3,0,"div",80),o.qZA()()),2&S){const d=V.$implicit,b=o.oxw(2);o.xp6(2),o.Q6J("ngIf",1!=d.status),o.xp6(1),o.Q6J("ngIf",1==d.status&&b.roleService.subscriptionPermission.subModule.subscriptions.subscriptionsCapabilityList.Edit)}}function xt(S,V){1&S&&(o.TgZ(0,"th",84),o._uU(1," Last billing date "),o.qZA())}function Et(S,V){if(1&S&&(o.TgZ(0,"td",85)(1,"div",53),o._uU(2),o.ALo(3,"date"),o.qZA()()),2&S){const d=V.$implicit;o.xp6(2),o.hij(" ",d.prevBillingDate?o.xi3(3,1,d.prevBillingDate,"dd/MM/yyyy"):"N/A"," ")}}function Nt(S,V){1&S&&(o.TgZ(0,"th",86),o._uU(1," Next billing date "),o.qZA())}function wt(S,V){if(1&S&&(o.TgZ(0,"td",87)(1,"div",88),o._uU(2),o.ALo(3,"date"),o.qZA()()),2&S){const d=V.$implicit;o.xp6(2),o.hij(" ",d.nextBillingDate?o.xi3(3,1,d.nextBillingDate,"dd/MM/yyyy"):"N/A"," ")}}const Ut=function(S){return{display:S}};function Rt(S,V){if(1&S&&(o.TgZ(0,"th",89),o._uU(1," Fee collection"),o._UZ(2,"br"),o._uU(3," mode "),o.qZA()),2&S){const d=o.oxw(2);o.Q6J("ngStyle",o.VKq(1,Ut,d.isLoading?"none":""))}}function U(S,V){if(1&S&&(o.TgZ(0,"span",92),o._uU(1),o.qZA()),2&S){const d=o.oxw().$implicit;o.xp6(1),o.hij(" ",d.feeModeName?d.feeModeName:"N/A"," ")}}function it(S,V){if(1&S&&(o.TgZ(0,"td",90)(1,"div",53),o.YNc(2,U,2,1,"span",91),o.qZA()()),2&S){const d=V.$implicit,b=o.oxw(2);o.Q6J("ngStyle",o.VKq(2,Ut,b.isLoading?"none":"")),o.xp6(2),o.Q6J("ngIf",d.subscriptionPricing)}}function u(S,V){if(1&S&&o._UZ(0,"th",93),2&S){const d=o.oxw(2);o.Q6J("ngStyle",o.VKq(1,Ut,d.isLoading?"none":""))}}function x(S,V){if(1&S&&(o.TgZ(0,"i",102),o._uU(1," more_vert "),o.qZA()),2&S){o.oxw();const d=o.MAs(3);o.Q6J("matMenuTriggerFor",d)}}function h(S,V){if(1&S){const d=o.EpF();o.TgZ(0,"a",101),o.NdJ("click",function(){o.CHM(d);const _=o.oxw(2).$implicit,D=o.oxw(2);return o.KtG(D.Open("open",_))}),o._uU(1," View fee structure"),o.qZA()}}function K(S,V){if(1&S){const d=o.EpF();o.TgZ(0,"a",101),o.NdJ("click",function(){o.CHM(d);const _=o.oxw(2).$implicit,D=o.oxw(2);
1return o.KtG(D.openPlanSlider("subscriptionDetails","open",_))}),o._uU(1,"View subscription details"),o.qZA()}}function G(S,V){if(1&S){const d=o.EpF();o.TgZ(0,"a",103),o.NdJ("click",function(){o.CHM(d);const _=o.oxw(2).$implicit,D=o.oxw(2);return o.KtG(D.openPlanSlider("billerSettings","open",_))}),o._uU(1,"Change biller"),o.qZA()}}function vt(S,V){if(1&S){const d=o.EpF();o.TgZ(0,"a",101),o.NdJ("click",function(){o.CHM(d);const _=o.oxw(2).$implicit,D=o.oxw(2);return o.KtG(D.openPlanSlider("changePayee","open",_))}),o._uU(1,"Change payee"),o.qZA()}}function yt(S,V){if(1&S){const d=o.EpF();o.TgZ(0,"a",101),o.NdJ("click",function(){o.CHM(d);const _=o.oxw(2).$implicit,D=o.oxw(2);return o.KtG(D.delete("cancelSubscription",_))}),o._uU(1,"Cancel subscription"),o.qZA()}}function T(S,V){if(1&S){const d=o.EpF();o.TgZ(0,"div"),o.YNc(1,x,2,1,"i",96),o.TgZ(2,"mat-menu",null,97),o.YNc(4,h,2,0,"a",98),o.YNc(5,K,2,0,"a",98),o.YNc(6,G,2,0,"a",99),o.YNc(7,vt,2,0,"a",98),o.TgZ(8,"div",100),o.YNc(9,yt,2,0,"a",98),o.TgZ(10,"a",101),o.NdJ("click",function(){o.CHM(d);const _=o.oxw().$implicit,D=o.oxw(2);return o.KtG(D.deleteModal("SUBSCRIPTION",_))}),o._uU(11,"Delete subscription"),o.qZA()()()()}if(2&S){const d=o.oxw().$implicit,b=o.oxw(2);o.xp6(1),o.Q6J("ngIf",b.roleService.subscriptionPermission.subModule.subscriptions.subscriptionsCapabilityList.Edit),o.xp6(3),o.Q6J("ngIf",1==d.status||1==d.feeTypeId||2==d.feeTypeId),o.xp6(1),o.Q6J("ngIf",4!=d.status&&1!=d.status),o.xp6(1),o.Q6J("ngIf",4!=d.status&&1!=d.status),o.xp6(1),o.Q6J("ngIf",4!=d.status&&1!=d.status),o.xp6(1),o.Q6J("ngClass",1!=d.status?"bt-1":""),o.xp6(1),o.Q6J("ngIf",2==d.status||3==d.status)}}function f(S,V){if(1&S&&(o.TgZ(0,"td",94),o.YNc(1,T,12,7,"div",95),o.qZA()),2&S){const d=o.oxw(2);o.Q6J("ngStyle",o.VKq(2,Ut,d.isLoading?"none":"")),o.xp6(1),o.Q6J("ngIf",!d.isLoading)}}function m(S,V){1&S&&o._UZ(0,"tr",104)}function p(S,V){1&S&&o._UZ(0,"tr",105)}function C(S,V){1&S&&o._UZ(0,"mat-spinner",106),2&S&&o.Q6J("diameter",30)}function E(S,V){if(1&S){const d=o.EpF();o.TgZ(0,"div",13)(1,"div",14)(2,"div",15),o.NdJ("scroll",function(_){o.CHM(d);const D=o.oxw();return o.KtG(D.onWindowScroll(_))}),o.TgZ(3,"table",16,17),o.ynx(5,18),o.YNc(6,tt,2,0,"th",19),o.YNc(7,gt,6,2,"td",20),o.BQk(),o.ynx(8,21),o.YNc(9,bt,2,0,"th",22),o.YNc(10,ft,3,1,"td",23),o.BQk(),o.ynx(11,24),o.YNc(12,Dt,2,0,"th",25),o.YNc(13,It,5,4,"td",26),o.BQk(),o.ynx(14,27),o.YNc(15,F,2,0,"th",28),o.YNc(16,mt,3,1,"td",29),o.BQk(),o.ynx(17,30),o.YNc(18,R,2,0,"th",31),o.YNc(19,Ot,6,4,"td",32),o.BQk(),o.ynx(20,33),o.YNc(21,Lt,2,0,"th",34),o.YNc(22,y,4,2,"td",32),o.BQk(),o.ynx(23,35),o.YNc(24,xt,2,0,"th",36),o.YNc(25,Et,4,4,"td",37),o.BQk(),o.ynx(26,38),o.YNc(27,Nt,2,0,"th",39),o.YNc(28,wt,4,4,"td",40),o.BQk(),o.ynx(29,41),o.YNc(30,Rt,4,3,"th",42),o.YNc(31,it,3,4,"td",43),o.BQk(),o.ynx(32,44),o.YNc(33,u,1,3,"th",45),o.YNc(34,f,2,4,"td",46),o.BQk(),o.YNc(35,m,1,0,"tr",47),o.YNc(36,p,1,0,"tr",48),o.qZA(),o.TgZ(37,"div",49),o.YNc(38,C,1,1,"mat-spinner",50),o.qZA()()()()}if(2&S){const d=o.oxw();o.xp6(2),o.Q6J("ngClass",d.isLoading?"":"table-scroll"),o.xp6(1),o.Q6J("appSkeletonLoading",d.isLoading)("dataSource",d.dataSource),o.xp6(32),o.Q6J("matHeaderRowDef",d.displayedColumns)("matHeaderRowDefSticky",!0),o.xp6(1),o.Q6J("matRowDefColumns",d.displayedColumns),o.xp6(2),o.Q6J("ngIf",d.infiniteScrollingFlag)}}function ct(S,V){1&S&&(o.TgZ(0,"div",107)(1,"div",108),o._UZ(2,"img",109),o.TgZ(3,"p",110),o._uU(4," No data found "),o.qZA()()())}let Zt=(()=>{class S{constructor(d,b,_,D,k,nt,ht,Qt,Bt,Kt){this.dialog=d,this.subInjectService=b,this.eventService=_,this.subService=D,this.enumService=k,this.datePipe=nt,this.utilservice=ht,this.datePipie=Qt,this.roleService=Bt,this.enumDataService=Kt,this.selector=".wrapper-20",this.displayedColumns=["client","service","amt","sub","status","activation","lastbilling","nextbilling","feemode","icons"],this.maxDate=new Date,this.getData="",this.filterDataArr=[],this.isFilter=!1,this.scrollCallData=!0,this.isLoading=!0,this.isFirstCall=!0,this.chips=[{name:"LIVE",value:2},{name:"FUTURE",value:3},{name:"NOT STARTED",value:1},{name:"CANCELLED",value:4}],this.dateChips=[{name:"Activation date",value:1},{name:"Last billing date",value:2},{name:"Next billing date",value:3}],this.passFilterData={data:"",selectedCount:"",statusFilter:this.chips,dateFilter:this.dateChips},this.filterStatus=[],this.filterDate=[],this.statusIdList=[],this.show
1Filter=!1,this.selectedStatusFilter="status",this.selectedDateFilter="selected",this.selectedDateRange={begin:new Date,end:new Date},this.scrollLoad=!1,this.statusIdLength=0,this.tableData=[],this.data=[{},{},{}],this.dataSource=new g.by(this.data)}ngOnInit(){this.advisorId=l.e.getAdvisorId(),this.getFeeCollectionMode(),this.dataSource.data=null==this.utilservice.checkSubscriptionastepData(3)?[{},{},{}]:0==this.utilservice.checkSubscriptionastepData(3)?[]:[{},{},{}],this.subService.subscriptionSubscriptionList?this.getSubSummaryRes(this.subService.subscriptionSubscriptionList):this.getClientSubData(this.scrollLoad,this.isFirstCall)}getFeeCollectionMode(){this.subService.getPaymentMode({}).subscribe(d=>{d&&(this.feeCollectionMode=d)})}getClientSubData(d,b){this.dataSource.data=[{},{},{}],this.getSummaryDataAdvisor(d,b).subscribe(_=>{this.getData=_,null!=_?(_.forEach(D=>{D.feeTypeId=D.subscriptionPricing.feeTypeId,D.pricing=1==D.subscriptionPricing.feeTypeId?D.subscriptionPricing.subscriptionAssetPricingList[0].pricing:""}),this.lastDataId=_[_.length-1].id,this.tableData=_):this.isLoading=!1,this.getSubSummaryRes(this.getData)},_=>{this.dataSource.data=[],this.isLoading=!1})}errorMessage(){const d={flag:"app-err-page-open",data:{},id:1,direction:"top",componentName:q.z,state:"open"};d.data={positiveMethod:_=>{_.active=!0,this.isFirstCall=!1,this.getSummaryDataAdvisor(!1,this.isFirstCall).subscribe(D=>{_.active=!1,this.getData=D,null!=D?(this.lastDataId=0==this.isFirstCall?0:D[D.length-1].id,this.tableData=this.tableData.length<=0?D:this.tableData.concat(D)):this.isLoading=!1,this.eventService.changeUpperSliderState({state:"close"}
1),this.getSubSummaryRes(this.tableData)},D=>{_.active=!1,this.eventService.openSnackBar("Wait for sometime....","Dismiss")})}},this.eventService.changeUpperSliderState(d).subscribe(_=>{et.fK.isDialogClose(_)})}onWindowScroll(d){this.tableEl._elementRef.nativeElement.querySelector("tbody").querySelector("tr:last-child").offsetTop<=d.target.scrollTop+d.target.offsetHeight+200&&(this.hasEndReached||(this.infiniteScrollingFlag=!0,this.hasEndReached=!0,this.scrollFunction()))}scrollFunction(){this.filterStatus&&this.filterStatus.length>0?(this.statusIdList=[],this.filterStatus.forEach(b=>{this.statusIdList.push(b.value)})):this.statusIdList=[];const d={advisorId:this.advisorId,limit:20,offset:this.lastFilterDataId,fromDate:this.filterDate.length>0?this.datePipe.transform(this.selectedDateRange.begin,"yyyy-MM-dd"):null,toDate:this.filterDate.length>0?this.datePipe.transform(this.selectedDateRange.end,"yyyy-MM-dd"):null,statusIdList:this.statusIdList,dateType:0==this.filterDate.length?0:this.filterDate};this.subService.filterSubscription(d).subscribe(b=>{this.isLoading=!1,this.infiniteScrollingFlag=!1,b&&b.length>0&&(b.forEach(_=>{_.feeTypeId=_.subscriptionPricing.feeTypeId,_.pricing=1==_.subscriptionPricing.feeTypeId?_.subscriptionPricing.subscriptionAssetPricingList[0].pricing:"",this.feeCollectionMode.forEach(D=>{D.statusId=parseInt(D.statusId),D.statusId==_.feeMode&&(_.feeModeName=D.paymentMethodType)})}),this.lastFilterDataId=b[b.length-1].id,this.dataSource.data=this.dataSource.data.concat(b),this.hasEndReached=!1),this.scrollCallData=!0},b=>{this.infiniteScrollingFlag=!1,this.eventService.openSnackBar(b,"Dismiss")})}scrollCall(d){const b=document.getElementById("ui-subs"),D=document.getElementById("wrapper").offsetHeight,k=b.scrollTop;k+window.innerHeight>=D&&null!=this.getData&&this.scrollCallData&&(this.scrollCallData=!1,null==this.scrollPosition?this.scrollPosition=D-k:this.scrollPosition<D&&(this.scrollPosition=D-window.innerHeight),this.statusIdList.length<=0?this.getClientSubData(d,!1):this.callFilter(d))}getSummaryDataAdvisor(d,b){1!=b&&(this.lastDataId=0);const _={advisorId:this.advisorId,clientId:0,flag:0,dateType:0,limit:20,offset:this.lastDataId>0?this.lastDataId:0,order:0};return d||(this.isLoading=!0),this.subService.getSubSummary(_)}getSubSummaryRes(d){const b=document.getElementById("ui-subs");this.isLoading=!1,d&&d.length>0?(this.hasEndReached=!1,this.data=d,this.data.forEach(_=>{this.feeCollectionMode.forEach(D=>{D.statusId=parseInt(D.statusId),D.statusId==_.feeMode&&(_.feeModeName=D.paymentMethodType)})}),this.lastFilterDataId=d[d.length-1].id,this.dataSource.data=d,this.subService.subscriptionSubscriptionList=d,this.dataSource.sort=this.sort,b.scrollTo(0,this.scrollPosition),this.scrollCallData=!0):(this.data=[],this.dataSource.data=d,this.dataSource.data=[],this.noData="No data found")}getFiterRes(d){this.filterStatus=d.statusFilterJson,this.filterDate=d.dateFilterArr,this.selectedDateRange=d.dateFilterJson,this.filterDataArr=[],this.dataSource.data=[{},{},{}],this.isLoading=!0,this.isFilter=!0,this.callFilter(!1)}openPlanSlider(d,b,_){if(this.isLoading)return;let D;_&&("billerSettings"==d||"changePayee"==d||null==d||"subscriptionDetails"==d?D="billerSettings"==d?r.P:"changePayee"==d?w.a:A.N:1==_.subscriptionPricing.feeTypeId?(d="createSubFixed",D=rt.M,_.subFlag="createSubFixed"):(d="createSubVariable",D=rt.M,_.subFlag="createSubVariable"),_.isCreateSub=!1,_.isSaveBtn=!1);const nt=this.subInjectService.changeNewRightSliderState({flag:d,data:_,id:1,state:"open",componentName:D}).subscribe(ht=>{et.fK.isDialogClose(ht)&&(et.fK.isRefreshRequired(ht)&&(this.tableData=[],this.getClientSubData(!1,!1),P.s.dashClientWithSubscription=null,P.s.dashSummaryDataDashboard=null),nt.unsubscribe())})}getFeeTypeName(d){let b="";switch(d){case 1:b="Cheque";break;case 2:b="NEFT";break;case 3:b="Cash";break;case 4:b="ECS mandate";break;case 5:b="Bank Transfer";break;case 6:b="Debit Card";break;case 7:b="Credit Card";break;case 8:b="NACH Mandate";break;default:b="N/A"}return b}Open(d,b){let _,D;b.editFlag=this.roleService.subscriptionPermission.subModule.subscriptions.subscriptionsCapabilityList.Edit,b.isCreateSub=!0,_=1==b.subscriptionPricing.feeTypeId?"fixedModifyFees":"variableModifyFees",D=1==b.subscriptionPricing.feeTypeId?$.B:s.i;const nt=this.subInjectService.changeNewRightSliderState({flag:_,data:b,id:1,state:"open",componentName:D}).subscribe(ht=>{et.fK.isDialogClose(ht)&&(et.fK.isRefreshRequired(ht)&&this.getClientSubData(!1,!1),nt.unsubscribe())})}openFeeEditor(d){let b;d.isCreateSub=!0,b=1==d.subscriptionPricing.feeTypeId?$.B:s.i;const D=this.subInjectService.changeNewRightSliderState({data:d,id:1,state:"open",componentName:b}).subscribe(k=>{et.fK.isDialogClose(k)&&(et.fK.isRefreshRequired(k)&&this.getClientSubData(!1,!1),D.unsubscribe())})}deleteModal(d,b){const D=this.dialog.open(ot.$,{width:"400px",data:{data:d,header:"DELETE",body:"Are you sure you want to delete?",body2:"This cannot be undone.",btnYes:"CANCEL",btnNo:"DELETE",positiveMethod:()=>{this.subService.deleteSubscriptionData(b.id).subscribe(k=>{this.deletedData(k),D.close(b),this.getClientSubData(!1,!1),this.subService.invoiceSubscriptionList=null,this.subService.documentSubscriptionList=null,P.s.dashClientWithSubscription=null,P.s.dashSummaryDataDashboard=null})},negativeMethod:()=>{}},autoFocus:!1});D.afterClosed().subscribe(k=>{if(null!=k){const nt=[];this.dataSource.data.forEach(ht=>{ht.id!=k.id&&nt.push(ht)}),this.dataSource.data=nt}})}
1showFilters(d){this.showFilter=1!=d}addFilters(d){null==this.filterStatus.find(b=>b.name==d.name)?(this.lastFilterDataId=0,this.filterStatus.push(d),this.filterDataArr=[]):this.lastFilterDataId=0,this.callFilter(!1)}filterSubscriptionRes(d,b){this.isLoading=!1,this.infiniteScrollingFlag=!1,null==d&&this.statusIdLength<1?(this.noData="No data found",this.dataSource.data=b?this.filterDataArr:[]):(d&&d.length>0&&(this.hasEndReached=!1),this.filterDataArr.length<=0?this.filterDataArr=d:(this.lastFilterDataId=d[d.length-1].id,this.filterDataArr=this.filterDataArr.concat(d)),this.scrollCallData=!0,this.dataSource.data=this.filterDataArr)}addFiltersDate(d){this.filterDate=[],this.filterDate.length>=1&&(this.filterDate=[]),this.filterDataArr=[],this.lastFilterDataId=0,this.filterDate.push("1: Object"==d?1:"2: Object"==d?2:3);const b=new Date;b.setMonth(b.getMonth()-1),et.fK.getStartOfTheDay(b);const _=new Date;et.fK.getStartOfTheDay(_),this.selectedDateRange={begin:b,end:_},this.callFilter(!1)}removeDate(d){this.selectedDateFilter="selected",this.filterDate.splice(d,1),this.lastFilterDataId=0,this.callFilter(!1)}remove(d){this.filterStatus[d].name==this.selectedStatusFilter.name&&(this.selectedStatusFilter="status"),this.filterStatus.splice(d,1),this.filterDataArr=this.filterDataArr.filter(b=>{}),this.lastFilterDataId=0,this.callFilter(!1)}orgValueChange(d){const b=new Date;b.setMonth(b.getMonth()-1),et.fK.getStartOfTheDay(b);const _=new Date;et.fK.getStartOfTheDay(_),this.selectedDateRange={begin:d.begin,end:d.end},this.callFilter(!1)}orgValueChange2(d){this.getDate2=this.datePipe.transform(d,"yyyy-MM-dd"),this.callFilter(!1)}callFilter(d){this.infiniteScrollingFlag=!1,this.hasEndReached=!0,this.filterStatus&&this.filterStatus.length>0?(this.statusIdList=[],this.dataSource.data=[{},{},{}],this.isLoading=!0,this.filterStatus.forEach(_=>{this.statusIdList.push(_.value)})):this.statusIdList=[];const b={advisorId:this.advisorId,limit:20,offset:this.lastFilterDataId,fromDate:this.filterDate.length>0?this.datePipe.transform(this.selectedDateRange.begin,"yyyy-MM-dd"):null,toDate:this.filterDate.length>0?this.datePipe.transform(this.selectedDateRange.end,"yyyy-MM-dd"):null,statusIdList:this.statusIdList,dateType:0==this.filterDate.length?0:this.filterDate};0==b.statusIdList.length&&null==b.fromDate?this.getClientSubData(!1,!1):this.subService.filterSubscription(b).subscribe(_=>{this.filterSubscriptionRes(_,d)})}delete(d,b){"cancelSubscription"===d&&this.dialog.open(O.i,{width:"50%",data:{flag:d,subData:b},autoFocus:!1}).afterClosed().subscribe(k=>{k&&(this.getClientSubData(!1,!1),P.s.dashClientWithSubscription=null,P.s.dashSummaryDataDashboard=null)})}deletedData(d){d&&(this.eventService.changeUpperSliderState({state:"close"}),this.eventService.openSnackBar("Deleted successfully!","Dismiss"))}}return S.\u0275fac=function(d){return new(d||S)(o.Y36(z.uw),o.Y36(I.f),o.Y36(Y.P),o.Y36(n.F),o.Y36(j.c),o.Y36(i.uU),o.Y36(et.fK),o.Y36(i.uU),o.Y36(N.N),o.Y36(t.p))},S.\u0275cmp=o.Xpm({type:S,selectors:[["app-subscriptions-subscription"]],viewQuery:function(d,b){if(1&d&&(o.Gf(v.YE,5),o.Gf(Q,5)),2&d){let _;o.iGM(_=o.CRH())&&(b.sort=_.first),o.iGM(_=o.CRH())&&(b.tableEl=_.first)}},inputs:{upperData:"upperData"},features:[o._Bn([[i.uU],{provide:e.sG,useValue:c.c}])],decls:4,vars:3,consts:[[1,"bg-white","fade-in","pt-120"],["class","bg-white p-20 pb-0 filterBox",4,"ngIf"],["class","wrapper-20 pt-8 bg-white subs-subs-table row","id","wrapper",4,"ngIf"],["class","row",4,"ngIf"],[1,"bg-white","p-20","pb-0","filterBox"],[1,"row",3,"ngClass"],[1,"col-md-8","p-0"],[1,"pt-8","mb-0"],[1,"col-md-4","full-end","p-0"],["mat-stroked-button","",1,"btn-default","addon",3,"click"],["src","https://res.cloudinary.com/futurewise/image/upload/v1622786830/myplanner/images/svg/filter-vector.svg","height","25","width","25","alt","",1,"material-icons2"],[1,"row","pt-12",3,"ngClass"],[3,"dataToFilter","FilterOneName","FilterTwoName","filterRes"],["id","wrapper",1,"wrapper-20","pt-8","bg-white","subs-subs-table","row"],[1,"col-md-12","p-0","people-clients"],[1,"ox-hide","people-clients-scroll","responsive-table-port",3,"ngClass","scroll"],["appSkeletonLoading","","id","tbs","mat-table","","matSort","",1,"skeletonAnimation",3,"appSkeletonLoading","dataSource"],["tableEl",""],["matColumnDef","client","sticky",""],["class","f-18 t-19","mat-header-cell","","mat-sort-header","planName",4,"matHeaderCellDef"],["class","c-p t-19","mat-cell","",4,"matCellDef"],["matColumnDef","service"],["class","f-18 t-18","mat-header-cell","","mat-sort-header","serviceName",4,"matHeaderCellDef"],["class","c-p t-18","mat-cell","",4,"matCellDef"],["matColumnDef","amt"],["class","f-18 t-12","mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","t-12",4,"matCellDef"],["matColumnDef","sub"],["class","f-18 t-14","mat-header-cell","","mat-sort-header","subscriptionNumber",4,"matHeaderCellDef"],["class","t-14 c-p","mat-cell","",4,"matCellDef"],["matColumnDef","status"],["class"," t-12","mat-header-cell","","mat-sort-header","status",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","activation"],["class","f-18 t-6","mat-header-cell","","mat-sort-header","startsOn",4,"matHeaderCellDef"],["matColumnDef","lastbilling"],["class","f-18 t-10","mat-header-cell","","mat-sort-header","prevBillingDate",4,"matHeaderCellDef"],["class","t-10","mat-cell","",4,"matCellDef"],["matColumnDef","nextbilling"],["class","f-18 pr-24 t-15","mat-header-cell","","mat-sort-header","nextBillingDate",4,"matHeaderCellDef"],["class","text-left pr-8 t-15","mat-cell","",4,"matCellDef"],["matColumnDef","feemode"],["class","f-18 t-left pr-24 t-12","mat-header-cell","","mat-sort-header","subscriptionPricing.feeTypeId","matTooltip","Fee collection mode","aria-label","Button that displays a tooltip when focu
1sed or hovered over",3,"ngStyle",4,"matHeaderCellDef"],["class","text-left pr-8 t-12","mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","icons","stickyEnd",""],["class","f-18 t-2","mat-header-cell","",3,"ngStyle",4,"matHeaderCellDef"],["class","t-2","mat-cell","",3,"ngStyle",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"col-md-12","d-flex","justify-content-center","align-items-center"],[3,"diameter",4,"ngIf"],["mat-header-cell","","mat-sort-header","planName",1,"f-18","t-19"],["mat-cell","",1,"c-p","t-19"],[1,"bar"],[1,"text-custom","roboto"],["mat-header-cell","","mat-sort-header","serviceName",1,"f-18","t-18"],["mat-cell","",1,"c-p","t-18"],["mat-header-cell","",1,"f-18","t-12"],["mat-cell","",1,"t-12"],["class","bar",4,"ngIf"],["class","bar text-primary text-underline c-p",3,"click",4,"ngIf"],["appFormatNumber","",4,"ngIf"],["appFormatNumber","","class","text-primary text-underline c-p",3,"click",4,"ngIf"],[1,"bar","text-primary","text-underline","c-p",3,"click"],["appFormatNumber",""],["appFormatNumber","",1,"text-primary","text-underline","c-p",3,"click"],["mat-header-cell","","mat-sort-header","subscriptionNumber",1,"f-18","t-14"],["mat-cell","",1,"t-14","c-p"],["mat-header-cell","","mat-sort-header","status",1,"t-12"],["mat-cell",""],["class","text-success t-12 ",4,"ngIf"],["class","text-primary t-12 ",4,"ngIf"],["class","text-custom t-12 ",4,"ngIf"],["class","text-danger t-12 ",4,"ngIf"],[1,"text-success","t-12"],[1,"text-primary","t-12"],[1,"text-custom","t-12"],[1,"text-danger","t-12"],["mat-header-cell","","mat-sort-header","startsOn",1,"f-18","t-6"],["class","text-left",4,"ngIf"],[3,"click",4,"ngIf"],[1,"text-left"],[3,"click"],["mat-stroked-button","",1,"btn-header","btn-xs","ml-8","br-0","btn-sm","c-p"],["mat-header-cell","","mat-sort-header","prevBillingDate",1,"f-18","t-10"],["mat-cell","",1,"t-10"],["mat-header-cell","","mat-sort-header","nextBillingDate",1,"f-18","pr-24","t-15"],["mat-cell","",1,"text-left","pr-8","t-15"],[1,"bar","text-left"],["mat-header-cell","","mat-sort-header","subscriptionPricing.feeTypeId","matTooltip","Fee collection mode","aria-label","Button that displays a tooltip when focused or hovered over",1,"f-18","t-left","pr-24","t-12",3,"ngStyle"],["mat-cell","",1,"text-left","pr-8","t-12",3,"ngStyle"],["class","t-10",4,"ngIf"],[1,"t-10"],["mat-header-cell","",1,"f-18","t-2",3,"ngStyle"],["mat-cell","",1,"t-2",3,"ngStyle"],[4,"ngIf"],["class","material-icons c-p iconscolors",3,"matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["class","bt-1","mat-menu-item","",3,"click",4,"ngIf"],[3,"ngClass"],["mat-menu-item","",3,"click"],[1,"material-icons","c-p","iconscolors",3,"matMenuTriggerFor"],["mat-menu-item","",1,"bt-1",3,"click"],["mat-header-row",""],["mat-row",""],[3,"diameter"],[1,"row"],[1,"col-md-12","d-flex","align-items-center","flex-column","justify-content-center"],["src","https://res.cloudinary.com/futurewise/image/upload/v1703919788/My-Planner_Whitewashed/Transaction-w_1.1.svg",1,"width400","bg-primary"],[1,"f-22","f-600","pt-28"]],template:function(d,b){1&d&&(o.TgZ(0,"div",0),o.YNc(1,B,11,7,"div",1),o.YNc(2,E,39,7,"div",2),o.YNc(3,ct,5,0,"div",3),o.qZA()),2&d&&(o.xp6(1),o.Q6J("ngIf",b.dataSource.data.length>0||b.isFilter),o.xp6(1),o.Q6J("ngIf",b.dataSource.data.length>0),o.xp6(1),o.Q6J("ngIf",0==b.dataSource.data.length))},dependencies:[M.lW,L.VK,L.OP,L.p6,X.Ou,v.YE,v.nU,g.BZ,g.fO,g.as,g.w1,g.Dz,g.nj,g.ge,g.ev,g.XQ,g.Gk,H.gM,i.mk,i.O5,i.PC,lt.d,J.R,st.E0,i.uU],styles:[".example-chip-list[_ngcontent-%COMP%]{width:100%}.btn-header.btn-xs[_ngcontent-%COMP%]{height:22px;min-width:55px}.btn-header.btn-xs[_ngcontent-%COMP%] .mat-stroked-button[_ngcontent-%COMP%]{padding:0 5px}.none[_ngcontent-%COMP%]{display:none!important} .mat-form-field{width:100%} .w-220{width:260px!important} .newDateIcon .mat-chip-list-wrapper .mat-standard-chip{padding-left:8px!important} .newDateIcon .sub_input .mat-form-field-appearance-legacy .mat-form-field-infix{padding:0!important;border:1px solid #BCC6CA!important}.width400[_ngcontent-%COMP%]{width:400px;margin-top:50px}.t-6[_ngcontent-%COMP%]{width:6%}"]}),S})()}}]);
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.