1import{a as ii}from"./chunk-2GHL5KL2.js";import{b as ei}from"./chunk-NWRYOI6K.js";import{a as ti}from"./chunk-TIDDBALO.js";import{a as Se}from"./chunk-HF64BNVK.js";import{a as Xt}from"./chunk-KIWBJOVW.js";import{a as Yt}from"./chunk-4ZJ7DSNR.js";import{a as Jt,c as Wt,e as Zt}from"./chunk-6H3DP3XA.js";import{a as be,b as Tt,c as Nt,d as Et,h as Rt,i as Dt,j as Vt,k as Mt,l as Ot,m as kt,n as $t,o as Ft,p as Bt,q as Gt}from"./chunk-NCDISZUH.js";import{f as ft}from"./chunk-DQRN3NEY.js";import{a as qt,c as Qt}from"./chunk-YBCIOHMD.js";import{b as Ht}from"./chunk-4LC6JZY5.js";import{b as zt}from"./chunk-J3BNSUW2.js";import{c as ut}from"./chunk-PP7FDP3B.js";import{d as Ut,h as xe}from"./chunk-LQPQIOWH.js";import{b as jt}from"./chunk-ZTDYJNUD.js";import{Ac as gt,Bc as vt,Cb as Ce,Cc as bt,Dc as xt,Eb as De,Ec as wt,Fc as St,Gc as Pt,J as K,Kb as st,L as ye,La as B,M as ot,N as ee,Na as Re,O as at,P as Ne,Q as rt,Qc as At,Rc as It,Sc as ve,T as Ee,Tc as Lt,W as lt,X as re,Xh as Me,Yb as pt,_c as R,ad as te,ba as z,bc as ht,bf as ai,da as le,ea as ct,gd as Kt,gf as ri,hd as we,ic as U,mc as ge,ng as Ve,og as li,pc as j,pd as H,sd as ni,vd as oi,wc as _t,yc as yt,zc as Ct}from"./chunk-VREY47QC.js";import{a as G,b as L}from"./chunk-WCJWR3IE.js";import{$a as ze,$b as W,$c as tt,A as se,Ac as et,Ca as Ye,Eb as p,Ec as _e,Fb as r,Gb as a,Hb as v,K as Y,Kd as dt,Lb as $,Mb as F,Md as mt,Nb as Xe,Pb as x,S as E,Tb as me,Ub as g,V as de,Va as qe,Wb as l,Za as c,_a as P,_b as J,a as D,ac as Z,b as O,ba as Le,bc as q,cc as ae,ec as pe,ed as it,fc as m,ga as Ue,gb as C,gc as A,gd as nt,hc as ue,jb as k,kb as Qe,na as je,o as Q,oa as He,pb as S,qc as Je,rc as fe,sc as We,tc as he,u as w,uc as Ze,vb as Te,xa as u,xb as h,ya as f,z as X,zb as _,zc as Ke}from"./chunk-MVL7LGOK.js";var V=class{static{this.type="[App] Legacy Plan Idividual Selected ";}constructor(e){this.individual=e;}};V=w([Re],V);var M=class{static{this.type="[App] Legacy Plan Charity Selected ";}constructor(e){this.charity=e;}};M=w([Re],M);var T=class Pe{constructor(){}static IndividualSelected(e){return e.individualSelected;}static CharitySelected(e){return e.charitySelected;}onLegacyPlanIndividualSelected(e,{individual:t}){t!==e.getState().individualSelected&&e.patchState({individualSelected:t});}onLegacyPlanCharitySelected(e,{charity:t}){t!==e.getState().charitySelected&&e.patchState({charitySelected:t});}static{this.ɵfac=function(t){return new(t||Pe)();};}static{this.ɵprov=je({token:Pe,factory:Pe.ɵfac,providedIn:"any"});}};w([Ne(V)],T.prototype,"onLegacyPlanIndividualSelected",null);w([Ne(M)],T.prototype,"onLegacyPlanCharitySelected",null);w([Ee()],T,"IndividualSelected",null);w([Ee()],T,"CharitySelected",null);T=w([rt({name:"LegacyPlanState",defaults:{individualSelected:void 0,charitySelected:void 0}})],T);var hi=["app-successors",""],_i=()=>({text:"Please Select",value:""}),yi=()=>({text:"Successor Advisors Retained in Existing DAF",value:"Successor Advisors Retained in Existing DAF"}),Ci=()=>({text:"Successor Advisors Allocated in New DAF",value:"Successor Advisors Allocated in New DAF"}),gi=(i,e,t)=>[i,e,t];function vi(i,e){if(i&1&&v(0,"div",5),i&2){let t=l();p("individualControl",t.form.controls.successor);}}function bi(i,e){i&1&&(r(0,"div",2),v(1,"npt-select",7),a()),i&2&&(c(),p("optionList",Ze(4,gi,fe(1,_i),fe(2,yi),fe(3,Ci))));}function xi(i,e){if(i&1){let t=x();r(0,"button",12),g("click",function(){u(t);let o=l(2);return f(o.save());}),m(1,"Add to plan"),a();}}function wi(i,e){if(i&1){let t=x();r(0,"button",12),g("click",function(){u(t);let o=l(2);return f(o.save());}),m(1,"Update"),a();}}function Si(i,e){if(i&1){let t=x();r(0,"div",8),h(1,xi,2,0,"button",9),h(2,wi,2,0,"button",9),r(3,"button",10),g("click",function(){u(t);let o=l();return f(o.cancel());}),m(4," Cancel"),r(5,"span",11),m(6," \xBB"),a()()();}if(i&2){let t=e.ngxObserve;c(),_(!t||!t.isSuccessor?1:-1),c(),_(t&&t.isSuccessor?2:-1);}}var ie=class Oe{constructor(e,t,n,o,s,y){this.individualFormService=t,this.actions=n,this.store=o,this.legacyPlanConfiguration=s,this.codes=y,this.successorOptions=null,this.successors$=new Q([]),this.successorAllocationInfo=new P(),this.editing=new P(),this.cancelEvent=ne
1w P(),this.selectedSuccessor$=this.store.select(T.IndividualSelected);let I=H.accountPages.find(d=>d.route===location.pathname),N=ni[location.pathname.substring(1)]?.data,b=I?.advisorSettings;N&&"legacyPlanAdvisorSettings"in N&&(b=N.legacyPlanAdvisorSettings),b||(b={include:!0,useAccessLevel:!1,useYearOfBirth:!0}),this.form=e.fromSchema({type:"object",properties:{successor:t.defineIndividual(b),chooseSuccessor:{type:"number",default:0,validators:[R.required,R.pattern("[-1]|[1-9]+[0-9]*")],errors:{pattern:"Required. Please select an option from the dropdown"}},allocation:{type:"number",validators:[R.required,R.max(100),R.min(1)],errors:{max:"Max is 100%",min:"Minimum is 1%",required:"Required. Please enter an allocation percent for this successor."}},writeNote:{type:"string",default:"",errors:{required:"Required. Please select an option."}}}});}ngOnInit(){this.successors$.pipe(L(this),Y(z)).subscribe(t=>{this.successorOptions=[{text:"Please Select",value:0},...t.filter(n=>n.isIndividual).map(n=>({text:n.name,value:n.partyId})),{text:"Add New",value:-1}];}),this.actions.pipe(ye(V),L(this)).subscribe(t=>{if(t.individual===void 0){this.clear();return;}this.edit();});let e=this.form.controls.chooseSuccessor.valueChanges.pipe(X(()=>this.form.controls.chooseSuccessor.model),de());se([this.successors$,e]).pipe(L(this),le()).subscribe(([t,n])=>{if(!t)return;let o=t.find(s=>s.partyId===n);this.form.controls.successor.enable(),this.store.dispatch(new V(o));}),this.selectedSuccessor$.pipe(E(1)).subscribe(t=>{t?this.edit():this.clear();});}ngAfterViewInit(){this.form.focusFirst();}addNew(){}edit(){this.selectedSuccessor$.pipe(E(1)).subscribe(e=>{if(!e)return;this.form.markAsDirty();let{phone:t,phoneCountryCode:n}=lt(e.phone);this.form.patchValue({successor:{accessLevel:e.accessLevel,address1:e.address1,address2:e.address2,city:e.city,country:e.country??"US",email:e.email,firstName:e.firstName,lastName:e.lastName,middleName:e.middleName,partyId:e.partyId,phone:t,phoneCountryCode:n!==""?n:this.codes.DefaultPhoneCountryCode,postalCode:e.postalCode,province:e.province,rowIndex:e.rowIndex,state:!e.state||e.state==="N/A"?"":e.state,suffix:e.suffix,title:e.title,yearOfBirth:e.yearOfBirth,accountRoleCode:e.accountRoleCode},allocation:e.percentage>0?e.percentage:void 0,writeNote:""}),this.form.controls.allocation.markAsUntouched(),this.form.controls.writeNote.markAsUntouched();let o=this.form.controls.successor;e.accountRoleCode!==B.Successor&&(o.disable(),(!e.country||e.country==="")&&(o.controls.country.enable(),o.controls.state.enable(),o.controls.province.enable())),this.form.controls.chooseSuccessor.model!==e?.partyId&&this.form.patchValue({chooseSuccessor:e.partyId??""},{emitEvent:!1}),this.editing.emit(!0);});}save(){if(this.form.validate({emitEvent:!1}),!this.form.valid)return;let e=this.form.controls.successor.model;this.selectedSuccessor$.pipe(E(1)).subscribe(t=>{if(t&&t.accountRoleCode!==B.Successor){let y=O(D(D({},t),e),{phone:re(e.phone,e.phoneCountryCode),isSuccessor:!0,percentage:this.form.controls.allocation.model||0}),I=this.form.controls.writeNote.model;I&&(y.writeNote=I),this.successorAllocationInfo.emit(y),this.reset();return;}e.partyId=t?.partyId??-1;let n="";if(e.title=e.title?e.title+" ":"",e.firstName=e.firstName?e.firstName+" ":"",e.middleName){let y=e.middleName.trim();e.middleName=y?y+(y.length===1?". ":" "):"";}else e.middleName="";e.lastName=e.lastName?e.lastName+" ":"",e.suffix=e.suffix?e.suffix+" ":"",n=e.title+e.firstName+e.middleName+e.lastName+e.suffix;let o={accessLevel:e.accessLevel,address1:e.address1,address2:e.address2,city:e.city,country:e.country,email:e.email,firstName:e.firstName,lastName:e.lastName,middleName:e.middleName,name:n,partyId:e.partyId,phone:re(e.phone,e.phoneCountryCode),postalCode:e.postalCode,province:e.province,rowIndex:e.rowIndex,state:e.state,suffix:e.suffix,title:e.title,yearOfBirth:e.yearOfBirth,option:0,percentage:this.form.controls.allocation.model||0,isIndividual:!0,isSuccessor:!0,accountRoleCode:B.Successor},s=this.form.controls.writeNote.model;s&&(o.writeNote=s),this.successorAllocationInfo.emit(o),this.reset();});}reset(){this.form.patchValue({chooseSuccessor:0}),this.clear();}clear(){this.form.patchValue({allocation:void 0,writeNote:"",successor:O(D({},this.individualFormService.emptyIndividual),{accessLevel:""})}),this.form.markAsUntouched(),this.form.markAsPristine(),this.editing.emit(!1);}cancel(){this.editing.emit(!1),this.cancelEvent.emit();}static{this.ɵfac=function(t){return new(t||Oe)(C(te),C(Jt),C(K),C(ee),C(we),C(ut));};}static{this.ɵcmp=k({type:Oe,selectors:[["","app-successors",""]],inputs:{successors$:"successors$"},outputs:{successorAllocationInfo:"successorAllocationInfo",editing:"editing",cancelEvent:"cancelEvent"},standalone:!1,attrs:hi,decls:8,vars:5,consts:[[1,"mb-4"],[3,"formGroup"],[1,"row","g-2"],["controlId","chooseSuccessor","textLabel","Choose Successor",1,"col-8",3,"optionList"],["controlId","allocation","textLabel","Allocation %","type","number",1,"col-4"],["app-advisor","",1,"px-0",3,"individualControl"],["class","form-group",4,"ngxObserve"],["controlId","writeNote","textLabel","Choose your Successor Advisor Plan",1,"col-8",3,"optionList"],[1,"form-group"],["type","button",1,"btn","btn-primary"],["type","button","aria-label","Cancel",1,"btn","btn-linklike",3,"click"],["aria-hidden","true"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(t,n){t&1&&(r(0,"div",0)(1,"form",1)(2,"div",2),v(3,"npt-select",3)(4,"npt-input",4),a(),h(5,vi,1,1,"div",5),h(6,bi,2,8,"div",2),S(7,Si,7,2,"div",6),a()()),t&2&&(c(),p("formGroup",n.form),c(2),p("optionList",n.successorOptions),c(2),_(n.form.controls.chooseSuccessor.model?5:-1),c(),_(n.legacyPlanConfiguration.useAdvisorPlanDropdown?6:-1),c(),p("ngxObserve",n.selectedSuccessor$));},dependencies:[ge,U,j,xe,Ut,Wt,be],encapsulation:2});}};ie=w([G()],ie);
1var Pi=["findACharity"],Ai=["app-charities",""],Ii=i=>["/grant-activity",i];function Li(i,e){if(i&1){let t=x();r(0,"button",7,1),g("click",function(){u(t);let o=l(2),s=q(2);return f(o.findCharity(s));}),m(2," Find a Charity "),a();}}function Ti(i,e){if(i&1&&(r(0,"a",18)(1,"span",19),m(2),a()()),i&2){let t=l(3).ngxObserve;p("routerLink",We(4,Ii,t==null?null:t.partyId))("title","Grant activity and charity details for "+(t==null?null:t.name)),c(),p("title",t==null?null:t.name),c(),A(t==null?null:t.name);}}function Ni(i,e){if(i&1&&(r(0,"span",11),m(1),a()),i&2){let t=l(3).ngxObserve;p("title",t==null?null:t.name),Te("aria-label",(t==null?null:t.name)+" will open in new window"),c(),A(t==null?null:t.name);}}function Ei(i,e){if(i&1&&h(0,Ti,3,6,"a",18)(1,Ni,2,3,"span",11),i&2){let t=l(3);_(t.permissionsService.verifyAction(t.StsActions.GRANT_FORM_VIEW)?0:1);}}function Ri(i,e){if(i&1&&(r(0,"span",11),m(1),a()),i&2){let t=l(2).ngxObserve;p("title",t==null?null:t.name),Te("aria-label",(t==null?null:t.name)+" will open in new window"),c(),A(t==null?null:t.name);}}function Di(i,e){if(i&1){let t=x();r(0,"form",6)(1,"div",8)(2,"div",9)(3,"span",10),m(4,"Charitable Beneficiary Legal Name"),a(),h(5,Ei,2,1)(6,Ri,2,3,"span",11),a(),v(7,"npt-input",12),r(8,"div",13)(9,"div",14),m(10,"\xA0"),a(),r(11,"button",15),g("click",function(){u(t);let o=l(2);return f(o.save());}),m(12),a(),r(13,"button",16),g("click",function(){u(t);let o=l(2);return f(o.cancel());}),m(14," Cancel"),r(15,"span",17),m(16," \xBB"),a()()()()();}if(i&2){let t=l().ngxObserve,n=l();p("formGroup",n.form),c(5),_(t.partyId>
1-1?5:6),c(7),ue(" ",t!=null&&t.isSuccessor?"Update":"Add to plan"," ");}}function Vi(i,e){if(i&1&&(r(0,"div",4),h(1,Li,3,0,"button",5),h(2,Di,17,3,"form",6),a()),i&2){let t=e.ngxObserve;c(),_(t?-1:1),c(),_(t?2:-1);}}function Mi(i,e){if(i&1){let t=x();r(0,"div",20)(1,"div",21),m(2,"Charity Search"),a(),r(3,"button",22),g("click",function(){let o=u(t).$implicit;return f(o.dismiss("Cross click"));}),v(4,"i",23),a()(),r(5,"div",24)(6,"div",25),g("recommend",function(o){let s=u(t).$implicit,y=l();return f(y.selectCharityModal(o,s));}),a()(),r(7,"div",26)(8,"button",15),g("click",function(){let o=u(t).$implicit;return f(o.close("Close click"));}),m(9,"Close"),a()();}if(i&2){let t=l();c(6),p("newAccount",t.newAccount);}}var ne=class $e{constructor(e,t,n,o,s,y){this.modalService=t,this.store=n,this.actions=o,this.document=s,this.permissionsService=y,this.StsActions=st,this.successors$=new Q([]),this.newAccount=!1,this.successorAllocationInfo=new P(),this.modalOpen=new P(),this.editing=new P(),this.cancelEvent=new P(),this.selectedCharity$=this.store.select(T.CharitySelected),this.form=e.fromSchema({type:"object",properties:{allocation:{type:"number",validators:[R.required,R.max(100),R.min(1)],errors:{pattern:"Must be a number",max:"Max is 100%",min:"Minimum is 1%",required:"Required. Please enter an allocation percent for this charitable beneficiary."}}}});}ngOnInit(){this.actions.pipe(ye(M),L(this)).subscribe(e=>{if(!e.charity){this.clear();return;}this.edit();}),this.selectedCharity$.pipe(E(1)).subscribe(e=>{e||this.clear(),this.edit();});}ngAfterViewInit(){this.findACharityButton&&this.findACharityButton.nativeElement.focus();}findCharity(e){this.modalOpen.emit(!0),this.modalService.open(e,{size:"xl"}).result.finally(()=>{this.modalOpen.emit(!1);});}selectCharityModal(e,t){this.selectCharity(e),t.dismiss("Select Charity");}selectCharity(e){let t=this.successors$.value.find(n=>n.partyId===e.charityId);t||(t={accessLevel:"none",address1:e.street1??"",address2:e.street2??"",city:e.city,comment:e.comment??"",country:e.countryCode??"",email:e.email??"",inCharityList:e.inCharityList??void 0,taxId:e.taxId??"",state:e.stateCode??"",postalCode:e.zipCode??"",province:e.province??"",phone:e.phone??"",website:e.website??"",name:e.name,partyId:e.charityId??-1,rowIndex:e.rowIndex,option:1,percentage:this.form.controls.allocation.model||0,isIndividual:!1,isSuccessor:!1}),this.store.dispatch(new M(t));}save(){this.form.valid&&this.selectedCharity$.pipe(E(1)).subscribe(e=>{if(!e){console.error("charity missing");return;}let t={accessLevel:"none",address1:e.address1,address2:e.address2,city:e.city,comment:e.comment,country:e.country,email:e.email,inCharityList:e.inCharityList??void 0,taxId:e.taxId,state:e.state,postalCode:e.postalCode,province:e.province,phone:e.phone,website:e.website,name:e.name,partyId:e.partyId,rowIndex:e.rowIndex,option:1,percentage:this.form.controls.allocation.model||0,isIndividual:!1,isSuccessor:!0};this.successorAllocationInfo.emit(t),this.clear();});}edit(){this.selectedCharity$.pipe(E(1)).subscribe(e=>{e&&(this.form.patchValue({allocation:e.percentage}),this.form.focusFirst(),this.editing.emit(!0));});}clear(){this.form.patchValue({allocation:void 0}),this.form.markAsUntouched(),this.form.markAsPristine(),this.editing.emit(!1);}cancel(){this.editing.emit(!1),this.cancelEvent.emit();}static{this.ɵfac=function(t){return new(t||$e)(C(te),C(At),C(ee),C(K),C(Ye),C(pt));};}static{this.ɵcmp=k({type:$e,selectors:[["","app-charities",""]],viewQuery:function(t,n){if(t&1&&J(Pi,5),t&2){let o;W(o=Z())&&(n.findACharityButton=o.first);}},inputs:{successors$:"successors$",newAccount:"newAccount"},outputs:{successorAllocationInfo:"successorAllocationInfo",modalOpen:"modalOpen",editing:"editing",cancelEvent:"cancelEvent"},standalone:!1,attrs:Ai,decls:3,vars:1,consts:[["charitySearch",""],["findACharity",""],["class","mb-4",4,"ngxObserve"],["id","charityModal"],[1,"mb-4"],["type","button","aria-label","Find a Charity will open in modal",1,"btn","btn-primary"],[3,"formGroup"],["type","button","aria-label","Find a Charity will open in modal",1,"btn","btn-primary",3,"click"],[1,"form-group","d-flex"],[1,"form-group","col-5","ps-0"],["id","charitable_beneficiary_label","aria-hidden","true",1,"form-label","m-0"],[1,"h6","d-block","pb-2","mt-3","text-truncate",3,"title"],["controlId","allocation","textLabel","Allocation %","type","number",1,"col-3","ps-0"],[1,"form-group","col-4"],[1,"pb-1"],["type","button",1,"btn","btn-primary",3,"click"],["type","button","aria-label","Cancel",1,"btn","btn-linklike",3,"click"],["aria-hidden","true"],["target","_blank","aria-label","will open in new window",1,"d-block","pb-2","mt-3","text-truncate",3,"routerLink","title"],[1,"h6",3,"title"],[1,"modal-header","justify-content-between"],[1,"h5","modal-title"],["type","button","aria-label","Close",1,"btn","btn-lg","btn-outline-primary","rounded-circle",3,"click"],[1,"fas","fa-times"],[1,"modal-body"],["app-recommend-grant-select-charity","","componentLocation","legacyPlan",3,"recommend","newAccount"],[1,"modal-footer"]],template:function(t,n){t&1&&S(0,Vi,3,2,"div",2)(1,Mi,10,1,"ng-template",3,0,_e),t&2&&p("ngxObserve",n.selectedCharity$);},dependencies:[ge,U,j,xe,dt,ei,be],encapsulation:2});}};ne=w([G()],ne);var ki=["app-legacy-plan-table",""];function $i(i,e){i&1&&(r(0,"th",16),m(1,"Action"),a()),i&2&&ae("width",9.5,"rem");}function Fi(i,e){if(i&1){let t=x();r(0,"td",17)(1,"span")(2,"button",18),g("click",function(){let o=u(t).$implicit,s=l(2);return f(s.edit(o));}),m(3,"Edit"),a(),r(4,"span",19),m(5," | "),a(),r(6,"button",18),g("click",function(){let o=u(t).$implicit,s=l(2);return f(s.remove(o));}),m(7,"Remove"),a()()();}}function Bi(i,e){i&1&&($(0,4),S(1,$i,2,2,"th",15)(2,Fi,8,0,"td",7),F());}function Gi(i,e){if(i&1&&(r(0,"th",20),m(1," Name "),a()),i&2){let t=l();ae("width",t.isNewAccount&&t.showAction?21.625:28.125,"rem");}}function Ui(i,e){if(i&1&&(r(0,"td",17)(1,"span",21),m(2,"Name"),a(),r(3,"span"),m(4),a()()),i&2){let t=e.$implicit;c(4),A(t.name);}}function ji(i,e){i&1&&(r(0,"th",22),m(1,"Designation"),a()),i&2&&ae("width",15.1875,"rem");}function Hi(i,e){if(i&1&&(r(0,"td",17)(1,"span",21),m(2,"Designation"),a(),r(3,"span"),m(4),a()()),i&2){let t=e.$implicit,n=l();c(4),A(n.getOption(t.option));}}function Yi(i,e){i&1&&(r(0,"th",23),m(1,"Percentage"),a()),i&2&&ae("width",9.75,"rem");}function qi(i,e){if(i&1&&(r(0,"td",17)(1,"span",21),m(2,"Percentage"),a(),r(3,"span"),m(4),Ke(5,"percent"),a()()),i&2){let t=e.$implicit;c(4),A(et(5,1,t.percentage/100));}}function zi(i,e){i&1&&v(0,"tr",24);}function Qi(i,e){i&1&&v(0,"tr",25);}function Xi(i,e){if(i&1){let t=x();r(0,"div")(1,"ngb-alert",26),g("closed",function(){u(t);let o=l();return f(o.removeCancel());}),r(2,"div",27)(3,"span"),m(4,"Are you sure you want to remove?"),a(),r(5,"button",28),g("click",function(){u(t);let o=l();return f(o.removeConfirm());}),m(6,"Yes"),a(),r(7,"span"),m(8,"|"),a(),r(9,"button",29),g("click",function(){u(t);let o=l();return f(o.removeCancel());}
1),m(10,"No"),a()()()();}}function Ji(i,e){if(i&1&&(r(0,"ngb-alert",37)(1,"div",27),m(2),a()()),i&2){let t=l(3);p("dismissible",!1),c(2),A(t.legacyControl.controls.totalAllocation.errorMessage);}}function Wi(i,e){if(i&1&&h(0,Ji,3,2,"ngb-alert",37),i&2){let t=l(2);_(t.legacyControl.controls.totalAllocation.errors!=null&&t.legacyControl.controls.totalAllocation.errors.pattern?0:-1);}}function Zi(i,e){if(i&1&&($(0,14),r(1,"div",30)(2,"div",31)(3,"span",32),m(4,"Remaining Allocation"),a(),r(5,"span",32),m(6),a()(),r(7,"div",33)(8,"span",34)(9,"span"),m(10,"Total"),a(),r(11,"button",35),m(12," i "),a()(),v(13,"npt-readonly",36),a(),h(14,Wi,1,1),a(),F()),i&2){let t=l();p("formGroup",t.legacyControl),c(6),ue("",100-(t.legacyControl.controls.totalAllocation.model||0),"%"),c(5),p("ngbPopover",t.legacyPlanTableTotalTooltip),c(3),_(t.legacyControl.controls.totalAllocation.errors?14:-1);}}var Ki={0:"Individual Successor",1:"Charitable Beneficiary"},Ae=class Fe{constructor(){this.dataSource=new Ce(),this.showAction=!0,this.isNewAccount=!0,this.showRemoveConfirm=!1,this.client="",this.columns=["action","name","option","percentage"],this.legacyPlanTableTotalTooltip="Allocation must be equal to 0 or 100 percent",this.editRow=new P(),this.removeRow=new P(),this.client=H.name;}ngOnInit(){this.showAction||(this.columns=["name","option","percentage"],this.showRemoveConfirm=!0);}edit(e){this.editRow.emit(e);}remove(e){this.rowToRemove=e,this.showRemoveConfirm=!0;}removeCancel(){this.table?.clearHighlight(),this.rowToRemove=void 0,this.showRemoveConfirm=!1;}removeConfirm(){this.removeRow.emit(this.rowToRemove),this.rowToRemove=void 0,this.showRemoveConfirm=!1;}sortData(e){let t=this.dataSource?.data;if(t==null||!this.dataSource)return;let n=[...t],o=e.direction==="desc"?-1:1,s=I=>""+I[e.active],y=ct;n.sort((I,N)=>o*y(s(I),s(N))),this.dataSource.data=n;}getOption(e){return Ki[+e];}static{this.ɵfac=function(t){return new(t||Fe)();};}static{this.ɵcmp=k({type:Fe,selectors:[["","app-legacy-plan-table",""]],inputs:{dataSource:"dataSource",showAction:"showAction",isNewAccount:"isNewAccount",legacyControl:"legacyControl",showRemoveConfirm:"showRemoveConfirm"},outputs:{editRow:"editRow",removeRow:"removeRow"},standalone:!1,attrs:ki,decls:21,vars:6,consts:[["table",""],[1,"table-responsive"],["id","legacy-plan-summary","tabindex","-1","role","grid","npt-table","","matSort","",1,"table","table-npt","table-borderless",3,"matSortChange","dataSource"],[1,"sr-only"],["nptColumnDef","action","alignment","left"],["nptColumnDef","name","alignment","left"],["npt-header-cell","","mat-sort-header","name",3,"width",4,"nptHeaderCellDef"],["npt-cell","",4,"nptCellDef"],["nptColumnDef","option","alignment","left"],["npt-header-cell","","mat-sort-header","option",3,"width",4,"nptHeaderCellDef"],["nptColumnDef","percentage","alignment","right"],["npt-header-cell","","mat-sort-header","percentage",3,"width",4,"nptHeaderCellDef"],["npt-header-row","",4,"nptHeaderRowDef"],["npt-row","",4,"nptRowDef","nptRowDefColumns"],[3,"formGroup"],["npt-header-cell","",3,"width",4,"nptHeaderCellDef"],["npt-header-cell",""],["npt-cell",""],["type","button",1,"btn","btn-link",3,"click"],[1,"fw-light"],["npt-header-cell","","mat-sort-header","name"],[1,"mobile-header"],["npt-header-cell","","mat-sort-header","option"],["npt-header-cell","","mat-sort-header","percentage"],["npt-header-row",""],["npt-row",""],["type","primary",3,"closed"],[1,"alert-message"],["type","button",1,"btn","btn-link","text-white","fw-bold","px-3",3,"click"],["type","button",1,"btn","btn-link","text-white","fw-light","px-3",3,"click"],["id","total-container","tabindex","-1",1,"total-container","mb-4"],[1,"allocation","remaining-allocation","d-flex","justify-content-between","align-items-center"],[1,"mx-3"],[1,"allocation","total-allocation","d-flex","justify-content-between","align-items-center","mx-3"],[1,""],["type","button","aria-label","allocation must equal tooltip","container","body",1,"info-tooltip",3,"ngbPopover"],["controlId","totalAllocation","textLabel","","append","%",1,"input-group"],["type","danger",3,"dismissible"]],template:function(t,n){if(t&1){let o=x();r(0,"div",1)(1,"table",2,0),g("matSortChange",function(y){return u(o),f(n.sortData(y));}),r(3,"caption",3),m(4," Legacy Plan Summary "),a(),h(5,Bi,3,0,"ng-container",4),$(6,5),S(7,Gi,2,2,"th",6)(8,Ui,5,1,"td",7),F(),$(9,8),S(10,ji,2,2,"th",9)(11,Hi,5,1,"td",7),F(),$(12,10),S(13,Yi,2,2,"th",11)(14,qi,6,3,"td",7),F(),r(15,"thead"),S(16,zi,1,0,"tr",12),a(),r(17,"tbody"),S(18,Qi,1,0,"tr",13),a()()(),h(19,Xi,11,0,"div"),h(20,Zi,15,4,"ng-container",14);}t&2&&(c(),p("dataSource",n.dataSource),c(4),_(n.showAction?5:-1),c(11),p("nptHeaderRowDef",n.columns),c(2),p("nptRowDefColumns",n.columns),c(),_(n.showRemoveConfirm&&n.showAction?19:-1),c(),_(n.legacyControl&&n.showAction?20:-1));},dependencies:[U,j,qt,ve,St,Rt,Dt,Vt,Mt,kt,Ft,Bt,Gt,Ot,$t,Tt,Nt,it],styles:[`@font-face{font-family:proxima-nova;src:url("./media/ProximaNova-Regular-62CGAWL5.otf") format("opentype");font-weight:400;font-style:normal}@font-face{font-family:proxima-nova;src:url("./media/ProximaNova-Semibold-JTSVL5LF.otf") format("opentype");font-weight:600;font-style:normal}[app-legacy-plan-table] .total-allocation .input-group{width:auto;margin:0}[app-legacy-plan-table] .total-allocation .input-group .form-control{font-size:1rem;text-align:right;font-weight:700;border:none;box-shadow:none;padding:1rem;color:#000}[app-legacy-plan-table] .total-allocation .input-group .form-control.is-invalid{background-position:right calc(4em + .1875rem) center}[app-legacy-plan-table] .total-allocation .input-group .form-control:focus{border:none;box-shadow:none}[app-legacy-plan-table] .total-allocation .invalid-feedback{display:none}[app-legacy-plan-table] .input-group{flex-wrap:nowrap}[app-legacy-plan-table] .input-group .input-group-text{padding:0;position:absolute;top:0;bottom:0;right:0;margin-left:-15px;background-color:transparent;border:none;z-index:3;font-weight:700}[app-legacy-plan-table] .input-group>.form-control:not(:last-child){border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}[app-legacy-plan-table] .allocation{height:60px;font-weight:700;padding:0 15px}[app-legacy-plan-table] .allocation npt-readonly{position:relative}[app-legacy-plan-table] .total-allocation{text-transform:uppercase}[app-legacy-plan-table] .remaining-allocation{background:#a3bccc} 2`],encapsulation:2});}};Ae=w([G()],Ae);var en=["acc"],tn=["app-legacy-plan",""],Ge=(i,e)=>({fas:!0,"fa-plus":i,"fa-minus":e});function nn(i,e){i&1&&(r(0,"span")(1,"button",15),m(2," i "),a()());}function on(i,e){if(i&1&&(r(0,"div",11),v(1,"span",14),h(2,nn,3,0,"span"),a()),i&2){let t=l();c(),p("data",t.legacyPlanInfo),c(),_(t.legacyPlanConfiguration.showMyLegacyPlanTooltip?2:-1);}}function an(i,e){if(i&1&&v(0,"div",20),i&2){let t=l(3);p("data",t.legacyPlan.additional);}}function rn(i,e){if(i&1&&(r(0,"div",16)(1,"h3",18),m(2,"My Legacy Plan"),a(),r(3,"div",19),m(4),a(),h(5,an,1,1,"div",20),a()),i&2){let t=l(2);c(4),A(t.legacyPlan.label),c(),_(t.legacyPlan.additional?5:-1);}}function ln(i,e){if(i&1&&Xe(0,17),i&2){l(2);let t=q(4);p("ngTemplateOutlet",t);}}function cn(i,e){if(i&1&&(h(0,rn,6,2,"div",16),h(1,ln,1,1,"ng-container",17)),i&2){let t=l();_(t.legacyPlanConfiguration.showMyLegacyPlanInfo?0:-1),c(),_(!t.legacyPlanConfiguration.showMyLegacyPlanInfo||t.legacyPlan.showSuccessorTable?1:-1);}}function sn(i,e){if(i&1){let t=x();r(0,"div",21),g("editRow",function(o){u(t);let s=l();return f(s.edit(o));})("removeRow",function(o){u(t);let s=l();return f(s.remove(o));}),a();}if(i&2){let t=l();p("dataSource",t.dataSource)("legacyControl",t.legacyControl)("showAction",!0)("isNewAccount",t.newAccount);}}function dn(i,e){if(i&1&&(r(0,"button",25)(1,"span",33),m(2),a(),v(3,"i"),a()),i&2){l();let t=q(4),n=l();c(2),A(n.individualSuccessorLabel),c(),pe(he(3,Ge,t.collapsed,!t.collapsed));}}function mn(i,e){if(i&1&&(r(0,"div",26)(1,"span",33),m(2),a()()),i&2){let t=l(2);c(2),A(t.individualSuccessorLabel);}}function pn(i,e){if(i&1){let t=x();r(0,"div",34,4),g("successorAllocationInfo",function(o){u(t);let s=l(2);return f(s.update(o));})("editing",function(o){u(t);let s=l(2);return f(s.updateEditing(s.legacyControl.controls.successorEdit,o));})("cancelEvent",function(){u(t);let o=l(2);return f(o.collapse("successors"));}),a();}if(i&2){let t=l(2);p("successors$",t.successors$);}}function un(i,e){if(i&1&&(r(0,"button",25)(1,"span",33),m(2),a(),v(3,"i"),a()),i&2){l();let t=q(14),n=l();c(2),A(n.charitableBeneficiaryLabel),c(),pe(he(3,Ge,t.collapsed,!t.collapsed));}}function fn(i,e){if(i&1&&(r(0,"div",26)(1,"span",33),m(2),a()()),i&2){let t=l(2);c(2),A(t.charitableBeneficiaryLabel);}}function hn(i,e){if(i&1){let t=x();r(0,"div",35,5),g("successorAllocationInfo",function(o){u(t);let s=l(2);return f(s.update(o));})("modalOpen",function(o){u(t);let s=l(2);return f(s.updateModal(o));})("editing",function(o){u(t);let s=l(2);return f(s.updateEditing(s.legacyControl.controls.charityEdit,o));})("cancelEvent",function(){u(t);let o=l(2);return f(o.collapse("charities"));}),a();}if(i&2){let t=l(2);p("successors$",t.successors$)("newAccount",t.newAccount);}}function _n(i,e){if(i&1&&(r(0,"div",38)(1,"a",39),m(2," Download Form "),a()()),i&2){let t=l(4);c(),p("href",t.dafUpdateUrl,qe);}}function yn(i,e){if(i&1&&(r(0,"div",36)(1,"span",37),m(2,"This option cannot currently be activated online."),a(),m(3," If you wish to include an endowment, whether as part of your Legacy Plan or as the sole option, download the form below. You may complete this form to indicate the entirety of your Legacy Plan and submit it to NPT using the instructions provided. "),a(),h(4,_n,3,1,"div",38)),i&2){let t=l(3);c(4),_(t.dafUpdateUrl!==""?4:-1);}}function Cn(i,e){if(i&1&&(r(0,"div",31,6)(2,"div",24)(3,"button",25)(4,"span",33),m(5,"Endowment Program"),a(),v(6,"i"),a(),r(7,"div",27),m(8," The Endowment option allows you to designate one or more charitable beneficiaries to receive support in the form of a recurring grant. DAF accounts with minimum charitable assets of $100,000 are eligible to establish an endowment."),v(9,"br")(10,"br"),a()(),r(11,"div",28)(12,"div",29),S(13,yn,5,1,"ng-template"),a()()()),i&2){let t=q(1);p("collapsed",!0),c(6),pe(he(3,Ge,t.collapsed,!t.collapsed));}}function gn(i,e){if(i&1&&(r(0,"div",32,7)(2,"div",24)(3,"div",40)(4,"div",33),me(5,10),a()(),v(6,"div",41),a(),v(7,"div",29),a()),i&2){let t=l(2);
2p("collapsed",!1),c(6),p("data",t.customLegacyPlanDescription);}}function vn(i,e){if(i&1){let t=x();$(0,13),r(1,"div",22,1),g("shown",function(o){u(t);let s=l();return f(s.panelShown(o));})("hidden",function(o){u(t);let s=l();return f(s.panelHidden(o));}),r(3,"div",23,2)(5,"div",24),h(6,dn,4,6,"button",25)(7,mn,3,1,"div",26),r(8,"div",27),me(9,8),a()(),r(10,"div",28)(11,"div",29),S(12,pn,2,1,"ng-template"),a()()(),r(13,"div",30,3)(15,"div",24),h(16,un,4,6,"button",25)(17,fn,3,1,"div",26),r(18,"div",27),me(19,9),a()(),r(20,"div",28)(21,"div",29),S(22,hn,2,2,"ng-template"),a()()(),h(23,Cn,14,6,"div",31),h(24,gn,8,2,"div",32),a(),F();}if(i&2){let t=l();p("formGroup",t.legacyControl),c(3),p("collapsed",!0),c(3),_(t.legacyControl.controls.successorEdit.model?7:6),c(7),p("collapsed",!0),c(3),_(t.legacyControl.controls.charityEdit.model?17:16),c(7),_(t.useEndowmentOption!==!1?23:-1),c(),_(t.legacyPlanConfiguration.showCustomLegacySection?24:-1);}}var Ie=class Be{set isDirty(e){this.isDirty$||(this.isDirty$=e);}get isDirty(){return this.isDirty$;}constructor(e,t,n,o,s,y,I,N){this.store=e,this.accountService=t,this.actions$=n,this.formBuilder=o,this.newPartyIdService=s,this.viewportScroller=y,this.ngZone=I,this.legacyPlanConfiguration=N,this.dataSource=new Ce(),this.dataBackup=[],this.showRemoveConfirm=!1,this.allocationTotal=0,this.customLegacyPlanDescription="Custom Legacy Plans cannot currently be activated online. If you wish to establish a Legacy Plan that extends beyond NPT's standard options, you may contact NPT to discuss creating a custom Legacy Plan. Please contact us at [email protected] or (888) 878-7900.",this.client="",this.useEndowmentOption=H.useEndowmentOption,this.legacyPlanInfo="Here you can update information for your Legacy Plan. Any changes made will take effect immediately. **Please note**: Endowments and Custom Legacy Plans cannot be activated or edited online. If you wish to establish an Endowment, design a Custom Legacy Plan or edit an existing Endowment/Custom Plan, please reach out to NPT at [email protected] or (888) 878-7900 for assistance.",this.individualSuccessorLabel="Individual Successors",this.charitableBeneficiaryLabel="Charitable Beneficiaries",this.dafUpdateUrl="https://www.nptrust.org/donor-advised-fund-update-npt/",this.legacyPlan=this.legacyPlanConfiguration.lookupLegacyPlanInfo(Kt.NoLegacyPlan),this.successors$=new Q([]),this.legacyUpdate=new P(),this.modalOpen=new P(),this.validateLegacy=b=>{let d=this.legacyControl;if(!d)return null;let oe=d.model;return this.successorComponent&&oe.successorEdit?(this.successorComponent.form.validate(),this.successorComponent.form.invalid?{editing:!0,section:this.individualSuccessorLabel}:{allocation:{editing:!0},section:this.individualSuccessorLabel}):this.charityComponent&&oe.charityEdit?{allocation:{editing:!0},section:this.charitableBeneficiaryLabel}:d.controls?.include&&d.controls.include.model&&this.dataSource.data.length<=0?{legacyPlan:!0,section:"Legacy Plan"}:null;},this.panelShown=b=>{b==="charities"&&(this.viewportScroller.setOffset([0,window.innerHeight-window.innerHeight/2-oi.scrollOffset]),this.viewportScroller.scrollToAnchor("charities-header"));},this.panelHidden=b=>{b==="successors"?this.store.dispatch(new V(void 0)):b==="charities"&&this.store.dispatch(new M(void 0));},this.viewportScroller.setOffset([0,window.innerHeight-window.innerHeight/2]),this.accountRelationships$=this.store.select(Me.apiDafAccountsRelationshipsGet).pipe(L(this),X(b=>De(b)),le(),Le(1)),this.accountSuccessors$=this.store.select(Me.apiDafAccountsSuccessorsGet).pipe(L(this),X(b=>De(b)),le(),Le(1)),this.client=H.name;}ngOnInit(){this.successors$.pipe(L(this),Y(z)).subscribe(e=>{this.dataSource.data=e.filter(t=>t.isSuccessor),this.updateTotal(),this.legacyControl.controls.totalAllocation.markAsTouched(),this.legacyControl.controls.totalAllocation.updateValueAndValidity();}),!this.newAccount&&(this.accountService.currentAccount$.pipe(Y(z)).pipe(L(this)).subscribe(e=>{let t=e.fundId;this.legacyPlanConfiguration.showMyLegacyPlanInfo&&(this.legacyPlan=this.legacyPlanConfiguration.lookupLegacyPlanInfo(e.successionPlanTypeCode),this.legacyControl.patchValue({successorEdit:!this.legacyPlan.canEditOnline,charityEdit:!this.legacyPlan.canEditOnline})),this.store.dispatch(new ai({accountId:t})),this.store.dispatch(new ri({accountId:t}));}),this.actions$.pipe(L(this),ot(Ve,li),Ue(e=>
2{e.action instanceof Ve&&(this.loadSuccessorRelationshipData(),this.legacyControl.markAsUntouched(),this.legacyControl.markAsPristine());})).subscribe(),this.loadSuccessorRelationshipData());}ngAfterViewInit(){this.legacyControl.setValidators([this.validateLegacy]),this.legacyControl.updateValueAndValidity(),!this.newAccount&&this.legacyControl.valueChanges.pipe(L(this),X(()=>this.legacyControl.dirty),de()).subscribe(e=>{this.isDirty$.next(e);});}loadSuccessorRelationshipData(){se([this.accountRelationships$.pipe(Y(z)),this.accountSuccessors$.pipe(Y(z))]).pipe(E(1)).subscribe(([e,t])=>{this.successors$.next(this.combineInfoArray(e,t)),this.dataBackup=[...this.successors$.value];});}edit(e){this.acc.collapseAll(),e.isIndividual?(this.store.dispatch(new V(e)),this.acc.expand("successors")):(this.store.dispatch(new M(e)),this.acc.expand("charities"));}updateEditing(e,t){e.setValue(t);}remove(e){this.rowToRemove=e,this.rowToRemove&&(this.update(O(D({},this.rowToRemove),{isSuccessor:!1,percentage:-1})),this.rowToRemove=void 0,this.showRemoveConfirm=!1);}overrideData(e){this.successors$.next(this.convertIndividualForm(e));}update(e){let t=this.successors$.value;if(!t)return;if(e.partyId===-1){let s=this.newPartyIdService.getNextId();e.rowIndex=`${e.accountRoleCode}${s}`,e.partyId=s;}let n=!0,o=t.map(s=>s.partyId===e.partyId?(n=!1,e):s);n&&o.push(e),this.table?.clearHighlight(),this.successors$.next(o),this.legacyControl.controls.totalAllocation.markAsTouched(),this.legacyControl.controls.totalAllocation.updateValueAndValidity(),this.legacyUpdate.emit(o),setTimeout(()=>{this.acc.collapseAll(),this.viewportScroller.setOffset([0,200]),this.viewportScroller.scrollToAnchor("legacy-plan-summary"),this.viewportScroller.setOffset([0,window.innerHeight-window.innerHeight/2]);},1);}updateTotal(){let e=0;this.dataSource.data.forEach(t=>{e+=t.percentage;}),this.legacyControl.patchValue({totalAllocation:e});}cancel(){this.successors$.next([...this.dataBackup]),this.legacyControl.markAsUntouched(),this.legacyControl.markAsPristine();}updateModal(e){this.modalOpen.emit(e);}combineInfoArray(e,t){let n=[];return e.forEach(o=>{if(o.accountRoleCode===B.SecondaryAdvisor||o.accountRoleCode===B.Successor||o.accountRoleCode===B.CharitableBenficiary){let s=t.find(y=>y.partyId===o.partyId);n.findIndex(y=>y.partyId===o.partyId)===-1&&n.push(this.combineInfo(o,s));}}),n;}combineInfo(e,t){let n=t?.name;return n||(n=(e.title?e.title+" ":"")+(e.firstName?e.firstName+" ":"")+(e.middleName?e.middleName+" ":"")+(e.lastName?e.lastName+" ":"")+(e.suffix?e.suffix+" ":"")),{accountRoleCode:e.accountRoleCode,address1:e.address1,address2:e.address2,city:e.city,company:e.company,country:e.country,email:e.email,firstName:e.firstName,isIndividual:e.isIndividual,lastName:e.lastName,middleName:e.middleName,name:n,partyId:e.partyId,phone:e.phone,postalCode:e.postalCode,province:e.province,rowIndex:e.rowIndex,state:e.state,suffix:e.suffix,title:e.title,yearOfBirth:e.yearOfBirth,option:t?.option??(e.isIndividual===!0?0:1),percentage:t?.percentage??0,isSuccessor:t!==void 0,accessLevel:e?.accessLevel};}convertIndividualForm(e){let t=[];return e.forEach(n=>{let o=(n.title?n.title+" ":"")+(n.firstName?n.firstName+" ":"")+(n.middleName?n.middleName+" ":"")+(n.lastName?n.lastName+" ":"")+(n.suffix?n.suffix+" ":"");t.push({address1:n.address1,address2:n.address2,city:n.city,country:n.country,email:n.email,firstName:n.firstName,isIndividual:!0,lastName:n.lastName,middleName:n.middleName,name:o,partyId:n.partyId,phone:re(n.phone,n.phoneCountryCode),phoneCountryCode:n.phoneCountryCode,postalCode:n.postalCode,province:n.province,rowIndex:n.rowIndex,state:n.state,suffix:n.suffix,title:n.title,yearOfBirth:n.yearOfBirth===0?void 0:Number(n.yearOfBirth),option:0,percentage:0,writeNote:"",isSuccessor:!1,accessLevel:n.accessLevel});}),t;}buildDb(e){let t=this.legacyControl.controls?.include;if(t&&!t.model)return;let n=[],o,s,y,I=[],N=!1;this.dataSource.data.length===0?(N=!0,I=this.dataBackup):I=this.dataSource.data,I.forEach(d=>{if(!d.rowIndex||!d.isSuccessor)return;let oe="individual";d.isIndividual||(oe="accountCharity"),n.push({id:d.rowIndex,type:"successor"}),o=O(D({},o),{[d.rowIndex]:{id:d.rowIndex,type:"successor",attributes:{name:d.name,partyId:d.partyId,percentage:d.percentage,option:0,writeNote:d.writeNote},relationships:{party:{id:d.rowIndex,type:oe}},delete:N}}),d.isIndividual?s=O(D({},s),{[d.rowIndex]:{id:d.rowIndex,type:"individual",attributes:{address1:d.address1,address2:d.address2,city:d.city,country:d.country,email:d.email,firstName:d.firstName,lastName:d.lastName,middleName:d.middleName,partyId:d.partyId,phone:d.phone,postalCode:d.postalCode,province:d.province,state:d.state,suffix:d.suffix,title:d.title,yearOfBirth:d.yearOfBirth}}}):y=O(D({},y),{[d.rowIndex]:{id:d.rowIndex,type:"accountCharity",attributes:{name:d.name,charityId:d.partyId,city:d.city??"",comment:d.comment,countryCode:d.country,email:d.email,inCharityList:d.inCharityList,phone:d.phone,province:d.province,rowIndex:d.rowIndex,stateCode:d.state,street1:d.address1??"",street2:d.address2,taxId:d.taxId,website:d.website,zipCode:d.postalCode}}});});let b={account:e?{[e]:{id:""+e,type:"account",attributes:{fundId:e},relationships:{successors:n}}}:{newAccount:{id:"newAccount",type:"account",attributes:{fundId:-1},relationships:{successors:n}}}};return o&&(b.successor=o),s&&(b.individual=s),y&&(b.accountCharity=y),b;}collapseAll(){this.acc.collapseAll();}collapse(e){this.acc.collapse(e);}canEditPlanOnline(){return!this.legacyPlanConfiguration.showMyLegacyPlanInfo||(this.legacyPlan?.canEditOnline??!1);}get accountPages(){return H.accountPages;}static{this.ɵfac=function(t){return new(t||Be)(C(ee),C(ft),C(K),C(te),C(ti),C(ht),C(ze),C(we));};}static{this.ɵcmp=k({type:Be,selectors:[["","app-legacy-plan",""]],viewQuery:function(t,n){if(t&1&&(J(en,5),J(ie,5),J(ne,5)),t&2){let o;W(o=Z())&&(n.acc=o.first),W(o=Z())&&(n.successorComponent=o.first),W(o=Z())&&(n.charityComponent=o.first);}},inputs:{newAccount:"newAccount",legacyControl:"legacyControl",isDirty:"isDirty"},outputs:{legacyUpdate:"legacyUpdate",modalOpen:"modalOpen"},standalone:!1,attrs:tn,decls:6,vars:3,consts:()=>{let e;e=" This option allows you to designate trusted friends or family members to
2succeed you in an advisory capacity on your donor-advised fund account. You may name up to four people as individual successors. Each person named will become the Primary Advisor of a new DAF account which will be funded from the remaining assets in your DAF account, based on the percentage allocation you indicate here. Individual successors must be at least 18 years of age at the time of Legacy Plan activation. ";let t;t="You may designate one or more charities to receive all or a portion of your DAF assets as a one-time payment.";let n;return n="Custom Legacy Plan",[["legacytable",""],["acc","ngbAccordion"],["successors","ngbAccordionItem"],["charities","ngbAccordionItem"],["successorComponent",""],["charityComponent",""],["endowment","ngbAccordionItem"],["custom","ngbAccordionItem"],e,t,n,[1,"d-inline-flex","mb-4"],["app-npt-fieldset-required-legend",""],[3,"formGroup"],["markdown","",3,"data"],["type","button","aria-label","legacy plans later tooltip","ngbPopover","You can return to this page anytime to create or update your Legacy Plan.","container","body",1,"info-tooltip"],[1,"legacy-plan-section"],[3,"ngTemplateOutlet"],[1,"title"],[1,"label"],["markdown","",1,"additional",3,"data"],["app-legacy-plan-table","",3,"editRow","removeRow","dataSource","legacyControl","showAction","isNewAccount"],["ngbAccordion","",1,"plusMinus","bordered",3,"shown","hidden"],["ngbAccordionItem","successors",3,"collapsed"],["ngbAccordionHeader",""],["ngbAccordionToggle","","type","button",1,"pb-4"],[1,"d-flex","justify-content-between"],[1,"px-0"],["ngbAccordionCollapse",""],["ngbAccordionBody",""],["ngbAccordionItem","charities",3,"collapsed"],["ngbAccordionItem","endowment",3,"collapsed"],["ngbAccordionItem","custom",3,"collapsed"],[1,"section-title"],["app-successors","",3,"successorAllocationInfo","editing","cancelEvent","successors$"],["app-charities","",3,"successorAllocationInfo","modalOpen","editing","cancelEvent","successors$","newAccount"],[1,"pb-4","px-0"],[1,"fw-bold"],[1,"form-group","col-3","ps-0"],["aria-label","Download Form will open in new tab","target","_blank",1,"btn","btn-primary",3,"href"],[1,"d-flex","justify-content-between","pb-4"],["markdown","",1,"px-0",3,"data"]];},template:function(t,n){t&1&&(h(0,on,3,2,"div",11),v(1,"div",12),h(2,cn,2,2),S(3,sn,1,4,"ng-template",null,0,_e),h(5,vn,25,7,"ng-container",13)),t&2&&(_(n.newAccount?-1:0),c(2),_(n.newAccount?-1:2),c(3),_(n.legacyControl?5:-1));},styles:['@font-face{font-family:proxima-nova;src:url("./media/ProximaNova-Regular-62CGAWL5.otf") format("opentype");font-weight:400;font-style:normal}@font-face{font-family:proxima-nova;src:url("./media/ProximaNova-Semibold-JTSVL5LF.otf") format("opentype");font-weight:600;font-style:normal}.legacy-plan-section[_ngcontent-%COMP%]{border-top:1px solid #eb6a22}.legacy-plan-section[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{padding:1.25rem 0 .5rem;font-family:proxima-nova,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-size:1.25rem;font-weight:300;color:#eb6a22;text-align:left}.legacy-plan-section[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:.9375rem;font-weight:500;padding-bottom:.75rem}.legacy-plan-section[_ngcontent-%COMP%] .additional[_ngcontent-%COMP%]{padding-bottom:.75rem}']});}};Ie=w([G()],Ie);var Sa=(()=>{class i{static{this.ɵfac=function(n){return new(n||i)();};}static{this.ɵmod=Qe({type:i});}static{this.ɵinj=He({imports:[nt,_t,at.forFeature([T]),Qt,Xt,wt,Lt,Pt,It,Yt,Ht,mt,Et,Zt,ii,zt,Se]});}}return i;})();Je(Ie,function(){return[tt,U,j,xt,bt,vt,gt,yt,Ct,ve,jt,Se,ie,ne,Ae];},[]);export{Ae as a,Ie as b,Sa as c};/**i18n:ebcde1112beafe08123b635c06bd9b6a1d16a9866d80b324bda367d488b4be78*/
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.