PageSourceSearch

https://jpmgiving.org/main-DI37ZJUC.js

js jpmgiving.org collected 2026-10-04 07:47:23 UTC 245,740 bytes, 5 lines download raw bytes

1import{a as rc,b as ac}from"./chunk-FW7G3YEH.js";import{a as oc}from"./chunk-UREZRFZC.js";import{a as tc}from"./chunk-ZFLNF4QQ.js";import{a as ic,b as nc}from"./chunk-TEHWFL67.js";import{a as El,b as Tl,c as Pl,d as Nl,e as kl,f as Ol,g as Xl,h as Zl}from"./chunk-UQHPJYMX.js";import{a as Ql}from"./chunk-UZI2Q4Z2.js";import{a as Dl}from"./chunk-Q7ACR5NK.js";import{b as lo,c as Yl}from"./chunk-OZE6ML2X.js";import{b as jl,d as Gl}from"./chunk-IL27KZAP.js";import{a as ql}from"./chunk-GRDN3HOB.js";import{a as Rl}from"./chunk-LWI2FSTI.js";import{a as Il}from"./chunk-G7COPEUL.js";import{a as Ll}from"./chunk-BVP55GVU.js";import{a as Wl}from"./chunk-MMFA62MP.js";import"./chunk-GPSDEUSP.js";import{a as dl,b as pl,c as ml,d as fl,f as Zn,g as yl,h as rn,i as Cl,j as eo,k as bl,l as io}from"./chunk-OCDP7S2Y.js";import{c as hl}from"./chunk-QXSSOHLO.js";import{a as vl}from"./chunk-LKNGUAD5.js";import{a as Li}from"./chunk-LRP66V2F.js";import{a as Xs}from"./chunk-AS2R7BG4.js";import{a as ul}from"./chunk-R45WKETC.js";import"./chunk-BY4IAZQZ.js";import"./chunk-UVCNUNKH.js";import{a as co}from"./chunk-PUFFAFW5.js";import{b as Al,d as wl}from"./chunk-4YPL57HO.js";import{a as ec}from"./chunk-XZ7BYVSE.js";import{a as si,b as Jl}from"./chunk-B4SMPXFH.js";import{a as po}from"./chunk-ETLAXSNV.js";import{a as Fl}from"./chunk-7I3N2WBJ.js";import{a as so}from"./chunk-UCRHNCA5.js";import{a as oo}from"./chunk-YJNQF7PP.js";import{a as Vl,b as Hl,c as Bl,e as $l}from"./chunk-QW3DM6SO.js";import{a as Ul}from"./chunk-LODH2VB2.js";import{a as Ie}from"./chunk-WSXCVANV.js";import{a as Ml}from"./chunk-EIPSMKCP.js";import{k as _l,l as Ui}from"./chunk-SDJP7OUR.js";import{a as qn,b as Kt,c as Wt,d as Yn,e as rl,f as al,g as sl,h as qt,i as Yt,j as Qt,k as Xt,l as Zt,m as Jt,n as ei,o as ti,p as ii,q as ni,t as ll,u as wt}from"./chunk-JLJMJNMX.js";import"./chunk-LTFIGRR5.js";import"./chunk-6XRJPOQE.js";import{b as Qs,d as Hn,e as xr,f as Ce}from"./chunk-S6WNTEBK.js";import{a as Ke,b as rt}from"./chunk-RIPVM3Y7.js";import{c as ao}from"./chunk-CNRQOZIY.js";import{b as no}from"./chunk-7UKNNSMO.js";import{b as ro}from"./chunk-KFLTTXSQ.js";import{c as Vn}from"./chunk-YF76TFDI.js";import{a as Mt,b as ai,c as xl}from"./chunk-NORHPCD2.js";import{a as Fi}from"./chunk-4XCJARQ2.js";import"./chunk-SVVMXD2K.js";import{b as ri,c as Qn,d as Ri,f as Jn}from"./chunk-X3IVIWRT.js";
1import{a as ki,b as Xn,c as Et}from"./chunk-SFWKY5RY.js";import{b as Ne}from"./chunk-WEQVQUGQ.js";import{$b as Mi,$c as on,$f as Pr,A as vr,Ac as Kn,B as en,Bc as Wn,C as Es,Ci as Vc,D as Mn,Dc as Gt,Di as pe,E as Ts,Ea as Us,Eb as kt,Ei as Hc,F as On,Fb as St,G as Ps,Ga as Vs,Gi as Bc,H as Ds,Hi as U,I as yr,J as ae,Jb as se,Jc as el,Ka as Hs,Kb as js,Kc as tl,L as ge,Lc as il,Lh as uo,M as $t,Mb as Gs,Me as fc,Mh as kc,N as B,Ne as hc,Nh as Mc,O as Ns,Oc as Oi,Oh as Hi,Pd as Er,Qc as zt,Qd as Tr,R as Cr,Rd as cc,Sb as zs,Sc as nl,Sd as dc,Tb as Ge,Tc as ol,Td as pc,U as Ni,Vb as Un,W as tn,Wb as ze,Wd as li,Xd as Vi,Yb as At,Yc as oi,Yg as Ic,Z as br,Zc as cl,_ as Is,_b as Ys,_c as ct,_e as gc,_f as wc,a as K,ac as Bn,ad as gl,ag as Ec,ai as Oc,b as mt,ba as Se,bd as Ar,bg as Tc,bi as Lc,c as _s,ca as xe,cd as to,cg as Dr,ci as Rc,d as vs,dd as Sl,dg as Pc,e as ys,ed as zl,ef as _c,f as Bt,fa as ks,fd as Kl,ff as vc,g as gr,gc as at,gf as yc,h as Cs,hf as Cc,i as hi,ii as Fc,j as In,k as Zi,kc as st,kg as Dc,ki as fo,la as Ms,lf as bc,lg as Nr,li as an,m as kn,mg as Nc,n as je,nc as lt,nd as H,o as bs,qd as wr,qe as mc,r as Ss,rd as mo,sd as sc,si as Uc,tb as jt,td as le,ti as ho,u as xs,ua as Sr,ub as Bs,uc as Zs,uf as Sc,va as Os,vb as $s,vc as Js,vf as xc,vi as Bi,w as As,wa as Ls,wc as $n,wd as lc,wf as Ac,x as ws,xa as Rs,xc as jn,y as Ji,ya as Fs,yc as Gn,z as _r,zc as zn,ze as uc}from"./chunk-H5PKDTDU.js";import"./chunk-2GBIE6TO.js";import{a as G,b as S}from"./chunk-DJMOCURK.js";import{$a as vt,$b as nt,$c as Tn,A as _e,Ac as $e,Ad as Ln,Ba as Ut,Bb as Qe,Bc as X,Ca as Vt,Cb as Pe,Cc as Me,Da as rs,Db as De,Dc as yt,Dd as Ks,Eb as f,Ec as Ct,Fb as s,Fd as Ws,Gb as l,Gd as Rn,Hb as C,Hd as Ii,I as es,Id as qs,Jd as xt,K as ve,Kd as Re,Lb as ee,Ld as Fn,Mb as te,Mc as cs,Md as nn,Nb as wn,O as xn,Pb as L,Q as Dt,Ra as fr,S as pt,Tb as Le,Tc as ds,Ub as x,V as ie,Va as Be,Vc as bt,Wb as u,Xa as Ti,Y as ts,Za as c,_ as is,_a as An,_b as it,a as Y,ac as ot,ad as Pi,b as Te,ba as Ai,bc as j,cc as ye,d as Za,dc as Ve,e as bn,ea as Ft,eb as as,ec as Xe,ed as ps,fa as wi,fc as p,ga as J,gb as v,gc as T,gd as Ht,ha as Ei,hc as W,ic as En,ja as Q,jb as M,ka as ur,kb as ue,kd as ms,ld as us,md as Pn,n as Sn,na as oe,o as _t,oa as me,pa as tt,pb as R,qd as hr,ra as re,rc as Z,rd as fs,sa as he,sb as Qi,sc as be,sd as Di,tc as Nt,td as Dn,u as $,uc as It,ud as Nn,vb as ce,vc as ls,vd as hs,w as Ja,wa as ns,wb as ss,wd as gs,xa as w,xb as g,ya as E,yb as Xi,z,za as os,zb as _,zc as P}from"./chunk-IRULGOVW.js";var go=(()=>{class i{constructor(e,n){let o=e.defaultView;if(!o)throw new Error("not on page");let r=new _t(o.scrollY>100);this.scrollHeader$=r.asObservable(),n.runOutsideAngular(()=>{o?.addEventListener("scroll",()=>{let a=o.scrollY,d=r.value,m=d;a>100?m=!0:a<10&&(m=!1),d!==m&&n.run(()=>{r.next(m);});});}),H.stickyHeader&&e.addEventListener("focusin",()=>{let a=e.activeElement,d=a?.getBoundingClientRect(),m=e.getElementById("sticky-header");d==null||m==null||m.contains(a)||d.top<m.clientHeight&&o.scrollBy(0,d.top-m.clientHeight-7);});}static{this.ɵfac=function(n){return new(n||i)(re(Vt),re(vt));};}static{this.ɵprov=oe({token:i,factory:i.ɵfac,providedIn:"root"});}}return i;})();var Hp=["app-dashboard-sub-nav",""];function Bp(i,t){if(i&1&&(s(0,"a",6,0)(2,"span",7),p(3),l()()),i&2){let e=t.$implicit,n=j(1),o=u();f("routerLink",e.route)("routerLinkActiveOptions",o.routerLinkActiveOptions),ce("aria-current",n.isActive?"page":void 0),c(3),T(e.title);}}var _o=class Ir{constructor(){this.accountOpeningDashboardPages=H.subNavMenuItems,this.subNavClass=!0,this.pages=[],this.routerLinkActiveOptions={exact:!1};}set routeMatch(t){this.routerLinkActiveOptions={exact:t==="exact"};}static{this.ɵfac=function(e){return new(e||Ir)();};}static{this.ɵcmp=M({type:Ir,selectors:[["","app-dashboard-sub-nav",""]],hostVars:2,hostBindings:function(e,n){e&2&&Ve("dashboard-sub-nav",n.subNavClass);},inputs:{pages:"pages",routeMatch:"routeMatch"},standalone:!1,attrs:Hp,decls:7,vars:0,consts:[["dashboardSubnav","routerLinkActive"],[1,"dashboard-sub-nav-full-bar"],[1,"container"],[1,"row","d-none","d-lg-block"],[1,"col"],["aria-label","Account",1,"d-flex","flex-wrap"],["routerLinkActive","active",1,"dashboard-sub-nav-item",3,"routerLink","routerLinkActiveOptions"],[1,"dashboard-sub-nav-link","mx-4"]],template:function(e,n){e&1&&(s(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"nav",5),Pe(5,Bp,4,4,"a",6,Qe),l()()()()()),e&2&&(c(5),De(n.pages));},dependencies:[Re,Fn],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}.dashboard-sub-nav-item[_ngcontent-%COMP%]{color:#000;padding-bottom:1rem}.dashboard-sub-nav-item.active[_ngcontent-%COMP%]{border:100%;background-color:#065881;color:#fff;border-bottom:#fff}.dashboard-sub-nav-link[_ngcontent-%COMP%]{font-size:13px;color:inherit;letter-spacing:2px;text-transform:uppercase;margin-top:15px;border-bottom:1px solid;cursor:pointer;font-family:var(--font-din);display:inline-block}.dashboard-sub-nav-full-bar[_ngcontent-%COMP%]{background-color:#898b8e}']});}};_o=$([G()],_o);var jp=["app-banner-container",""];function Gp(i,t){if(i&1&&C(0,"div",5),i&2){let e=u().$implicit;f("data",e.message);}}function zp(i,t){}function Kp(i,t){if(i&1&&(s(0,"div",6),R(1,zp,0,0,"ng-template",8),l()),i&2){let e=u().$implicit;c(),f("ngTemplateOutlet",e.template);}}function Wp(i,t){if(i&1){let e=L();s(0,"button",9),x("click",function(){w(e);let o=u().$implicit,r=u().ngLet;return E(r.remove(o.index));}),p(1," \u2715 "),l();}}function qp(i,t){if(i&1&&(s(0,"div")(1,"div",2)(2,"div",3)(3,"div",4),g(4,Gp,1,1,"div",5),g(5,Kp,2,1,"div",6),g(6,Wp,2,0,"button",7),l()()()()),i&2){let e=t.$implicit;Xe("full-bar border-bottom border-white "+e.design),c(4),_(e.message?4:-1),c(),_(e.template?5:-1),c(),_(e.dismissable?6:-1);}}function Yp(i,t){if(i&1&&(ee(0),Pe(1,qp,7,5,"div",1,Qe),te()),i&2){let e=u();c(),De(e.bannerService.banners);}}var jc=(()=>{class i{constructor(e){this.bannerService=e;}static{this.ɵfac=function(n){return new(n||i)(v(Qs));};}static{this.ɵcmp=M({type:i,selectors:[["","app-banner-container",""]],standalone:!1,attrs:jp,decls:1,vars:1,consts:[[4,"ngLet"],[3,"class"],[1,"container","container-xxl","position-relative"],[1,"row"],[1,"col"],["markdown","",1,"banner-text","my-3",3,"data"],[1,"banner-text","my-3"],["type","button","aria-label","Dismiss banner",1,"btn","dismiss"],[3,"ngTemplateOutlet"],["type","button","aria-label","Dismiss banner",1,"btn","dismiss",3,"click"]],template:function(n,o){n&1&&R(0,Yp,3,0,"ng-container",0),n&2&&f("ngLet",o.bannerService);},dependencies:[Tn,Ne,ri],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}.full-bar{background-color:#065881}
1.info-design{background-color:#c2c579}.info-design .banner-text{font-weight:700;font-style:italic;color:#fff}.info-design .banner-text a{color:inherit}.banner-text{font-style:italic;font-size:1rem;font-weight:400;line-height:1.3;color:#fff;text-align:center}.banner-text a{color:inherit}.dismiss{color:#fff;font-size:.9rem;padding:0;position:absolute;top:0;right:0;line-height:45px}
2`],encapsulation:2});}}return i;})();var vo=class Mr{set logoWidth(t){this.width=t,this.viewBox=`0 0 ${t} 68`;}constructor(t,e){this.router=e,this.width=null,this.viewBox=null,this.client=H.name,this.mediaXxlDown=!1,this.homeUrl=window.location.origin+"/",this.logoAltText=H.logoAltText,this.logoAriaLabel=H.logoAriaLabel,t.observe(ai(Mt.xxl)).pipe(z(n=>n.matches),ie(),S(this)).subscribe(n=>{this.mediaXxlDown=n;});}navigateHome(t){t.button!==0||t.ctrlKey||t.metaKey||t.shiftKey||t.altKey||(t.preventDefault(),this.router.navigateByUrl("/"));}static{this.ɵfac=function(e){return new(e||Mr)(v(jt),v(xt));};}static{this.ɵcmp=M({type:Mr,selectors:[["app-header-logo"]],inputs:{logoWidth:"logoWidth"},standalone:!1,decls:30,vars:4,consts:[[1,"me-5",3,"click","href"],["height","60px","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 404.01 140.25","role","img",1,"my-2"],["id","Layer_2","data-name","Layer 2"],["id","Layer_1-2","data-name","Layer 1"],["d","M41.19,0h-24V2.06h7.65V41.89c0,12-3.33,15.35-10.72,15.35-4.67,0-5.43-3.53-5.43-5.36,0-4.34-.24-7-4.21-7S0,48.88,0,50.12C0,55.6,4.25,59.8,15.15,59.8c13,0,18.13-4.38,18.13-18.95V2l7.91,0Z",1,"cls-1"],["d","M42.8,50.56a4.64,4.64,0,0,0-4.72,4.68,4.31,4.31,0,0,0,1.39,3.29,4.59,4.59,0,0,0,3.33,1.34,4.67,4.67,0,0,0,3.38-1.34,4.38,4.38,0,0,0,1.38-3.29,4.65,4.65,0,0,0-4.76-4.68",1,"cls-1"],["d","M94.26,50.56a4.61,4.61,0,0,0-4.7,4.68,4.32,4.32,0,0,0,1.36,3.29,4.91,4.91,0,0,0,6.74,0A4.34,4.34,0,0,0,99,55.24a4.48,4.48,0,0,0-1.38-3.34,4.6,4.6,0,0,0-3.4-1.34",1,"cls-1"],["d","M76.12,31.59H71.33V2.32l4.35-.07c14,0,17.09,5.78,17.09,15.12S87.26,31.59,76.12,31.59M79.34,0H55.82V2.06h6.9V47.52c0,3.57-.22,3.74-.61,4.77A4.76,4.76,0,0,1,59.29,55a13.9,13.9,0,0,1-4.82.75v2.63H79.78V55.7A16.51,16.51,0,0,1,74.93,55a4.89,4.89,0,0,1-3-2.68,8.59,8.59,0,0,1-.63-3.72V33.84l6.26,0c18.19,0,23.29-7.18,23.29-17S97.76,0,79.34,0",1,"cls-1"],["d","M173.25,52.13a13.13,13.13,0,0,1-.5-4V2.06h6.1V0H164L146.09,44.56a.43.43,0,0,1-.4.27.45.45,0,0,1-.43-.27S126.45.53,126.23,0h-16.5V2.06h6.83V46.39s-.15,4.09-.15,4.11a6.16,6.16,0,0,1-1,2.82,5.05,5.05,0,0,1-2.65,1.89,12.48,12.48,0,0,1-3.39.47v2.65h16.78V55.7a8.53,8.53,0,0,1-2.83-.48,5.06,5.06,0,0,1-2.71-1.85,6.24,6.24,0,0,1-1-2.87l-.2-4.11V8.17h1s21.25,49.61,21.47,50.16h1.79L163.78,8.71h.51V48.17a13.58,13.58,0,0,1-.51,4.08A4.65,4.65,0,0,1,161.27,55a11.63,11.63,0,0,1-4.18.73v2.63H180V55.7a12.36,12.36,0,0,1-4.22-.77,4.63,4.63,0,0,1-2.57-2.8",1,"cls-1"],["d","M203.94,57.46c-9.2,0-10.63-4.59-10.63-19.33,0-11.39.72-20,10.63-20,10.71,0,10.76,8.86,10.76,19.22,0,14.92-2.54,20.06-10.76,20.06m.17-41.86c-12.25,0-19.93,8.13-19.93,22.3,0,20.76,16.17,22.14,19.65,22.14,6.91,0,20-4.31,20-22.53,0-14.18-8.39-21.91-19.73-21.91",1,"cls-1"],["d","M255.86,16.24c-7.32,0-9.85,4.33-11.86,8.73a3.75,3.75,0,0,0-.59,0S242,16.6,242,16.6H228.07v2.2h7.62V47.52c0,2.84-.14,5.06-.87,6.26-.85,1.38-2.61,1.92-5.53,1.92h-1.22v2.63H251.8V55.7h-1.27c-3.12,0-4.71-.68-5.54-2-.76-1.19-1.09-3.2-1.09-6.15V32.64c0-5,4-10.78,8.59-10.78,4.75,0,4.92,6.82,10,4.38,3.64-1.74,2.83-10-6.66-10",1,"cls-1"],["d","M338,49.66a.31.31,0,0,1-.16.32l-.18.18c-4.06,3.68-7.17,5-9.44,5-5.82,0-6.69-4.86-6.69-7.28,0-7.76,10.63-11.64,16.47-11.64Zm12.43,4.4c-2.54,0-3.34-1.41-3.54-3.77L346.78,45V27.5c0-3.77-.61-6.31-2.83-8.53s-6.42-3.37-12.55-3.37c-5.88,0-10.25,1.1-13,3.22s-3.76,4-3.76,6.7a3.37,3.37,0,0,0,1,2.77,3.72,3.72,0,0,0,2.59.93c2.36,0,3.69-1.21,4.18-4.31.36-2.3.87-3.62,2-4.81s3.1-1.92,5.66-1.92c3,0,5.09.8,6.26,2.41A10.25,10.25,0,0,1,338,26.68v7c-7.62.71-25.58,2.14-24.78,15.83a11,11,0,0,0,11.12,10c6.74,0,11-3.83,13.91-6.91A7.88,7.88,0,0,0,346.37,59c5.52,0,8.83-2.71,9.21-9.48h-1.42c-.37,2.94-2.2,4.52-3.7,4.52",1,"cls-1"],["d","M399,53.81c1,1.3,2.5,1.73,5,1.89v2.63H384.23V55.71a6.62,6.62,0,0,0,3.28-.91A4.07,4.07,0,0,0,389,51.87a36.19,36.19,0,0,0,.22-5V33.24c0-3.31-.22-7.48-1.34-9.72-1-2-2.67-3-5.8-3a9.29,9.29,0,0,0-8.28,4.65c-1.57,2.76-1.54,7.2-1.54,11.82V48c0,2.83.36,4.77,1.17,5.89s2.13,1.62,4.19,1.78v2.65H357.14V55.7a10.91,10.91,0,0,0,3.57-.58,4,4,0,0,0,2.4-2.68,18,18,0,0,0,.5-4.89V18.79h-6.47V16.61h12.94l1.45,7.55h.67c1.66-3.24,5.28-8,13.62-8a14.05,14.05,0,0,1,6.27,1.37,10.28,10.28,0,0,1,4.3,4.22,14.64,14.64,0,0,1,1.38,7V47.58c0,2.12.21,4.92,1.23,6.23",1,"cls-1"],["d","M285.79,44.31c-5.4,0-8.49-2-8.49-13,0-7.75,2.71-13.5,8.49-13.5,6.75,0,8.71,5.24,8.71,13.34,0,11.6-3.65,13.12-8.71,13.12m20.43-30.39c-1.24.39-2.05,1.48-2.48,3.32s-1,2.67-1.82,3A4,4,0,0,1,299,20c-2.13-2-6.22-4.39-13.39-4.39-11.57,0-16.66,8.25-16.66,15.75,0,8.81,3.37,13.08,10.82,14.63a.35.35,0,0,1,.06.69c-6.35,1.28-12,3.14-12,9.16,0,3.64,2.08,5.64,4.74,6.73,3,1.19,7.11,1.81,12.31,1.91a97.45,97.45,0,0,1,9.87.46,11.23,11.23,0,0,1,5.39,1.87,5.58,5.58,0,0,1,2.08,4.66c0,2.79-1.48,5-4.47,6.7-2.76,1.53-6.55,2.33-11.25,2.33-4,0-7.33-.42-10.32-2.28a5.53,5.53,0,0,1-2.17-6c.41-1.95-.29-4-2.56-4.39a3.78,3.78,0,0,0-3.55,1.6,6.85,6.85,0,0,0-.92,3.8c0,5,3.84,7.27,6.76,8.14a35.54,35.54,0,0,0,11.54,1.7c5.44,0,9.87-.84,13-2.45a14.42,14.42,0,0,0,6.54-5.79A14.08,14.08,0,0,0,306.68,68a12.4,12.4,0,0,0-1.93-7.25c-4.14-5.67-10-5-23.2-5.58-6.35,0-7.57-1.14-7.57-3.1,0-2.86,2.36-4,11.54-5.4S303,42,303,31a18.78,18.78,0,0,0-1.64-7.81,9.89,9.89,0,0,0,5.2-.11,5.86,5.86,0,0,0,3.69-2.76,5.78,5.78,0,0,0,.67-4c-.58-2.54-2.46-3.08-4.69-2.38",1,"cls-1"],["d","M2.61,114.5h8.22q4.39,0,6.55,2.23a8.27,8.27,0,0,1,2.16,6,10.22,10.22,0,0,1-.53,3.34,7.19,7.19,0,0,1-1.6,2.63,7.32,7.32,0,0,1-2.7,1.74,10.75,10.75,0,0,1-3.85.63H6.6v9.18h-4Zm8,13.77a4.81,4.81,0,0,0,3.68-1.19,6,6,0,0,0,1.08-4v-.59c0-1.85-.36-3.12-1.1-3.82a5.34,5.34,0,0,0-3.74-1H6.6v10.69Z",1,"cls-2"],["d","M38.6,131.46l4.71,8.79H39.08L33.76,130H29.7v10.28h-4V114.5h8.23q4.43,0,6.6,2a7.51,7.51,0,0,1,2.18,5.76,9.73,9.73,0,0,1-.32,2.47A6.43,6.43,0,0,1,41.33,127a6.14,6.14,0,0,1-2,1.69,8.38,8.38,0,0,1-3.11.93Zm-4.92-4.18a5.22,5.22,0,0,0,3.72-1.07,5,5,0,0,0,1.08-3.66V122a7.44,7.44,0,0,0-.25-2.11,2.81,2.81,0,0,0-.85-1.36,3.32,3.32,0,0,0-1.51-.71,11.25,11.25,0,0,0-2.27-.2H29.7v9.7Z",1,"cls-2"],["d","M49.84,114.5h4v25.75h-4Z",1,"cls-2"],["d","M59.93,114.5H64l5.
214,17.05,1.11,6.21,1.15-6.21,5.14-17.05h3.68L72,140.25H68.27Z",1,"cls-2"],["d","M85.13,140.25H81.68L90,114.5h3.88l8.19,25.75H98l-1.5-5.1H86.71Zm7.59-17.59-1-5.12-1.14,5.12-3,9.8h8.07Z",1,"cls-2"],["d","M103.6,117.7v-3.2h17.29v3.2h-6.65v22.55h-4V117.7Z",1,"cls-2"],["d","M126.62,114.5H141v3.2H130.62v7.88h8.9v3h-8.9v8.59H141.7v3.12H126.62Z",1,"cls-2"],["d","M158.74,114.5h8.13a14.26,14.26,0,0,1,3.37.37,7.07,7.07,0,0,1,2.66,1.21,5.58,5.58,0,0,1,1.73,2.11,7.29,7.29,0,0,1,.61,3.1,5.8,5.8,0,0,1-.44,2.39,4.82,4.82,0,0,1-1.14,1.62,5.87,5.87,0,0,1-1.53,1,12.46,12.46,0,0,1-1.64.63,8.25,8.25,0,0,1,1.82.57,6.05,6.05,0,0,1,1.74,1.15,5.86,5.86,0,0,1,1.31,1.82,6.12,6.12,0,0,1,.51,2.6,7.63,7.63,0,0,1-.63,3.25,5.89,5.89,0,0,1-1.78,2.22,7.38,7.38,0,0,1-2.73,1.26,14,14,0,0,1-3.48.4h-8.51ZM167,125.73a5,5,0,0,0,3.33-.86,4,4,0,0,0,1-3v-.44a3.61,3.61,0,0,0-1.07-3,6,6,0,0,0-3.66-.85h-3.78v8.15Zm0,11.48a5.65,5.65,0,0,0,3.59-.93,3.9,3.9,0,0,0,1.14-3.19v-.55a4.1,4.1,0,0,0-1.06-3.21,5.5,5.5,0,0,0-3.55-.91h-4.33v8.79Z",1,"cls-2"],["d","M183.43,140.25H180l8.35-25.75h3.87l8.19,25.75h-4.11l-1.51-5.1H185Zm7.6-17.59-.95-5.12-1.15,5.12-3.05,9.8H194Z",1,"cls-2"],["d","M206.3,114.5h4.35l7.95,15.39,2.73,7.47-1-8.7V114.5h3.52v25.75h-4.19l-8.35-16-2.45-7.08.87,8.23v14.87H206.3Z",1,"cls-2"],["d","M245.26,114.5h4.15l-9.49,11.83,2.93,2.21,6.84,11.71H245.3l-7.16-12.34-2.3,3.08v9.26h-4V114.5h4v8.31l-.67,4.78Z",1,"cls-2"]],template:function(e,n){e&1&&(s(0,"a",0),x("click",function(r){return n.navigateHome(r);}),os(),s(1,"svg",1)(2,"title"),p(3),l(),s(4,"defs")(5,"style"),p(6," .cls-1 { fill: #392616; } .cls-2 { fill: #926847; } "),l()(),s(7,"g",2)(8,"g",3),C(9,"path",4)(10,"path",5)(11,"path",6)(12,"path",7)(13,"path",8)(14,"path",9)(15,"path",10)(16,"path",11)(17,"path",12)(18,"path",13)(19,"path",14)(20,"path",15)(21,"path",16)(22,"path",17)(23,"path",18)(24,"path",19)(25,"path",20)(26,"path",21)(27,"path",22)(28,"path",23)(29,"path",24),l()()()()),e&2&&(f("href",n.homeUrl,Be),ce("aria-label",n.logoAriaLabel),c(),ce("aria-label",n.logoAltText),c(2),T(n.logoAltText));},encapsulation:2});}};vo=$([G()],vo);var Gc={revision:"000000",branch:"example",jira:"NSPA-###",committed:""};var Zp=(i,t)=>({fas:!0,"fa-plus":i,"fa-minus":t}),Wc=(i,t)=>t.name;function Jp(i,t){if(i&1&&(s(0,"span",8),p(1),l()),i&2){let e=u();c(),T(e.overrideCount);}}function em(i,t){if(i&1&&(s(0,"a",15),p(1),l()),i&2){let e=u(4);f("href","https://renpsg.atlassian.net/browse/"+e.spa_version.jira,Be),c(),W(" ",e.spa_version.jira," ");}}function tm(i,t){if(i&1&&p(0),i&2){let e=u(4);W(" ",e.spa_version.branch," \xB7 ");}}function im(i,t){if(i&1&&(p(0," \xB7 "),s(1,"span",17),p(2),l()),i&2){let e=u(4);c(),f("title",e.commitAge(e.spa_version.committed)),c(),T(e.commitStamp(e.spa_version.committed));}}function nm(i,t){if(i&1&&(s(0,"span",13)(1,"span",14),p(2,"SPA"),l(),g(3,em,2,2,"a",15),s(4,"span",16),g(5,tm,1,1),p(6),g(7,im,3,2),l()()),i&2){let e=u(3);c(3),_(e.spa_version.jira?3:-1),c(2),_(e.spa_version.branch?5:-1),c(),W(" ",e.spa_version.revision," "),c(),_(e.commitStamp(e.spa_version.committed)?7:-1);}}function om(i,t){if(i&1&&(s(0,"a",15),p(1),l()),i&2){let e=u(4);f("href","https://renpsg.atlassian.net/browse/"+(e.api_version==null?null:e.api_version.jira),Be),c(),W(" ",e.api_version==null?null:e.api_version.jira," ");}}function rm(i,t){if(i&1&&p(0),i&2){let e=u(4);W(" ",e.api_version==null?null:e.api_version.branch," \xB7 ");}}function am(i,t){if(i&1&&(p(0," \xB7 "),s(1,"span",17),p(2),l()),i&2){let e=u(4);c(),f("title",e.commitAge(e.api_version==null?null:e.api_version.committed)),c(),T(e.commitStamp(e.api_version==null?null:e.api_version.committed));}}function sm(i,t){if(i&1&&(s(0,"span",13)(1,"span",14),p(2,"API"),l(),g(3,om,2,2,"a",15),s(4,"span",16),g(5,rm,1,1),p(6),g(7,am,3,2),l()()),i&2){let e=u(3);c(3),_(e.api_version!=null&&e.api_version.jira?3:-1),c(2),_(e.api_version!=null&&e.api_version.branch?5:-1),c(),W(" ",e.api_version==null?null:e.api_version.revision," "),c(),_(e.commitStamp(e.api_version==null?null:e.api_version.committed)?7:-1);}}
2function lm(i,t){if(i&1&&(s(0,"span",13)(1,"span",17),p(2),l()()),i&2){let e=u(3);c(),f("title",e.commitAge(e.deploy_info==null?null:e.deploy_info.deployedAt)),c(),T(e.deployStamp(e.deploy_info==null?null:e.deploy_info.deployedAt));}}function cm(i,t){if(i&1&&(s(0,"div",12),g(1,nm,8,4,"span",13),g(2,sm,8,4,"span",13),g(3,lm,3,2,"span",13),l()),i&2){let e=u(2);c(),_(e.spa_version.revision?1:-1),c(),_(e.api_version!=null&&e.api_version.revision?2:-1),c(),_(e.deployStamp(e.deploy_info==null?null:e.deploy_info.deployedAt)?3:-1);}}function dm(i,t){if(i&1&&(s(0,"span",25),p(1),l()),i&2){let e=u(2).ngLet;c(),W(" LD: ",e==null?null:e.launchDarklyEnvironment," ");}}function pm(i,t){if(i&1){let e=L();s(0,"button",34),x("click",function(){w(e);let o=u(5);return E(o.copyShareLink());}),p(1),l(),s(2,"button",35),x("click",function(){w(e);let o=u(5);return E(o.clearAllOverrides());}),p(3," Reset "),l();}if(i&2){let e=u(5);c(),W(" ",e.linkCopied?"Copied!":"Copy share link"," ");}}function mm(i,t){if(i&1){let e=L();s(0,"div",37)(1,"code",38),p(2),l(),s(3,"button",39),x("click",function(){let o=w(e).$implicit,r=u(6);return E(r.toggleFlag(o));}),p(4),l()();}if(i&2){let e=t.$implicit,n=u(6);c(),f("title",n.humanizeFlagName(e.name)),c(),T(e.name);let o=n.getEffectiveFlag(e);c(),Ve("on",o.enabled&&!o.overridden)("off",!o.enabled&&!o.overridden)("overridden",o.overridden),f("disabled",n.forceAll!==null)("title",n.forceAll!==null?"Forced by the master override.":o.overridden?"Local override active. Click to revert to LaunchDarkly value ("+(e.enabled?"On":"Off")+").":"Click to override locally."),c(),En(" ",o.enabled?"On":"Off","",o.overridden?"*":""," ");}}function um(i,t){if(i&1&&(s(0,"div",32)(1,"div",36),p(2),l(),Pe(3,mm,5,12,"div",37,Wc),l()),i&2){let e=t.$implicit;c(2),T(e.name),c(),De(e.flags);}}function fm(i,t){if(i&1&&(s(0,"div",33),p(1),l()),i&2){let e=u(5);c(),W('No flags match "',e.filterText,'".');}}function hm(i,t){if(i&1){let e=L();s(0,"section",22)(1,"div",23)(2,"span"),p(3,"GraphQL Migration Flags"),l(),s(4,"span",24),g(5,dm,2,1,"span",25),s(6,"span",26),p(7),l()()(),s(8,"div",27),p(9,"On = GraphQL \xB7 Off = legacy"),l(),s(10,"div",28)(11,"input",29),x("input",function(o){w(e);let r=u(4);return E(r.filterText=o.target.value);}),l(),s(12,"div",30)(13,"button",31),x("click",function(){w(e);let o=u(4);return E(o.setForceAll(!1));}),p(14," All off "),l(),s(15,"button",31),x("click",function(){w(e);let o=u(4);return E(o.setForceAll(!0));}),p(16," All on "),l(),g(17,pm,4,1),l()(),Pe(18,um,5,1,"div",32,Wc,!1,fm,2,1,"div",33),l();}if(i&2){let e=u().ngLet,n=u(3);c(5),_(e!=null&&e.launchDarklyEnvironment?5:-1),c(2),T(e==null||e.featureFlags==null?null:e.featureFlags.length),c(4),f("value",n.filterText),c(2),Ve("active",n.forceAll===!1),f("title",n.forceAll===!1?"All flags forced off for your session. Click to restore.":"Force all migration flags off for your session (does not change LaunchDarkly)."),c(2),Ve("active",n.forceAll===!0),f("title",n.forceAll===!0?"All flags forced on for your session. Click to restore.":"Force all migration flags on for your session (does not change LaunchDarkly)."),c(2),_(n.hasOverrides?17:-1),c(),De(n.visibleGroups(e==null?null:e.featureFlags));}}function gm(i,t){if(i&1&&(ee(0),s(1,"div",19)(2,"dl",20)(3,"dt"),p(4,"Client"),l(),s(5,"dd"),p(6),l(),s(7,"dt"),p(8,"Active DB"),l(),s(9,"dd"),p(10),l(),s(11,"dt"),p(12,"Primary DB"),l(),s(13,"dd"),p(14),l(),s(15,"dt"),p(16,"Secondary DB"),l(),s(17,"dd"),p(18),l(),s(19,"dt"),p(20,"Selected Fund Currency"),l(),s(21,"dd"),p(22),l(),s(23,"dt"),p(24,"Org Id"),l(),s(25,"dd"),p(26),l(),s(27,"dt"),p(28,"Origin"),l(),s(29,"dd"),p(30),l(),s(31,"dt"),p(32,"Primary is active"),l(),s(33,"dd")(34,"span",21),p(35),l()()(),g(36,hm,21,11,"section",22),l(),te()),i&2){let e=t.ngLet;c(6),T(e==null?null:e.client),c(4),T(e==null?null:e.dbName),c(4),T(e==null?null:e.primaryDb),c(4),T((e==null?null:e.secondaryDb)||"\u2014"),c(4),T((e==null?null:e.currentDbHeader)||"\u2014"),c(4),T(e==null?null:e.orgId),c(4),T(e==null?null:e.origin),c(4),Ve("on",e==null?null:e.primaryIsActive)("off",!(e!=null&&e.primaryIsActive)),c(),W(" ",e!=null&&e.primaryIsActive?"Active":"Inactive"," "),c(),_(!(e==null||e.featureFlags==null)&&e.featureFlags.length?36:-1);}}function _m(i,t){if(i&1&&(R(0,gm,37,13,"ng-container",18),P(1,"async")),i&2){let e=u(2);f("ngLet",$e(1,1,e.clientContextData$));}}function vm(i,t){if(i&1&&(s(0,"div",11),g(1,cm,4,3,"div",12),g(2,_m,2,3,"ng-container"),l()),i&2){let e=u();c(),_(e.spa_version.revision||e.api_version!=null&&e.api_version.revision||e.deploy_info!=null&&e.deploy_info.deployedAt?1:-1),c(),_(e.clientContextData$?2:-1);}}var Lr="gvpOverrides",zc="Other",Kc=[{label:"Codes",match:/CODES/},{label:"Charity",match:/CHARITY/},{label:"Grant",match:/GRANT/},{label:"Fund",match:/FUND/},{label:"Account",match:/ACCOUNT/},{label:"Party",match:/PARTY|EMPLOYEE|INTERESTED|SEARCH|ADDRESS|FAID/},{label:"Registry",match:/REGISTRY/}],ym=[{prefix:"qa2-",label:"STAGING"},{prefix:"qa-",label:"INTEGRATION"},{prefix:"test-",label:"TEST"},{prefix:"w-",label:"WARM"}],$i=class i{constructor(t,e,n){this.http=t,this.store=n,this.spa_version=Gc,this.api_version=null,this.deploy_info=null,this.flagOverrides={},this.forceAll=null,this.filterText="",this.linkCopied=!1,this.storedApiRevision="",e("/api/apistatus/version").then(o=>o.json()).then(o=>{this.api_version=o,this.invalidateIfNewBuild(o?.revision??""),this.applyUrlOverrides();}),e("/deploy-info.json").then(o=>o.ok?o.json():null).then(o=>{this.deploy_info=o;}).catch(()=>{});}
2ngOnInit(){this.loadOverrides(),this.store.dispatch(new yl());}get tierLabel(){let t=(window.location.hostname||"").toLowerCase(),e=ym.find(n=>t.startsWith(n.prefix));return e?e.label:"DEVELOPMENT";}commitAge(t){if(!t)return"";let e=new Date(t).getTime();if(Number.isNaN(e))return"";let n=Math.floor((Date.now()-e)/6e4);if(n<0)return"just committed";if(n<60)return`${n}m old`;let o=Math.floor(n/60);return o<24?`${o}h old`:`${Math.floor(o/24)}d old`;}commitStamp(t){let e=this.localDateTime(t);return e?`Committed ${e}`:"";}deployStamp(t){let e=this.localDateTime(t);return e?`Deployed ${e}`:"";}localDateTime(t){if(!t)return"";let e=new Date(t);return Number.isNaN(e.getTime())?"":e.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit"});}loadOverrides(){let t=eo();this.storedApiRevision=t.apiRevision,this.flagOverrides=t.overrides,this.forceAll=t.forceAll;}invalidateIfNewBuild(t){t&&this.storedApiRevision!==t&&(this.flagOverrides={},this.forceAll=null,this.saveOverrides());}getEffectiveFlag(t){return bl({overrides:this.flagOverrides,forceAll:this.forceAll},t.name,t.enabled);}toggleFlag(t){var e;if(Object.prototype.hasOwnProperty.call(this.flagOverrides,t.name)){let n=this.flagOverrides,{[e=t.name]:o}=n,r=bn(n,[Za(e)]);this.flagOverrides=r;}else this.flagOverrides=Te(Y({},this.flagOverrides),{[t.name]:!t.enabled});this.saveOverrides(),window.location.reload();}get hasOverrides(){return this.forceAll!==null||Object.keys(this.flagOverrides).length>0;}get overrideCount(){return Object.keys(this.flagOverrides).length+(this.forceAll!==null?1:0);}setForceAll(t){this.forceAll=this.forceAll===t?null:t,this.saveOverrides(),window.location.reload();}humanizeFlagName(t){return t.replace(/^GVP_/i,"").split("_").filter(e=>e.length>0).map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ");}visibleGroups(t){let e=this.filterText.trim().toUpperCase(),n=(t??[]).filter(r=>!e||r.name.toUpperCase().includes(e)),o=new Map();for(let r of n){let a=this.groupLabel(r.name),d=o.get(a)??[];d.push(r),o.set(a,d);}return[...Kc.map(r=>r.label),zc].flatMap(r=>{let a=o.get(r);return a?[{name:r,flags:a}]:[];});}groupLabel(t){let e=t.toUpperCase();for(let n of Kc)if(n.match.test(e))return n.label;return zc;}buildShareLink(){let t=JSON.stringify({overrides:this.flagOverrides,forceAll:this.forceAll}),e=new URL(window.location.href);return e.searchParams.set(Lr,encodeURIComponent(btoa(t))),e.toString();}copyShareLink(){let t=this.buildShareLink();navigator.clipboard?.writeText(t).then(()=>{this.linkCopied=!0,setTimeout(()=>this.linkCopied=!1,2e3);},()=>{});}applyUrlOverrides(){if(!le.showDevBanner)return;let t=new URL(window.location.href),e=t.searchParams.get(Lr);if(!e)return;t.searchParams.delete(Lr),window.history.replaceState(window.history.state,"",t.toString());let n=null;try{n=JSON.parse(atob(decodeURIComponent(e)));}catch{return;}!n||typeof n!="object"||(this.flagOverrides=n.overrides&&typeof n.overrides=="object"?n.overrides:{},this.forceAll=typeof n.forceAll=="boolean"?n.forceAll:null,this.saveOverrides(),window.location.reload());}clearAllOverrides(){this.flagOverrides={},this.forceAll=null,this.saveOverrides(),window.location.reload();}saveOverrides(){try{localStorage.setItem(Cl,JSON.stringify({apiRevision:this.api_version?.revision??"",overrides:this.flagOverrides,forceAll:this.forceAll}));}catch{}}static{this.ɵfac=function(e){return new(e||i)(v(fs),v(tc),v(B));};}static{this.ɵcmp=M({type:i,selectors:[["app-header-dev-indicator"]],standalone:!1,decls:14,vars:7,consts:[["assetEntry","ngbAccordion"],["devEnvironment","ngbAccordionItem"],[1,"banner"],["ngbAccordion","",1,"bordered","plusMinus","accordion"],["ngbAccordionItem","devEnvironment"],["ngbAccordionHeader",""],["ngbAccordionToggle","","type","button"],[1,"section-title"],["title","Local flag overrides are active",1,"override-indicator"],["ngbAccordionCollapse",""],["ngbAccordionBody",""],[1,"info","fw-normal"],[1,"dev-versions"],[1,"version-line"],[1,"version-label"],["target","_blank",3,"href"],[1,"version-meta"],[3,"title"],[4,"ngLet"],[1,"info-wrapper"],[1,"info-list","dev-card"],[1,"status-badge"],[1,"flags-card","dev-card"],[1,"flags-header"],[1,"flags-meta"],["title","LaunchDarkly environment these values come from",1,"flags-env"],[1,"flags-count"],[1,"flags-legend"],[1,"flags-controls"],["type","text","placeholder","Filter flags\u2026","aria-label","Filter flags",1,"flags-filter",3,"input","value"],[1,"flags-actions"],["type","button",1,"force-btn",3,"click","title"],[1,"flag-group"],[1,"flags-empty"],["type","button","title","Copy a link that reproduces your current overrides \u2014 open it in another browser or send it to a teammate to land in the same flag state",1,"link-btn",3,"click"],["type","button","title","Clear all local flag overrides",1,"clear-overrides",3,"click"],[1,"flag-group-title"],[1,"flag-row"],[1,"flag-name",3,"title"],["type","button",1,"status-badge",3,"click","disabled","title"]],template:function(e,n){if(e&1&&(s(0,"div",2)(1,"div",3,0)(3,"div",4,1)(5,"div",5)(6,"button",6)(7,"span",7),p(8),l(),g(9,Jp,2,1,"span",8),C(10,"i"),l()(),s(11,"div",9)(12,"div",10),R(13,vm,3,2,"ng-template"),l()()()()()),e&2){let o=j(4);c(8),W("",n.tierLabel," ENVIRONMENT"),c(),_(n.hasOverrides?9:-1),c(),Xe(Nt(4,Zp,o.collapsed,!o.collapsed));}},dependencies:[Wn,Kn,zn,Gn,$n,jn,ri,Pi],styles:['@charset "UTF-8";.banner[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:xx-large}.banner[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{font-size:small}.dev-versions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:.15rem;margin-bottom:.75rem;color:#fff}.version-line[_ngcontent-%COMP%]{display:inline-flex;align-items:baseline;gap:.4rem}.version-line[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff;font-weight:600;text-decoration:underline}.version-label[_ngcontent-%COMP%]{font-weight:700;letter-spacing:.03em;opacity:.85}.version-meta[_ngcontent-%COMP%]{opacity:.75}.info-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding-bottom:.5rem}.dev-card[_ngcontent-%COMP%]{width:100%;max-width:420px;margin:0;padding:1rem 1.25rem;border:1px solid #e6e6e6;border-radius:10px;background:#fff;box-shadow:0 2px 8px #0000001f}.info-list[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto 1fr;gap:.5rem 1.25rem;align-items:center}.info-list[_ngcontent-%COMP%]   dt[_ngcontent-%COMP%]{font-weight:600;color:#333}.info-list[_ngcontent-%COMP%]   dd[_ngcontent-%COMP%]{margin:0;color:#555;justify-self:end;text-align:right}.flags-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.45rem}.flags-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:#6c757d;padding-bottom:.5rem;margin-bottom:.15rem;border-bottom:1px solid #eee}.flags-meta[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.4rem}.flags-env[_ngcontent-%COMP%]{background:#e8eefc;color:#2f5bd0;border-radius:999px;padding:.05rem .55rem;font-size:.7rem;font-weight:700;text-transform:none;letter-spacing:0}.flags-count[_ngcontent-%COMP%]{background:#eef1f4;color:#555;border-radius:999px;padding:.05rem .5rem;font-size:.7rem;font-weight:600}.flag-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:1rem}
2.flag-name[_ngcontent-%COMP%]{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.78rem;color:#2d2d2d;word-break:break-all;cursor:help}.status-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.35rem;padding:.1rem .55rem;border-radius:999px;font-size:.72rem;font-weight:600;white-space:nowrap}.status-badge[_ngcontent-%COMP%]:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}.status-badge.on[_ngcontent-%COMP%]{background:#e7f5ec;color:#1c8b48}.status-badge.off[_ngcontent-%COMP%]{background:#f1f3f5;color:#868e96}button.status-badge[_ngcontent-%COMP%]{border:0;cursor:pointer;font-family:inherit;line-height:inherit;transition:filter .1s ease-in-out}button.status-badge[_ngcontent-%COMP%]:hover{filter:brightness(.95)}button.status-badge[_ngcontent-%COMP%]:focus-visible{outline:2px solid #2f5bd0;outline-offset:1px}button.status-badge[_ngcontent-%COMP%]:disabled{cursor:default;filter:none}.status-badge.overridden[_ngcontent-%COMP%]{background:#f59e0b;color:#fff}.override-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:1.1rem;height:1.1rem;padding:0 .3rem;margin-left:.5rem;border-radius:999px;background:#f59e0b;color:#fff;font-size:.7rem;font-weight:700}.flags-legend[_ngcontent-%COMP%]{font-size:.7rem;color:#6c757d;margin-bottom:.5rem}.flags-controls[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin-bottom:.6rem}.flags-filter[_ngcontent-%COMP%]{flex:1 1 8rem;min-width:6rem;padding:.15rem .5rem;border:1px solid #d0d7de;border-radius:6px;font:inherit;font-size:.75rem}.flags-filter[_ngcontent-%COMP%]:focus-visible{outline:2px solid #2f5bd0;outline-offset:0}.flags-actions[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.4rem;flex-wrap:wrap}.force-btn[_ngcontent-%COMP%]{border:1px solid #d0d7de;background:none;border-radius:999px;padding:.05rem .55rem;font:inherit;font-size:.7rem;font-weight:700;color:#6c757d;cursor:pointer}.force-btn[_ngcontent-%COMP%]:hover{border-color:#f59e0b;color:#b45309}.force-btn.active[_ngcontent-%COMP%]{background:#f59e0b;border-color:#f59e0b;color:#fff}.force-btn[_ngcontent-%COMP%]:focus-visible, .link-btn[_ngcontent-%COMP%]:focus-visible{outline:2px solid #2f5bd0;outline-offset:1px}.link-btn[_ngcontent-%COMP%]{border:0;background:none;padding:0;font:inherit;font-size:.7rem;font-weight:700;color:#2f5bd0;cursor:pointer;text-decoration:underline}.link-btn[_ngcontent-%COMP%]:hover{color:#1e3fa0}.flag-group-title[_ngcontent-%COMP%]{font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#98a2b3;margin:.55rem 0 .25rem}.flags-empty[_ngcontent-%COMP%]{font-size:.75rem;color:#868e96;font-style:italic;padding:.35rem 0}.clear-overrides[_ngcontent-%COMP%]{border:0;background:none;padding:0;font:inherit;font-size:.7rem;font-weight:700;text-transform:none;letter-spacing:0;color:#b45309;cursor:pointer;text-decoration:underline}.clear-overrides[_ngcontent-%COMP%]:hover{color:#92400e}.clear-overrides[_ngcontent-%COMP%]:focus-visible{outline:2px solid #2f5bd0;outline-offset:1px}.accordion[_ngcontent-%COMP%]{--bs-accordion-bg: transparent;--bs-accordion-btn-bg: transparent;--bs-accordion-active-bg: transparent}.accordion.bordered[_ngcontent-%COMP%]   .accordion-header[_ngcontent-%COMP%]{border-top:0!important;padding:0rem}.accordion[_ngcontent-%COMP%]   .accordion-header[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{font-size:1.2rem;color:#ec6c24;background:none;font-weight:300;font-family:proxima-nova;padding:0;align-items:left;display:flex}.section-title[_ngcontent-%COMP%]{font-weight:700;font-size:1.5rem;color:#fff!important;flex:1;text-align:center}']});}};$([Cr(rn.data)],$i.prototype,"clientContextData$",void 0);$([Cr(rn.loading)],$i.prototype,"loading$",void 0);var Sm=["app-header",""],xm=i=>({"hide-gp":i}),qc=i=>({authenticated:i}),gi=()=>["active"],Fr=()=>({exact:!0}),Yc=(i,t)=>({"btn-primary":i,"banner-link":t});function Am(i,t){if(i&1&&(s(0,"div",6)(1,"a",8),Le(2,5),l()()),i&2){let e=u();f("ngClass",be(1,xm,e.scrollHeader));}}function wm(i,t){i&1&&(s(0,"div",7),C(1,"app-header-dev-indicator"),l());}function Em(i,t){if(i&1&&(s(0,"div",21),p(1),l()),i&2){let e=u(2).$implicit;f("id",e.buttonId),c(),W(" ",e.title," ");}}function Tm(i,t){if(i&1){let e=L();s(0,"div",22,0)(2,"a",25),x("click",function(){w(e);let o=u(4);
2return o.navbarCollapsed=!0,E(o.hidePageMouseClick());}),p(3),l()();}if(i&2){let e=j(1),n=u(2).$implicit;f("routerLinkActive",Z(6,gi))("routerLinkActiveOptions",Z(7,Fr)),c(2),f("id",n.buttonId)("routerLink",n.route),ce("aria-current",e.isActive?"page":void 0),c(),T(n.title);}}function Pm(i,t){if(i&1){let e=L();s(0,"a",26,1),x("click",function(){w(e);let o=u(4);return o.navbarCollapsed=!0,E(o.hidePageMouseClick());}),p(2),l();}if(i&2){let e=t.$implicit,n=j(1);f("id",e.buttonId)("routerLink",e.route)("routerLinkActive",Z(5,gi)),ce("aria-current",n.isActive?"page":void 0),c(2),T(e.title);}}function Dm(i,t){if(i&1&&(s(0,"div",20,0),g(2,Em,2,2,"div",21)(3,Tm,4,8,"div",22),s(4,"div",23),Pe(5,Pm,3,6,"a",24,Qe),l()()),i&2){let e=u().$implicit;f("routerLinkActive",Z(3,gi)),c(2),_(e.route?3:2),c(2),ce("aria-labelledby",e.buttonId),c(),De(e.children);}}function Nm(i,t){if(i&1&&(s(0,"div",27)(1,"a",28),p(2),l()()),i&2){let e=u(2).$implicit;c(),f("id",e.buttonId)("href",e.route,Be)("target",e.target||null),ce("aria-current",!1),c(),T(e.title);}}function Im(i,t){if(i&1){let e=L();s(0,"div",22,0)(2,"a",25),x("click",function(){w(e);let o=u(4);return o.navbarCollapsed=!0,E(o.hidePageMouseClick());}),p(3),l()();}if(i&2){let e=j(1),n=u(2).$implicit;f("routerLinkActive",Z(6,gi))("routerLinkActiveOptions",Z(7,Fr)),c(2),f("id",n.buttonId)("routerLink",n.route),ce("aria-current",e.isActive?"page":void 0),c(),T(n.title);}}function km(i,t){if(i&1&&g(0,Nm,3,5,"div",27)(1,Im,4,8,"div",22),i&2){let e=u().$implicit;_(e.external?0:1);}}function Mm(i,t){if(i&1&&g(0,Dm,7,4,"div",20)(1,km,2,1),i&2){let e=t.$implicit;_(e.children&&e.children.length>0?0:1);}}function Om(i,t){if(i&1){let e=L();s(0,"div",9)(1,"div",10)(2,"div",11),C(3,"app-header-logo",12),l(),s(4,"div",13)(5,"button",14),x("click",function(){w(e);let o=u();return o.navbarCollapsed=!o.navbarCollapsed,E(o.hidePageMouseClick());}),C(6,"i",15),l()()()(),s(7,"div",16)(8,"nav",17)(9,"div",18)(10,"div",19),Pe(11,Mm,2,1,null,null,Qe),l()()()();}if(i&2){let e=u();f("ngClass",be(4,qc,e.auth)),c(3),f("logoWidth",60),c(2),ce("aria-expanded",!e.navbarCollapsed),c(4),f("ngbCollapse",e.navbarCollapsed),c(2),De(e.mainMenuItems);}}function Lm(i,t){if(i&1&&(s(0,"a",34),p(1,"Open a New Account"),l()),i&2){let e=u(3);f("routerLink",e.newAccountPdfLink?e.newAccountPdfLink:"/new-account-opening")("target",e.newAccountPdfLink?"_blank":"");}}function Rm(i,t){i&1&&(s(0,"a",35),p(1,"Forms/Resources"),l());}function Fm(i,t){i&1&&(s(0,"a",36),p(1,"Content"),l());}function Um(i,t){if(i&1&&(g(0,Lm,2,2,"a",34),g(1,Rm,2,0,"a",35),g(2,Fm,2,0,"a",36),s(3,"a",37),p(4,"Contact"),l()),i&2){let e=u(2);_(e.permissionsService.verifyAction(e.StsActions.ACCOUNT_CREATE_VIEW)?0:-1),c(),_(e.permissionsService.verifyAction(e.StsActions.RESOURCES_VIEW)?1:-1),c(),_(e.permissionsService.verifyAction(e.StsActions.CMS_CONTENT_MANAGE)?2:-1);}}function Vm(i,t){if(i&1){let e=L();s(0,"a",38),x("click",function(){w(e);let o=u(2);return E(o.logout());}),p(1,"Logout"),l();}if(i&2){let e=u(2);f("ngClass",Nt(1,Yc,!e.scrollHeader,e.scrollHeader));}}function Hm(i,t){if(i&1){let e=L();s(0,"a",38),x("click",function(){w(e);let o=u(2);return E(o.logout());}),p(1,"Log In"),l();}if(i&2){let e=u(2);f("ngClass",Nt(1,Yc,!e.scrollHeader,e.scrollHeader));}}function Bm(i,t){if(i&1){let e=L();s(0,"a",43),C(1,"i",41),s(2,"span",44),p(3,"Profile"),l()(),s(4,"a",45),C(5,"i",46),s(6,"span",44),p(7,"Update Password"),l()(),s(8,"div",47),C(9,"i",48),s(10,"button",49),x("click",function(){w(e);let o=u(3);return E(o.logout());}),p(11,"Log Out"),l()();}}function $m(i,t){if(i&1){let e=L();s(0,"span",39)(1,"button",40),x("shown",function(){w(e);let o=u(2);return E(o.profileMenuExpanded=!0);})("hidden",function(){w(e);let o=u(2);return E(o.profileMenuExpanded=!1);}),C(2,"i",41),p(3),l()(),R(4,Bm,12,0,"ng-template",42,2,Ct);}if(i&2){let e=j(5),n=u(2);c(),f("ngbPopover",e),ce("aria-expanded",n.profileMenuExpanded)("aria-label",`${n.username} profile settings`),c(2),W(" ",n.username||"ERROR"," ");}}function jm(i,t){if(i&1){let e=L();s(0,"div",52)(1,"span",53),p(2,"Help"),l(),s(3,"button",54),x("click",function(){w(e),u();let o=j(1);return E(o.close());}),C(4,"i",55),l()(),s(5,"a",56),C(6,"i",57),s(7,"span",58),p(8),l()(),s(9,"a",59),C(10,"i",60),s(11,"span",58),p(12,"Frequently Asked Questions"),l(
2)();}if(i&2){let e=u(3);c(5),f("routerLink",e.explorePdfLink?e.explorePdfLink:"/givingpoint")("target",e.explorePdfLink?"_blank":""),c(3),T("Explore GivingPoint");}}function Gm(i,t){if(i&1){let e=L();s(0,"button",50,3),x("shown",function(){w(e);let o=u(2);return E(o.helpMenuExpanded=!0);})("hidden",function(){w(e);let o=u(2);return E(o.helpMenuExpanded=!1);}),p(2," ? "),l(),R(3,jm,13,3,"ng-template",51,4,Ct);}if(i&2){let e=j(4),n=u(2);f("ngbPopover",e),ce("aria-expanded",n.helpMenuExpanded);}}function zm(i,t){if(i&1&&(s(0,"a",65,1),p(2),l()),i&2){let e=t.$implicit,n=j(1);f("id",e.buttonId)("routerLink",e.route)("routerLinkActive",Z(6,gi))("target",e.target||null),ce("aria-current",n.isActive?"page":void 0),c(2),T(e.title);}}function Km(i,t){if(i&1&&(s(0,"div",20)(1,"button",63),p(2),l(),s(3,"div",64),Pe(4,zm,3,7,"a",65,Qe),l()()),i&2){let e=u().$implicit;f("routerLinkActive",Z(4,gi)),c(),f("id",e.buttonId),c(),W(" ",e.title," "),c(),ce("aria-labelledby",e.buttonId),c(),De(e.children);}}function Wm(i,t){if(i&1&&(s(0,"div",27)(1,"a",28),p(2),l()()),i&2){let e=u(2).$implicit;c(),f("id",e.buttonId)("href",e.route,Be)("target",e.target||null),ce("aria-current",!1),c(),T(e.title);}}function qm(i,t){if(i&1&&(s(0,"div",22,0)(2,"a",66),p(3),l()()),i&2){let e=j(1),n=u(2).$implicit;f("routerLinkActive",Z(7,gi))("routerLinkActiveOptions",Z(8,Fr)),c(2),f("id",n.buttonId)("routerLink",n.route)("target",n.target||null),ce("aria-current",e.isActive?"page":void 0),c(),T(n.title);}}function Ym(i,t){if(i&1&&g(0,Wm,3,5,"div",27)(1,qm,4,9,"div",22),i&2){let e=u().$implicit;_(e.external?0:1);}}function Qm(i,t){if(i&1&&g(0,Km,6,5,"div",20)(1,Ym,2,1),i&2){let e=t.$implicit;_(e.children&&e.children.length>0?0:1);}}function Xm(i,t){if(i&1&&(s(0,"div",33)(1,"nav",61)(2,"div",62)(3,"div",19),Pe(4,Qm,2,1,null,null,Qe),l()()()()),i&2){let e=u(2);c(4),De(e.mainMenuItems);}}function Zm(i,t){if(i&1&&(s(0,"div",29)(1,"div",10)(2,"div",30),C(3,"app-header-logo",12),l(),s(4,"div",31),g(5,Um,5,3),g(6,Vm,2,4,"a",32)(7,Hm,2,4,"a",32)(8,$m,6,4),g(9,Gm,5,2),l()()(),g(10,Xm,6,0,"div",33)),i&2){let e=u();f("ngClass",be(6,qc,e.auth)),c(3),f("logoWidth",610),c(2),_(e.auth&&!e.forceEmailChange?5:-1),c(),_(e.forceEmailChange?6:e.auth?e.auth&&!e.forceEmailChange?8:-1:7),c(3),_(e.forceEmailChange?-1:9),c(),_(e.auth&&!e.forceEmailChange?10:-1);}}var yo=class Rr{constructor(t,e,n,o){this.store=t,this.scroll=e,this.permissionsService=n,this.menuFilter=o,this.StsActions=se,this.mainMenuItems=H.mainMenuItems.filter(r=>r.route==="/"),this.username="",this.client=H,this.auth=!1,this.navbarCollapsed=!0,this.isMobile=!1,this.scrollHeader=!1,this.profileMenuExpanded=!1,this.helpMenuExpanded=!1,this.showDevBanner=le.showDevBanner,this.compassUrl="/assets/img/compass.svg",this.exploreUrl="/assets/img/explore-icon.svg",this.hidePageEvent=new An(),this.newAccountPdfLink="",this.explorePdfLink="",this.menuFilter.username$.pipe(S(this)).subscribe(r=>this.username=r),this.menuFilter.hasAccess$.pipe(S(this)).subscribe(r=>this.auth=r),this.menuFilter.mobileBreakpoint$.pipe(S(this)).subscribe(r=>{this.isMobile=r;}),this.menuFilter.buildMenuFilter(H.mainMenuItems).pipe(S(this)).subscribe(r=>this.mainMenuItems=r),e.scrollHeader$.pipe(ie(),S(this)).subscribe(r=>this.scrollHeader=r),this.store.select(U.scope).subscribe(r=>this.scope=r),this.store.select(U.forceEmailChange).subscribe(r=>this.forceEmailChange=r);}ngOnInit(){}logout(){this.store.dispatch(new je());}hidePage(t){this.hidePageEvent.emit(t);}hidePageMouseClick(){this.navbarCollapsed?this.hidePageEvent.emit(!1):this.hidePageEvent.emit(!0);}static{this.ɵfac=function(e){return new(e||Rr)(v(B),v(go),v(ze),v(po));};}static{this.ɵcmp=M({type:Rr,selectors:[["","app-header",""]],outputs:{hidePageEvent:"hidePageEvent"},standalone:!1,attrs:Sm,decls:4,vars:3,consts:()=>{let t;return t="Explore GivingPoint &raquo;",[["item","routerLinkActive"],["child","routerLinkActive"],["popContent",""],["helpPopOver","ngbPopover"],["helpPopContent",""],t,[1,"giving-portal","d-flex","justify-content-center","align-items-center",3,"ngClass"],[1,"dev-indicator","text-center","alert","alert-danger"],["routerLink","/givingpoint","markdown","",1,"text-uppercase"],[1,"container-fluid","container-xxl",3,"ngClass"],[1,"row","align-items-center","app-header-content","remove-padding-on-scroll"],[1,"logo","col-2","my-2"],[3,"logoWidth"],["id","nav",1,"col-10","d-flex","justify-content-end"],["type","button","aria-controls","navbarSupportedContent","data-target","#navbarSupportedContent","aria-label","Toggle navigation",1,"navbar-toggler","navbar-toggler-end",3,"click"],[1,"fas","fa-fw","fa-sm","fa-chevron-down"],["id","jpmcTopNav",1,"container-fluid","mb
2-2"],["aria-label","Main",1,"navbar","navbar-mobile","navbar-expand-xl","justify-content-end"],["id","navbarSupportedContent",1,"collapse","navbar-collapse","justify-content-around",3,"ngbCollapse"],[1,"navbar-nav","mx-auto","d-flex","justify-content-around"],["ngbDropdown","",1,"nav-item",3,"routerLinkActive"],[1,"nav-link","dropdown-no-toggle",3,"id"],[1,"nav-item",3,"routerLinkActive","routerLinkActiveOptions"],[1,"ms-3","text-shrink"],[1,"dropdown-item","reverse-link-underline","w-auto",3,"id","routerLink","routerLinkActive"],[1,"nav-link","add-hover","remove-link-underline",3,"click","id","routerLink"],[1,"dropdown-item","reverse-link-underline","w-auto",3,"click","id","routerLink","routerLinkActive"],[1,"nav-item"],[1,"nav-link","remove-link-underline",3,"id","href","target"],[1,"container-fluid","container-xxxl","container-xxxxl",3,"ngClass"],[1,"logo","col-5","mb-2","mb-md-0","col-xxl-5"],["id","topNav",1,"col-7","col-xxl-7","text-end"],["routerLink","/","routerLinkActive","router-link-active","id","loginBtn",1,"remove-link-underline",3,"ngClass"],[1,"navbar-container"],["routerLinkActive","router-link-active",1,"banner-link","my-3","remove-link-underline",3,"routerLink","target"],["routerLink","/resources","routerLinkActive","router-link-active",1,"banner-link","my-3","remove-link-underline"],["routerLink","/content","routerLinkActive","router-link-active",1,"banner-link","my-3","remove-link-underline"],["routerLink","/contact","routerLinkActive","router-link-active",1,"banner-link","my-3","remove-link-underline"],["routerLink","/","routerLinkActive","router-link-active","id","loginBtn",1,"remove-link-underline",3,"click","ngClass"],["id","profile-menu-container"],["type","button","id","profile-menu","aria-controls","profile-menu-container",1,"dropdown-toggle","banner-link",3,"shown","hidden","ngbPopover"],[1,"far","fa-fw","fa-user"],["aria-labelledby","profile-menu","role","menu"],["routerlinkactive","router-link-active","routerLink","/my-profile",1,"profile-menu-item","profile-menu-item-bg"],[1,"profile"],["routerlinkactive","router-link-active","routerLink","/my-profile/password",1,"profile-menu-item","profile-menu-item-bg"],[1,"fas","fa-fw","fa-key"],[1,"profile-menu-item-logout","profile-menu-item"],[1,"fas","fa-fw","fa-lock-open"],["type","button",1,"btn","btn-primary",3,"click"],["type","button","placement","bottom auto","popoverClass","help-menu","aria-label","Help Menu",1,"btn-help",3,"shown","hidden","ngbPopover"],["id","test","aria-labelledby","help-menu-desc","role","menu"],[1,"d-flex","justify-content-between","align-items-center","p-3"],[1,"text-uppercase","fw-bold"],["aria-label","Dismiss help","type","button",1,"btn","btn-link",3,"click"],[1,"fas","fa-times","m-0"],["routerlinkactive","router-link-active",1,"help-menu-item","d-block","p-3",3,"routerLink","target"],[1,"fas","fa-fw","fa-search"],[1,"help"],["routerlinkactive","router-link-active","routerLink","/faq",1,"help-menu-item","d-block","p-3"],[1,"fas","fa-fw","fa-check"],["aria-label","Main",1,"navbar","navbar-expand-md","navbar-fixed-top","justify-content-end"],["id","navbarSupportedContent",1,"collapse","navbar-collapse","justify-content-around"],["type","button","ngbDropdownToggle","",1,"nav-link",3,"id"],["ngbDropdownMenu",""],[1,"dropdown-item","reverse-link-underline",3,"id","routerLink","routerLinkActive","target"],[1,"nav-link","remove-link-underline",3,"id","routerLink","target"]];},template:function(e,n){e&1&&(g(0,Am,3,3,"div",6),g(1,wm,2,0,"div",7),g(2,Om,13,6)(3,Zm,11,8)),e&2&&(_(n.auth?0:-1),c(),_(n.showDevBanner?1:-1),c(),_(n.isMobile?2:3));},dependencies:[bt,Js,il,tl,el,zt,Re,Fn,Ne,vo,$i],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}.giving-portal{color:#fff;background:#575195;border-bottom:1px solid #b2b2b2;transition:all .35s ease-in-out}.giving-portal a{color:#fff}@media(prefers-reduced-motion:reduce){.giving-portal{transition:none}}.giving-portal{padding:16px 0;letter-spacing:3px;font-size:1.5rem;font-weight:700}@media(max-width:575.98px){.giving-portal{font-size:.75rem}.giving-portal.hide-gp{padding:0!important;transform:translateY(-100%)}.giving-portal img{height:25px;width:auto}}header{width:100%;background:#fff;border-bottom:1px solid #4c4c4d;transition:all .35s ease-in-out}@media(prefers-reduced-motion:reduce){header{transition:none}}header.sticky{position:fixed;top:0;z-index:1021}header .container-fluid{transition:all .35s ease-in-out}@media(prefers-reduced-motion:reduce){header .container-fluid{transition:none}}header .container-fluid .fade-on-scroll,header .container-fluid .shift-down-on-scroll,header .container-fluid .remove-padding-on-scroll{transition:all .35s ease-in-out}@media(prefers-reduced-motion:reduce){header .container-fluid .fade-on-scroll,header .container-fluid .shift-down-on-scroll,header .container-fluid .remove-padding-on-scroll{transition:none}}header.scrollHeader{transform:translateY(-20px)}header.scrollHeader .remove-padding-on-scroll{padding-bottom:0!important}header.scrollHeader .fade-on-scroll{opacity:0}
2header.scrollHeader .shift-down-on-scroll{transform:translateY(15px)}.removePosition{position:unset}@media(max-width:1199.98px){header .logo-letters{display:none}}@media(max-width:1399.98px){header .authenticated .logo-letters{display:none}}#topNav .banner-link{font-size:13px;color:#4c4c4d;letter-spacing:2px;text-transform:uppercase;margin:0 15px;background:transparent;padding:0 0 2px;border-bottom:1px solid #065881;cursor:pointer;font-family:var(--font-din);display:inline-block}#topNav .banner-link:hover,#topNav .banner-link:focus,#topNav .banner-link:active{text-decoration:none;color:#043750}#topNav .banner-link:focus{font-weight:700}#topNav .dropdown-toggle:after{border:2px solid #065881;border-top:none;border-left:none}#topNav .dropdown-toggle:hover:after{border-color:#b2b2b2}#topNav .popover-body{padding:0;font-size:18px}#topNav .popover-body a{color:#000}#topNav .popover-body a:hover,#topNav .popover-body a:focus,#topNav .popover-body a:active{text-decoration:none;color:#043750}#topNav .popover-body i{color:#065881;margin-right:1rem}#topNav .popover-body .profile-menu-item{padding:1rem;display:block}#topNav .popover-body .profile-menu-item-bg{background:#f7f7f7}#topNav .logout{width:120px;min-width:auto;margin:10px auto;display:block}@media(min-width:992px){nav.navbar .navbar-nav{height:52px;overflow:visible}}nav.navbar .navbar-nav .dropdown-item{background-color:#fff;color:#000}nav.navbar .navbar-nav .dropdown-item:hover,nav.navbar .navbar-nav .dropdown-item:focus,nav.navbar .navbar-nav .dropdown-item:active{background-color:#70b1c9;color:#000}nav.navbar .navbar-nav .nav-link{color:#4c4c4d;text-transform:uppercase;font-size:17px;padding:0 3rem;line-height:52px;font-family:var(--font-din);background:transparent}nav.navbar .navbar-nav .nav-link:hover,nav.navbar .navbar-nav .nav-link:focus,nav.navbar .navbar-nav .nav-link:active{color:#fff;background-color:#043750}nav.navbar .navbar-nav .nav-link:focus{font-weight:700}@media(max-width:1200px){nav.navbar .navbar-nav .nav-link{padding:0 1rem}}nav.navbar .navbar-nav .nav-item.active .nav-link{color:#fff;background-color:#065881}nav.navbar .navbar-nav .nav-item.active .nav-link:hover,nav.navbar .navbar-nav .nav-item.active .nav-link:focus,nav.navbar .navbar-nav .nav-item.active .nav-link:active{background-color:#043750}nav.navbar .navbar-nav a.active{text-decoration:underline!important}nav .dropdown-menu{color:#fff;background:transparent;min-width:auto;border:none}nav .dropdown-item{color:#fff;font-weight:300;line-height:2.25;padding:0 3rem}@media(min-width:768px){nav.navbar .navbar-nav .dropdown-menu{overflow-x:visible;width:0;min-height:210px;padding:0}nav .dropdown-item{width:21em}}@media(max-width:1200px){nav .dropdown-item{padding:0 1rem}}.navbar-toggler{color:#4c4c4d;font-size:2rem}.navbar-toggler:focus{color:#043750;border:2px solid rgb(3.7333333333,54.7555555556,80.2666666667)}.navbar-toggler:hover{color:#043750}.dropdown-toggle:after{width:8px;height:8px;margin-left:10px;border:2px solid #065881;border-top:none;border-left:none;transform:rotate(45deg);transition:all .35s ease-in-out}@media(max-width:768px){#topNav>a{font-size:12px}nav.navbar .navbar-nav .nav-link{font-size:14px}nav .dropdown-menu{font-size:14px;padding-top:0}header.scrollHeader .remove-padding-on-scroll{padding:0!important}}@media(min-width:992px){nav.navbar .navbar-nav .nav-item.active{height:52px;overflow:visible}}nav.navbar .navbar-nav .nav-item.active .dropdown-item{background-color:#fff;color:#000}nav.navbar .navbar-nav .nav-item.active .dropdown-item:hover,nav.navbar .navbar-nav .nav-item.active .dropdown-item:focus,nav.navbar .navbar-nav .nav-item.active .dropdown-item:active{background-color:#70b1c9;color:#000}.bottomBorder{border-bottom:solid 5px #ca1300}.app-header-content{padding-top:20px;padding-bottom:15px}@media(max-width:991.98px){.navbar-mobile .dropdown-toggle,.dropdown-no-toggle{width:100%;text-align:left}nav.navbar .navbar-nav .nav-link{color:#000;background-color:#e5e5e6;text-transform:none}}@media(max-width:991.98px)and (max-width:768px){.text-shrink .dropdown-item{font-size:14px}}
3`],encapsulation:2});}};yo=$([G()],yo);var eu=["app-footer",""],Qc=(()=>{class i{constructor(){this.client="",this.client=H.name;}ngOnInit(){}get currentYear(){return Ys.local().year;}static{this.ɵfac=function(n){return new(n||i)();};}static{this.ɵcmp=M({type:i,selectors:[["","app-footer",""]],standalone:!1,attrs:eu,decls:35,vars:1,consts:[[1,"container"],[1,"row","mt-50","pb-4","ftr-links"],[1,"col-md-9","text-start"],[1,"h4","pad"],[1,"col-md-3","text-start"],[1,"h4"],[1,"nobullet"],["href","https://www.nptrust.org/philanthropic-resources/charitable-giving-statistics/","rel","noopener noreferrer","target","_blank","aria-label","Giving Statistics will open in new window"],[1,"row","pb-4"],[1,"disclaimer"],[1,"row","legal"],[1,"col-lg-2","pt-4"],["href","https://www.nptrust.org/privacy-policy/","rel","noopener noreferrer","target","_blank","aria-label","Terms of Use / Privacy Policy will open in new window"],[1,"col-10","text-start","mt-auto"]],template:function(n,o){n&1&&(s(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),p(4,"J.P. Morgan Charitable Giving Fund"),l(),s(5,"div",3),p(6,"2 Ash Street"),l(),s(7,"div",3),p(8,"Suite 3000"),l(),s(9,"div",3),p(10,"Conshohocken, PA 19428"),l()(),s(11,"div",4)(12,"h2",5),p(13,"RESOURCES"),l(
3),s(14,"ul",6)(15,"li")(16,"a",7),p(17,"Giving Statistics"),l(),C(18,"br"),l()()()()(),s(19,"div",0)(20,"div",8)(21,"div",2)(22,"p",9),p(23," The J.P. Morgan Charitable Giving Fund is a donor-advised fund offered in conjunction with National Philanthropic Trust (NPT) an independent public charity under the Internal Revenue Code (sections 501(c)(3) and 170(b)(1) (A)(vi)) that receives and administers gifts, and approves and distributes grants to qualified organizations. The information set forth on this website is provided by NPT, which is solely responsible for the accuracy of the information presented. J.P. Morgan does not represent or guarantee the timeliness or accuracy of any information presented. "),l()(),s(24,"div",4)(25,"p",9),C(26,"br"),p(27,"GivingPoint is a registered trademark of National Philanthropic Trust."),l()()()(),s(28,"div",0)(29,"div",10)(30,"div",11)(31,"a",12),p(32,"Terms of Use / Privacy Policy"),l()(),s(33,"div",13),p(34),l()()()),n&2&&(c(34),W(" \xA9 ",o.currentYear," National Philanthropic Trust. All Rights Reserved. "));},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}[_nghost-%COMP%]{background-color:#e5e5e6;font-size:18px;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:normal}[_nghost-%COMP%]   .h4[_ngcontent-%COMP%]{font-family:proxima-regular;font-size:20px;font-weight:400;line-height:1.2;letter-spacing:3px;color:#000;padding-top:20px}[_nghost-%COMP%]   .pad[_ngcontent-%COMP%]{padding:.15rem 0}[_nghost-%COMP%]   p.disclaimer[_ngcontent-%COMP%]{font-size:.75rem;line-height:1.2;margin-bottom:0;color:#000}[_nghost-%COMP%]   .mt-50[_ngcontent-%COMP%]{margin-top:50px}[_nghost-%COMP%]   a[_ngcontent-%COMP%]{color:#065881}[_nghost-%COMP%]   a[_ngcontent-%COMP%]:hover, [_nghost-%COMP%]   a[_ngcontent-%COMP%]:focus, [_nghost-%COMP%]   a[_ngcontent-%COMP%]:active{color:#043750}
3[_nghost-%COMP%]   .separator[_ngcontent-%COMP%]{border-top:1px solid #191919}[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]{color:#000;font-size:12px;line-height:1}[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:15px;text-decoration:underline}[_nghost-%COMP%]   a[_ngcontent-%COMP%]{color:#4d5a31}[_nghost-%COMP%]   a[_ngcontent-%COMP%]:hover, [_nghost-%COMP%]   a[_ngcontent-%COMP%]:focus, [_nghost-%COMP%]   a[_ngcontent-%COMP%]:active{color:#065881}'],changeDetection:0});}}return i;})();var ru=["app-card-selector",""],Xc=()=>["action","fundId","accountName","organizationLegalName","total"],au=()=>({text:"View 10 per page",value:10}),su=()=>({text:"View 50 per page",value:50}),lu=()=>({text:"View All",value:0}),cu=(i,t,e)=>[i,t,e],Zc=i=>({transparent:i});function du(i,t){if(i&1){let e=L();s(0,"button",33),x("click",function(){w(e);let o=u(2);return E(o.clear());}),p(1," Clear"),s(2,"span",34),p(3," \xBB"),l()();}}function pu(i,t){i&1&&C(0,"npt-select",13),i&2&&f("optionList",It(4,cu,Z(1,au),Z(2,su),Z(3,lu)));}function mu(i,t){if(i&1){let e=L();s(0,"div",14)(1,"div",35,2)(3,"span",36),p(4,"You are viewing"),l(),s(5,"button",37),x("click",function(){w(e);let o=u(2);return E(o.toggleCurrency("GBP"));}),C(6,"i",38),p(7," GBP Account "),l(),s(8,"button",39),x("click",function(){w(e);let o=u(2);return E(o.toggleCurrency("USD"));}),C(9,"i",38),p(10," USD Account "),l()()();}if(i&2){let e=u(2);c(5),f("ngClass",be(4,Zc,e.currency==="USD")),c(),f("hidden",e.currency==="USD"),c(2),f("ngClass",be(6,Zc,e.currency==="GBP")),c(),f("hidden",e.currency==="GBP");}}function uu(i,t){i&1&&(s(0,"th",40),p(1,"Action"),l()),i&2&&ye("width",6,"rem");}function fu(i,t){if(i&1){let e=L();s(0,"td",41)(1,"button",42),x("click",function(){let o=w(e).$implicit,r=u().$implicit,a=u();return E(a.switchAccount(o,r));}),p(2," Select "),l()();}}function hu(i,t){i&1&&(s(0,"th",43),p(1,"ID"),l()),i&2&&ye("width",6,"rem");}function gu(i,t){if(i&1&&(s(0,"td",41)(1,"span",44),p(2,"ID"),l(),s(3,"span"),p(4),l()()),i&2){let e=t.$implicit;c(4),T(e.fundId);}}function _u(i,t){i&1&&(s(0,"th",45),p(1," Account Name "),l()),i&2&&ye("width",18.125,"rem");}function vu(i,t){if(i&1&&(s(0,"td",41)(1,"span",44),p(2,"Account Name"),l(),s(3,"span"),p(4),P(5,"fn"),l()()),i&2){let e=t.$implicit,n=u(2);c(4),T(yt(5,1,e.accountName,n.formatAccountNameAndClientNameAndStatus,n.client,e.accountStatus));}}function yu(i,t){i&1&&(s(0,"th",46),p(1," Organization "),l()),i&2&&ye("width",16.4375,"rem");}function Cu(i,t){if(i&1&&(s(0,"td",41)(1,"span",44),p(2,"Organization"),l(),s(3,"span"),p(4),l()()),i&2){let e=t.$implicit;c(4),T(e.organizationLegalName);}}function bu(i,t){i&1&&(s(0,"th",47),p(1,"Balance"),l()),i&2&&ye("width",14.6875,"rem");}function Su(i,t){if(i&1&&(s(0,"td",41)(1,"span",44),p(2,"Balance"),l(),s(3,"span"),p(4),P(5,"stsCurrency"),l()()),i&2){let e=t.$implicit,n=u(2);c(4),T(Me(5,1,e.total,n.currency,"symbol-narrow"));}}function xu(i,t){i&1&&C(0,"tr",48);}function Au(i,t){i&1&&C(0,"tr",49);}function wu(i,t){if(i&1){let e=L();s(0,"div",5)(1,"div",6),p(2,"View Accounts"),l(),s(3,"button",7),x("click",function(){let o=w(e).$implicit;return E(o.dismiss("Cross click"));}),C(4,"i",8),l()(),s(5,"div",9)(6,"form",10)(7,"div",11)(8,"npt-input",12),R(9,du,4,0,"ng-template",null,1,Ct),l(),g(11,pu,1,8,"npt-select",13),l()(),g(12,mu,11,8,"div",14),s(13,"div",15),x("exportExcel",function(){w(e);let o=u();return E(o.export());}),s(14,"table",16),x("matSortChange",function(o){w(e);let r=u();return E(r.dataSource.sort(o));}),s(15,"caption",17),p(16," View Accounts "),l(),ee(17,18),R(18,uu,2,2,"th",19)(19,fu,3,0,"td",20),te(),ee(20,21),R(21,hu,2,2,"th",22)(22,gu,5,1,"td",20),te(),ee(23,23),R(24,_u,2,2,"th",24)(25,vu,6,6,"td",20),te(),ee(26,25),R(27,yu,2,2,"th",26)(28,Cu,5,1,"td",20),te(),ee(29,27),R(30,bu,2,2,"th",28)(31,Su,6,5,"td",20),te(),s(32,"thead"),R(33,xu,1,0,"tr",29),l(),s(34,"tbody"),R(35,Au,1,0,"tr",30),l()()(),s(36,"div",31)(37,"button",32),x("click",function(){let o=w(e).$implicit;return E(o.close("Close click"));}),p(38," Close "),l()()();}if(i&2){let e=j(10),n=u();c(6),f("formGroup",n.searchForm),c(2),f("ngClass",n.tableCount>10?"col-9":"col")("additionalContent",e),c(3),_(n.tableCount>10?11:-1),c(),_(n.client==="npttransatlantic"?12:-1),c(),f("dataSource",n.dataSource),c(),f("dataSource",n.dataSource),c(19),f("nptHeaderRowDef",Z(9,Xc)),c(2),f("nptRowDefColumns",Z(10,Xc));}}function Eu(i,t){if(i&1&&(s(0,"div",52),P(1,"fn"),p(2),P(3,"fn"),l()),i&2){let e=u(2);f("title",yt(1,2,e.currentAccount.accountName,e.formatAccountNameAndClientNameAndStatus,e.client,e.currentAccount.accountStatus)),c(2),W(" ",yt(3,7,e.currentAccount.accountName,e.formatAccountNameAndClientNameAndStatus,e.client,e.currentAccount.accountStatus)," ");}}function Tu(i,t){if(i&1&&(s(0,"h1",53),P(1,"fn"),p(2),P(3,"fn"),l()),i&2){let e=u(2);f("title",yt(1,2,e.currentAccount.accountName,e.formatAccountNameAndClientNameAndStatus,e.client,e.currentAccount.accountStatus)),c(2),W(" ",yt(3,7,e.currentAccount.accountName,e.formatAccountNameAndClientNameAndStatus,e.client,e.currentAccount.accountStatus)," ");}}function Pu(i,t){if(i&1){let e=L();s(0,"button",59),x("click",function(){w(e);let o=u(2),r=j(1);return E(o.open(r));}),C(1,"i",60),p(2," View Accounts "),l();}}function Du(i,t){if(i&1&&(s(0,"div",4)(1,"div",50)(2,"div",51),g(3,Eu,4,12,"div",52)(4,Tu,4,12,"h1",53),s(5,"strong"),p(6," Account ID:"),l(),p(7),g(8,Pu,3,0,"button",54),l()(),s(9,"div",50)(10,"div",55)(11,"div",56)(12,"div",57),p(13),P(14,"stsCurrency"),l(
3),s(15,"div"),p(16),l(),s(17,"button",58),p(18," i "),l()()()()()),i&2){let e=u();c(3),_(e.mediaLgDown?3:4),c(4),W(" ",e.currentAccount.fundId," "),c(),_(e.showViewAccountsLink&&e.permissionsService.verifyAction(e.StsActions.USER_SS_VIEW)?8:-1),c(5),T($e(14,6,e.currentAccount.available)),c(3),T(e.overviewBarDafAvailableBalance),c(),f("ngbPopover",e.overviewBarDafAvailableBalanceTooltip);}}var Co=class Ur{constructor(t,e,n,o,r,a,d,m,h,y,b){this.store=t,this.accountService=e,this.modalService=n,this.actions=o,this.exportService=a,this.breakpointObserver=m,this.cdref=h,this.permissionsService=y,this.currencySvc=b,this.StsActions=se,this.overviewBarDafAvailableBalance="Your Donor-Advised Fund Available Balance",this.overviewBarDafAvailableBalanceTooltip="Your available balance is calculated based on the current date ending balance, less the cumulative amount of any pending grants and excluded assets.",this.client="",this.currentAccount=null,this.opening$=new _t(1),this.showViewAccountsLink=!0,this.mediaLgDown=!1,this.tableCount=0,this.debounce=400,this.formatAccountNameAndClientNameAndStatus=(k,I,A)=>(I??"").toUpperCase()!=="NPTUK"&&(I??"").toUpperCase()!=="NPTUKUSD"&&(I??"").toUpperCase()!=="RATHBONES"&&(I??"").toUpperCase()!=="CAZENOVE"&&(I??"").toUpperCase()!=="NPTTRANSATLANTIC"&&/close|immob/i.test(A??"")?`${k} (${A?.trim()})`:k,this.client=H.name,this.currency=t.selectSnapshot(U.alternateCurrency),this.accounts$=this.store.select(pe.apiDafAccountsSearchAccountsGet),this.searchForm=r.fromSchema({type:"object",properties:{keywords:{type:"string",default:""},view:{type:"number",default:10},querySecondary:{type:"boolean",default:H.name==="npttransatlantic"&&this.currency&&this.currency!=="USD"}}}),this.accountService.currentAccount$.pipe(S(this)).subscribe(k=>{this.currentAccount=k;}),this.dataSource=new St(this.accounts$,10,S(this)),this.dataSource.count$.pipe(S(this)).subscribe(k=>{this.tableCount=k;}),d.canDeactivateNoConfirm().pipe(S(this)).subscribe(k=>{this.showViewAccountsLink=k,this.cdref.detectChanges();}),this.breakpointObserver.observe([ai(Mt.lg)]).pipe(z(k=>k.matches),ie(),S(this)).subscribe(k=>{this.mediaLgDown=k;});}ngOnInit(){let t=this.searchForm.valueChanges.pipe(z(()=>this.searchForm.model),Dt(this.debounce),xe(),J(e=>{this.dataSource.go({skipFirst:0,first:e.view});}));_e([_e([t,this.dataSource.nextPage$]).pipe(xe()),this.opening$]).pipe(S(this),Dt(10),z(([e])=>e)).subscribe(([e,n])=>{let o=(e.keywords||"").match(/\d+/g)?.map(a=>`fundId:${a}`).join(" ")||"",r=e.keywords?`accountName:"${e.keywords}"`:"";this.store.dispatch(new cc(Te(Y({},n),{keywords:`${r} ${o}`,columns:"accountName fundId total donorName organizationLegalName writeAccess",first:e.view,querySecondary:e.querySecondary,cacheStrategy:"network-first"})));}),this.searchForm.updateValueAndValidity(),this.dataSource.sort({active:"accountName",direction:"asc"}),(H.name??"").toUpperCase()==="NPTTRANSATLANTIC"&&this.currencySvc.currencyChanges.pipe(S(this)).subscribe(e=>{this.overviewBarDafAvailableBalance="Your Donor-Advised Fund Available Balance".replace("{0}",e),this.overviewBarDafAvailableBalanceTooltip="Your available balance is calculated based on the current date ending balance, less the cumulative amount of any pending grants and excluded assets.".replace("{0}",e==="GBP"?"U.S. dollars":"Great British pounds");});}open(t){this.clear();let e=this.store.selectSnapshot(U.alternateCurrency);H.name==="npttransatlantic"&&e!==this.currency&&(this.searchForm.controls.querySecondary.setValue(e!=="USD"),this.currency=e),this.modalService.open(t,{size:"xl"}),this.opening$.next(1);}switchAccount(t,e){H.name==="npttransatlantic"&&this.currency&&this.currency!==this.currencySvc.current?(this.accountService.suppressAccountUpdates(!0),this.store.dispatch(new Ji(this.currency,this.store.selectSnapshot(U.rememberCurrency),this.store.selectSnapshot(U.loginCurrency)??"USD")),this.accountService.suppressAccountUpdates(!1),this.accountService.changeAccount(t.fundId,!1,!0)):this.accountService.changeAccount(t.fundId),e.dismiss("Change Account");}clear(){this.searchForm.controls.keywords.setValue("");}toggleCurrency(t){this.currency=t,this.searchForm.controls.querySecondary.setValue(t!=="USD");}export(){let t=this.searchForm.model,e=(t.keywords||"").match(/\d+/g)?.map(o=>`fundId:${o}`).join(" ")||"",n=t.keywords?`accountName:"${t.keywords}"`:"";this.store.dispatch(new dc({keywords:`${n} ${e}`,querySecondary:t.querySecondary})),this.actions.pipe(ge(pc),pt(1)).subscribe(o=>{let r=kt(o.doc);r&&this.exportService.export("accounts.xlsx",[{title:["Accounts"],widths:[11,60,18,24,20,16,12],data:[["Account ID","Account Name","Balance","Donor Name","Account Type","Established Date","Closed Date"],...r.map(a=>[{set:a.fundId??0,numberFormat:"0"},this.formatAccountNameAndClientNameAndStatus(a?.accountName??"",this.client,a.accountStatus)??"",{set:a.total??0,numberFormat:"#,##0.00;(#,##0.00)"},a.donorName??"",a.accountType??"",a.opened?new Date(a.opened):"",a.closed?new Date(a.closed):""])]}]);});}static{this.ɵfac=function(e){return new(e||Ur)(v(B),v(Ce),v(Oi),v(ae),v(ct),v(Li),v(Ge),v(jt),v(cs),v(ze),v(Bn));};}static{this.ɵcmp=M({type:Ur,selectors:[["","app-card-selector",""]],standalone:!1,attrs:ru,decls:4,vars:1,consts:[["accountSearch",""],["clearKeywords",""],["currencyToggles",""],[1,"container"],[1,"row"],[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"],[3,"formGroup"],[1,"row","mb-3"],["controlId","keywords","placeholder","ID or Account Name","textLabel","ID or Account Name",3,"ngClass","additionalContent"],["controlId","view","textLabel","View",1,"col-md-3","mb-3",3,"optionList"],["aria-label","",1,"d-flex","flex-wrap","justify-content-start","align-items-center"],["npt-container","","title","Accounts",3,"exportExcel","dataSource"],["id","account-selector-table","role","grid","npt-table","","matSort","","matSortActive","accountName","matSortDirection","asc",1,"table","table-sm","table-npt","table-borderless",3,"matSortChange","dataSource"],[1,"sr-only"],["nptColumnDef","action","alignment","left"],["npt-header-cell","",3,"width",4,"nptHeaderCellDef"],["npt-cell","",4,"nptCellDef"],["nptColumnDef","fundId","alignment","left"],["npt-header-cell","","mat-sort-header","fundId",3,"width",4,"nptHeaderCellDef"],["nptColumnDef","accountName","alignment","left"],["npt-header-cell","","mat-sort-header","accountName",3,"width",4,"nptHeaderCellDef"],["nptColumnDef","organizationLegalName","alignment","left"],["npt-header-cell","","mat-sort-header","organizationLegalName",3,"width",4,"nptHeaderCellDef"],["nptColumnDef","total","alignment","left"],["npt-header-cell","","mat-sort-header","total",3,"width",4,"nptHeaderCellDef"],["npt-header-row","",4,"nptHeaderRowDef"],["npt-row","",4,"nptRowDef","nptRowDefColumns"],[1,"modal-footer"],["type","button","aria-label","Close",1,"btn","btn-primary",3,"click"],["type","button","aria-label","Clear",1,"btn","btn-link",3,"click"],["aria-hidden","true"],["id","currencyToggles",1,"mb-3"],[1,"mx-1"],["type","button",1,"btn-primary","btn-toggle-left",3,"click","ngClass"],[1,"fa-solid","fa-check",3,"hidden"],["type","button",1,"btn-primary","btn-toggle-right",3,"click","ngClass"],["npt-header-cell",""],["npt-cell",""],["type","button","aria-label","select",1,"btn","btn-link","link-underline",3,"click"],["npt-header-cell","","mat-sort-header","fundId"],[1,"mobile-header"],["npt-header-cell","","mat-sort-header","accountName"],["npt-header-cell","","mat-sort-header","organizationLegalName"],["npt-header-cell","","mat-sort-header","total"],["npt-header-row",""],["npt-row",""],[1,"col-md-6"],[1,"text-center","text-md-start"],[1,"h3","proxima-semibold",2,"display","-webkit-box","-webkit-box-orient","vertical","-webkit-line-clamp","2","overflow","hidden",3,"title"],[1,"h3","text-truncate","proxima-semibold",3,"title"],["type","button","aria-label","view accounts will open in modal",1,"btn","btn-link","view-accounts","reverse-link-underline"],[1,"text-center","text-md-end","mt-3","mt-md-0"],[1,"d-inline-block","text-center","text-md-end"],[1,"h3","proxima-regular"],["type","button","aria-label","donor-advised fund balance tooltip","container","body",1,"info-tooltip",3,"ngbPopover"],["type","button","aria-label","view accounts will open in modal",1,"btn","btn-link","view-accounts","reverse-link-underline",3,"click"],[1,"fas","fa-fw","fa-search"]],template:function(e,n){e&1&&(R(0,wu,39,11,"ng-template",null,0,Ct),s(2,"div",3),g(3,Du,19,8,"div",4),l()),e&2&&(c(3),_(n.currentAccount?3:-1));},dependencies:[bt,st,at,lt,zt,qt,Yt,Qt,Xt,Jt,ti,ii,ni,Zt,ei,wt,Kt,Wt,Jn,Ri,Xn,Et],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}.btn-toggle-left[_ngcontent-%COMP%]{border-radius:10px 0 0 10px}.btn-toggle-right[_ngcontent-%COMP%]{border-radius:0 10px 10px 0}.btn-toggle-left[_ngcontent-%COMP%], .btn-toggle-right[_ngcontent-%COMP%]{background-color:#065881!important;color:#fff!important;border:1px solid #065881!important;line-height:35px!important;height:35px!important;text-decoration:none!important}.transparent[_ngcontent-%COMP%]{background-color:#fff!important;color:#065881!important;border:1px solid #065881!important}.transparent[_ngcontent-%COMP%]:hover{background-color:#fff!important;color:#065881!important;border-color:#065881!important;text-decoration:underline!important}.transparent[_ngcontent-%COMP%]:focus, .transparent[_ngcontent-%COMP%]:focus-visible{background-color:#fff!important;outline:2px solid #065881;outline-offset:0}.btn-toggle-left[_ngcontent-%COMP%]:focus, .btn-toggle-left[_ngcontent-%COMP%]:focus-visible, .btn-toggle-right[_ngcontent-%COMP%]:focus, .btn-toggle-right[_ngcontent-%COMP%]:focus-visible{outline:2px solid #065881;outline-offset:0}']});}};Co=$([G()],Co);var ku=["app-promo",""];function Mu(i,t){if(i&1&&C(0,"div",4),i&2){let e=u(2);f("contentId",e.contentId);}}function Ou(i,t){if(i&1&&(s(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),p(4),l()()(),g(5,Mu,1,1,"div",4),l()),i&2){let e=u();c(4),T(e.title),c(),_(e.contentId?5:-1);}}var xo=class Xr{constructor(t,e,n){this.title="Giving Resources",this.data=null,this.contentId="",this.display=[{segment:"/",exact:!0,authenticated:!0},{segment:"/recommend-a-grant",exact:!1,authenticated:!0},{segment:"/contact",exact:!1},{segment:"/resources",exact:!1}
3,{segment:"/financial-advisor-dashboard",exact:!1,authenticated:!0},{segment:"/super-user-dashboard",exact:!1,authenticated:!0}],this.routeData={},this.hide=!0;let o=t.select(U.hasAccess);e.events.pipe(S(this)).subscribe(r=>{if(r instanceof Ks){if(this.routeData[r.url]){this.title=this.routeData[r.url].title;return;}this.contentId=r.state.root.firstChild?.data.promoCards?r.state.root.firstChild?.data.promoCards:Un.RESOURCE_CARD_PROMOTIONS,this.contentInjector?.refresh();}}),e.events.pipe(ve(r=>r instanceof Ln),Ft(()=>o),S(this)).subscribe(r=>{this.hide=!this.display.some(a=>a.authenticated===!1&&r||a.authenticated===!0&&!r?!1:a.exact?e.isActive(a.segment,{paths:"exact",queryParams:"exact",fragment:"ignored",matrixParams:"ignored"}):e.isActive(a.segment,{paths:"subset",queryParams:"subset",fragment:"ignored",matrixParams:"ignored"}));});}static{this.ɵfac=function(e){return new(e||Xr)(v(B),v(xt),v(Ii));};}static{this.ɵcmp=M({type:Xr,selectors:[["","app-promo",""]],viewQuery:function(e,n){if(e&1&&it(Ui,5),e&2){let o;nt(o=ot())&&(n.contentInjector=o.first);}},hostVars:2,hostBindings:function(e,n){e&2&&Ve("hide",n.hide);},standalone:!1,attrs:ku,decls:1,vars:1,consts:[[1,"container"],[1,"row"],[1,"col","text-center"],[1,"h2"],["contentInjection","",3,"contentId"]],template:function(e,n){e&1&&g(0,Ou,6,2,"div",0),e&2&&_(n.hide?-1:0);},dependencies:[Ui],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}[_nghost-%COMP%]{background:#e2f7fa;padding:60px 0;background:linear-gradient(180deg,#e2faf7 70%,#fff 70%)}.card[_ngcontent-%COMP%]{border-top:5px solid #065881;max-width:380px;margin:0 auto}.card[_ngcontent-%COMP%]:hover{transition:all .15s ease;transform:translateY(-10px)}.card-img-top[_ngcontent-%COMP%]{border-radius:0}.card-img-top[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#000;text-decoration:underline}.card-img-top[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:none}']});}};xo=$([G()],xo);var Ru=["app-toast-container",""],Zr=i=>({toast:i});function Fu(i,t){if(i&1&&wn(0,3),i&2){let e=t.$implicit;u();let n=j(3),o=j(5);f("ngTemplateOutlet",e.focus?o:n)("ngTemplateOutletContext",be(2,Zr,e));}}function Uu(i,t){if(i&1){let e=L();s(0,"ngb-toast",4),x("hidden",function(){let o=w(e).toast,r=u();return E(r.toastService.remove(o.index));}),wn(1,3),l();}if(i&2){let e=t.toast;u();let n=j(7);Xe("toast-alert "+(e.disableClose?"toast-alert-close-disabled ":"")+(e.className||"")),f("header",e.header||"")("autohide",e.autoHide===!0)("delay",e.delay||5e3),c(),f("ngTemplateOutlet",n)("ngTemplateOutletContext",be(7,Zr,e));}}function Vu(i,t){if(i&1){let e=L();s(0,"ngb-toast",5),x("hidden",function(){let o=w(e).toast,r=u();return E(r.toastService.remove(o.index));}),wn(1,3),l();}if(i&2){let e=t.toast;u();let n=j(7);Xe("toast-alert "+(e.disableClose?"toast-alert-close-disabled ":"")+(e.className||"")),f("header",e.header||"")("autohide",e.autoHide===!0)("delay",e.delay||5e3)("cdkTrapFocusAutoCapture",!0),c(),f("ngTemplateOutlet",n)("ngTemplateOutletContext",be(8,Zr,e));}}function Hu(i,t){if(i&1&&C(0,"div",7),i&2){let e=u().toast;f("data",e.message);}}function Bu(i,t){if(i&1&&(s(0,"ul")(1,"li"),p(2),l()()),i&2){let e=t.$implicit;c(2),T(e);}}function $u(i,t){if(i&1&&C(0,"div",7),i&2){let e=u().toast;f("data",e.lowerMessage);}}function ju(i,t){if(i&1&&(s(0,"div",8),p(1),P(2,"stsDate"),l()),i&2){let e=u().toast;c(),T(X(2,1,e.idleWarning,"mm:ss"));}}function Gu(i,t){if(i&1){let e=L();s(0,"button",11),x("click",function(){let o=w(e).$implicit;return E(o.function());}),p(1),l();}if(i&2){let e=t.$implicit;c(),W(" ",e.text," ");}}function zu(i,t){if(i&1&&(s(0,"div",6),g(1,Hu,1,1,"div",7),Pe(2,Bu,3,1,"ul",null,Qe),g(4,$u,1,1,"div",7),g(5,ju,3,4,"div",8),s(6,"div",9),Pe(7,Gu,2,1,"button",10,ss().identify,!0),l()()),i&2){let e=t.toast;c(),_(e.message?1:-1),c(),De(e.list),c(2),_(e.lowerMessage?4:-1),c(),_(e.idleWarning?5:-1),c(2),De(e.buttons);}}var id=(()=>{class i{get classes(){return`ngb-toasts position-fixed top-0 end-0 z-1500 p-3 ${this.class}`;}constructor(e){this.toastService=e,this.class="",this.identify=(n,{index:o})=>o;}ngOnInit(){}static{this.ɵfac=function(n){return new(n||i)(v(rt));};}static{this.ɵcmp=M({type:i,selectors:[["","app-toast-container",""]],hostVars:1,hostBindings:function(n,o){n&2&&ce("class",o.classes);},inputs:{class:"class"},standalone:!1,attrs:Ru,decls:8,vars:0,consts:[["ngbToast",""],["trapFocus",""],["ngbToastContent",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"hidden","header","autohide","delay"],["cdkTrapFocus","",3,"hidden","header","autohide","delay","cdkTrapFocusAutoCapture"],[1,"d-flex","flex-column"],["markdown","",3,"data"],[1,"fw-bold","text-center","mb-3"],[1,"d-flex","flew-row"],["type","button",1,"btn","btn-primary","mx-auto"],["type","button",1,"btn","btn-primary","mx-auto",3,"click"]],template:function(n,o){n&1&&(Pe(0,Fu,1,4,"ng-container",3,o.identify,!0),R(2,Uu,2,9,"ng-template",null,0,Ct)(4,Vu,2,10,"ng-template",null,1,Ct)(6,zu,9,3,"ng-template",null,2,Ct)),n&2&&De(o.toastService.toasts);},dependencies:[Tn,nl,Ne,Bs,ki],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}.toast-alert a{color:inherit}.toast-alert a:hover,.toast-alert a:focus,.toast-alert a:active{color:inherit}.toast-alert-close-disabled .toast-header button.btn-close{display:none}
4`],encapsulation:2});}}return i;})();var qu=["app-currency-toggle",""],nd=i=>({transparent:i}),Ao=class Jr{constructor(t,e,n){this.store=t,this.toastService=e,this.actions$=n,this.pendingCurrency=null,this.previousCurrency=null,this.destroy$=new Sn(),this.hasToggledCurrency=!1,this.lastToggleHadError=!1,this.currency=t.selectSnapshot(U.alternateCurrency),this.store.select(U.alternateCurrency).pipe(S(this)).subscribe(o=>{this.currency=o;});}
4ngOnInit(){this.actions$.pipe(ge(li),wi(this.destroy$)).subscribe(t=>{this.hasToggledCurrency&&!this.lastToggleHadError&&this.toastService.show({header:`You are now viewing your ${this.store.selectSnapshot(U.alternateCurrency)} account`,message:`If you do not actively contribute or grant in ${this.store.selectSnapshot(U.alternateCurrency)}, you may see a zero balance and no fund activity.`,autoHide:!0,index:Ke.CurrencyToggle,className:"bg-primary text-light"}),this.hasToggledCurrency=!1,this.lastToggleHadError=!1;}),this.actions$.pipe(ge(Vc),wi(this.destroy$)).subscribe(()=>{this.lastToggleHadError=!0,this.previousCurrency&&(this.currency=this.previousCurrency,this.store.dispatch(new Ji(this.previousCurrency,this.store.selectSnapshot(U.rememberCurrency),this.store.selectSnapshot(U.loginCurrency)??"USD")),this.previousCurrency=void 0),this.toastService.show({header:"Could not load alternate fund view",message:"Please call us at +44 (0)800 133 7540 or email [email protected] to resolve this issue.",autoHide:!0,index:Ke.CurrencyToggle,className:"bg-primary text-light"});});}toggleConfirm(t,e,n,o){this.currency!==o&&(this.pendingCurrency=o,e.show(n,t));}actualToggle(t){if(!t.proceed||!this.pendingCurrency||this.currency===this.pendingCurrency){this.pendingCurrency=null;return;}this.hasToggledCurrency=!0,this.lastToggleHadError=!1,this.previousCurrency=this.currency,this.store.dispatch(new Ji(this.pendingCurrency,this.store.selectSnapshot(U.rememberCurrency),this.store.selectSnapshot(U.loginCurrency)??"USD")),this.currency=this.pendingCurrency,this.pendingCurrency=null;}static{this.ɵfac=function(e){return new(e||Jr)(v(B),v(rt),v(ae));};}static{this.ɵcmp=M({type:Jr,selectors:[["","app-currency-toggle",""]],standalone:!1,attrs:qu,decls:18,vars:8,consts:[["prompt","nptPrompt"],["currencyToggles",""],[1,"container"],[1,"row","d-none","d-lg-block"],[1,"col"],["nptYesNo","Are you sure? You will lose any unsaved changes.",3,"proceed"],["aria-label","",1,"d-flex","flex-wrap","justify-content-end","align-items-center"],["id","currencyToggles",1,"my-1"],[1,"mx-1"],["type","button",1,"btn-primary","btn-toggle-left",3,"click","ngClass"],[1,"fa-solid","fa-check",3,"hidden"],["type","button",1,"btn-primary","btn-toggle-right",3,"click","ngClass"],["type","button","aria-label","swap account currency tooltip","ngbPopover","Swaps out information to show activity for alternate currency. Not all accounts have activity to show for both currencies. Account activity is separate for each currency.","container","body",1,"info-tooltip","align-top"]],template:function(e,n){if(e&1){let o=L();s(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5,0),x("proceed",function(a){return w(o),E(n.actualToggle(a));}),s(5,"div",6)(6,"div",7,1)(8,"span",8),p(9,"You are viewing"),l(),s(10,"button",9),x("click",function(){w(o);let a=j(4),d=j(7);return E(n.toggleConfirm("currencyToggles",a,d,"GBP"));}),C(11,"i",10),p(12," GBP Account "),l(),s(13,"button",11),x("click",function(){w(o);let a=j(4),d=j(7);return E(n.toggleConfirm("currencyToggles",a,d,"USD"));}),C(14,"i",10),p(15," USD Account "),l(),s(16,"button",12),p(17," i "),l()()()()()()();}e&2&&(c(10),f("ngClass",be(4,nd,n.currency==="USD")),c(),f("hidden",n.currency==="USD"),c(2),f("ngClass",be(6,nd,n.currency==="GBP")),c(),f("hidden",n.currency==="GBP"));},dependencies:[bt,zt,so],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}.btn-toggle-left[_ngcontent-%COMP%]{border-radius:10px 0 0 10px}.btn-toggle-right[_ngcontent-%COMP%]{border-radius:0 10px 10px 0}.btn-toggle-left[_ngcontent-%COMP%], .btn-toggle-right[_ngcontent-%COMP%]{background-color:#065881!important;color:#fff!important;border:1px solid #065881!important;line-height:35px!important;height:35px!important;text-decoration:none!important}.transparent[_ngcontent-%COMP%]{background-color:#fff!important;color:#065881!important;border:1px solid #065881!important}.transparent[_ngcontent-%COMP%]:hover{background-color:#fff!important;color:#065881!important;border-color:#065881!important;text-decoration:underline!important}.transparent[_ngcontent-%COMP%]:focus, .transparent[_ngcontent-%COMP%]:focus-visible{background-color:#fff!important;outline:2px solid #065881;outline-offset:0}.btn-toggle-left[_ngcontent-%COMP%]:focus, .btn-toggle-left[_ngcontent-%COMP%]:focus-visible, .btn-toggle-right[_ngcontent-%COMP%]:focus, .btn-toggle-right[_ngcontent-%COMP%]:focus-visible{outline:2px solid #065881;outline-offset:0}']});}};Ao=$([G()],Ao);var Qu=["app-root",""],Xu=(i,t,e,n)=>({scrollHeader:i,removePosition:t,bottomBorder:e,sticky:n}),ad=(i,t,e)=>({scrollHeader:i,devNotice:t,sticky:e});function Zu(i,t){if(i&1&&C(0,"div",13),i&2){let e=u(2).ngLet,n=u(2);f("ngClass",It(1,ad,e&&n.isXs,n.showDevBanner,n.stickyHeader));}}function Ju(i,t){if(i&1&&(g(0,Zu,1,5,"div",13),C(1,"section",14)),i&2){let e=u().ngLet,n=u(2);_(n.client==="npttransatlantic"&&!n.currencyRestrictedRoute?0:-1),c(),f("ngClass",It(3,ad,e&&n.isXs,n.showDevBanner,n.stickyHeader))("hidden",n.hideElement);}}function ef(i,t){if(i&1&&C(0,"div",6),i&2){let e=u(3);f("pages",e.accountOpeningDashboardPages)("hidden",e.hideElement);}}function tf(i,t){if(i&1){let e=L();s(0,"button",15),x("click",function(){w(e);let o=u(3);return E(o.scrollToTop());}),s(1,"span",16),C(2,"i",17),l(),s(3,"span",18),p(4,"Back to top"),l()();}}function nf(i,t){if(i&1){let e=L();ee(0),s(1,"header",5),x("hidePageEvent",function(o){w(e);let r=u(2);return E(r.hidePage(o));}),l(),g(2,Ju,2,7),g(3,ef,1,2,"div",6),s(4,"main",7),C(5,"div",8)(6,"div",9)(7,"router-outlet",10)(8,"router-outlet")(9,"div",11),l(),g(10,tf,5,0,"button",12),te();}if(i&2){let e=t.ngLet,n=u().ngLet,o=u();c(),f("ngClass",ls(6,Xu,e&&o.isXs,o.hideElement,!n&&(o.client==="ubs"||o.client==="glenmede"||o.client==="tolleson"),o.stickyHeader)),c(),_(n?2:-1),c(),_(
4o.accountOpeningDashboardPages.length>0&&n?3:-1),c(),f("hidden",o.hideElement)("@routeAnimations",o.contentState),c(6),_(e&&!o.stickyHeader?10:-1);}}function of(i,t){if(i&1&&(ee(0),R(1,nf,11,11,"ng-container",3),P(2,"async"),te()),i&2){let e=u();c(),f("ngLet",$e(2,1,e.scroll.scrollHeader$));}}var wo=class ea{get showDevBanner(){return le.showDevBanner;}constructor(t,e,n,o,r,a,d,m,h){this.store=t,this.actions$=e,this.router=n,this.meta=o,this.scroll=r,this.viewportScroller=a,this.breakpointObserver=d,this.modalService=m,this.menuFilter=h,this.client="",this.stickyHeader=!1,this.hideElement=!1,this.isXs=!1,this.contentState="",this.accountOpeningDashboardPages=[],this.currencyRestrictedRoute=!1,this.hasAccess$=_e([this.store.select(U.hasAccess),this.store.select(U.forceEmailChange)]).pipe(z(([y,b])=>y&&!b)),this.store.select(U.hasAccess).pipe(z(y=>y===!0),ie(),S(this)).subscribe(y=>{y&&this.store.dispatch(new kc());}),this.actions$.pipe(ge(Mc),S(this)).subscribe(y=>{let b=y.doc?.data?.attributes?.data?.[0];this.store.dispatch(new ws(b?.requiresPrimaryEmail===!0));}),_e([this.store.select(U.hasAccess),this.store.select(U.forceEmailChange)]).pipe(z(([y,b])=>y===!0&&b===!0),ie(),S(this)).subscribe(y=>{y&&this.router.navigate(["/confirm-your-email"]);}),this.client=H.name,this.stickyHeader=H.stickyHeader,this.actions$.pipe(S(this),ge(Fc),J(y=>{let b=y.doc.data.attributes;if(!b)return;let k=b.data;if(!k)return;let I=k[0];!I||!I.deviceRegistration||this.store.dispatch(new Ss(I.deviceRegistration));})).subscribe(),this.breakpointObserver.observe([xl(Mt.lg)]).pipe(z(y=>y.matches),ie(),S(this)).subscribe(y=>{y&&(this.hideElement=!y);}),this.breakpointObserver.observe([ai(Mt.xs)]).pipe(z(y=>y.matches),ie(),S(this)).subscribe(y=>{this.isXs=y;}),this.menuFilter.buildMenuFilter(H.subNavMenuItems).pipe(S(this)).subscribe(y=>{this.accountOpeningDashboardPages=y;});}ngOnInit(){this.updateMetaTags(),this.router.events.pipe(S(this)).subscribe(t=>{t instanceof Rn&&window.setTimeout(()=>{this.contentState="show";},0),t instanceof Ws&&(this.contentState="hide"),t instanceof Ln&&(this.router.url.endsWith("#content")||(this.skipLinkPath=`${this.router.url}#content`),this.modalService.dismissAll(),H.name==="npttransatlantic"&&(this.currencyRestrictedRoute=this.router.url.startsWith("/my-profile")||this.router.url.startsWith("/account")&&!this.router.url.startsWith("/account-documents")));});}updateMetaTags(){let t={name:"description",content:"With GivingPoint for the JP Morgan Charitable Giving Fund, users can manage their donor-advised funds, contribute online, and recommend grants anytime."};this.meta.addTag(t),this.meta.updateTag(t);}hidePage(t){this.hideElement=t;}scrollToTop(){this.viewportScroller.scrollToAnchor("skip-link");}static{this.ɵfac=function(e){return new(e||ea)(v(B),v(ae),v(xt),v(hs),v(go),v(Mi),v(jt),v(Oi),v(po));};}static{this.ɵcmp=M({type:ea,selectors:[["","app-root",""]],standalone:!1,attrs:Qu,decls:7,vars:4,consts:[["id","skip-link","tabindex","-1"],[1,"skippy","sr-only-focusable",3,"href"],[1,"skippy-text"],[4,"ngLet"],["id","footer","app-footer","",1,"site-footer","py-4"],["app-header","","id","sticky-header",3,"hidePageEvent","ngClass"],["app-dashboard-sub-nav","",3,"pages","hidden"],["id","content","role","main",3,"hidden"],["app-toast-container","","aria-live","polite","aria-atomic","true"],["app-banner-container","","aria-live","polite","aria-atomic","true"],["name","subNav"],["app-promo",""],["type","button","id","scroll-to-top","aria-label","Scroll back to top",1,"btn","btn-red"],["id","dbToggle","app-currency-toggle","",3,"ngClass"],["id","overviewBar","role","complementary","app-card-selector","",3,"ngClass","hidden"],["type","button","id","scroll-to-top","aria-label","Scroll back to top",1,"btn","btn-red",3,"click"],["aria-hidden","true",1,"d-inline"],[1,"fa","fa-chevron-up"],["aria-hidden","true",1,"d-none","d-sm-inline","ps-2"]],template:function(e,n){e&1&&(s(0,"aside",0)(1,"a",1)(2,"span",2),p(3,"Skip to main content"),l()()(),R(4,of,3,3,"ng-container",3),P(5,"async"),C(6,"footer",4)),e&2&&(c(),f("href",n.skipLinkPath,Be),c(3),f("ngLet",$e(5,2,n.hasAccess$)));},dependencies:[bt,qs,ri,_o,jc,yo,Qc,Co,xo,id,Ao,Pi],encapsulation:2,data:{animation:[_s("routeAnimations",[gr("show",Bt({opacity:1})),gr("hide",Bt({opacity:0}
4)),Cs("* => show",[Bt({opacity:0}),vs("1000ms ease-in-out",Bt({opacity:1}))])])]}});}};wo=$([G()],wo);var af=["app-password-setup",""],sd=(()=>{class i{static{this.ɵfac=function(n){return new(n||i)();};}static{this.ɵcmp=M({type:i,selectors:[["","app-password-setup",""]],standalone:!1,attrs:af,decls:4,vars:0,consts:[["id","blackBox",1,"py-4"],[1,"container"],[1,"row","justify-content-center","px-4"],["app-login-workflow","","initialPage","forgot-password","bypassPageTitleSuffix","true"]],template:function(n,o){n&1&&(s(0,"div",0)(1,"div",1)(2,"div",2),C(3,"div",3),l()()());},dependencies:[io],encapsulation:2});}}return i;})();var sf=["app-forgot-user-container",""],ld=(()=>{class i{static{this.ɵfac=function(n){return new(n||i)();};}static{this.ɵcmp=M({type:i,selectors:[["","app-forgot-user-container",""]],standalone:!1,attrs:sf,decls:4,vars:0,consts:[["id","blackBox",1,"py-4"],[1,"container"],[1,"row","justify-content-center","px-4"],["app-login-workflow","","initialPage","forgot-user","bypassPageTitleSuffix","true"]],template:function(n,o){n&1&&(s(0,"div",0)(1,"div",1)(2,"div",2),C(3,"div",3),l()()());},dependencies:[io],encapsulation:2});}}return i;})();var cf=["app-fund-activity-page",""];function df(i,t){if(i&1){let e=L();s(0,"div",5),C(1,"div",10),s(2,"div",11),x("dataChange",function(o){w(e);let r=u();return E(r.onNewData(o));}),l()();}if(i&2){let e=u();c(),f("data",e.fundActivityInstructions);}}function pf(i,t){if(i&1&&(s(0,"div",12),C(1,"div",13),P(2,"fn"),P(3,"fn"),l()),i&2){let e=u(2);c(),f("plainHeader",!0)("title",Me(2,3,"Beginning Balance",e.titleStatic,e.dateRange))("message",X(3,7,0,e.message));}}function mf(i,t){if(i&1&&g(0,pf,4,10,"div",12),i&2){let e=u();_(e.hasTable(0)?0:-1);}}function uf(i,t){if(i&1&&(s(0,"div",14),C(1,"div",15),P(2,"fn"),P(3,"fn"),P(4,"fn"),l()),i&2){let e=u(2);c(),f("plainHeader",!0)("title",Me(2,4,1,e.title,e.dateRange))("message",X(3,8,1,e.message))("columns",X(4,11,1,e.columns));}}function ff(i,t){if(i&1&&g(0,uf,5,14,"div",14),i&2){let e=u();_(e.hasTable(1)?0:-1);}}function hf(i,t){if(i&1&&(s(0,"div",16),C(1,"div",17),P(2,"fn"),P(3,"fn"),P(4,"fn"),l()),i&2){let e=u(2);c(),f("plainHeader",!0)("title",Me(2,4,2,e.title,e.dateRange))("message",X(3,8,2,e.message))("columns",X(4,11,2,e.columns));}}function gf(i,t){if(i&1&&g(0,hf,5,14,"div",16),i&2){let e=u();_(e.hasTable(2)?0:-1);}}function _f(i,t){if(i&1&&(s(0,"div",18),C(1,"div",19),P(2,"fn"),P(3,"fn"),P(4,"fn"),l()),i&2){let e=u(2);c(),f("plainHeader",!0)("title",Me(2,4,3,e.title,e.dateRange))("message",X(3,8,3,e.message))("columns",X(4,11,3,e.columns));}}function vf(i,t){if(i&1&&g(0,_f,5,14,"div",18),i&2){let e=u();_(e.hasTable(3)?0:-1);}}function yf(i,t){if(i&1&&(s(0,"div",20),C(1,"div",21),P(2,"fn"),P(3,"fn"),P(4,"fn"),l()),i&2){let e=u(2);c(),f("plainHeader",!0)("title",Me(2,4,4,e.title,e.dateRange))("message",X(3,8,4,e.message))("columns",X(4,11,4,e.columns));}}function Cf(i,t){if(i&1&&g(0,yf,5,14,"div",20),i&2){let e=u();_(e.hasTable(4)?0:-1);}}function bf(i,t){if(i&1&&(s(0,"div",22),C(1,"div",23),P(2,"fn"),P(3,"fn"),P(4,"fn"),l()),i&2){let e=u(2);c(),f("plainHeader",!0)("title",Me(2,4,5,e.title,e.dateRange))("message",X(3,8,5,e.message))("columns",X(4,11,5,e.columns));}}function Sf(i,t){if(i&1&&g(0,bf,5,14,"div",22),i&2){let e=u();_(e.hasTable(5)?0:-1);}}function xf(i,t){if(i&1&&(s(0,"div",6),C(1,"div",24),P(2,"fn"),P(3,"fn"),P(4,"fn"),l()),i&2){let e=u();c(),f("plainHeader",!0)("title",Me(2,4,6,e.title,e.dateRange))("message",X(3,8,6,e.message))("columns",X(4,11,6,e.columns));}}function Af(i,t){if(i&1&&(s(0,"div",7),C(1,"div",25),P(2,"fn"),P(3,"fn"),P(4,"fn"),l()),i&2){let e=u();c(),f("plainHeader",!0)("title",Me(2,4,7,e.title,e.dateRange))("message",X(3,8,7,e.message))("columns",X(4,11,7,e.columns));}}function wf(i,t){if(i&1&&(s(0,"div",8),C(1,"div",26),P(2,"fn"),P(3,"fn"),P(4,"fn"),l()),i&2){let e=u();c(),f("plainHeader",!0)("title",Me(2,4,8,e.title,e.dateRange))("message",X(3,8,8,e.message))("columns",X(4,11,8,e.columns));}}function Ef(i,t){if(i&1&&(s(0,"div",9),C(1,"div",27),P(2,"fn"),P(3,"fn"),P(4,"fn"),l()),i&2){let e=u();c(),f("plainHeader",!0)("title",Me(2,4,9,e.title,e.dateRange))("message",X(3,8,9,e.message))("columns",X(4,11,9,e.columns));}}function Tf(i,t){if(i&1&&(s(0,"div",28),C(1,"div",29),P(2,"fn"),P(3,"fn"),l()),i&2){let e=u(2);c(),f("plainHeader",!0)("title",Me(2,3,"Ending Balance",e.titleStatic,e.dateRange))("message",X(3,7,10,e.message));}}function Pf(i,t){if(i&1&&g(0,Tf,4,10,"div",28),i&2){let e=u();_(e.hasTable(10)?0:-1);}}function Df(i,t){if(i&1&&(s(0,"div",30),C(1,"div",31),P(2,"fn"),P(3,"fn"),l()),i&2){let e=u(2);c(),f("plainHeader",!0)("title",yt(2,3,11,e.title,e.dateRange,!1))("message",X(3,8,11,e.message));}}function Nf(i,t){if(i&1&&g(0,Df,4,11,"div",30),i&2){let e=u();_(e.hasTable(11)?0:-1);}}var Eo=class ta{constructor(t,e,n,o,r,a){this.store=t,this.dateRanges=e,this.ddservice=n,this.viewportScroller=o,this.permissionsService=a,this.StsActions=se,this.dateRange="",this.tables=null,this.fundActivityPages=H.fundActivityPages,this.displayStatements=H.displaySettings.displayfundActivityStatements,this.fundActivityPageTitle="Activity Summary",this.fundActivityInstructions="Below is a summary of your donor-advised fund activity. To customize your view, select a different date range.\n\n- All tables below the summary will update when you change the date range.\n- The selected date range affects the data you export. Exporting table data can take five or more seconds.\n- When applicable, Excluded Assets will reflect all illiquid assets, or restricted or control stock, which are not yet liquidated and therefore not immediately available for grantmaking.\n- Your available balance will show what is immediately accessible for grantmaking purposes.",this.fundStatementLink="https://www.nptrust.org/a-guide-to-reading-your-donor-advised-fund-statement-npt/",this.fundStatementText="A Guide to Reading Your Donor-Advised Fund Statement",this.title=(d,m,h=!0)=>{let y=this.dateRanges.labelizer[m],b=this.ddservice.FundActivitySections[d]?.name||"";return y||(h=!0,y=this.dateRanges.customDateLookup(m)),y(b,!0,h);},this.titleStatic=(d,m)=>{let h=this.dateRanges.labelizer[m];return h||(h=this.dateRanges.customDateLookup(m)),h(d,!0,!0);},this.message=d=>this.ddservice.FundActivitySections[d]?.description||null,this.columns=d=>d===2?["effectiveDate","partyName","transactionId","amount"]:d===4?["effectiveDate","transactionTypeName","comment","transactionId","amount"]:["effectiveDate","transactionTypeName","transactionId","amount"],this.hasTable=d=>this.tables?.get(d)||!1,this.fundActivityPage$=this.store.select(pe.fundActivitySection),this.viewportScroller.setOffset([0,window.innerHeight-window.innerHeight/2]),this.store.select(pe.currentDateRange).pipe(S(this)).subscribe(d=>this.dateRange=d),r.pipe(ge(lc),Ft(()=>this.fundActivityPage$),S(this)).subscribe(d=>{this.viewportScroller.scrollToAnchor(`details_${d}`,`details_${d}`);});}
4ngOnInit(){}ngAfterViewInit(){setTimeout(()=>{let t=ec(".fund-activity-page-component");t.length>0&&t[0].focus();},0);}onNewData(t){if(!t)return;let e=new Map();for(let n of t){let o=n.reportId;typeof o=="number"&&n.hasDetails&&e.set(o,!0);}this.tables=e;}static{this.ɵfac=function(e){return new(e||ta)(v(B),v(Xs),v(Vn),v(Mi),v(ae),v(ze));};}static{this.ɵcmp=M({type:ta,selectors:[["","app-fund-activity-page",""]],standalone:!1,attrs:cf,decls:19,vars:15,consts:[["app-sub-nav","","navTitle","Fund Activity",3,"pages"],[1,"container","fund-activity-page-component"],[1,"h1"],[1,"row","no-gutter"],[1,"col-md-12"],[1,"mb-3"],["id","details_6","tabindex","-1",1,"col-md-12","order-md-2"],["id","details_7","tabindex","-1",1,"col-md-12","order-md-2"],["id","details_8","tabindex","-1",1,"col-md-12","order-md-2"],["id","details_9","tabindex","-1",1,"col-md-12","order-md-2"],["markdown","",1,"mb-3",3,"data"],["app-fund-activity-summary","",3,"dataChange"],["id","details_0","tabindex","-1",1,"col-md-12","order-md-2"],["app-fund-activity-balance-table","","endingBalance","false",3,"plainHeader","title","message"],["id","details_1","tabindex","-1",1,"col-md-12","order-md-2"],["app-fund-activity-details-table","","reportId","1",3,"plainHeader","title","message","columns"],["id","details_2","tabindex","-1",1,"col-md-12","order-md-2"],["app-fund-activity-details-table","","reportId","2",3,"plainHeader","title","message","columns"],["id","details_3","tabindex","-1",1,"col-md-12","order-md-2"],["app-fund-activity-details-table","","reportId","3",3,"plainHeader","title","message","columns"],["id","details_4","tabindex","-1",1,"col-md-12","order-md-2"],["app-fund-activity-details-table","","reportId","4",3,"plainHeader","title","message","columns"],["id","details_5","tabindex","-1",1,"col-md-12","order-md-2"],["app-fund-activity-details-table","","reportId","5",3,"plainHeader","title","message","columns"],["app-fund-activity-details-table","","reportId","6",3,"plainHeader","title","message","columns"],["app-fund-activity-details-table","","reportId","7",3,"plainHeader","title","message","columns"],["app-fund-activity-details-table","","reportId","8",3,"plainHeader","title","message","columns"],["app-fund-activity-details-table","","reportId","9",3,"plainHeader","title","message","columns"],["id","details_10","tabindex","-1",1,"col-md-12","order-md-2"],["app-fund-activity-balance-table","","endingBalance","true",3,"plainHeader","title","message"],["id","details_11","tabindex","-1",1,"col-md-12","order-md-2"],["app-pending-grants-table","",3,"plainHeader","title","message"]],template:function(e,n){e&1&&(C(0,"div",0),s(1,"div",1)(2,"div",2),p(3),l(),s(4,"div",3)(5,"div",4),g(6,df,3,1,"div",5),l(),g(7,mf,1,1),g(8,ff,1,1),g(9,gf,1,1),g(10,vf,1,1),g(11,Cf,1,1),g(12,Sf,1,1),g(13,xf,5,14,"div",6),g(14,Af,5,14,"div",7),g(15,wf,5,14,"div",8),g(16,Ef,5,14,"div",9),g(17,Pf,1,1),g(18,Nf,1,1),l()()),e&2&&(f("pages",n.fundActivityPages),c(3),T(n.fundActivityPageTitle),c(3),_(n.permissionsService.verifyAction(n.StsActions.FUND_SUMMARY_VIEW)?6:-1),c(),_(n.permissionsService.verifyAction(n.StsActions.FUND_BB_DETAILS_VIEW)?7:-1),c(),_(n.permissionsService.verifyAction(n.StsActions.FUND_CONTRIBUTE_DETAILS_VIEW)?8:-1),c(),_(n.permissionsService.verifyAction(n.StsActions.FUND_IG_DETAILS_VIEW)?9:-1),c(),_(n.permissionsService.verifyAction(n.StsActions.FUND_DI_DETAIL_VIEW)?10:-1),c(),_(n.permissionsService.verifyAction(n.StsActions.FUND_FEES_DETAIL_VIEW)?11:-1),c(),_(n.permissionsService.verifyAction(n.StsActions.FUND_OA_DETAIL_VIEW)?12:-1),c(),_(n.hasTable(6)?13:-1),c(),_(n.hasTable(7)?14:-1),c(),_(n.hasTable(8)?15:-1),c(),_(n.hasTable(9)?16:-1),c(),_(n.permissionsService.verifyAction(n.StsActions.FUND_EB_DETAIL_VIEW)?17:-1),c(),_(n.permissionsService.verifyAction(n.StsActions.FUND_PENDING_GRANT_DETAIL_VIEW)?18:-1));},dependencies:[si,Ne,dl,pl,ml,fl,Et],encapsulation:2});}};Eo=$([G()],Eo);function cd(i){return new Q(3e3,!1);}function If(){return new Q(3100,!1);}function kf(){return new Q(3101,!1);}function Mf(i){return new Q(3001,!1);}function Of(i){return new Q(3003,!1);}function Lf(i){return new Q(3004,!1);}function pd(i,t){return new Q(3005,!1);}function md(){return new Q(3006,!1);}function ud(){return new Q(3007,!1);}function fd(i,t){return new Q(3008,!1);}function hd(i){return new Q(3002,!1);}function gd(i,t,e,n,o){return new Q(3010,!1);}function _d(){return new Q(3011,!1);}function vd(){return new Q(3012,!1);}function yd(){return new Q(3200,!1);}function Cd(){return new Q(3202,!1);}function bd(){return new Q(3013,!1);}function Sd(i){return new Q(3014,!1);}function xd(i){return new Q(3015,!1);}function Ad(i){return new Q(3016,!1);}function wd(i,t){return new Q(3404,!1);}function Rf(i){return new Q(3502,!1);}function Ed(i){return new Q(3503,!1);}function Td(){return new Q(3300,!1);}function Pd(i){return new Q(3504,!1);}function Dd(i){return new Q(3301,!1);}function Nd(i,t){return new Q(3302,!1);}function Id(i){return new Q(3303,!1);}function kd(i,t){return new Q(3400,!1);}function Md(i){return new Q(3401,!1);}function Od(i){return new Q(3402,!1);}function Ld(i,t){return new Q(3505,!1);}function Lt(i){switch(i.length){case 0:return new hi();case 1:return i[0];default:return new In(i);}}function aa(i,t,e=new Map(),n=new Map()){let o=[],r=[],a=-1,d=null;if(t.forEach(m=>{let h=m.get("offset"),y=h==a,b=y&&d||new Map();m.forEach((k,I)=>{let A=I,N=k;if(I!=="offset")switch(A=i.normalizePropertyName(A,o),N){case Zi:N=e.get(I);break;case mt:N=n.get(I);break;default:N=i.normalizeStyleValue(I,A,N,o);break;}b.set(A,N);}),y||r.push(b),d=b,a=h;}
4),o.length)throw Rf(o);return r;}function To(i,t,e,n){switch(t){case"start":i.onStart(()=>n(e&&na(e,"start",i)));break;case"done":i.onDone(()=>n(e&&na(e,"done",i)));break;case"destroy":i.onDestroy(()=>n(e&&na(e,"destroy",i)));break;}}function na(i,t,e){let n=e.totalTime,o=!!e.disabled,r=Po(i.element,i.triggerName,i.fromState,i.toState,t||i.phaseName,n??i.totalTime,o),a=i._data;return a!=null&&(r._data=a),r;}function Po(i,t,e,n,o="",r=0,a){return{element:i,triggerName:t,fromState:e,toState:n,phaseName:o,totalTime:r,disabled:!!a};}function We(i,t,e){let n=i.get(t);return n||i.set(t,n=e),n;}function sa(i){let t=i.indexOf(":"),e=i.substring(1,t),n=i.slice(t+1);return[e,n];}var Ff=typeof document>"u"?null:document.documentElement;function Do(i){let t=i.parentNode||i.host||null;return t===Ff?null:t;}function Uf(i){return i.substring(1,6)=="ebkit";}var vi=null,dd=!1;function Rd(i){vi||(vi=Vf()||{},dd=vi.style?"WebkitAppearance"in vi.style:!1);let t=!0;return vi.style&&!Uf(i)&&(t=i in vi.style,!t&&dd&&(t="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in vi.style)),t;}function Vf(){return typeof document<"u"?document.body:null;}function la(i,t){for(;t;){if(t===i)return!0;t=Do(t);}return!1;}function ca(i,t,e){if(e)return Array.from(i.querySelectorAll(t));let n=i.querySelector(t);return n?[n]:[];}var Hf=1e3,da="{{",Bf="}}",pa="ng-enter",No="ng-leave",dn="ng-trigger",pn=".ng-trigger",ma="ng-animating",Io=".ng-animating";function Pt(i){if(typeof i=="number")return i;let t=i.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:oa(parseFloat(t[1]),t[2]);}function oa(i,t){return t==="s"?i*Hf:i;}function mn(i,t,e){return i.hasOwnProperty("duration")?i:jf(i,t,e);}var $f=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function jf(i,t,e){let n,o=0,r="";if(typeof i=="string"){let a=i.match($f);if(a===null)return t.push(cd(i)),{duration:0,delay:0,easing:""};n=oa(parseFloat(a[1]),a[2]);let d=a[3];d!=null&&(o=oa(parseFloat(d),a[4]));let m=a[5];m&&(r=m);}else n=i;if(!e){let a=!1,d=t.length;n<0&&(t.push(If()),a=!0),o<0&&(t.push(kf()),a=!0),a&&t.splice(d,0,cd(i));}return{duration:n,delay:o,easing:r};}function Fd(i){return i.length?i[0]instanceof Map?i:i.map(t=>new Map(Object.entries(t))):[];}function ut(i,t,e){t.forEach((n,o)=>{let r=ko(o);e&&!e.has(o)&&e.set(o,i.style[r]),i.style[r]=n;});}function pi(i,t){t.forEach((e,n)=>{let o=ko(n);i.style[o]="";});}function Gi(i){return Array.isArray(i)?i.length==1?i[0]:ys(i):i;}function Ud(i,t,e){let n=t.params||{},o=ua(i);o.length&&o.forEach(r=>{n.hasOwnProperty(r)||e.push(Mf(r));});}var ra=new RegExp(`${da}\\s*(.+?)\\s*${Bf}`,"g");function ua(i){let t=[];if(typeof i=="string"){let e;for(;e=ra.exec(i);)t.push(e[1]);ra.lastIndex=0;}return t;}function zi(i,t,e){let n=`${i}`,o=n.replace(ra,(r,a)=>{let d=t[a];return d==null&&(e.push(Of(a)),d=""),d.toString();});return o==n?i:o;}var Gf=/-+([a-z0-9])/g;function ko(i){return i.replace(Gf,(...t)=>t[1].toUpperCase());}function Vd(i,t){return i===0||t===0;}function Hd(i,t,e){if(e.size&&t.length){let n=t[0],o=[];if(e.forEach((r,a)=>{n.has(a)||o.push(a),n.set(a,r);}),o.length)for(let r=1;r<t.length;r++){let a=t[r];o.forEach(d=>a.set(d,Mo(i,d)));}}return t;}function qe(i,t,e){switch(t.type){case K.Trigger:return i.visitTrigger(t,e);case K.State:return i.visitState(t,e);case K.Transition:return i.visitTransition(t,e);case K.Sequence:return i.visitSequence(t,e);case K.Group:return i.visitGroup(t,e);case K.Animate:return i.visitAnimate(t,e);case K.Keyframes:return i.visitKeyframes(t,e);case K.Style:return i.visitStyle(t,e);case K.Reference:return i.visitReference(t,e);case K.AnimateChild:return i.visitAnimateChild(t,e);case K.AnimateRef:return i.visitAnimateRef(t,e);case K.Query:return i.visitQuery(t,e);case K.Stagger:return i.visitStagger(t,e);default:throw Lf(t.type);}}function Mo(i,t){return window.getComputedStyle(i)[t];}var Na=(()=>{class i{validateStyleProperty(e){return Rd(e);}containsElement(e,n){return la(e,n);}getParentElement(e){return Do(e);}query(e,n,o){return ca(e,n,o);}computeStyle(e,n,o){return o||"";}animate(e,n,o,r,a,d=[],m){return new hi(o,r);}static ɵfac=function(n){return new(n||i)();};static ɵprov=oe({token:i,factory:i.ɵfac});}return i;})(),Ci=class{static NOOP=new Na();},bi=class{};var zf=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Uo=class extends bi{normalizePropertyName(t,e){return ko(t);}normalizeStyleValue(t,e,n,o){let r="",a=n.toString().trim();if(zf.has(e)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else{let d=n.match(/^[+-]?[\d\.]+([a-z]*)$/);d&&d[1].length==0&&o.push(pd(t,n));}return a+r;}};var Vo="*";function Kf(i,t){let e=[];
4return typeof i=="string"?i.split(/\s*,\s*/).forEach(n=>Wf(n,e,t)):e.push(i),e;}function Wf(i,t,e){if(i[0]==":"){let m=qf(i,e);if(typeof m=="function"){t.push(m);return;}i=m;}let n=i.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return e.push(xd(i)),t;let o=n[1],r=n[2],a=n[3];t.push(Bd(o,a));let d=o==Vo&&a==Vo;r[0]=="<"&&!d&&t.push(Bd(a,o));}function qf(i,t){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n)<parseFloat(e);default:return t.push(Ad(i)),"* => *";}}var Oo=new Set(["true","1"]),Lo=new Set(["false","0"]);function Bd(i,t){let e=Oo.has(i)||Lo.has(i),n=Oo.has(t)||Lo.has(t);return(o,r)=>{let a=i==Vo||i==o,d=t==Vo||t==r;return!a&&e&&typeof o=="boolean"&&(a=o?Oo.has(i):Lo.has(i)),!d&&n&&typeof r=="boolean"&&(d=r?Oo.has(t):Lo.has(t)),a&&d;};}var Xd=":self",Yf=new RegExp(`s*${Xd}s*,?`,"g");function Zd(i,t,e,n){return new ya(i).build(t,e,n);}var $d="",ya=class{_driver;constructor(t){this._driver=t;}build(t,e,n){let o=new Ca(e);return this._resetContextStyleTimingState(o),qe(this,Gi(t),o);}_resetContextStyleTimingState(t){t.currentQuerySelector=$d,t.collectedStyles=new Map(),t.collectedStyles.set($d,new Map()),t.currentTime=0;}visitTrigger(t,e){let n=e.queryCount=0,o=e.depCount=0,r=[],a=[];return t.name.charAt(0)=="@"&&e.errors.push(md()),t.definitions.forEach(d=>{if(this._resetContextStyleTimingState(e),d.type==K.State){let m=d,h=m.name;h.toString().split(/\s*,\s*/).forEach(y=>{m.name=y,r.push(this.visitState(m,e));}),m.name=h;}else if(d.type==K.Transition){let m=this.visitTransition(d,e);n+=m.queryCount,o+=m.depCount,a.push(m);}else e.errors.push(ud());}),{type:K.Trigger,name:t.name,states:r,transitions:a,queryCount:n,depCount:o,options:null};}visitState(t,e){let n=this.visitStyle(t.styles,e),o=t.options&&t.options.params||null;if(n.containsDynamicStyles){let r=new Set(),a=o||{};n.styles.forEach(d=>{d instanceof Map&&d.forEach(m=>{ua(m).forEach(h=>{a.hasOwnProperty(h)||r.add(h);});});}),r.size&&e.errors.push(fd(t.name,[...r.values()]));}return{type:K.State,name:t.name,style:n,options:o?{params:o}:null};}visitTransition(t,e){e.queryCount=0,e.depCount=0;let n=qe(this,Gi(t.animation),e),o=Kf(t.expr,e.errors);return{type:K.Transition,matchers:o,animation:n,queryCount:e.queryCount,depCount:e.depCount,options:yi(t.options)};}visitSequence(t,e){return{type:K.Sequence,steps:t.steps.map(n=>qe(this,n,e)),options:yi(t.options)};}visitGroup(t,e){let n=e.currentTime,o=0,r=t.steps.map(a=>{e.currentTime=n;let d=qe(this,a,e);return o=Math.max(o,e.currentTime),d;});return e.currentTime=o,{type:K.Group,steps:r,options:yi(t.options)};}visitAnimate(t,e){let n=Jf(t.timings,e.errors);e.currentAnimateTimings=n;let o,r=t.styles?t.styles:Bt({});if(r.type==K.Keyframes)o=this.visitKeyframes(r,e);else{let a=t.styles,d=!1;if(!a){d=!0;let h={};n.easing&&(h.easing=n.easing),a=Bt(h);}e.currentTime+=n.duration+n.delay;let m=this.visitStyle(a,e);m.isEmptyStep=d,o=m;}return e.currentAnimateTimings=null,{type:K.Animate,timings:n,style:o,options:null};}visitStyle(t,e){let n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n;}_makeStyleAst(t,e){let n=[],o=Array.isArray(t.styles)?t.styles:[t.styles];for(let d of o)typeof d=="string"?d===mt?n.push(d):e.errors.push(hd(d)):n.push(new Map(Object.entries(d)));let r=!1,a=null;return n.forEach(d=>{if(d instanceof Map&&(d.has("easing")&&(a=d.get("easing"),d.delete("easing")),!r)){for(let m of d.values())if(m.toString().indexOf(da)>=0){r=!0;break;}}}),{type:K.Style,styles:n,easing:a,offset:t.offset,containsDynamicStyles:r,options:null};}_validateStyleAst(t,e){let n=e.currentAnimateTimings,o=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),t.styles.forEach(a=>{typeof a!="string"&&a.forEach((d,m)=>{let h=e.collectedStyles.get(e.currentQuerySelector),y=h.get(m),b=!0;y&&(r!=o&&r>=y.startTime&&o<=y.endTime&&(e.errors.push(gd(m,y.startTime,y.endTime,r,o)),b=!1),r=y.startTime),b&&h.set(m,{startTime:r,endTime:o}),e.options&&Ud(d,e.options,e.errors);});});}visitKeyframes(t,e){let n={type:K.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(_d()),n;let o=1,r=0,a=[],d=!1,m=!1,h=0,y=t.steps.map(fe=>{let we=this._makeStyleAst(fe,e),Fe=we.offset!=null?we.offset:Zf(we.styles),ke=0;return Fe!=null&&(r++,ke=we.offset=Fe),m=m||ke<0||ke>1,d=d||ke<h,h=ke,a.push(ke),we;});m&&e.errors.push(vd()),d&&e.errors.push(yd());let b=t.steps.length,k=0;r>0&&r<b?e.errors.push(Cd()):r==0&&(k=o/(b-1));let I=b-1,A=e.currentTime,N=e.currentAnimateTimings,ne=N.duration;
4return y.forEach((fe,we)=>{let Fe=k>0?we==I?1:k*we:a[we],ke=Fe*ne;e.currentTime=A+N.delay+ke,N.duration=ke,this._validateStyleAst(fe,e),fe.offset=Fe,n.styles.push(fe);}),n;}visitReference(t,e){return{type:K.Reference,animation:qe(this,Gi(t.animation),e),options:yi(t.options)};}visitAnimateChild(t,e){return e.depCount++,{type:K.AnimateChild,options:yi(t.options)};}visitAnimateRef(t,e){return{type:K.AnimateRef,animation:this.visitReference(t.animation,e),options:yi(t.options)};}visitQuery(t,e){let n=e.currentQuerySelector,o=t.options||{};e.queryCount++,e.currentQuery=t;let[r,a]=Qf(t.selector);e.currentQuerySelector=n.length?n+" "+r:r,We(e.collectedStyles,e.currentQuerySelector,new Map());let d=qe(this,Gi(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:K.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:d,originalSelector:t.selector,options:yi(t.options)};}visitStagger(t,e){e.currentQuery||e.errors.push(bd());let n=t.timings==="full"?{duration:0,delay:0,easing:"full"}:mn(t.timings,e.errors,!0);return{type:K.Stagger,animation:qe(this,Gi(t.animation),e),timings:n,options:null};}};function Qf(i){let t=!!i.split(/\s*,\s*/).find(e=>e==Xd);return t&&(i=i.replace(Yf,"")),i=i.replace(/@\*/g,pn).replace(/@\w+/g,e=>pn+"-"+e.slice(1)).replace(/:animating/g,Io),[i,t];}function Xf(i){return i?Y({},i):null;}var Ca=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map();options=null;unsupportedCSSPropertiesFound=new Set();constructor(t){this.errors=t;}};function Zf(i){if(typeof i=="string")return null;let t=null;if(Array.isArray(i))i.forEach(e=>{if(e instanceof Map&&e.has("offset")){let n=e;t=parseFloat(n.get("offset")),n.delete("offset");}});else if(i instanceof Map&&i.has("offset")){let e=i;t=parseFloat(e.get("offset")),e.delete("offset");}return t;}function Jf(i,t){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let r=mn(i,t).duration;return fa(r,0,"");}let e=i;if(e.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=fa(0,0,"");return r.dynamic=!0,r.strValue=e,r;}let o=mn(e,t);return fa(o.duration,o.delay,o.easing);}function yi(i){return i?(i=Y({},i),i.params&&(i.params=Xf(i.params))):i={},i;}function fa(i,t,e){return{duration:i,delay:t,easing:e};}function Ia(i,t,e,n,o,r,a=null,d=!1){return{type:1,element:i,keyframes:t,preStyleProps:e,postStyleProps:n,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:d};}var fn=class{_map=new Map();get(t){return this._map.get(t)||[];}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e);}has(t){return this._map.has(t);}clear(){this._map.clear();}},e0=1,t0=":enter",i0=new RegExp(t0,"g"),n0=":leave",o0=new RegExp(n0,"g");function Jd(i,t,e,n,o,r=new Map(),a=new Map(),d,m,h=[]){return new ba().buildKeyframes(i,t,e,n,o,r,a,d,m,h);}var ba=class{buildKeyframes(t,e,n,o,r,a,d,m,h,y=[]){h=h||new fn();let b=new Sa(t,e,h,o,r,y,[]);b.options=m;let k=m.delay?Pt(m.delay):0;b.currentTimeline.delayNextStep(k),b.currentTimeline.setStyles([a],null,b.errors,m),qe(this,n,b);let I=b.timelines.filter(A=>A.containsAnimation());if(I.length&&d.size){let A;for(let N=I.length-1;N>=0;N--){let ne=I[N];if(ne.element===e){A=ne;break;}}A&&!A.allowOnlyTimelineStyles()&&A.setStyles([d],null,b.errors,m);}return I.length?I.map(A=>A.buildKeyframes()):[Ia(e,[],[],[],0,k,"",!1)];}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){let n=e.subInstructions.get(e.element);if(n){let o=e.createSubContext(t.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,o,o.options);r!=a&&e.transformIntoNewTimeline(a);}e.previousNode=t;}visitAnimateRef(t,e){let n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,n),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t;}_applyAnimationRefDelays(t,e,n){for(let o of t){let r=o?.delay;if(r){let a=typeof r=="number"?r:Pt(zi(r,o?.params??{},e.errors));n.delayNextStep(a);}}}
4_visitSubInstructions(t,e,n){let r=e.currentTimeline.currentTime,a=n.duration!=null?Pt(n.duration):null,d=n.delay!=null?Pt(n.delay):null;return a!==0&&t.forEach(m=>{let h=e.appendInstructionToTimeline(m,a,d);r=Math.max(r,h.duration+h.delay);}),r;}visitReference(t,e){e.updateOptions(t.options,!0),qe(this,t.animation,e),e.previousNode=t;}visitSequence(t,e){let n=e.subContextCount,o=e,r=t.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),r.delay!=null)){o.previousNode.type==K.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Ho);let a=Pt(r.delay);o.delayNextStep(a);}t.steps.length&&(t.steps.forEach(a=>qe(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>n&&o.transformIntoNewTimeline()),e.previousNode=t;}visitGroup(t,e){let n=[],o=e.currentTimeline.currentTime,r=t.options&&t.options.delay?Pt(t.options.delay):0;t.steps.forEach(a=>{let d=e.createSubContext(t.options);r&&d.delayNextStep(r),qe(this,a,d),o=Math.max(o,d.currentTimeline.currentTime),n.push(d.currentTimeline);}),n.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=t;}_visitTiming(t,e){if(t.dynamic){let n=t.strValue,o=e.params?zi(n,e.params,e.errors):n;return mn(o,e.errors);}else return{duration:t.duration,delay:t.delay,easing:t.easing};}visitAnimate(t,e){let n=e.currentAnimateTimings=this._visitTiming(t.timings,e),o=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),o.snapshotCurrentStyles());let r=t.style;r.type==K.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t;}visitStyle(t,e){let n=e.currentTimeline,o=e.currentAnimateTimings;!o&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=o&&o.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t;}visitKeyframes(t,e){let n=e.currentAnimateTimings,o=e.currentTimeline.duration,r=n.duration,d=e.createSubContext().currentTimeline;d.easing=n.easing,t.styles.forEach(m=>{let h=m.offset||0;d.forwardTime(h*r),d.setStyles(m.styles,m.easing,e.errors,e.options),d.applyStylesToKeyframe();}),e.currentTimeline.mergeTimelineCollectedStyles(d),e.transformIntoNewTimeline(o+r),e.previousNode=t;}visitQuery(t,e){let n=e.currentTimeline.currentTime,o=t.options||{},r=o.delay?Pt(o.delay):0;r&&(e.previousNode.type===K.Style||n==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ho);let a=n,d=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=d.length;let m=null;d.forEach((h,y)=>{e.currentQueryIndex=y;let b=e.createSubContext(t.options,h);r&&b.delayNextStep(r),h===e.element&&(m=b.currentTimeline),qe(this,t.animation,b),b.currentTimeline.applyStylesToKeyframe();let k=b.currentTimeline.currentTime;a=Math.max(a,k);}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),m&&(e.currentTimeline.mergeTimelineCollectedStyles(m),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t;}visitStagger(t,e){let n=e.parentContext,o=e.currentTimeline,r=t.timings,a=Math.abs(r.duration),d=a*(e.currentQueryTotal-1),m=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":m=d-m;break;case"full":m=n.currentStaggerTime;break;}let y=e.currentTimeline;m&&y.delayNextStep(m);let b=y.currentTime;qe(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=o.currentTime-b+(o.startTime-n.currentTimeline.startTime);}},Ho={},Sa=class i{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Ho;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(t,e,n,o,r,a,d,m){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=d,this.currentTimeline=m||new Bo(this._driver,e,0),d.push(this.currentTimeline);}get params(){return this.options.params;}updateOptions(t,e){if(!t)return;let n=t,o=this.options;n.duration!=null&&(o.duration=Pt(n.duration)),n.delay!=null&&(o.delay=Pt(n.delay));let r=n.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(d=>{(!e||!a.hasOwnProperty(d))&&(a[d]=zi(r[d],a,this.errors));});}}_copyOptions(){let t={};if(this.options){let e=this.options.params;if(e){let n=t.params={};Object.keys(e).forEach(o=>{n[o]=e[o];});}}return t;}createSubContext(t=null,e,n){let o=e||this.element,r=new i(this._driver,o,this.subInstru
4ctions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r;}transformIntoNewTimeline(t){return this.previousNode=Ho,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline;}appendInstructionToTimeline(t,e,n){let o={duration:e??t.duration,delay:this.currentTimeline.currentTime+(n??0)+t.delay,easing:""},r=new xa(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,o,t.stretchStartingKeyframe);return this.timelines.push(r),o;}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t);}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t);}invokeQuery(t,e,n,o,r,a){let d=[];if(o&&d.push(this.element),t.length>0){t=t.replace(i0,"."+this._enterClassName),t=t.replace(o0,"."+this._leaveClassName);let m=n!=1,h=this._driver.query(this.element,t,m);n!==0&&(h=n<0?h.slice(h.length+n,h.length):h.slice(0,n)),d.push(...h);}return!r&&d.length==0&&a.push(Sd(e)),d;}},Bo=class i{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map();_currentKeyframe=new Map();_keyframes=new Map();_styleSummary=new Map();_localTimelineStyles=new Map();_globalTimelineStyles;_pendingStyles=new Map();_backFill=new Map();_currentEmptyStepKeyframe=null;constructor(t,e,n,o){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=o,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map()),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe();}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0;}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0;}get currentTime(){return this.startTime+this.duration;}delayNextStep(t){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t;}fork(t,e){return this.applyStylesToKeyframe(),new i(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup);}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map(),this._keyframes.set(this.duration,this._currentKeyframe));}forwardFrame(){this.duration+=e0,this._loadKeyframe();}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe();}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e});}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe;}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||mt),this._currentKeyframe.set(e,mt);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(t,e,n,o){e&&this._previousKeyframe.set("easing",e);let r=o&&o.params||{},a=r0(t,this._globalTimelineStyles);for(let[d,m]of a){let h=zi(m,r,n);this._pendingStyles.set(d,h),this._localTimelineStyles.has(d)||this._backFill.set(d,this._globalTimelineStyles.get(d)??mt),this._updateStyle(d,h);}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t);}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t);}));}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e);}getFinalKeyframe(){return this._keyframes.get(this.duration);}get properties(){let t=[];for(let e in this._currentKeyframe)t.push(e);return t;}
4mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,n)=>{let o=this._styleSummary.get(n);(!o||e.time>o.time)&&this._updateStyle(n,e.value);});}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set(),e=new Set(),n=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((d,m)=>{let h=new Map([...this._backFill,...d]);h.forEach((y,b)=>{y===Zi?t.add(b):y===mt&&e.add(b);}),n||h.set("offset",m/this.duration),o.push(h);});let r=[...t.values()],a=[...e.values()];if(n){let d=o[0],m=new Map(d);d.set("offset",0),m.set("offset",1),o=[d,m];}return Ia(this.element,o,r,a,this.duration,this.startTime,this.easing,!1);}},xa=class extends Bo{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(t,e,n,o,r,a,d=!1){super(t,e,a.delay),this.keyframes=n,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=d,this.timings={duration:a.duration,delay:a.delay,easing:a.easing};}containsAnimation(){return this.keyframes.length>1;}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){let r=[],a=n+e,d=e/a,m=new Map(t[0]);m.set("offset",0),r.push(m);let h=new Map(t[0]);h.set("offset",jd(d)),r.push(h);let y=t.length-1;for(let b=1;b<=y;b++){let k=new Map(t[b]),I=k.get("offset"),A=e+I*n;k.set("offset",jd(A/a)),r.push(k);}n=a,e=0,o="",t=r;}return Ia(this.element,t,this.preStyleProps,this.postStyleProps,n,e,o,!0);}};
4function jd(i,t=3){let e=Math.pow(10,t-1);return Math.round(i*e)/e;}function r0(i,t){let e=new Map(),n;return i.forEach(o=>{if(o==="*"){n??=t.keys();for(let r of n)e.set(r,mt);}else for(let[r,a]of o)e.set(r,a);}),e;}function Gd(i,t,e,n,o,r,a,d,m,h,y,b,k){return{type:0,element:i,triggerName:t,isRemovalTransition:o,fromState:e,fromStyles:r,toState:n,toStyles:a,timelines:d,queriedElements:m,preStyleProps:h,postStyleProps:y,totalTime:b,errors:k};}var ha={},$o=class{_triggerName;ast;_stateStyles;constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n;}match(t,e,n,o){return a0(this.ast.matchers,t,e,n,o);}buildStyles(t,e,n){let o=this._stateStyles.get("*");return t!==void 0&&(o=this._stateStyles.get(t?.toString())||o),o?o.buildStyles(e,n):new Map();}build(t,e,n,o,r,a,d,m,h,y){let b=[],k=this.ast.options&&this.ast.options.params||ha,I=d&&d.params||ha,A=this.buildStyles(n,I,b),N=m&&m.params||ha,ne=this.buildStyles(o,N,b),fe=new Set(),we=new Map(),Fe=new Map(),ke=o==="void",Si={params:ep(N,k),delay:this.ast.options?.delay},ht=y?[]:Jd(t,e,this.ast.animation,r,a,A,ne,Si,h,b),Ue=0;return ht.forEach(He=>{Ue=Math.max(He.duration+He.delay,Ue);}),b.length?Gd(e,this._triggerName,n,o,ke,A,ne,[],[],we,Fe,Ue,b):(ht.forEach(He=>{let mi=He.element,xi=We(we,mi,new Set());He.preStyleProps.forEach(ui=>xi.add(ui));let qa=We(Fe,mi,new Set());He.postStyleProps.forEach(ui=>qa.add(ui)),mi!==e&&fe.add(mi);}),Gd(e,this._triggerName,n,o,ke,A,ne,ht,[...fe.values()],we,Fe,Ue));}};function a0(i,t,e,n,o){return i.some(r=>r(t,e,n,o));}function ep(i,t){let e=Y({},t);return Object.entries(i).forEach(([n,o])=>{o!=null&&(e[n]=o);}),e;}var Aa=class{styles;defaultParams;normalizer;constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n;}buildStyles(t,e){let n=new Map(),o=ep(t,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,d)=>{a&&(a=zi(a,o,e));let m=this.normalizer.normalizePropertyName(d,e);a=this.normalizer.normalizeStyleValue(d,m,a,e),n.set(d,a);});}),n;}};function s0(i,t,e){return new wa(i,t,e);}var wa=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map();constructor(t,e,n){this.name=t,this.ast=e,this._normalizer=n,e.states.forEach(o=>{let r=o.options&&o.options.params||{};this.states.set(o.name,new Aa(o.style,r,n));}),zd(this.states,"true","1"),zd(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new $o(t,o,this.states));}),this.fallbackTransition=l0(t,this.states);}get containsQueries(){return this.ast.queryCount>0;}matchTransition(t,e,n,o){return this.transitionFactories.find(a=>a.match(t,e,n,o))||null;}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n);}};function l0(i,t,e){let n=[(a,d)=>!0],o={type:K.Sequence,steps:[],options:null},r={type:K.Transition,animation:o,matchers:n,options:null,queryCount:0,depCount:0};return new $o(i,r,t);}function zd(i,t,e){i.has(t)?i.has(e)||i.set(e,i.get(t)):i.has(e)&&i.set(t,i.get(e));}var c0=new fn(),Ea=class{bodyNode;_driver;_normalizer;_animations=new Map();_playersById=new Map();players=[];constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n;}register(t,e){let n=[],o=[],r=Zd(this._driver,e,n,o);if(n.length)throw Ed(n);this._animations.set(t,r);}_buildPlayer(t,e,n){let o=t.element,r=aa(this._normalizer,t.keyframes,e,n);return this._driver.animate(o,r,t.duration,t.delay,t.easing,[],!0);}create(t,e,n={}){let o=[],r=this._animations.get(t),a,d=new Map();if(r?(a=Jd(this._driver,e,r,pa,No,new Map(),new Map(),n,c0,o),a.forEach(y=>{let b=We(d,y.element,new Map());y.postStyleProps.forEach(k=>b.set(k,null));})):(o.push(Td()),a=[]),o.length)throw Pd(o);d.forEach((y,b)=>{y.forEach((k,I)=>{y.set(I,this._driver.computeStyle(b,I,mt));});});let m=a.map(y=>{let b=d.get(y.element);return this._buildPlayer(y,new Map(),b);}),h=Lt(m);return this._playersById.set(t,h),h.onDestroy(()=>this.destroy(t)),this.players.push(h),h;}destroy(t){let e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);let n=this.players.indexOf(e);n>=0&&this.players.splice(n,1);}_getPlayer(t){let e=this._playersById.get(t);if(!e)throw Dd(t);return e;}listen(t,e,n,o){let r=Po(e,"","","");return To(this._getPlayer(t),n,r,o),()=>{};}command(t,e,n,o){if(n=="register"){this.register(t,o[0]);return;}if(n=="create"){let a=o[0]||{};this.create(t,e,a);return;}let r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;
4case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(t);break;}}},Kd="ng-animate-queued",d0=".ng-animate-queued",ga="ng-animate-disabled",p0=".ng-animate-disabled",m0="ng-star-inserted",u0=".ng-star-inserted",f0=[],tp={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},h0={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ft="__ng_removed",hn=class{namespaceId;value;options;get params(){return this.options.params;}constructor(t,e=""){this.namespaceId=e;let n=t&&t.hasOwnProperty("value"),o=n?t.value:t;if(this.value=_0(o),n){let r=t,{value:a}=r,d=bn(r,["value"]);this.options=d;}else this.options={};this.options.params||(this.options.params={});}absorbOptions(t){let e=t.params;if(e){let n=this.options.params;Object.keys(e).forEach(o=>{n[o]==null&&(n[o]=e[o]);});}}},un="void",_a=new hn(un),Ta=class{id;hostElement;_engine;players=[];_triggers=new Map();_queue=[];_elementListeners=new Map();_hostClassName;constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this._hostClassName="ng-tns-"
4+t,dt(e,this._hostClassName);}listen(t,e,n,o){if(!this._triggers.has(e))throw Nd(n,e);if(n==null||n.length==0)throw Id(e);if(!v0(n))throw kd(n,e);let r=We(this._elementListeners,t,[]),a={name:e,phase:n,callback:o};r.push(a);let d=We(this._engine.statesByElement,t,new Map());return d.has(e)||(dt(t,dn),dt(t,dn+"-"+e),d.set(e,_a)),()=>{this._engine.afterFlush(()=>{let m=r.indexOf(a);m>=0&&r.splice(m,1),this._triggers.has(e)||d.delete(e);});};}register(t,e){return this._triggers.has(t)?!1:(this._triggers.set(t,e),!0);}_getTrigger(t){let e=this._triggers.get(t);if(!e)throw Md(t);return e;}trigger(t,e,n,o=!0){let r=this._getTrigger(e),a=new gn(this.id,e,t),d=this._engine.statesByElement.get(t);d||(dt(t,dn),dt(t,dn+"-"+e),this._engine.statesByElement.set(t,d=new Map()));let m=d.get(e),h=new hn(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&m&&h.absorbOptions(m.options),d.set(e,h),m||(m=_a),!(h.value===un)&&m.value===h.value){if(!b0(m.params,h.params)){let N=[],ne=r.matchStyles(m.value,m.params,N),fe=r.matchStyles(h.value,h.params,N);N.length?this._engine.reportError(N):this._engine.afterFlush(()=>{pi(t,ne),ut(t,fe);});}return;}let k=We(this._engine.playersByElement,t,[]);k.forEach(N=>{N.namespaceId==this.id&&N.triggerName==e&&N.queued&&N.destroy();});let I=r.matchTransition(m.value,h.value,t,h.params),A=!1;if(!I){if(!o)return;I=r.fallbackTransition,A=!0;}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:I,fromState:m,toState:h,player:a,isFallbackTransition:A}),A||(dt(t,Kd),a.onStart(()=>{Ki(t,Kd);})),a.onDone(()=>{let N=this.players.indexOf(a);N>=0&&this.players.splice(N,1);let ne=this._engine.playersByElement.get(t);if(ne){let fe=ne.indexOf(a);fe>=0&&ne.splice(fe,1);}}),this.players.push(a),k.push(a),a;}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(o=>o.name!=t));});}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);let e=this._engine.playersByElement.get(t);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(t));}_signalRemovalForInnerTriggers(t,e){let n=this._engine.driver.query(t,pn,!0);n.forEach(o=>{if(o[ft])return;let r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o);}),this._engine.afterFlushAnimationsDone(()=>n.forEach(o=>this.clearElementCache(o)));}triggerLeaveAnimation(t,e,n,o){let r=this._engine.statesByElement.get(t),a=new Map();if(r){let d=[];if(r.forEach((m,h)=>{if(a.set(h,m.value),this._triggers.has(h)){let y=this.trigger(t,h,un,o);y&&d.push(y);}}),d.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,a),n&&Lt(d).onDone(()=>this._engine.processLeaveNode(t)),!0;}return!1;}prepareLeaveAnimationListeners(t){let e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){let o=new Set();e.forEach(r=>{let a=r.name;if(o.has(a))return;o.add(a);let m=this._triggers.get(a).fallbackTransition,h=n.get(a)||_a,y=new hn(un),b=new gn(this.id,a,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:a,transition:m,fromState:h,toState:y,player:b,isFallbackTransition:!0});});}}removeNode(t,e){let n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let o=!1;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(t):[];if(r&&r.length)o=!0;else{let a=t;for(;a=a.parentNode;)if(n.statesByElement.get(a)){o=!0;break;}}}if(this.prepareLeaveAnimationListeners(t),o)n.markElementAsRemoved(this.id,t,!1,e);else{let r=t[ft];(!r||r===tp)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e));}}insertNode(t,e){dt(t,this._hostClassName);}drainQueuedTransitions(t){let e=[];return this._queue.forEach(n=>{let o=n.player;if(o.destroyed)return;let r=n.element,a=this._elementListeners.get(r);a&&a.forEach(d=>{if(d.name==n.triggerName){let m=Po(r,n.triggerName,n.fromState.value,n.toState.value);m._data=t,To(n.player,d.phase,m,d.callback);}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy();}):e.push(n);}),this._queue=[],e.sort((n,o)=>{let r=n.transition.ast.depCount,a=o.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(n.element,o.element)?1:-1;});}
4destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t);}},Pa=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map();playersByElement=new Map();playersByQueriedElement=new Map();statesByElement=new Map();disabledNodes=new Set();totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map();collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(t,e)=>{};_onRemovalComplete(t,e){this.onRemovalComplete(t,e);}constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n;}get queuedPlayers(){let t=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&t.push(n);});}),t;}createNamespace(t,e){let n=new Ta(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n;}_balanceNamespaceList(t,e){let n=this._namespaceList,o=this.namespacesByHostElement;if(n.length-1>=0){let a=!1,d=this.driver.getParentElement(e);for(;d;){let m=o.get(d);if(m){let h=n.indexOf(m);n.splice(h+1,0,t),a=!0;break;}d=this.driver.getParentElement(d);}a||n.unshift(t);}else n.push(t);return o.set(e,t),t;}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n;}registerTrigger(t,e,n){let o=this._namespaceLookup[t];o&&o.register(e,n)&&this.totalAnimations++;}destroy(t,e){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(t);this.namespacesByHostElement.delete(n.hostElement);let o=this._namespaceList.indexOf(n);o>=0&&this._namespaceList.splice(o,1),n.destroy(e),delete this._namespaceLookup[t];}));}_fetchNamespace(t){return this._namespaceLookup[t];}fetchNamespacesByElement(t){let e=new Set(),n=this.statesByElement.get(t);if(n){for(let o of n.values())if(o.namespaceId){let r=this._fetchNamespace(o.namespaceId);r&&e.add(r);}}return e;}trigger(t,e,n,o){if(Ro(e)){let r=this._fetchNamespace(t);if(r)return r.trigger(e,n,o),!0;}return!1;}insertNode(t,e,n,o){if(!Ro(e))return;let r=e[ft];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1);}if(t){let a=this._fetchNamespace(t);a&&a.insertNode(e,n);}o&&this.collectEnterElement(e);}collectEnterElement(t){this.collectedEnterElements.push(t);}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),dt(t,ga)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Ki(t,ga));}removeNode(t,e,n){if(Ro(e)){let o=t?this._fetchNamespace(t):null;o?o.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n);let r=this.namespacesByHostElement.get(e);r&&r.id!==t&&r.removeNode(e,n);}else this._onRemovalComplete(e,n);}markElementAsRemoved(t,e,n,o,r){this.collectedLeaveElements.push(e),e[ft]={namespaceId:t,setForRemoval:o,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r};}listen(t,e,n,o,r){return Ro(e)?this._fetchNamespace(t).listen(e,n,o,r):()=>{};}_buildInstruction(t,e,n,o,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,o,t.fromState.options,t.toState.options,e,r);}destroyInnerAnimations(t){let e=this.driver.query(t,pn,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(t,Io,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)));}destroyActiveAnimationsForElement(t){let e=this.playersByElement.get(t);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy();});}finishActiveQueriedAnimationOnElement(t){let e=this.playersByQueriedElement.get(t);e&&e.forEach(n=>n.finish());}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Lt(this.players).onDone(()=>t());t();});}processLeaveNode(t){let e=t[ft];if(e&&e.setForRemoval){if(t[ft]=tp,e.namespaceId){this.destroyInnerAnimations(t);let n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t);}this._onRemovalComplete(t,e.setForRemoval);}t.classList?.contains(ga)&&this.markElementAsDisabled(t,!1),this.driver.query(t,p0,!0).forEac
4h(n=>{this.markElementAsDisabled(n,!1);});}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,o)=>this._balanceNamespaceList(n,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let o=this.collectedEnterElements[n];dt(o,m0);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{e=this._flushAnimations(n,t);}finally{for(let o=0;o<n.length;o++)n[o]();}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let o=this.collectedLeaveElements[n];this.processLeaveNode(o);}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],e.length?Lt(e).onDone(()=>{n.forEach(o=>o());}):n.forEach(o=>o());}}reportError(t){throw Od(t);}_flushAnimations(t,e){let n=new fn(),o=[],r=new Map(),a=[],d=new Map(),m=new Map(),h=new Map(),y=new Set();this.disabledNodes.forEach(D=>{y.add(D);let O=this.driver.query(D,d0,!0);for(let F=0;F<O.length;F++)y.add(O[F]);});let b=this.bodyNode,k=Array.from(this.statesByElement.keys()),I=Yd(k,this.collectedEnterElements),A=new Map(),N=0;I.forEach((D,O)=>{let F=pa+N++;A.set(O,F),D.forEach(q=>dt(q,F));});let ne=[],fe=new Set(),we=new Set();for(let D=0;D<this.collectedLeaveElements.length;D++){let O=this.collectedLeaveElements[D],F=O[ft];F&&F.setForRemoval&&(ne.push(O),fe.add(O),F.hasAnimation?this.driver.query(O,u0,!0).forEach(q=>fe.add(q)):we.add(O));}let Fe=new Map(),ke=Yd(k,Array.from(fe));ke.forEach((D,O)=>{let F=No+N++;Fe.set(O,F),D.forEach(q=>dt(q,F));}),t.push(()=>{I.forEach((D,O)=>{let F=A.get(O);D.forEach(q=>Ki(q,F));}),ke.forEach((D,O)=>{let F=Fe.get(O);D.forEach(q=>Ki(q,F));}),ne.forEach(D=>{this.processLeaveNode(D);});});let Si=[],ht=[];for(let D=this._namespaceList.length-1;D>=0;D--)this._namespaceList[D].drainQueuedTransitions(e).forEach(F=>{let q=F.player,Ee=F.element;if(Si.push(q),this.collectedEnterElements.length){let Oe=Ee[ft];if(Oe&&Oe.setForMove){if(Oe.previousTriggersValues&&Oe.previousTriggersValues.has(F.triggerName)){let fi=Oe.previousTriggersValues.get(F.triggerName),et=this.statesByElement.get(F.element);if(et&&et.has(F.triggerName)){let Cn=et.get(F.triggerName);Cn.value=fi,et.set(F.triggerName,Cn);}}q.destroy();return;}}let gt=!b||!this.driver.containsElement(b,Ee),Ye=Fe.get(Ee),Rt=A.get(Ee),de=this._buildInstruction(F,n,Rt,Ye,gt);if(de.errors&&de.errors.length){ht.push(de);return;}if(gt){q.onStart(()=>pi(Ee,de.fromStyles)),q.onDestroy(()=>ut(Ee,de.toStyles)),o.push(q);return;}if(F.isFallbackTransition){q.onStart(()=>pi(Ee,de.fromStyles)),q.onDestroy(()=>ut(Ee,de.toStyles)),o.push(q);return;}let Xa=[];de.timelines.forEach(Oe=>{Oe.stretchStartingKeyframe=!0,this.disabledNodes.has(Oe.element)||Xa.push(Oe);}),de.timelines=Xa,n.append(Ee,de.timelines);let Vp={instruction:de,player:q,element:Ee};a.push(Vp),de.queriedElements.forEach(Oe=>We(d,Oe,[]).push(q)),de.preStyleProps.forEach((Oe,fi)=>{if(Oe.size){let et=m.get(fi);et||m.set(fi,et=new Set()),Oe.forEach((Cn,mr)=>et.add(mr));}}),de.postStyleProps.forEach((Oe,fi)=>{let et=h.get(fi);et||h.set(fi,et=new Set()),Oe.forEach((Cn,mr)=>et.add(mr));});});if(ht.length){let D=[];ht.forEach(O=>{D.push(Ld(O.triggerName,O.errors));}),Si.forEach(O=>O.destroy()),this.reportError(D);}let Ue=new Map(),He=new Map();a.forEach(D=>{let O=D.element;n.has(O)&&(He.set(O,O),this._beforeAnimationBuild(D.player.namespaceId,D.instruction,Ue));}),o.forEach(D=>{let O=D.element;this._getPreviousPlayers(O,!1,D.namespaceId,D.triggerName,null).forEach(q=>{We(Ue,O,[]).push(q),q.destroy();});});let mi=ne.filter(D=>Qd(D,m,h)),xi=new Map();qd(xi,this.driver,we,h,mt).forEach(D=>{Qd(D,m,h)&&mi.push(D);});let ui=new Map();I.forEach((D,O)=>{qd(ui,this.driver,new Set(D),m,Zi);}),mi.forEach(D=>{let O=xi.get(D),F=ui.get(D);xi.set(D,new Map([...(O?.entries()??[]),...(F?.entries()??[])]));});let pr=[],Ya=[],Qa={};a.forEach(D=>{let{element:O,player:F,instruction:q}=D;if(n.has(O)){if(y.has(O)){F.onDestroy(()=>ut(O,q.toStyles)),F.disabled=!0,F.overrideTotalTime(q.totalTime),o.push(F);return;}let Ee=Qa;if(He.size>1){let Ye=O,Rt=[];for(;Ye=Ye.parentNode;){let de=He.get(Ye);if(de){Ee=de;break;}Rt.push(Ye);}Rt.forEach(de=>He.set(de,Ee));}let gt=this._buildAnimation(F.namespaceId,q,Ue,r,ui,xi);
4if(F.setRealPlayer(gt),Ee===Qa)pr.push(F);else{let Ye=this.playersByElement.get(Ee);Ye&&Ye.length&&(F.parentPlayer=Lt(Ye)),o.push(F);}}else pi(O,q.fromStyles),F.onDestroy(()=>ut(O,q.toStyles)),Ya.push(F),y.has(O)&&o.push(F);}),Ya.forEach(D=>{let O=r.get(D.element);if(O&&O.length){let F=Lt(O);D.setRealPlayer(F);}}),o.forEach(D=>{D.parentPlayer?D.syncPlayerEvents(D.parentPlayer):D.destroy();});for(let D=0;D<ne.length;D++){let O=ne[D],F=O[ft];if(Ki(O,No),F&&F.hasAnimation)continue;let q=[];if(d.size){let gt=d.get(O);gt&&gt.length&&q.push(...gt);let Ye=this.driver.query(O,Io,!0);for(let Rt=0;Rt<Ye.length;Rt++){let de=d.get(Ye[Rt]);de&&de.length&&q.push(...de);}}let Ee=q.filter(gt=>!gt.destroyed);Ee.length?y0(this,O,Ee):this.processLeaveNode(O);}return ne.length=0,pr.forEach(D=>{this.players.push(D),D.onDone(()=>{D.destroy();let O=this.players.indexOf(D);this.players.splice(O,1);}),D.play();}),pr;}afterFlush(t){this._flushFns.push(t);}afterFlushAnimationsDone(t){this._whenQuietFns.push(t);}_getPreviousPlayers(t,e,n,o,r){let a=[];if(e){let d=this.playersByQueriedElement.get(t);d&&(a=d);}else{let d=this.playersByElement.get(t);if(d){let m=!r||r==un;d.forEach(h=>{h.queued||!m&&h.triggerName!=o||a.push(h);});}}return(n||o)&&(a=a.filter(d=>!(n&&n!=d.namespaceId||o&&o!=d.triggerName))),a;}_beforeAnimationBuild(t,e,n){let o=e.triggerName,r=e.element,a=e.isRemovalTransition?void 0:t,d=e.isRemovalTransition?void 0:o;for(let m of e.timelines){let h=m.element,y=h!==r,b=We(n,h,[]);this._getPreviousPlayers(h,y,a,d,e.toState).forEach(I=>{let A=I.getRealPlayer();A.beforeDestroy&&A.beforeDestroy(),I.destroy(),b.push(I);});}pi(r,e.fromStyles);}_buildAnimation(t,e,n,o,r,a){let d=e.triggerName,m=e.element,h=[],y=new Set(),b=new Set(),k=e.timelines.map(A=>{let N=A.element;y.add(N);let ne=N[ft];if(ne&&ne.removedBeforeQueried)return new hi(A.duration,A.delay);let fe=N!==m,we=C0((n.get(N)||f0).map(Ue=>Ue.getRealPlayer())).filter(Ue=>{let He=Ue;return He.element?He.element===N:!1;}),Fe=r.get(N),ke=a.get(N),Si=aa(this._normalizer,A.keyframes,Fe,ke),ht=this._buildPlayer(A,Si,we);if(A.subTimeline&&o&&b.add(N),fe){let Ue=new gn(t,d,N);Ue.setRealPlayer(ht),h.push(Ue);}return ht;});h.forEach(A=>{We(this.playersByQueriedElement,A.element,[]).push(A),A.onDone(()=>g0(this.playersByQueriedElement,A.element,A));}),y.forEach(A=>dt(A,ma));let I=Lt(k);return I.onDestroy(()=>{y.forEach(A=>Ki(A,ma)),ut(m,e.toStyles);}),b.forEach(A=>{We(o,A,[]).push(I);}),I;}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new hi(t.duration,t.delay);}},gn=class{namespaceId;triggerName;element;_player=new hi();_containsRealPlayer=!1;_queuedCallbacks=new Map();destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n;}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,n)=>{e.forEach(o=>To(t,n,void 0,o));}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1);}getRealPlayer(){return this._player;}overrideTotalTime(t){this.totalTime=t;}syncPlayerEvents(t){let e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy());}_queueEvent(t,e){We(this._queuedCallbacks,t,[]).push(e);}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t);}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t);}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t);}init(){this._player.init();}hasStarted(){return this.queued?!1:this._player.hasStarted();}play(){!this.queued&&this._player.play();}pause(){!this.queued&&this._player.pause();}restart(){!this.queued&&this._player.restart();}finish(){this._player.finish();}destroy(){this.destroyed=!0,this._player.destroy();}reset(){!this.queued&&this._player.reset();}setPosition(t){this.queued||this._player.setPosition(t);}getPosition(){return this.queued?0:this._player.getPosition();}triggerCallback(t){let e=this._player;e.triggerCallback&&e.triggerCallback(t);}};function g0(i,t,e){let n=i.get(t);if(n){if(n.length){let o=n.indexOf(e);n.splice(o,1);}n.length==0&&i.delete(t);}return n;}function _0(i){return i??null;}function Ro(i){return i&&i.nodeType===1;}function v0(i){return i=="start"||i=="done";}function Wd(i,t){let e=i.style.display;return i.style.display=t??"none",e;}function qd(i,t,e,n,o){let r=[];e.forEach(m=>r.push(Wd(m)));let a=[];
4n.forEach((m,h)=>{let y=new Map();m.forEach(b=>{let k=t.computeStyle(h,b,o);y.set(b,k),(!k||k.length==0)&&(h[ft]=h0,a.push(h));}),i.set(h,y);});let d=0;return e.forEach(m=>Wd(m,r[d++])),a;}function Yd(i,t){let e=new Map();if(i.forEach(d=>e.set(d,[])),t.length==0)return e;let n=1,o=new Set(t),r=new Map();function a(d){if(!d)return n;let m=r.get(d);if(m)return m;let h=d.parentNode;return e.has(h)?m=h:o.has(h)?m=n:m=a(h),r.set(d,m),m;}return t.forEach(d=>{let m=a(d);m!==n&&e.get(m).push(d);}),e;}function dt(i,t){i.classList?.add(t);}function Ki(i,t){i.classList?.remove(t);}function y0(i,t,e){Lt(e).onDone(()=>i.processLeaveNode(t));}function C0(i){let t=[];return ip(i,t),t;}function ip(i,t){for(let e=0;e<i.length;e++){let n=i[e];n instanceof In?ip(n.players,t):t.push(n);}}function b0(i,t){let e=Object.keys(i),n=Object.keys(t);if(e.length!=n.length)return!1;for(let o=0;o<e.length;o++){let r=e[o];if(!t.hasOwnProperty(r)||i[r]!==t[r])return!1;}return!0;}function Qd(i,t,e){let n=e.get(i);if(!n)return!1;let o=t.get(i);return o?n.forEach(r=>o.add(r)):t.set(i,n),e.delete(i),!0;}var Wi=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(t,e)=>{};constructor(t,e,n){this._driver=e,this._normalizer=n,this._transitionEngine=new Pa(t.body,e,n),this._timelineEngine=new Ea(t.body,e,n),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r);}registerTrigger(t,e,n,o,r){let a=t+"-"+o,d=this._triggerCache[a];if(!d){let m=[],h=[],y=Zd(this._driver,r,m,h);if(m.length)throw wd(o,m);d=s0(o,y,this._normalizer),this._triggerCache[a]=d;}this._transitionEngine.registerTrigger(e,o,d);}register(t,e){this._transitionEngine.register(t,e);}destroy(t,e){this._transitionEngine.destroy(t,e);}onInsert(t,e,n,o){this._transitionEngine.insertNode(t,e,n,o);}onRemove(t,e,n){this._transitionEngine.removeNode(t,e,n);}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e);}process(t,e,n,o){if(n.charAt(0)=="@"){let[r,a]=sa(n),d=o;this._timelineEngine.command(r,e,a,d);}else this._transitionEngine.trigger(t,e,n,o);}listen(t,e,n,o,r){if(n.charAt(0)=="@"){let[a,d]=sa(n);return this._timelineEngine.listen(a,e,d,r);}return this._transitionEngine.listen(t,e,n,o,r);}flush(t=-1){this._transitionEngine.flush(t);}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players];}whenRenderingDone(){return this._transitionEngine.whenRenderingDone();}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t);}};function S0(i,t){let e=null,n=null;return Array.isArray(t)&&t.length?(e=va(t[0]),t.length>1&&(n=va(t[t.length-1]))):t instanceof Map&&(e=va(t)),e||n?new x0(i,e,n):null;}var x0=(()=>{class i{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap();_state=0;_initialStyles;constructor(e,n,o){this._element=e,this._startStyles=n,this._endStyles=o;let r=i.initialStylesByElement.get(e);r||i.initialStylesByElement.set(e,r=new Map()),this._initialStyles=r;}start(){this._state<1&&(this._startStyles&&ut(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(ut(this._element,this._initialStyles),this._endStyles&&(ut(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(pi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(pi(this._element,this._endStyles),this._endStyles=null),ut(this._element,this._initialStyles),this._state=3);}}return i;})();function va(i){let t=null;return i.forEach((e,n)=>{A0(n)&&(t=t||new Map(),t.set(n,e));}),t;}function A0(i){return i==="display"||i==="position";}var jo=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map();constructor(t,e,n,o){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=o,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay;}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]);}init(){this._buildPlayer()&&this._preparePlayerBeforeStart();}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let t=this.keyframes,e=this._triggerWebAnimation(this.element,t,this.options);if(!e)return this._onFinish(),null;this.domPlayer=e,this._finalKeyframe=t.length?t[t.length-1]:new Map();let n=()=>this._onFinish();return e.addEventListener("finish",n),this.onDestroy(()=>{e.removeEventListener("finish",n);}),e;}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause();}_convertKeyframesToObject(t){let e=[];return t.forEach(n=>{e.push(Object.fromEntries(n));}),e;}_triggerWebAnimation(t,e,n){let o=this._convertKeyframesToObject(e);try{return t.animate(o,n);}catch{return null;}}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t);}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t);}onDestroy(t){this._onDestroyFns.push(t);}play(){let t=this._buildPlayer();
4t&&(this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),t.play());}pause(){this.init(),this.domPlayer?.pause();}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish());}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}_resetDomPlayerState(){this.domPlayer?.cancel();}restart(){this.reset(),this.play();}hasStarted(){return this._started;}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[]);}setPosition(t){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=t*this.time);}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0;}get totalTime(){return this._delay+this._duration;}beforeDestroy(){let t=new Map();this.hasStarted()&&this._finalKeyframe.forEach((n,o)=>{o!=="offset"&&t.set(o,this._finished?n:Mo(this.element,o));}),this.currentSnapshot=t;}triggerCallback(t){let e=t==="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0;}},Go=class{validateStyleProperty(t){return!0;}validateAnimatableStyleProperty(t){return!0;}containsElement(t,e){return la(t,e);}getParentElement(t){return Do(t);}query(t,e,n){return ca(t,e,n);}computeStyle(t,e,n){return Mo(t,e);}animate(t,e,n,o,r,a=[]){let d=o==0?"both":"forwards",m={duration:n,delay:o,fill:d};r&&(m.easing=r);let h=new Map(),y=a.filter(I=>I instanceof jo);Vd(n,o)&&y.forEach(I=>{I.currentSnapshot.forEach((A,N)=>h.set(N,A));});let b=Fd(e).map(I=>new Map(I));b=Hd(t,b,h);let k=S0(t,b);return new jo(t,b,m,k);}};var Fo="@",np="@.disabled",zo=class{namespaceId;delegate;engine;_onDestroy;ɵtype=0;constructor(t,e,n,o){this.namespaceId=t,this.delegate=e,this.engine=n,this._onDestroy=o;}get data(){return this.delegate.data;}destroyNode(t){this.delegate.destroyNode?.(t);}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy();});}),this._onDestroy?.();}createElement(t,e){return this.delegate.createElement(t,e);}createComment(t){return this.delegate.createComment(t);}createText(t){return this.delegate.createText(t);}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1);}insertBefore(t,e,n,o=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,o);}removeChild(t,e,n,o){if(o){this.delegate.removeChild(t,e,n,o);return;}this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate);}selectRootElement(t,e){return this.delegate.selectRootElement(t,e);}parentNode(t){return this.delegate.parentNode(t);}nextSibling(t){return this.delegate.nextSibling(t);}setAttribute(t,e,n,o){this.delegate.setAttribute(t,e,n,o);}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n);}addClass(t,e){this.delegate.addClass(t,e);}removeClass(t,e){this.delegate.removeClass(t,e);}setStyle(t,e,n,o){this.delegate.setStyle(t,e,n,o);}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n);}setProperty(t,e,n){e.charAt(0)==Fo&&e==np?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n);}setValue(t,e){this.delegate.setValue(t,e);}listen(t,e,n,o){return this.delegate.listen(t,e,n,o);}disableAnimations(t,e){this.engine.disableAnimations(t,e);}},Da=class extends zo{factory;constructor(t,e,n,o,r){super(e,n,o,r),this.factory=t,this.namespaceId=e;}setProperty(t,e,n){e.charAt(0)==Fo?e.charAt(1)=="."&&e==np?(n=n===void 0?!0:!!n,this.disableAnimations(t,n)):this.engine.process(this.namespaceId,t,e.slice(1),n):this.delegate.setProperty(t,e,n);}listen(t,e,n,o){if(e.charAt(0)==Fo){let r=w0(t),a=e.slice(1),d="";return a.charAt(0)!=Fo&&([a,d]=E0(a)),this.engine.listen(this.namespaceId,r,a,d,m=>{let h=m._data||-1;this.factory.scheduleListenerCallback(h,n,m);});}return this.delegate.listen(t,e,n,o);}};function w0(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i;}}function E0(i){let t=i.indexOf("."),e=i.substring(0,t),n=i.slice(t+1);return[e,n];}var Ko=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map();_cdRecurDepth=0;constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,e.onRemovalComplete=(o,r)=>{r?.removeChild(null,o);};}createRenderer(t,e){let o=this.delegate.createRenderer(t,e);if(!t||!e?.data?.animation){let h=this._rendererCache,y=h.get(o);if(!y){let b=()=>h.delete(o);y=new zo("",o,this.engine,b),h.set(o,y);}return y;}let r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);let d=h=>{Array.isArray(h)?h.forEach(d):this.engine.registerTrigger(r,a,t,h.name,h);};return e.data.animation.forEach(d),new Da(this,a,o,this.engine);}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(t,e,n){if(t>=0&&t<this._microtaskId){this._zone.run(()=>e(n));return;}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{let[a,d]=r;a(d);}),this._animationCallbacksBuffer=[];});}),o.push([e,n]);}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId);}),this.delegate.end&&this.delegate.end();}whenRenderingDone(){return this.engine.whenRenderingDone();}componentReplaced(t){this.engine.flush(),this.delegate.componentReplaced?.(t);}};var P0=(()=>{class i extends Wi{constructor(e,n,o){super(e,n,o);}
4ngOnDestroy(){this.flush();}static ɵfac=function(n){return new(n||i)(re(Vt),re(Ci),re(bi));};static ɵprov=oe({token:i,factory:i.ɵfac});}return i;})();function D0(){return new Uo();}function N0(i,t,e){return new Ko(i,t,e);}var rp=[{provide:bi,useFactory:D0},{provide:Wi,useClass:P0},{provide:as,useFactory:N0,deps:[ms,Wi,vt]}],I0=[{provide:Ci,useClass:Na},{provide:fr,useValue:"NoopAnimations"},...rp],op=[{provide:Ci,useFactory:()=>new Go()},{provide:fr,useFactory:()=>"BrowserAnimations"},...rp],ap=(()=>{class i{static withConfig(e){return{ngModule:i,providers:e.disableAnimations?I0:op};}static ɵfac=function(n){return new(n||i)();};static ɵmod=ue({type:i});static ɵinj=me({providers:op,imports:[Pn]});}return i;})();var cp=new tt("NGXS_DEVTOOLS_OPTIONS"),_n=function(i){return i.Dispatch="DISPATCH",i.Action="ACTION",i;}(_n||{}),vn=function(i){return i.JumpToAction="JUMP_TO_ACTION",i.JumpToState="JUMP_TO_STATE",i.ToggleAction="TOGGLE_ACTION",i.ImportState="IMPORT_STATE",i;}(vn||{}),k0=(()=>{class i{_injector=he(Ut);_ngZone=he(vt);_options=he(cp);devtoolsExtension=null;globalDevtools=ur.__REDUX_DEVTOOLS_EXTENSION__||ur.devToolsExtension;unsubscribe=null;constructor(){this.connect(),he(rs).onDestroy(()=>{this.unsubscribe?.(),this.globalDevtools?.disconnect();});}get store(){return this._injector.get(B);}handle(e,n,o){return!this.devtoolsExtension||this._options.disabled?o(e,n):o(e,n).pipe(xn(r=>{let a=this.store.snapshot();throw this.sendToDevTools(e,n,a),r;}),J(r=>{this.sendToDevTools(e,n,r);}));}sendToDevTools(e,n,o){let r=On(n);r===Mn.type?this.devtoolsExtension.init(e):this.devtoolsExtension.send(Te(Y({},n),{action:null,type:r}),o);}dispatched(e){if(e.type===_n.Dispatch){if(e.payload.type===vn.JumpToAction||e.payload.type===vn.JumpToState){let n=JSON.parse(e.state);n.router?.trigger&&(n.router.trigger="devtools"),this.store.reset(n);}else if(e.payload.type===vn.ToggleAction)console.warn("Skip is not supported at this time.");else if(e.payload.type===vn.ImportState){let{actionsById:n,computedStates:o,currentStateIndex:r}=e.payload.nextLiftedState;this.devtoolsExtension.init(o[0].state),Object.keys(n).filter(a=>a!=="0").forEach(a=>this.devtoolsExtension.send(n[a],o[a].state)),this.store.reset(o[r].state);}}else if(e.type===_n.Action){let n=JSON.parse(e.payload);this.store.dispatch(n);}}connect(){!this.globalDevtools||this._options.disabled||(this.devtoolsExtension=this._ngZone.runOutsideAngular(()=>this.globalDevtools.connect(this._options)),this.unsubscribe=this.devtoolsExtension.subscribe(e=>{(e.type===_n.Dispatch||e.type===_n.Action)&&this.dispatched(e);}));}static ɵfac=function(n){return new(n||i)();};static ɵprov=oe({token:i,factory:i.ɵfac});}return i;})();function M0(i){return Y({name:"NGXS"},i);}var sp=new tt("USER_OPTIONS"),dp=(()=>{class i{static forRoot(e){return{ngModule:i,providers:[Ni(k0),{provide:sp,useValue:e},{provide:cp,useFactory:M0,deps:[sp]}]};}static ɵfac=function(n){return new(n||i)();};static ɵmod=ue({type:i});static ɵinj=me({});}return i;})();var ka="@@STATE",qi=function(i){return i[i.LocalStorage=0]="LocalStorage",i[i.SessionStorage=1]="SessionStorage",i;}(qi||{}),Wo=new tt(""),pp=new tt("",{providedIn:"root",factory:()=>he(Wo).keys==="*"}),yn=new tt(""),Yi=new tt("");function Ma(i){return!!i?.engine;}function mp(i){return Ma(i)&&(i=i.key),en(i,vr)&&(i=i[vr].name),i instanceof Es?i.getName():i;}function O0(i){return Te(Y({storage:qi.LocalStorage,serialize:JSON.stringify,deserialize:JSON.parse,beforeSerialize:t=>t,afterDeserialize:t=>t},i),{keys:i.keys==="*"?[ka]:i.keys});}function L0(i){return i.storage===qi.LocalStorage?localStorage:i.storage===qi.SessionStorage?sessionStorage:null;}function up(i,t){return t?.namespace?`${t.namespace}:${i}`:i;}var R0=(()=>{class i{_keys=new Set();_injector=he(Ut);_keysWithEngines=[];constructor(){let{keys:e}=he(yn);this.addKeys(e);}getKeysWithEngines(){return[...this._keysWithEngines];}addKeys(e){for(let n of e){let o=mp(n);if(this._keys.has(o))continue;this._keys.add(o);let r=Ma(n)?this._injector.get(n.engine):this._injector.get(Yi);this._keysWithEngines.push({key:o,engine:r});}}static ɵfac=function(n){return new(n||i)();};static ɵprov=oe({token:i,factory:i.ɵfac,providedIn:"root"});}return i;})(),F0=(()=>{class i{_keysManager=he(R0);_options=he(yn);_allStatesPersisted=he(pp);handle(e,n,o){let r=Ps(n),a=r(Mn),d=r(Ts),m=a||d,h=!1;if(m){let y=d&&n.addedStates;for(let{key:b,engine:k}of this._keysManager.getKeysWithEngines()){if(!this._allStatesPersisted&&y){let N=b.indexOf(U0),ne=N>-1?b.slice(0,N):b;if(!en(y,ne))continue;}let I=up(b,this._options),A=k.getItem(I);if(A!=="undefined"&&A!=null){try{let N=this._options.deserialize(A);A=this._options.afterDeserialize(N,b);}catch{A={};}this._options.migrations?.forEach(N=>
4{let ne=N.version===yr(A,N.versionKey||"version"),fe=!N.key&&this._allStatesPersisted||N.key===b;ne&&fe&&(A=N.migrate(A),h=!0);}),this._allStatesPersisted?(A=this._hydrateSelectivelyOnUpdate(A,y),e=Y(Y({},e),A)):e=Ds(e,b,A);}}}return o(e,n).pipe(J(y=>{if(!(m&&!h))for(let{key:b,engine:k}of this._keysManager.getKeysWithEngines()){let I=y,A=up(b,this._options);b!==ka&&(I=yr(y,b));try{let N=this._options.beforeSerialize(I,b);k.setItem(A,this._options.serialize(N));}catch{}}}));}_hydrateSelectivelyOnUpdate(e,n){return!e||!n||Object.keys(n).length===0?e:Object.keys(n).reduce((o,r)=>(en(e,r)&&(o[r]=e[r]),o),{});}static ɵfac=function(n){return new(n||i)();};static ɵprov=oe({token:i,factory:i.ɵfac});}return i;})(),U0=".",fp=(()=>{class i{static forRoot(e){return{ngModule:i,providers:[Ni(F0),{provide:Wo,useValue:e},{provide:yn,useFactory:O0,deps:[Wo]},{provide:Yi,useFactory:L0,deps:[yn]}]};}static ɵfac=function(n){return new(n||i)();};static ɵmod=ue({type:i});static ɵinj=me({});}return i;})();var Oa=class{options;logger;constructor(t){this.options=t,this.options=this.options||{},this.logger=t.logger||console;}startGroup(t){let e=this.options.collapsed?this.logger.groupCollapsed:this.logger.group;try{e.call(this.logger,t);}catch{console.log(t);}}endGroup(){try{this.logger.groupEnd();}catch{this.logger.log("\u2014\u2014 log end \u2014\u2014");}}logGrey(t,e){this.log(t,"color: #9E9E9E; font-weight: bold",e);}logGreen(t,e){this.log(t,"color: #4CAF50; font-weight: bold",e);}logRedish(t,e){this.log(t,"color: #FD8182; font-weight: bold",e);}log(t,e,n){this.logger.log("%c "+t,e,n);}},V0=(i,t)=>new Array(t+1).join(i),qo=(i,t)=>V0("0",t-i.toString().length)+i;function H0(i){return qo(i.getHours(),2)+":"+qo(i.getMinutes(),2)+":"+qo(i.getSeconds(),2)+"."+qo(i.getMilliseconds(),3);}var La=class{action;store;logWriter;constructor(t,e,n){this.action=t,this.store=e,this.logWriter=n;}dispatched(t){let e=On(this.action),n=H0(new Date()),o=`action ${e} @ ${n}`;this.logWriter.startGroup(o),this._hasPayload(this.action)&&this.logWriter.logGrey("payload",Y({},this.action)),this.logWriter.logGrey("prev state",t);}completed(t){this.logWriter.logGreen("next state",t),this.logWriter.endGroup();}errored(t){this.logWriter.logRedish("next state after error",this.store.snapshot()),this.logWriter.logRedish("error",t),this.logWriter.endGroup();}_hasPayload(t){return this._getNonEmptyProperties(t).length>0;}_getNonEmptyProperties(t){return Object.keys(t).map(o=>t[o]).filter(o=>o!==void 0);}},gp=new tt("NGXS_LOGGER_PLUGIN_OPTIONS"),B0=(()=>{class i{_store;_logWriter;_options=he(gp);_injector=he(Ut);handle(e,n,o){if(this._options.disabled||this._skipLogging(e,n))return o(e,n);this._logWriter||=new Oa(this._options),this._store||=this._injector.get(B);let r=new La(n,this._store,this._logWriter);return r.dispatched(e),o(e,n).pipe(J(a=>{r.completed(a);}),xn(a=>{throw r.errored(a),a;}));}_skipLogging(e,n){return!ns(this._injector,()=>this._options.filter(n,e));}static ɵfac=function(n){return new(n||i)();};static ɵprov=oe({token:i,factory:i.ɵfac});}return i;})(),hp=new tt("LOGGER_USER_OPTIONS");function $0(i){return Y(Y({},{logger:console,collapsed:!1,disabled:!1,filter:()=>!0}),i);}var _p=(()=>{class i{static forRoot(e){return{ngModule:i,providers:[Ni(B0),{provide:hp,useValue:e},{provide:gp,useFactory:$0,deps:[hp]}]};}static ɵfac=function(n){return new(n||i)();};static ɵmod=ue({type:i});static ɵinj=me({});}return i;})();var j0=["app-charity-details-page",""],G0=i=>({newFromCharity:i}),vp=i=>["/recommend-a-grant",i],z0=()=>({text:"View 10 per page",value:10}),K0=()=>({text:"View 50 per page",value:50}),W0=()=>({text:"View All",value:0}),q0=(i,t,e)=>[i,t,e],Y0=i=>({newFromActivity:i});function Q0(i,t){if(i&1&&(s(0,"div",32)(1,"div"),p(2," EFT Enrolled "),s(3,"button",41),p(4," i "),l()()()),i&2){let e=u(2);c(3),f("ngbPopover",e.charityDetailsEFTPopoverText);}}function X0(i,t){if(i&1&&(ee(0),s(1,"div",7),p(2," Website: "),s(3,"a",43),p(4),l()(),te()),i&2){let e=t.ngLet;c(3),f("href",e,Be),ce("aria-label",e+" will open in new window"),c(),T(e);}}function Z0(i,t){if(i&1&&(s(0,"div",32),R(1,X0,5,3,"ng-container",42),P(2,"fn"),l()),i&2){let e=u(),n=u();c(),f("ngLet",X(2,1,e.website,n.checkProtocol));}}function J0(i,t){if(i&1&&(s(0,"div",32)(1,"div",7)(2,"a",44),p(3,"Learn more on Guidestar"),l()()()),i&2){let e=u();c(2),f("href",e.candidUrl,Be);}}function eh(i,t){if(i&1&&(s(0,"div",33),C(1,"img",45),l()),i&2){let e=u();c(),f("src",e.logoUrl,Be);}}function th(i,t){if(i&1&&(s(0,"p",34),p(1),l()),i&2){let e=u();c(),T(e.alsoKnownAs);}}function ih(i,t){if(i&1&&(s(0,"p",46),p(1),l()),i&2){let e=u(2);c(),W(" ",e.profileLevel," ");}}function nh(i,t){if(i&1&&g(0,ih,2,1,"p",46),i&2){let e=u();_(e.profileLevel!=="NONE"?0:-1);}}function oh(i,t){if(i&1&&(s(0,"div",47),p(1,"GROSS RECEIPTS"),l(),s(2,"p",8),p(3),P(4,"stsCurrency"),l(
4)),i&2){let e=u(),n=u();c(3),W(" ",Me(4,1,e.grossReceipts,n.validatedCurrency,"symbol-narrow")," ");}}function rh(i,t){if(i&1&&(s(0,"div",47),p(1,"TOTAL ASSETS"),l(),s(2,"p",8),p(3),P(4,"stsCurrency"),l()),i&2){let e=u(),n=u();c(3),T(Me(4,1,e.totalAssets,n.validatedCurrency,"symbol-narrow"));}}function ah(i,t){if(i&1&&(s(0,"a",38),p(1,"Recommend a Grant"),l()),i&2){let e=u();f("routerLink",be(3,vp,be(1,G0,e.rowIndex)));}}function sh(i,t){if(i&1){let e=L();s(0,"button",48),x("click",function(){w(e),u(2);let o=j(1);return E(o.show());}),p(1,"Recommend a Grant"),l();}}function lh(i,t){if(i&1){let e=L();s(0,"button",48),x("click",function(){w(e);let o=u(),r=j(3),a=u(),d=j(3);return E(a.toggle(o,d,r));}),p(1," Add to Charity List "),l();}if(i&2){let e=u();ce("aria-label","Add "+e.name+" to charity list");}}function ch(i,t){if(i&1){let e=L();s(0,"div",5)(1,"div",6)(2,"div",25,2)(4,"h1")(5,"button",26),x("click",function(){let o=w(e),r=j(3),a=u(),d=j(3);return E(a.toggle(o,d,r));}),C(6,"i"),l(),p(7),l()(),s(8,"div",27)(9,"span",28),C(10,"i",29)(11,"i",30),l(),s(12,"div",31),p(13),P(14,"stsCurrency"),l(),s(15,"div"),p(16,"Total Amount issued by date range"),l()()(),s(17,"div",32)(18,"div",7),p(19),l()(),g(20,Q0,5,1,"div",32),g(21,Z0,3,4,"div",32),g(22,J0,4,1,"div",32),g(23,eh,2,1,"div",33),s(24,"div",6),g(25,th,2,1,"p",34),g(26,nh,1,1),l(),s(27,"div",6)(28,"div",35)(29,"p"),p(30),l()(),s(31,"div",36),g(32,oh,5,5),g(33,rh,5,5),l()(),s(34,"div",6)(35,"div",37),g(36,ah,2,5,"a",38),P(37,"fn"),Xi(38,sh,2,0,"button",39),g(39,lh,2,1,"button",39),s(40,"a",40),p(41,"Find a Different Charity"),l()()()();}if(i&2){let e=t,n=u();c(5),f("title",e.inCharityList?"Remove from Your List":"Add to Your Charity List"),ce("aria-label",e.inCharityList?"Remove "+e.name+" from Your List":"Add "+e.name+" to Your Charity List"),c(),Xe(e.inCharityList?"fas fa-heart p-0":"far fa-heart p-0"),c(),W(" ",e.name," "),c(6),T($e(14,19,n.orgGrantTotal)),c(6),En("",n.taxIdLabel,": ",e.taxId),c(),_(e.defaultPaymentTypeCode===16?20:-1),c(),_(e.website?21:-1),c(),_(e.candidUrl?22:-1),c(),_(e.logoUrl?23:-1),c(2),_(e.alsoKnownAs?25:-1),c(),_(e.profileLevel?26:-1),c(4),T(e.comment),c(2),_(e.grossReceipts?32:-1),c(),_(e.totalAssets?33:-1),c(3),_(X(37,21,e,n.canSelectCharity)?36:38),c(3),_(e.inCharityList?-1:39);}}function dh(i,t){if(i&1&&(s(0,"ngb-alert",49),C(1,"div",50),l()),i&2){let e=u(2);f("dismissible",!1),c(),f("data",e.charityDetailsIssue);}}function ph(i,t){if(i&1&&g(0,dh,2,2,"ngb-alert",49),i&2){let e=u();_(e.canShowCharityDetailIssue?0:-1);}}function mh(i,t){i&1&&C(0,"npt-select",12),i&2&&f("optionList",It(4,q0,Z(1,z0),Z(2,K0),Z(3,W0)));}function uh(i,t){i&1&&(s(0,"th",51),p(1,"Action"),l()),i&2&&ye("min-width",7.25,"em")("width",9.375,"em");}function fh(i,t){if(i&1&&(s(0,"a",54),p(1,"New Grant"),l()),i&2){let e=u(2).$implicit;f("routerLink",be(3,vp,be(1,Y0,e.rowIndex)));}}function hh(i,t){if(i&1){let e=L();s(0,"button",55),x("click",function(){w(e),u(3);let o=j(1);return E(o.show());})("keyup.enter",function(){w(e),u(3);let o=j(1);return E(o.show());}),p(1," New Grant "),l();}}function gh(i,t){if(i&1&&(g(0,fh,2,5,"a",54),P(1,"fn"),Xi(2,hh,2,0,"button",53)),i&2){let e=u(2);_(X(1,1,t,e.canSelectCharity)?0:2);}}function _h(i,t){if(i&1){let e=L();s(0,"button",55),x("click",function(){w(e),u(2);let o=j(1);return E(o.show());})("keyup.enter",function(){w(e),u(2);let o=j(1);return E(o.show());}),p(1," New Grant "),l();}}function vh(i,t){if(i&1&&(s(0,"td",52),g(1,gh,3,4),P(2,"async"),Xi(3,_h,2,0,"button",53),l()),i&2){let e,n=u();c(),_((e=$e(2,1,n.charityDetails$))?1:3,e);}}function yh(i,t){i&1&&(s(0,"th",56),p(1," Purpose "),l()),i&2&&ye("min-width",15,"em")("width",15,"em");}function Ch(i,t){if(i&1&&(s(0,"td",52)(1,"span",57),p(2,"Purpose"),l(),s(3,"span"),p(4),l()()),i&2){let e=t.$implicit;c(4),T(e.grantPurpose);}}function bh(i,t){i&1&&(s(0,"th",56),p(1,"Amount"),l()),i&2&&ye("min-width",7,"em")("width",7,"em");}function Sh(i,t){if(i&1&&(s(0,"td",52)(1,"span",57),p(2,"Amount"),l(),s(3,"span"),p(4),P(5,"stsCurrency"),l()()),i&2){let e=t.$implicit;c(4),T($e(5,1,e.amount));}}function xh(i,t){i&1&&(s(0,"th",56),p(1,"Date"),l()),i&2&&ye("min-width",6,"em")("width",6,"em");}function Ah(i,t){if(i&1&&(s(0,"td",52)(1,"span",57),p(2,"Date"),l(),s(3,"span"),p(4),P(5,"stsDate"),l()()),i&2){let e=t.$implicit;
4c(4),T(X(5,1,e.createdDate,"shortDate"));}}function wh(i,t){i&1&&C(0,"tr",58);}function Eh(i,t){i&1&&C(0,"tr",59);}var Yo=class Ra{constructor(t,e,n,o,r){this.route=t,this.accountService=e,this.store=n,this.actions$=r,this.orgGrantTotal=0,this.tableCount=0,this.columnNames=["actions","createdDate","grantPurpose","amount"],this.charityDetailsIssue="Due to an issue with the charity's status, we cannot display the charity details at this time but you can still review the previous grant details below. For more information or support, please reach out via the [Contact](/contact) page.",this.charityGrantIssue="Due to an issue with the charity's status, we cannot process your grant recommendation at this time. For more information or support, please reach out via the [Contact](/contact) page.",this.taxIdLabel="Tax ID",this.canShowCharityDetailIssue=!1,this.validatedCurrency=H.defaultCurrency,this.charityDetailsEFTPopoverText="This charity has enrolled to receive grant payments via electronic funds transfer (EFT). NPT will verify that the organization has an active EFT status at the time of grant disbursement. The charity will receive the full grant amount; there are no fees to the charity or DAF account for EFT payments. If the EFT status is inactive, NPT will issue a check. The charity will receive the full grant amount; there are no fees to the charity or DAF account.",this.searchForm=o.fromSchema({type:"object",properties:{view:{type:"number",default:10}}}),this.charityId$=this.route.paramMap.pipe(z(a=>+(a.get("id")||0)),ie(),Ai(1)),this.charityDetails$=this.store.select(pe.apiDafAccountsCharitySearchByIdGet).pipe(ve(Se),z(a=>a?.db?.accountCharity),ve(Se),Ei(this.charityId$),z(([a,d])=>Object.values(a).find(m=>m?.attributes.charityId===d)),z(a=>a?.attributes),ve(Se),Ai(1)),this.actions$.pipe($t(xc,Ac),S(this)).subscribe(()=>{this.canShowCharityDetailIssue||(this.canShowCharityDetailIssue=!0);}),this.dataSource=new St(this.store.select(pe.apiDafAccountsGrantActivityGet),10,S(this)),this.currentDateRange$=this.store.select(pe.currentDateRange),this.GrantActivityUnpaged$=this.store.select(pe.apiDafAccountsGrantActivityUnpagedGet).pipe(S(this),xe(),z(a=>{let d=a?.data?.attributes?.data;if(Is(d)){let m=d.map(h=>h.aggregate);return!m||m?.length===0?0:m.reduce((h,y)=>h+y);}return null;}),xe(),Ai(1));}ngOnInit(){this.dataSource.count$.pipe(S(this)).subscribe(e=>{this.tableCount=e;});let t=this.searchForm.valueChanges.pipe(z(()=>this.searchForm.model),xe(),J(e=>{this.dataSource.go({skipFirst:0,first:e.view});}));_e([t,this.accountService.currentAccountIdFiltered$,this.charityId$,this.currentDateRange$.pipe(ie()),this.dataSource.nextPage$.pipe(ie())]).pipe(Dt(400),S(this)).subscribe(([e,n,o,r,a])=>{let d=Object.values(Vs).filter(m=>m!==5&&m!==7).join(" ");this.store.dispatch(new mc(Te(Y({},a),{accountId:n,range:r,keywords:`+charityId:${o} +transactionStatusCode:"${d}"`,first:e.view}))),this.store.dispatch(new uc({accountId:n,range:r,keywords:`+charityId:${o} +transactionStatusCode:"${d}"`,aggregate:"sum",aggregateColumn:"amount"}));}),_e([this.accountService.currentAccountIdFiltered$,this.charityId$]).pipe(S(this)).subscribe(([e,n])=>{this.store.dispatch(new Sc({accountId:e,charityId:n}));}),this.GrantActivityUnpaged$.pipe(S(this)).subscribe(e=>{this.orgGrantTotal=e||0;}),this.searchForm.updateValueAndValidity();}checkProtocol(t){let e=t.trim();return e.indexOf("https://")===0||e.indexOf("http://")===0||e===""?e:"https://"+e;}actualRemove(t){if(!t.proceed)return;let e=t.context;if(!this.accountService.currentAccount$.value?.fundId)throw new Error("assertion failed; in grant form removing a charity from account without an account");this.toggleCharity(e,!1);}toggle(t,e,n){if(!this.accountService.currentAccount$.value?.fundId)throw new Error("assertion failed; adding charity to charity list without an account");t.inCharityList?e.show(n,t):this.toggleCharity(t,!0);}toggleCharity(t,e){let n=this.accountService.currentAccount$.value?.fundId;if(!n){console.error("invalid account id");return;}if(!t.charityId){console.error("invalid charity id");return;}this.store.dispatch(new Ic({body:{data:{type:"command",attributes:{accountId:n,charityId:t.charityId,inCharityList:e}}}})),setTimeout(()=>{window.location.reload();},100);}canSelectCharity(t){return t.partyGranteeStatus!==Wl.Rejected&&t.partyStatus!==Us.Deleted;}static{this.ɵfac=function(e){return new(e||Ra)(v(Ii),v(Ce),v(B),v(ct),v(ae));};}static{this.ɵcmp=M({type:Ra,selectors:[["","app-charity-details-page",""]],standalone:!1,attrs:j0,decls:35,vars:10,consts:[["charityIssue","nptAlert"],["prompt","nptPrompt"],["header",""],[1,"container",3,"nptAlert"],["nptYesNo","Are you sure you want to remove this charity?",1,"d-flex","flex-column","justify-content-start",3,"proceed"],[1,"my-3","mt-lg-5","mb-lg-5"],[1,"row"],[1,"col"],[1,"h4"],[3,"formGroup"],[1,"row","d-flex","justify-content-between"],["selectClass","form-control form-select",1,"col-md-3","mb-3"],["controlId","view","textLabel","View",1,"col-md-3","mb-3",3,"optionList"],["npt-container","","title","Grant Activity",3,"dataSource"],["id","grant-activity-results","role","grid","npt-table","","matSort","",1,"table","table-sm","table-npt","table-borderless",3,"matSortChange","dataSource"],[1,"sr-only"],["nptColumnDef","actions","alignment","left"],["npt-header-cell","",3,"min-width","width",4,"nptHeaderCellDef"],["npt-cell","",4,"nptCellDef"],["nptColumnDef","grantPurpose","alignment","left"],["npt-header-cell","","mat-sort-header","",3,"min-width","width",4,"nptHeaderCellDef"],["nptColumnDef","amount","alignment","right"],["nptColumnDef","createdDate","alignment","right"],["npt-header-row","",4,"nptHeaderRowDef"],["npt-row","",4,"nptRowDef","nptRowDefColumns"],[1,"col-12","col-lg-8"],["type","button",1,"btn-link","heart-link",3,"click","title"],[1,"col-12","col-lg-4","text-end"],[1,"dollar-heart","fa-stack","fa"],[1,"far","fa-heart","fa-stack-2x"],[1,"fas","fa-dollar-sign","fa-stack-1x"],[1,"h3","d-inline","align-middle"],[1,"row","mb-3"],[1,"row","col-sm-2","pb-3"],[1,"col-sm-1","w-auto"],[1,"col-lg"],[1,"col-sm"],[1,"col","button-group"],[1,"btn","btn-primary",3,"routerLink"],["type","button",1,"btn","btn-primary"],["routerLink","/recommend-a-grant",1,"btn","btn-primary"],["type","button","aria-label","eft enrolled tooltip","container","body",1,"info-tooltip",3,"ngbPopover"],[4,"ngLet"],["target","_blank",3,"href"],["target","_blank","aria-label","Learn more on Guidestar will open in new window",3,"href"],["alt","Charity logo",3,"src"],[1,"text-capitalize","silver","col-sm-1","justify-content-center"],[1,"section-title"],["type","button",1,"btn","btn-primary",3,"click"],["type","primary",1,"my-3",3,"dismissible"],["id","charity-detail-issue","markdown","",3,"data"],["npt-header-cell",""],["npt-cell",""],["type","button",1,"btn","btn-link"],[1,"btn","btn-link",3,"routerLink"],["type","button",1,"btn","btn-link",3,"click","keyup.enter"],["npt-header-cell","","mat-sort-header",""],[1,"mobile-header"],["npt-header-row",""],["npt-row",""]],template:function(e,n){if(e&1){let o=L();s(0,"div",3,0)(2,"div",4,1),x("proceed",function(a){return w(o),E(n.actualRemove(a));}),g(4,ch,42,24,"div",5),P(5,"async"),Xi(6,ph,1,1),l(),s(7,"div",6)(8,"div",7)(9,"div",8),p(10,"Previous Grants To This Charity"),l()()(),s(11,"form",9)(12,"div",10),C(13,"npt-date-selector",11),g(14,mh,1,8,"npt-select",12),l()(),s(15,"div",13)(16,"table",14),x("matSortChange",function(a){return w(o),E(n.dataSource.sort(a));}),s(17,"caption",15),p(18," Grant Activity "),l(),ee(19,16),R(20,uh,2,4,"th",17)(21,vh,4,3,"td",18),te(),ee(22,19),R(23,yh,2,4,"th",20)(24,Ch,5,1,"td",18),te(),ee(25,21),R(26,bh,2,4,"th",20)(27,Sh,6,3,"td",18),te(),ee(28,22),R(29,xh,2,4,"th",20)(30,Ah,6,4,"td",18),te(),s(31,"thead"),R(32,wh,1,0,"tr",23),l(),s(33,"tbody"),R(34,Eh,1,0,"tr",24),l()()()();}if(e&2){let o;f("nptAlert",n.charityGrantIssue),c(4),_((o=$e(5,8,n.charityDetails$))?4:6,o),c(7),f("formGroup",n.searchForm),c(3),_(n.tableCount>10?14:-1),c(),f("dataSource",n.dataSource),c(),f("dataSource",n.dataSource),c(16),f("nptHeaderRowDef",n.columnNames),c(2),f("nptRowDefColumns",n.columnNames);}},dependencies:[st,at,lt,Gt,zt,Re,qt,Yt,Qt,Xt,Jt,ti,ii,ni,Zt,ei,wt,Ie,so,Kt,Wt,ul,Ri,ri,Ne,Pi,Xn,Et,ki],styles:[".dollar-heart[_ngcontent-%COMP%]{color:#dd2027}#charity-detail-issue[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0}.silver[_ngcontent-%COMP%]{background-color:silver;height:20px;width:auto}"]});}};Yo=$([G()],Yo);var Th=["app-account-successors-table",""],Ph=()=>({text:"View 10 per page",value:10}),Dh=()=>({text:"View 50 per page",value:50}),Nh=()=>({text:"View All",value:0}),Ih=(i,t,e)=>[i,t,e],yp=()=>["name","option","percentage"];function kh(i,t){if(i&1&&(s(0,"form",5),C(1,"npt-select",8),l()),i&2){let e=u();f("formGroup",e.searchForm),c(),f("optionList",It(5,Ih,Z(2,Ph),Z(3,Dh),Z(4,Nh)));}}function Mh(i,t){if(i&1&&C(0,"div",10),i&2){let e=u(2);f("data",e.legacyPlan.additional);}}function Oh(i,t){if(i&1&&(s(0,"div",9),p(1),l(),g(2,Mh,1,1,"div",10)),i&2){let e=u();c(),T(e.legacyPlan.label),c(),_(e.legacyPlan.additional?2:-1);}}function Lh(i,t){i&1&&(s(0,"p",6),Le(1,1),l());}function Rh(i,t){i&1&&(s(0,"th",23),p(1," Name "),l()),i&2&&ye("min-width",5,"em")("width",25,"rem");}function Fh(i,t){if(i&1&&(s(0,"td",24)(1,"span",25),p(2,"Name"),l(),s(3,"span"),p(4),l()()),i&2){let e=t.$implicit;c(4),T(e.name);}}function Uh(i,t){i&1&&(s(0,"th",26),p(1," Designation "),l()),i&2&&ye("min-width",5,"em")("width",18.75,"rem");}function Vh(i,t){if(i&1&&(s(0,"td",24)(1,"span",25),p(2,"Designation"),l(),s(3,"span"),p(4),P(5,"fn"),l()()),i&2){let e=t.$implicit,n=u(2);
4c(4),T(X(5,1,e.option,n.getOption));}}function Hh(i,t){i&1&&(s(0,"th",27),p(1," Percentage "),l()),i&2&&ye("min-width",3,"em")("width",6.3125,"rem");}function Bh(i,t){if(i&1&&(s(0,"td",24)(1,"span",25),p(2,"Percentage"),l(),s(3,"span"),p(4),P(5,"percent"),l()()),i&2){let e=t.$implicit;c(4),T($e(5,1,e.percentage/100));}}function $h(i,t){i&1&&C(0,"tr",28);}function jh(i,t){i&1&&C(0,"tr",29);}function Gh(i,t){if(i&1){let e=L();s(0,"div",11),x("exportExcel",function(){w(e);let o=u();return E(o.export());}),s(1,"table",12),x("matSortChange",function(o){w(e);let r=u();return E(r.dataSource.sort(o));}),s(2,"caption",13),p(3),l(),ee(4,14),R(5,Rh,2,4,"th",15)(6,Fh,5,1,"td",16),te(),ee(7,17),R(8,Uh,2,4,"th",18)(9,Vh,6,4,"td",16),te(),ee(10,19),R(11,Hh,2,4,"th",20)(12,Bh,6,3,"td",16),te(),s(13,"thead"),R(14,$h,1,0,"tr",21),l(),s(15,"tbody"),R(16,jh,1,0,"tr",22),l()()();}if(i&2){let e=u();f("dataSource",e.dataSource)("title",e.title),c(),f("dataSource",e.dataSource),c(2),W(" ",e.title," "),c(11),f("nptHeaderRowDef",Z(6,yp)),c(2),f("nptRowDefColumns",Z(7,yp));}}var zh={0:"Individual Successor",1:"Charitable Beneficiary"},Xo=class Fa{constructor(t,e,n,o,r,a){this.store=t,this.accountService=e,this.actions=n,this.exportService=o,this.legacyPlanConfiguration=a,this.tableCount=0,this.legacyPlan=this.legacyPlanConfiguration.lookupLegacyPlanInfo(zl.NoLegacyPlan),this.getOption=d=>zh[+d],this.searchForm=r.fromSchema({type:"object",properties:{view:{default:10,type:"number"}}}),this.apiDafAccountsSuccessorsTableGet$=this.store.select(pe.apiDafAccountsSuccessorsTableGet),this.dataSource=new St(this.apiDafAccountsSuccessorsTableGet$,5,S(this)),this.dataSource.sort({active:"partyId",direction:"asc"});}ngOnInit(){this.dataSource.count$.pipe(S(this)).subscribe(e=>{this.tableCount=e;});let t=this.searchForm.valueChanges.pipe(z(()=>this.searchForm.model),xe(),J(e=>{this.dataSource.go({skipFirst:0,first:e.view});}));this.legacyPlanConfiguration.showMyLegacyPlanInfo&&this.accountService.currentAccount$.pipe(ve(Se)).pipe(S(this)).subscribe(e=>{this.legacyPlan=this.legacyPlanConfiguration.lookupLegacyPlanInfo(e.successionPlanTypeCode);}),_e([t,this.accountService.currentAccountIdFiltered$,this.dataSource.nextPage$]).pipe(S(this),xe(),J(([e,n,o])=>{this.store.dispatch(new _c(Te(Y({},o),{accountId:n,first:e.view})));})).subscribe(),this.dataSource.sort({active:"name",direction:"asc"}),this.searchForm.updateValueAndValidity();}export(){this.accountService.currentAccountIdFiltered$.pipe(S(this),pt(1)).subscribe(t=>{this.store.dispatch(new vc({accountId:t}));}),this.actions.pipe(ge(yc),pt(1)).subscribe(t=>{let e=kt(t.doc);e&&this.exportService.export(this.title?.replace(":","")+".xlsx",[{title:[this.title,{set:this.accountService.currentAccount$.value?.accountName,font:{bold:!0,sz:"18"}}],widths:[60,30,18],data:[["Name","Designation","%"],...e.map(n=>[n.name??"",this.getOption(n.option)??"",n.percentage??""])]}]);});}static{this.ɵfac=function(e){return new(e||Fa)(v(B),v(Ce),v(ae),v(Li),v(ct),v(Kl));};}static{this.ɵcmp=M({type:Fa,selectors:[["","app-account-successors-table",""]],inputs:{title:"title"},standalone:!1,attrs:Th,decls:8,vars:4,consts:()=>{let t;t="My Legacy Plan";let e;return e="Below are your designated successors and/or charitable beneficiaries. If you wish to update your Legacy Plan, click Update Account.",[t,e,[1,"row","g-0","mb-2"],[1,"col-12","mb-2","mb-md-0","d-flex","align-items-center",3,"ngClass"],[1,"h6"],[1,"col-12","col-md-4","form-inline","justify-content-md-end",3,"formGroup"],["markdown",""],["npt-container","",3,"dataSource","title"],["controlId","view","textLabel","View: \xA0",3,"optionList"],[1,"legacy-plan-label"],["markdown","",1,"additional",3,"data"],["npt-container","",3,"exportExcel","dataSource","title"],["id","account-successors","role","grid","npt-table","","matSort","","matSortActive","partyId","matSortDirection","asc",1,"table","table-sm","table-npt","table-borderless",3,"matSortChange","dataSource"],[1,"sr-only"],["nptColumnDef","name","alignment","left"],["npt-header-cell","","mat-sort-header","name",3,"min-width","width",4,"nptHeaderCellDef"],["npt-cell","",4,"nptCellDef"],["nptColumnDef","option","alignment","left"],["npt-header-cell","","mat-sort-header","option",3,"min-width","width",4,"nptHeaderCellDef"],["nptColumnDef","percentage","alignment","left"],["npt-header-cell","","mat-sort-header","percentage",3,"min-width","width",4,"nptHeaderCellDef"],["npt-header-row","",4,"nptHeaderRowDef"],["npt-row","",4,"nptRowDef","nptRowDefColumns"],["npt-header-cell","","mat-sort-header","name"],["npt-cell",""],[1,"mobile-header"],["npt-header-cell","","mat-sort-header","option"],["npt-header-cell","","mat-sort-header","percentage"],["npt-header-row",""],["npt-row",""]];},template:function(e,n){e&1&&(s(0,"div",2)(1,"div",3)(2,"div",4),Le(3,0),l()(),g(4,kh,2,9,"form",5),l(),g(5,Oh,3,2)(6,Lh,2,0,"p",6),g(7,Gh,17,8,"div",7)),e&2&&(c(),f("ngClass",n.tableCount>10?"col-md-8":""),c(3),_(n.tableCount>10?4:-1),c(),_(n.legacyPlanConfiguration.showMyLegacyPlanInfo?5:6),c(2),_(n.legacyPlan.showSuccessorTable?7:-1));},dependencies:[bt,st,at,lt,qt,Yt,Qt,Xt,Jt,ti,ii,ni,Zt,ei,wt,Kt,Wt,Ri,Ne,ps,Et],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-label[_ngcontent-%COMP%]{font-size:.9375rem;font-weight:500;padding-bottom:.75rem}.additional[_ngcontent-%COMP%]{padding-bottom:.75rem}']});}};Xo=$([G()],Xo);var Wh=["app-account-documents-list",""];function qh(i,t){if(i&1){let e=L();s(0,"li")(1,"button",4),x("click",function(){let o=w(e).$implicit,r=u(2);return E(r.downloadDocument(o));}
4),p(2),l()();}if(i&2){let e=t.$implicit;c(2),W(" ",e.fileName," ");}}function Yh(i,t){if(i&1&&(ee(0),s(1,"ul",3),Pe(2,qh,3,1,"li",null,Qe),l(),te()),i&2){let e=t.ngxObserve;c(2),De(e);}}var Zo=class Ua{constructor(t,e,n){this.store=t,this.accountService=e,this.apiDafAccountsDocumentsGet$=this.store.select(pe.apiDafAccountsDocumentsGet),this.dataSource=new St(this.apiDafAccountsDocumentsGet$,10,S(this));}ngOnInit(){_e([this.accountService.currentAccountIdFiltered$,this.dataSource.nextPage$]).pipe(Dt(10),xe(),S(this)).subscribe(([t,e])=>{this.store.dispatch(new Cc(Te(Y({},e),{accountId:t})));});}downloadDocument(t){this.accountService.currentAccountIdFiltered$.pipe(pt(1)).subscribe(e=>{this.store.dispatch(new bc({entityId:e,documentId:t.documentId,type:t.type}));});}static{this.ɵfac=function(e){return new(e||Ua)(v(B),v(Ce),v(ae));};}static{this.ɵcmp=M({type:Ua,selectors:[["","app-account-documents-list",""]],standalone:!1,attrs:Wh,decls:3,vars:3,consts:[["npt-container","",1,"mb-lg-5",3,"dataSource","table"],["nptDatasourceContent",""],[4,"ngxObserve"],[1,"list-unstyled"],["type","button",1,"btn","btn-link","text-start",3,"click"]],template:function(e,n){e&1&&(s(0,"div",0)(1,"div",1),R(2,Yh,4,0,"ng-container",2),l()()),e&2&&(f("dataSource",n.dataSource)("table",!1),c(2),f("ngxObserve",n.dataSource.resolve$));},dependencies:[ll,wt,qn],encapsulation:2});}};Zo=$([G()],Zo);var Xh=["app-account",""],Zh=()=>["/update-account"];function Jh(i,t){i&1&&(s(0,"div",6)(1,"button",15),p(2,"Update Account"),l()()),i&2&&(c(),f("routerLink",Z(1,Zh)));}function eg(i,t){i&1&&C(0,"div",8);}function tg(i,t){i&1&&C(0,"div",9);}function ig(i,t){i&1&&(s(0,"div",10),C(1,"div",16),l()),i&2&&(c(),f("headerContent",""));}var Jo=class Va{constructor(t,e,n,o){this.breakpointObserver=t,this.store=n,this.permissionsService=o,this.StsActions=se,this.isMobile=!1,this.client=H,this.accountDocumentText="Account documents will be available for download here.",this.breakpointObserver.observe([ai(Mt.lg)]).pipe(z(r=>r.matches),ie(),S(this)).subscribe(r=>{this.isMobile=r;});}ngOnInit(){}static{this.ɵfac=function(e){return new(e||Va)(v(jt),v(Ce),v(B),v(ze));};}static{this.ɵcmp=M({type:Va,selectors:[["","app-account",""]],standalone:!1,attrs:Xh,decls:17,vars:5,consts:()=>{let t;return t="On this page, you'll see an overview of your DAF account details. Click the Update Account button to submit updates for your DAF account.",[t,[1,"container","py-4"],[1,"row","my-5"],[1,"col-md-9","mb-5","header-column"],[1,"h2"],["markdown","",1,"pb-2"],[1,"pt-3","update-button","text-left"],[1,"col-md-9","tables-column"],["app-account-successors-table","","title","Legacy Plan",1,"form-section"],["app-account-relationships-table","","title","Account Relationships","type","default",1,"form-section"],[1,"form-section"],[1,"pb-3","form-section"],[1,"h6"],["markdown","",1,"py-3",3,"data"],["app-account-documents-list","",1,"test"],["type","button",1,"btn","btn-primary",3,"routerLink"],["app-account-relationships-table","","title","All Interested Parties","type","coverage",3,"headerContent"]];},template:function(e,n){e&1&&(s(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),p(4,"Manage Account"),l(),s(5,"div",5),Le(6,0),l(),g(7,Jh,3,2,"div",6),l(),s(8,"div",7),g(9,eg,1,0,"div",8),g(10,tg,1,0,"div",9),g(11,ig,2,1,"div",10),s(12,"div",11)(13,"div",12),p(14,"Additional Documents"),l(),C(15,"div",13)(16,"div",14),l()()()()),e&2&&(c(7),_(n.permissionsService.verifyAction(n.StsActions.ACCOUNT_UPDATE_VIEW)?7:-1),c(2),_(n.permissionsService.verifyAction(n.StsActions.ACCOUNT_SUCCESSOR_VIEW)?9:-1),c(),_(n.permissionsService.verifyAction(n.StsActions.ACCOUNT_RELATIONSHIP_VIEW)?10:-1),c(),_(n.permissionsService.verifyAction(n.StsActions.ACCOUNT_ALL_IP_VIEW)?11:-1),c(4),f("data",n.accountDocumentText));},dependencies:[Re,Ne,rc,Xo,Zo],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}@media(max-width:991.98px){.header-column[_ngcontent-%COMP%]{max-width:none}}@media(max-width:991.98px){.tables-column[_ngcontent-%COMP%]{max-width:none}}']});}};Jo=$([G()],Jo);var ng=["app-update-account",""];function og(i,t){i&1&&(s(0,"ngb-alert",15)(1,"div",16),p(2,"You do not have access to submit this form."),l()()),i&2&&f("dismissible",!1);}function rg(i,t){if(i&1&&g(0,og,3,1,"ngb-alert",15),i&2){let e=t;_(e!=null&&e.writeAccess?0:-1);}}function ag(i,t){if(i&1&&(s(0,"div",8)(1,"div",17)(2,"button",18),p(3,"Save"),l(),s(4,"a",19),p(5,"Cancel"),s(6,"span",20),p(7," \xBB"),l()()()()),i&2){let e=u();c(2),f("disabled",e.form.errors!=null&&e.form.errors.writeAccess?!0:null);}}var er=class Ha{constructor(t,e,n,o,r,a){this.store=t,this.accountService=e,this.actions$=n,this.permissionsService=a,this.StsActions=se,this.accountName="",this.accountStatus="",this.accountId=-1,this.client="",this.submitting=!1,this.hasAccess=!1,this.isDirty$=new _t(!1),this.writeAccessCheck=()=>this.permissionsService.verifyAction(se.ACCOUNT_DETAILS_UPDATE)?null:{writeAccess:!0},this.formatAccountNameAndClientNameAndStatus=(d,m,h)=>d&&h==="Entered"||(m??"").toUpperCase()==="NPTUK"&&(m??"").toUpperCase()==="NPTUKUSD"&&(m??"").toUpperCase()!=="RATHBONES"&&(m??"").toUpperCase()!=="CAZENOVE"&&(m??"").toUpperCase()!=="NPTTRANSATLANTIC"&&/close|immob/i.test(h??"")||!h||h.trim()===""?d:d+" ("+h+")",this.canDeactivate=()=>!this.hasAccess||!this.isDirty$.value||!!this.writeAccessCheck(),this.client=H.name,this.store.select(U.hasAccess).pipe(S(this)).subscribe(d=>this.hasAccess=d),this.form=o.fromSchema({type:"object",properties:{accountName:{default:"",type:"string",validators:[oi.required]},acknowledgeTerms:{default:!1,type:"boolean",validators:[oi.requiredTrue]}},validators:[this.writeAccessCheck]}),this.accountService.checkAccessToast(S(this)),r.register(_e([this.isDirty$,this.accountService.currentAccount$,t.select(U.hasAccess)]).pipe(z(this.canDeactivate),ie(),S(this)));}ngOnInit(){this.accountService.currentAccount$.pipe(S(this)).subscribe(t=>{this.accountName=t?.accountName??"",this.accountStatus=t?.accountStatus??"",this.accountId=t?.fundId??-1,this.form.controls.accountName.patchValue(this.accountName),this.form.markAsUntouched(),this.form.markAsPristine();}),this.actions$.pipe(S(this),$t(Pr,Ec),J(t=>{this.submitting=!1,t.action instanceof Pr&&(this.accountService.currentAccount$.value&&this.accountService.changeAccountName(this.form.controls.accountName.model),this.thankYou?.show(),this.form.patchValue({acknowledgeTerms:!1}),this.form.markAsUntouched(),this.form.markAsPristine(),this.isDirty$.next(this.form.dirty));})).subscribe(),this.form.valueChanges.pipe(S(this),z(()=>this.form.dirty),ie()).subscribe(t=>{this.isDirty$.next(t);});}ngAfterViewInit(){this.form.focusFirst();}send(){this.form.validate(),this.form.valid&&(this.submitting=!0,this.store.dispatch(new wc({body:{data:{type:"command",attributes:{}},db:{account:{[""+this.accountId]:{id:""+this.accountId,type:"account",attributes:{fundId:this.accountId,accountName:this.form.controls.accountName.model},relationships:{}}}}}})));}cancel(){this.form.setValue({accountName:this.accountName,acknowledgeTerms:!1}),this.form.markAsUntouched(),this.form.markAsPristine();}get accountPages(){return H.accountPages;}unloadNotification(t){this.canDeactivate()||(t.returnValue=le.pen
4dingChangesText,setTimeout(()=>{setTimeout(()=>{this.hasAccess||this.store.dispatch(new je());},1);},1));}static{this.ɵfac=function(e){return new(e||Ha)(v(B),v(Ce),v(ae),v(ct),v(Ge),v(ze));};}static{this.ɵcmp=M({type:Ha,selectors:[["","app-update-account",""]],viewQuery:function(e,n){if(e&1&&it(Ie,5),e&2){let o;nt(o=ot())&&(n.thankYou=o.first);}},hostBindings:function(e,n){e&1&&x("beforeunload",function(r){return n.unloadNotification(r);},Ti);},standalone:!1,attrs:ng,decls:22,vars:13,consts:()=>{let t;t=" You can update the name of your donor-advised fund here. Your changes will take effect immediately. ";let e;return e=" I acknowledge that I am authorized to make these changes to the donor-advised fund account and that all changes are accurate. ",[t,e,["app-sub-nav","","navTitle","Update Account","routeMatch","exact",3,"pages"],["nptAlertHeader","Thank You","nptAlert","Your requested updates have been saved.",1,"container","mb-4"],[3,"ngSubmit","formGroup"],["markdown",""],["app-npt-fieldset-required-legend",""],[1,"h2"],[1,"row","g-2"],["controlId","accountName","textLabel","Account Name",1,"col-sm-12","col-lg-5","px-0","mb-5"],[1,"section"],[1,"section-title"],["id","terms-content",1,"col-12","pt-3"],["controlId","acknowledgeTerms","textLabel","I acknowledge the terms.","aria-labelledby","terms-content",1,"col-12","my-4"],["role","status"],["type","danger",3,"dismissible"],[1,"alert-message"],[1,"col","button-group"],["type","submit",1,"btn","btn-primary",3,"disabled"],["routerLink","/account","aria-label","Cancel",1,"fw-light","cancel-link","ms-3"],["aria-hidden","true"]];},template:function(e,n){if(e&1&&(C(0,"div",2),s(1,"div",3)(2,"form",4),x("ngSubmit",function(){return n.send();}),s(3,"p",5),Le(4,0),l(),C(5,"div",6),s(6,"div",7),p(7),P(8,"fn"),l(),s(9,"div",8),C(10,"npt-input",9),l(),s(11,"div",10)(12,"div",11),p(13,"Acknowledgment of Terms"),l(),s(14,"div",8)(15,"div",12),Le(16,1),l(),C(17,"npt-checkbox",13),l()(),g(18,rg,1,1),s(19,"p",14),p(20),l(),g(21,ag,8,1,"div",8),l()()),e&2){let o;f("pages",n.accountPages),c(2),f("formGroup",n.form),c(5),T(yt(8,8,n.accountName,n.formatAccountNameAndClientNameAndStatus,n.client,n.accountStatus)),c(11),_((o=n.form.errors)?18:-1,o),c(),Ve("sr-only",!n.submitting),c(),T(n.submitting?"Processing... Please wait.":""),c(),_(n.submitting?-1:21);}},dependencies:[st,at,lt,Gt,Re,Ie,Fi,Jn,si,Ne,co,Et],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}.section[_ngcontent-%COMP%]{border-top:1px solid #065881;padding-top:12px;margin-bottom:2rem}.section[_ngcontent-%COMP%]   .section-title[_ngcontent-%COMP%]{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:#065881;margin-bottom:2rem}']});}};er=$([G()],er);var lg=["app-update-primary-advisor",""];function cg(i,t){i&1&&(s(0,"div",7)(1,"a",12),p(2,"Edit Your Name"),s(3,"span",13),p(4," \xBB"),l()()());}function dg(i,t){if(i&1){let e=L();s(0,"button",16),x("click",function(){w(e);let o=u(3);return E(o.edit());}),p(1,"Edit Information"),l();}}function pg(i,t){if(i&1&&(g(0,dg,2,0,"button",14),C(1,"div",15)),i&2){let e=u(2);_(e.permissionsService.verifyAction(e.StsActions.ACCOUNT_DPA_UPDATE)?0:-1),c(),f("individualControl",e.form.controls.primaryAdvisor)("advisorSettings",e.pageSettings)("showRestrictedSection",e.permissionsService.verifyAction(e.StsActions.ACCOUNT_DPA_PSID_VIEW));}}function mg(i,t){if(i&1){let e=L();s(0,"div",20)(1,"div",24)(2,"button",25),p(3," Save "),l(),s(4,"button",26),x("click",function(){w(e);let o=u(3);return E(o.cancel());}),p(5," Cancel"),s(6,"span",13),p(7," \xBB"),l()()()();}if(i&2){let e=u(3);c(2),f("disabled",e.form.errors!=null&&e.form.errors.writeAccess?!0:null);}}function ug(i,t){if(i&1&&(s(0,"p",7),p(1," Any changes made here will take effect immediately."),C(2,"br"),p(3," Asterisk (*) indicates a required field. "),l(),C(4,"div",17),s(5,"div",18)(6,"div",19),p(7,"Acknowledgment of Terms"),l(),s(8,"div",20)(9,"div",21),Le(10,0),l(),C(11,"npt-checkbox",22),l()(),s(12,"p",23),p(13),l(),g(14,mg,8,1,"div",20)),i&2){let e=u(2);c(4),f("individualControl",e.form.controls.primaryAdvisor)("psidUpdate",e.StsActions.ACCOUNT_DPA_PSID_UPDATE)("advisorSettings",e.pageSettings)("managementLayout",!0),c(8),Ve("sr-only",!e.submitting),c(),T(e.submitting?"Processing... Please wait.":""),c(),_(e.submitting?-1:14);}}function fg(i,t){if(i&1){let e=L();s(0,"form",4),x("ngSubmit",function(){w(e);let o=u();return E(o.send());}),s(1,"div",5)(2,"div",6)(3,"div",7)(4,"label",8),p(5,"Primary Advisor"),l(),s(6,"h3",9),p(7),l()(),g(8,cg,5,0,"div",7),s(9,"div"),p(10,"The primary advisor will receive an email alert when this page is updated."),l()(),s(11,"div",10)(12,"div",11),p(13,"Contact Information"),l(),g(14,pg,2,4)(15,ug,15,8),l()()();}if(i&2){let e=u();f("formGroup",e.form),c(7),T(e.individualDetailsService.name(e.form.controls.primaryAdvisor)),c(),_(e.isViewingSelf?8:-1),c(6),_(e.form.disabled?14:15);}}function hg(i,t){if(i&1&&(s(0,"ngb-alert",27),C(1,"div",28),l(),C(2,"br")),i&2){let e=u();f("dismissible",!1),c(),f("data",e.noDpaAlert);}}var tr=class Ba{get isViewingSelf(){return Number(this.advisor?.partyId)===Number(this.store.selectSnapshot(U.partyId));}constructor(t,e,n,o,r,a,d,m,h){this.store=t,this.accountService=e,this.actions$=n,this.permissionsService=a,this.individualFormService=d,this.individualDetailsService=m,this.co
4des=h,this.StsActions=se,this.noDpaAlert="This action can't be adjusted online. Please contact NPT at (888) 878-7900 or [email protected] for further assistance.",this.submitting=!1,this.accountId=0,this.hasAccess=!1,this.isDirty$=new _t(!1),this.hasDPA=!1,this.writeAccessCheck=()=>this.permissionsService.verifyAction(se.ACCOUNT_DPA_UPDATE)?null:{writeAccess:!0},this.canDeactivate=()=>!this.hasAccess||!this.isDirty$.value||!!this.writeAccessCheck(),this.store.select(U.hasAccess).pipe(S(this)).subscribe(y=>this.hasAccess=y),this.pageSettings=H.accountPages.find(y=>y.route===location.pathname)?.advisorSettings,this.pageSettings||Ms(`expected advisorSettings configuration for route ${location.pathname}`),this.form=o.fromSchema({type:"object",properties:{primaryAdvisor:d.defineRestrictedIndividual(Te(Y({},this.pageSettings),{useLegacyId:this.pageSettings?.useLegacyId&&this.permissionsService.verifyAction(se.ACCOUNT_DPA_PSID_VIEW),useSsoId:this.pageSettings?.useSsoId&&this.permissionsService.verifyAction(se.ACCOUNT_DPA_PSID_VIEW)})),acknowledgeTerms:{default:!1,type:"boolean",validators:[oi.requiredTrue]}},validators:[this.writeAccessCheck]}),this.accountRelationships$=this.store.select(pe.apiDafAccountsRelationshipsGet).pipe(S(this),z(y=>kt(y)),xe(),Ai(1)),this.accountService.checkAccessToast(S(this)),r.register(_e([this.isDirty$,this.accountService.currentAccount$,t.select(U.hasAccess)]).pipe(z(this.canDeactivate),ie(),S(this)));}ngOnInit(){_e([this.accountService.currentAccountIdFiltered$,this.accountRelationships$]).pipe(S(this)).subscribe(([t,e])=>{this.accountId=t,e||this.store.dispatch(new gc({accountId:t}));}),this.actions$.pipe(S(this),$t(Dr,Pc),J(t=>{this.submitting=!1,t.action instanceof Dr&&(this.thankYou.show(),this.form.controls.acknowledgeTerms.setValue(!1),this.form.markAsUntouched(),this.form.markAsPristine(),this.form.forceDisable(),this.isDirty$.next(this.form.dirty));})).subscribe(),this.form.valueChanges.pipe(S(this),z(()=>this.form.dirty),ie()).subscribe(t=>{this.isDirty$.next(t);}),this.accountRelationships$.pipe(S(this),z(t=>t?.find(e=>e.accountRoleCode===Hs.PrimaryAdvisor)),J(t=>{t==null?this.hasDPA=!1:this.hasDPA=!0;}),ve(Se)).subscribe(t=>{this.advisor=t;let{phone:e,phoneCountryCode:n}=tn(t.phone),o,r;if(t.alternatePhone){let a=tn(t.alternatePhone);o=a.phone,r=a.phoneCountryCode;}this.form.patchValue({primaryAdvisor:{address1:t.address1,address2:t.address2,city:t.city,country:t.country,email:t.email,firstName:t.firstName,lastName:t.lastName,middleName:t.middleName,partyId:t.partyId,phone:e,phoneCountryCode:n,alternatePhone:o,alternatePhoneCountryCode:r??this.codes.DefaultPhoneCountryCode,postalCode:t.postalCode,province:t.province,rowIndex:t.rowIndex,state:t.state,suffix:t.suffix,title:t.title,yearOfBirth:t.yearOfBirth,company:t.company,businessName:t.businessName,ssoId:t.ssoId,legacyId2:t.legacyId2,accountRoleCode:t.accountRoleCode}});}),this.form.disable();}edit(){this.form.enable(),this.form.focusFirst();}send(){if(this.form.validate(),!this.form.valid)return;H.mapDPAEmailToSsoId&&this.form.controls.primaryAdvisor.addControl("ssoId",new cl({type:"string",default:this.form.model.primaryAdvisor.email})),this.submitting=!0;let t=this.form.controls.primaryAdvisor.model;this.store.dispatch(new Tc({body:{data:{type:"command",attributes:{}},db:{account:{[""+this.accountId]:{id:""+this.accountId,type:"account",attributes:{fundId:this.accountId},relationships:{primaryAdvisor:{type:"individual",id:t.rowIndex}}}},individual:{[t.rowIndex]:{id:t.rowIndex,type:"individual",attributes:this.individualFormService.createIndividual(t)}}}}}));}cancel(){this.form.controls.acknowledgeTerms.setValue(!1),this.form.markAsUntouched(),this.form.markAsPristine(),this.form.forceDisable(),this.isDirty$.next(this.form.dirty);let t=this.advisor,{phone:e,phoneCountryCode:n}=tn(t.phone),o,r;if(t.alternatePhone){let a=tn(t.alternatePhone);o=a.phone,r=a.phoneCountryCode;}this.form.patchValue({primaryAdvisor:{address1:t.address1,address2:t.address2,city:t.city,country:t.country,email:t.email,firstName:t.firstName,lastName:t.lastName,middleName:t.middleName,partyId:t.partyId,phone:e,phoneCountryCode:n,alternatePhone:o,alternatePhoneCountryCode:r??this.codes.DefaultPhoneCountryCode,postalCode:t.postalCode,province:t.province,rowIndex:t.rowIndex,state:t.state,suffix:t.suffix,title:t.title,yearOfBirth:t.yearOfBirth,ssoId:t.ssoI
4d,legacyId2:t.legacyId2},acknowledgeTerms:!1});}get accountPages(){return H.accountPages;}unloadNotification(t){this.canDeactivate()||(t.returnValue=le.pendingChangesText,setTimeout(()=>{setTimeout(()=>{this.hasAccess||this.store.dispatch(new je());},1);},1));}static{this.ɵfac=function(e){return new(e||Ba)(v(B),v(Ce),v(ae),v(ct),v(Ge),v(ze),v(Vl),v(Hl),v(Vn));};}static{this.ɵcmp=M({type:Ba,selectors:[["","app-update-primary-advisor",""]],viewQuery:function(e,n){if(e&1&&it(Ie,5),e&2){let o;nt(o=ot())&&(n.thankYou=o.first);}},hostBindings:function(e,n){e&1&&x("beforeunload",function(r){return n.unloadNotification(r);},Ti);},standalone:!1,attrs:lg,decls:4,vars:3,consts:()=>{let t;return t=" I acknowledge that I am authorized to make these changes to the donor-advised fund account and that all changes are accurate. ",[t,["app-sub-nav","","navTitle","Update Account","routeMatch","exact",3,"pages"],["nptAlertHeader","Thank You","nptAlert","Your requested updates have been saved.",1,"container","mb-4"],[3,"formGroup"],[3,"ngSubmit","formGroup"],[1,"row","g-5"],[1,"col-md-12","col-lg-4"],[1,"mb-3"],[1,"primary-label"],[1,"h4"],[1,"col-md-12","col-lg-8"],["aria-level","2",1,"section-title","mb-3","section-title"],["routerLink","/my-profile","aria-label","Edit Your Name",1,"fw-light","cancel-link"],["aria-hidden","true"],["type","button",1,"btn","btn-primary","btn-sm","mb-4"],["app-advisor-view","",3,"individualControl","advisorSettings","showRestrictedSection"],["type","button",1,"btn","btn-primary","btn-sm","mb-4",3,"click"],["app-advisor","",1,"mb-5",3,"individualControl","psidUpdate","advisorSettings","managementLayout"],[1,"section"],[1,"section-title"],[1,"row","g-2"],["id","terms-content",1,"col-12","pt-3"],["controlId","acknowledgeTerms","textLabel","I acknowledge the terms.","aria-labelledby","terms-content",1,"col-12","my-4"],["role","status"],[1,"col","button-group"],["type","submit",1,"btn","btn-primary",3,"disabled"],["type","button","aria-label","Cancel",1,"btn","btn-linklike","ms-3",3,"click"],["type","primary",3,"dismissible"],["markdown","",1,"alert-message",3,"data"]];},template:function(e,n){e&1&&(C(0,"div",1),s(1,"div",2),g(2,fg,16,4,"form",3),g(3,hg,3,2),l()),e&2&&(f("pages",n.accountPages),c(2),_(n.hasDPA?2:-1),c(),_(n.hasDPA?-1:3));},dependencies:[st,at,lt,Gt,Re,Ie,Fi,si,Bl,ic,Ne],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}.section[_ngcontent-%COMP%]{border-top:1px solid #065881;padding-top:12px}.section-title[_ngcontent-%COMP%]{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:#065881;margin-bottom:2rem}']});}};tr=$([G()],tr);var gg=["acc"],_g=["app-update-legacy-plan",""];function vg(i,t){if(i&1&&(s(0,"ngb-alert",15)(1,"div",16),p(2),l(
4)()),i&2){let e=u();f("dismissible",!1),c(2),W("Please save or close the '",e.section,"' section");}}function yg(i,t){i&1&&g(0,vg,3,2,"ngb-alert",15),i&2&&_(t.allocation?0:-1);}function Cg(i,t){if(i&1&&(s(0,"div",13)(1,"div",17)(2,"button",18),p(3," Save "),l(),s(4,"a",19),p(5,"Cancel"),s(6,"span",20),p(7," \xBB"),l()()()()),i&2){let e=u();c(2),f("disabled",e.form.errors!=null&&e.form.errors.writeAccess||e.form.errors!=null&&e.form.errors.onlineAccess?!0:null);}}function bg(i,t){i&1&&(s(0,"ngb-alert",15)(1,"div",16),p(2,"You do not have access to submit this form."),l()()),i&2&&f("dismissible",!1);}function Sg(i,t){i&1&&(s(0,"ngb-alert",21)(1,"div",16),p(2,"You cannot update your legacy plan online."),l()()),i&2&&f("dismissible",!1);}function xg(i,t){if(i&1&&(g(0,bg,3,1,"ngb-alert",15),g(1,Sg,3,1,"ngb-alert",21)),i&2){let e=t;_(e!=null&&e.writeAccess?0:-1),c(),_(e!=null&&e.onlineAccess?1:-1);}}var Ag={0:"Individual Successor",1:"Charitable Beneficiary"},ir=class $a{constructor(t,e,n,o,r,a,d){this.store=t,this.accountService=e,this.actions$=n,this.viewportScroller=a,this.permissionsService=d,this.StsActions=se,this.showRemoveConfirm=!1,this.editId=-1,this.nextId=-1,this.totalAllocation=0,this.submitting=!1,this.accountId=0,this.hasOpenModals=!1,this.hasAccess=!1,this.isDirty$=new _t(!1),this.writeAccessCheck=()=>this.permissionsService.verifyAction(se.ACCOUNT_LEGACY_PLAN_UPDATE)?null:{writeAccess:!0},this.onlineAccessCheck=()=>this.legacyPlanComponent?.canEditPlanOnline()?null:{onlineAccess:!0},this.canDeactivate=()=>{let m=this.form.controls.legacyAllocation.model;return!this.hasAccess||!this.isDirty$.value||!!this.writeAccessCheck();},this.store.select(U.hasAccess).pipe(S(this)).subscribe(m=>this.hasAccess=m),this.form=o.fromSchema({type:"object",properties:{legacyAllocation:{type:"object",properties:{totalAllocation:{default:0,type:"number",validators:[oi.pattern("^0$|^100$")],errors:{pattern:"Allocation Total must equal 0% or 100%"}},successorEdit:{type:"boolean"},charityEdit:{type:"boolean"}}},acknowledgeTerms:{default:!1,type:"boolean",validators:[oi.requiredTrue]}},validators:[this.writeAccessCheck,this.onlineAccessCheck]}),this.accountService.checkAccessToast(S(this)),r.register(_e([this.isDirty$,this.accountService.currentAccount$,t.select(U.hasAccess)]).pipe(z(this.canDeactivate),ie(),S(this)));}ngOnInit(){this.accountService.currentAccountIdFiltered$.pipe(S(this),ve(Se)).subscribe(t=>{this.accountId=t;}),this.actions$.pipe(S(this),$t(Nr,Nc),J(t=>{this.submitting=!1,t.action instanceof Nr&&(this.hasOpenModals||this.thankYou.show(),this.form.controls.acknowledgeTerms.setValue(!1),this.form.markAsUntouched(),this.form.markAsPristine(),this.isDirty$.next(!1));})).subscribe();}send(){if(this.form.controls.legacyAllocation.validate(),!this.form.controls.legacyAllocation.valid){this.viewportScroller.setOffset([0,200]),this.viewportScroller.scrollToAnchor("total-container");return;}if(this.form.validate(),!this.form.valid)return;this.submitting=!0;let t=this.legacyPlanComponent.buildDb(this.accountId);if(!t)throw new Error("missing db");this.store.dispatch(new Dc({body:{data:{type:"command",attributes:{}},db:t}}));}updateModal(t){this.hasOpenModals=t;}legacyUpdated(){this.isDirty$.next(!0);}cancel(){this.legacyPlanComponent.cancel(),this.form.patchValue({acknowledgeTerms:!1}),this.form.markAsUntouched(),this.form.markAsPristine();}getOption(t){return Ag[+t];}get accountPages(){return H.accountPages;}unloadNotification(t){this.canDeactivate()||(t.returnValue=le.pendingChangesText,setTimeout(()=>{setTimeout(()=>{this.hasAccess||this.store.dispatch(new je());},1);},1));}static{this.ɵfac=function(e){return new(e||$a)(v(B),v(Ce),v(ae),v(ct),v(Ge),v(Mi),v(ze));};}static{this.ɵcmp=M({type:$a,selectors:[["","app-update-legacy-plan",""]],viewQuery:function(e,n){if(e&1&&(it(gg,5),it(lo,5),it(Ie,5)),e&2){let o;nt(o=ot())&&(n.acc=o.first),nt(o=ot())&&(n.legacyPlanComponent=o.first),nt(o=ot())&&(n.thankYou=o.first);}},hostBindings:function(e,n){e&1&&x("beforeunload",function(r){return n.unloadNotification(r);},Ti);},standalone:!1,attrs:_g,decls:20,vars:10,consts:()=>{let t;return t=" I acknowledge that I am authorized to make these changes to the donor-advised fund account and that all changes are accurate. ",[["legacyPlanComponent",""],t,["app-sub-nav","","navTitle","Update Account","routeMatch","exact",3,"pages"],["nptAlertHeader","Thank You","nptAlert","Your requested updates have been saved.",1,"container","mb-4"],[3,"submit","formGroup"],["app-legacy-plan","",3,"legacyUpdate","modalOpen","legacyControl","isDirty"],[1,"section"],[1,"d-flex","justify-content-between"],[1,"section-title"],[1,"row","g-2"],["id","terms-content",1,"col-12","pt-3"],["controlId","acknowledgeTerms","textLabel","I acknowledge the terms.","aria-labelledby","terms-content",1,"col-12","my-4"],["role","status"],[1,"row","g-2","mb-2"],[1,"col-12"],["type","danger",3,"dismissible"],[1,"alert-message"],[1,"col","button-group"],["type","submit",1,"btn","btn-primary",3,"disabled"],["routerLink","/account","aria-label","Cancel",1,"fw-light","cancel-link","ms-3"],["aria-hidden","true"],["type","primary",3,"dismissible"]];},template:function(e,n){if(e&1){let o=L();C(0,"div",2),s(1,"div",3)(2,"form",4),x("submit",function(){return w(o),E(n.send());}),s(3,"div",5,0),x("legacyUpdate",function(){return w(o),E(n.legacyUpdated());})("modalOpen",function(a){return w(o),E(n.updateModal(a));}),l(),s(5,"div",6)(6,"div",7)(7,"span",8),p(8,"Acknowledgment of Terms"),l()(),s(9,"div",9)(10,"div",10),Le(11,1),l(),C(12,"npt-checkbox",11),l(),g(13,yg,1,1),s(14,"p",12),p(15),l(),g(16,Cg,8,1,"div",13),s(17,"div",9)(18,"div",14),g(19,xg,2,2),l()()()()();}if(e&2){let o,r;f("pages",n.accountPages),c(2),f("formGroup",n.form),c(),f("legacyControl",n.form.controls.legacyAllocation)("isDirty",n.isDirty$),c(10),_((o=n.form.controls.legacyAllocation.errors)?13:-1,o),c(),Ve("sr-only",!n.submitting),c(),T(n.submitting?"Processing... Please wait.":""),c(),_(n.submitting?-1:16),c(3),_((r=n.form.errors)?19:-1,r);}},dependencies:[st,at,lt,Gt,Re,Ie,Fi,si,lo],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-update-legacy-plan] .section{border-top:1px solid #065881;padding-top:12px;margin-bottom:2rem}[app-update-legacy-plan] .section .section-title{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:#065881;margin-bottom:2rem}[app-update-legacy-plan] #total-container .input-group{flex-wrap:nowrap}[app-update-legacy-plan] #total-container .input-group .input-group-text{padding:0;position:absolute;top:0;bottom:0;margin-left:-15px;background-color:transparent;border:none;z-index:3;font-weight:700}[app-update-legacy-plan] #total-container .input-group>.form-control:not(:last-child){border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}
5`],encapsulation:2});}};ir=$([G()],ir);var Eg=["app-sso-verify",""],nr=class ja{constructor(t,e,n,o,r,a){this.actions$=t,this.store=e,this.authenticationStepService=n,this.accountService=o,this.route=r,this.toastService=a,this.ssoGuid=null,this.ssoVerifyDispat
5ched=!1;}ngOnInit(){let t=!1,e=!1,n=!1,o=!1;this.ssoGuid=this.route.snapshot.queryParamMap.get("code"),this.actions$.pipe(ge(Er,Tr,an,Hi,Vi,li,Bi),S(this)).subscribe(r=>{if(r instanceof an){if(this.ssoVerifyDispatched)return;this.ssoVerifyDispatched=!0;let a=this.ssoGuid;this.ssoGuid=null,this.store.dispatch(new xs({ssoGuid:a}));}else if(r instanceof Tr)this.toastService.show({header:"Validation Failed",message:"You do not have access to this site, please contact support if problem persists.",index:Ke.ApiValidationError,className:"bg-primary text-light"}),this.store.dispatch(new on(["/"]));else if(r instanceof Er)this.store.dispatch(new uo()),t=!0;else if(r instanceof Hi)e=!0,this.roles=r.doc?.data?.attributes?.data?.[0];else if(r instanceof Bi)o=!0;else if(r instanceof Vi){n=!0;return;}r instanceof li&&(n=!0,o=!1),t&&e&&n&&o&&this.completeSso(this.roles);}),this.store.dispatch(new fo({cacheStrategy:"network-first"}));}completeSso(t){this.authenticationStepService.finishLogin(t);}static{this.ɵfac=function(e){return new(e||ja)(v(ae),v(B),v(Zn),v(Ce),v(Ii),v(rt));};}static{this.ɵcmp=M({type:ja,selectors:[["","app-sso-verify",""]],standalone:!1,attrs:Eg,decls:3,vars:0,consts:[[1,"container","d-flex","justify-content-center"]],template:function(e,n){e&1&&(s(0,"div",0)(1,"h3"),p(2,"Please wait"),l()());},encapsulation:2});}};nr=$([G()],nr);var Tg=["app-auth0-callback",""],or=class Ga{constructor(t,e,n,o,r){this.actions$=t,this.store=e,this.authenticationStepService=n,this.toastService=o,this.auth=r;}ngOnInit(){if(!this.auth){this.store.dispatch(new on(["/"]));return;}let t=!1,e=!1,n=!1,o=!1;this.actions$.pipe(ge(Hi,Vi,li,Bi),S(this)).subscribe(a=>{a instanceof Hi?(e=!0,this.roles=a.doc?.data?.attributes?.data?.[0]):a instanceof Bi?o=!0:a instanceof Vi?n=!0:a instanceof li&&(n=!0,o=!1),t&&e&&n&&o&&this.completeLogin(this.roles);});let r=this.auth;r.isAuthenticated$.pipe(ve(Boolean),pt(1),Ft(()=>r.getAccessTokenSilently()),S(this)).subscribe({next:a=>{this.store.dispatch(new kn(a)),this.store.dispatch(new uo()),t=!0;},error:()=>{this.toastService.show({header:"Login Failed",message:"You do not have access to this site, please contact support if problem persists.",index:Ke.ApiValidationError,className:"bg-primary text-light"}),this.store.dispatch(new on(["/"]));}});}completeLogin(t){this.authenticationStepService.finishLogin(t);}static{this.ɵfac=function(e){return new(e||Ga)(v(ae),v(B),v(Zn),v(rt),v(to,8));};}static{this.ɵcmp=M({type:Ga,selectors:[["","app-auth0-callback",""]],standalone:!1,attrs:Tg,decls:2,vars:0,consts:()=>{let t;return t="Logging in\u2026",[t,[1,"d-flex","justify-content-center","p-5"]];},template:function(e,n){e&1&&(s(0,"div",1),Le(1,0),l());},encapsulation:2});}};or=$([G()],or);var Pg=["app-pending-documents-table",""],bp=()=>["action","fileName","type","date"];function Dg(i,t){i&1&&(s(0,"th",14),p(1,"Action"),l()),i&2&&ye("width",11.5625,"rem");}function Ng(i,t){i&1&&p(0," Processing... ");}function Ig(i,t){if(i&1){let e=L();s(0,"button",17),x("click",function(){w(e);let o=u().$implicit,r=u();return E(r.sign(o));}),p(1,"Sign Document"),l();}}function kg(i,t){if(i&1&&(s(0,"td",15)(1,"span"),g(2,Ng,1,0)(3,Ig,2,0,"button",16),l()()),i&2){let e=u();c(2),_(e.processing?2:3);}}function Mg(i,t){i&1&&(s(0,"th",18),p(1,"Document Name"),l()),i&2&&ye("width",34.6875,"rem");}function Og(i,t){if(i&1&&(s(0,"td",15)(1,"span",19),p(2,"Document Name"),l(),s(3,"span"),p(4),l()()),i&2){let e=t.$implicit;c(4),T(e.fileName);}}function Lg(i,t){i&1&&(s(0,"th",20),p(1,"Type"),l()),i&2&&ye("width",11.5625,"rem");}function Rg(i,t){i&1&&(s(0,"td",15)(1,"span",19),p(2,"Type"),l(),s(3,"span"),p(4,"Contribution"),l()());}function Fg(i,t){i&1&&(s(0,"th",21),p(1,"Date"),l()),i&2&&ye("width",11.5625,"rem");}function Ug(i,t){if(i&1&&(s(0,"td",15)(1,"span",19),p(2,"Date"),l(),s(3,"span"),p(4),P(5,"stsDate"),l()()),i&2){let e=t.$implicit;
5c(4),T(X(5,1,e.transactionDate,"shortDate"));}}function Vg(i,t){i&1&&C(0,"tr",22);}function Hg(i,t){i&1&&C(0,"tr",23);}var rr=class za{constructor(t,e,n,o,r,a,d){this.store=t,this.actions=e,this.location=n,this.document=o,this.router=r,this.accountService=a,this.exportService=d,this.processing=!1,this.redirectOnSingleDocument=!1,this.redirecting=new An();let m=this.store.select(pe.apiUserPendingDocumentsGet);this.dataSource=new St(m,10,S(this)),this.dataSource.emptyMessage="No documents pending action at this time.",e.pipe(ge(hc),S(this)).subscribe(h=>{let y=h.doc.data.meta?.url;y&&(this.store.dispatch(new _r(Date.now()+1800*1e3)),this.document.location.href=y);}),this.pendingDocuments$=m.pipe(S(this),ve(Se),z(h=>kt(h)),ve(Se));}ngOnInit(){this.dataSource.nextPage$.pipe(Dt(50),Ei(this.store.select(U.hasAccess)),S(this)).subscribe(([t,e])=>{e&&this.store.dispatch(new Oc(Y({},t)));}),this.pendingDocuments$.pipe(S(this),xe()).subscribe(t=>{this.redirectOnSingleDocument&&t&&t?.length===1&&this.store.selectSnapshot(U.isDocuSignRedirectAllowed)&&(this.store.dispatch(new _r(Date.now()+400)),this.redirecting.emit(!0),this.sign(t[0]));});}sign(t){this.processing=!0;let e=t.accountId;if(!e)throw new Error("invalid row");let n=t.transactionId;if(!n)throw new Error("invalid row");this.store.dispatch(new fc({body:{data:{type:"command",attributes:{accountId:e,transactionId:n}}}}));}export(){this.store.dispatch(new Lc({})),this.actions.pipe(ge(Rc),pt(1)).subscribe(t=>{let e=kt(t.doc);e&&this.exportService.export("Pending-Documents.xlsx",[{title:["Pending Documents",{set:this.accountService.currentAccount$.value?.accountName,font:{bold:!0,sz:"18"}}],widths:[60,15,15],data:[["Document Name","Type","Date"],...e.map(n=>[n.fileName??"","Contribution",n.transactionDate?new Date(n.transactionDate):""])]}]);});}static{this.ɵfac=function(e){return new(e||za)(v(B),v(ae),v(ds),v(Vt),v(xt),v(Ce),v(Li));};}static{this.ɵcmp=M({type:za,selectors:[["","app-pending-documents-table",""]],inputs:{redirectOnSingleDocument:"redirectOnSingleDocument"},outputs:{redirecting:"redirecting"},standalone:!1,attrs:Pg,decls:20,vars:6,consts:[["npt-container","",3,"exportExcel","dataSource"],["id","pending-documents","role","grid","npt-table","","matSort","",1,"table","table-sm","table-npt","table-borderless",3,"matSortChange","dataSource"],[1,"sr-only"],["nptColumnDef","action","alignment","left"],["npt-header-cell","",3,"width",4,"nptHeaderCellDef"],["npt-cell","",4,"nptCellDef"],["nptColumnDef","fileName","alignment","left"],["npt-header-cell","","mat-sort-header","fileName",3,"width",4,"nptHeaderCellDef"],["nptColumnDef","type","alignment","left"],["npt-header-cell","","mat-sort-header","",3,"width",4,"nptHeaderCellDef"],["nptColumnDef","date","alignment","right"],["npt-header-cell","","mat-sort-header","transactionDate",3,"width",4,"nptHeaderCellDef"],["npt-header-row","",4,"nptHeaderRowDef"],["npt-row","",4,"nptRowDef","nptRowDefColumns"],["npt-header-cell",""],["npt-cell",""],["type","button",1,"btn","btn-link"],["type","button",1,"btn","btn-link",3,"click"],["npt-header-cell","","mat-sort-header","fileName"],[1,"mobile-header"],["npt-header-cell","","mat-sort-header",""],["npt-header-cell","","mat-sort-header","transactionDate"],["npt-header-row",""],["npt-row",""]],template:function(e,n){e&1&&(s(0,"div",0),x("exportExcel",function(){return n.export();}),s(1,"table",1),x("matSortChange",function(r){return n.dataSource.sort(r);}),s(2,"caption",2),p(3," Documents awaiting electronic signature "),l(),ee(4,3),R(5,Dg,2,2,"th",4)(6,kg,4,1,"td",5),te(),ee(7,6),R(8,Mg,2,2,"th",7)(9,Og,5,1,"td",5),te(),ee(10,8),R(11,Lg,2,2,"th",9)(12,Rg,5,0,"td",5),te(),ee(13,10),R(14,Fg,2,2,"th",11)(15,Ug,6,4,"td",5),te(),s(16,"thead"),R(17,Vg,1,0,"tr",12),l(),s(18,"tbody"),R(19,Hg,1,0,"tr",13),l()()()),e&2&&(f("dataSource",n.dataSource),c(),f("dataSource",n.dataSource),c(16),f("nptHeaderRowDef",Z(4,bp)),c(2),f("nptRowDefColumns",Z(5,bp)));},dependencies:[Kt,Wt,qt,Yt,Qt,Xt,Jt,ti,ii,ni,Zt,ei,wt,ki],encapsulation:2});}};rr=$([G()],rr);var $g=["app-pending-documents",""],Sp=(()=>{class i{constructor(){}ngOnInit(){}redirecting(e){e&&this.nptAlert.show();}static{this.ɵfac=function(n){return new(n||i)();};}static{this.ɵcmp=M({type:i,selectors:[["","app-pending-documents",""]],viewQuery:function(n,o){if(n&1&&it(Ie,5),n&2){let r;nt(r=ot())&&(o.nptAlert=r.first);}},standalone:!1,attrs:$g,decls:4,vars:2,consts:[["nptAlert","Redirecting you to Docusign","nptAlertHeader","Please Wait",1,"container","py-4",3,"nptAlertDismissible"],[1,"h5","component-title"],["app-pending-documents-table","","title","Pending Documents",3,"redirecting","redirectOnSingleDocument"]],template:function(n,o){n&1&&(s(0,"div",0)(1,"div",1),p(2,"Pending Documents"),l(),s(3,"div",2),x("redirecting",function(a){return o.redirecting(
5a);}),l()()),n&2&&(f("nptAlertDismissible",!1),c(3),f("redirectOnSingleDocument",!0));},dependencies:[Ie,rr],encapsulation:2});}}return i;})();var jg=["app-permission-denied",""],xp=(()=>{class i{static{this.ɵfac=function(n){return new(n||i)();};}static{this.ɵcmp=M({type:i,selectors:[["","app-permission-denied",""]],standalone:!1,attrs:jg,decls:14,vars:0,consts:[[1,"container","p-5"],["routerLink","/contact"],["routerLink","/","aria-label","Go back to home page"]],template:function(n,o){n&1&&(s(0,"div",0)(1,"h1"),p(2,"Access Denied"),l(),s(3,"p"),p(4," Your login profile does not permit you access to this feature or this resource does not exist. If you feel you have reached this message in error, please visit the "),s(5,"a",1),p(6,"Contact page"),l(),p(7," to reach out. "),l(),s(8,"p"),p(9," Click "),s(10,"u")(11,"a",2),p(12,"here"),l()(),p(13," to go back to the home page. "),l()());},dependencies:[Re],encapsulation:2});}}return i;})();var Gg=["app-year-end-deadlines",""],Ka=(i,t)=>({fas:!0,"fa-plus":i,"fa-minus":t});function zg(i,t){if(i&1&&C(0,"div",5),i&2){let e=u();f("contentId",e.StsContent.GIVING_SEASON_CONTRIB_DEADLINES);}}function Kg(i,t){if(i&1&&C(0,"div",5),i&2){let e=u();f("contentId",e.StsContent.GIVING_SEASON_GRANT_GUIDELINES);}}function Wg(i,t){if(i&1&&C(0,"div",5),i&2){let e=u();f("contentId",e.StsContent.GIVING_SEASON_EXTENDED_HOLIDAY_HRS);}}var Ap=(()=>{class i{constructor(){this.StsContent=Un,this.client="",this.client=H.name;}static{this.ɵfac=function(n){return new(n||i)();};}static{this.ɵcmp=M({type:i,selectors:[["","app-year-end-deadlines",""]],standalone:!1,attrs:Gg,decls:44,vars:20,consts:[["acc","ngbAccordion"],["contrib","ngbAccordionItem"],["grantGuidelines","ngbAccordionItem"],["holdayHrs","ngbAccordionItem"],[1,"container","mt-4","pt-4"],["contentInjection","",3,"contentId"],["ngbAccordion","",1,"plusMinus","bordered"],["ngbAccordionItem","contrib",3,"collapsed"],["ngbAccordionHeader",""],["ngbAccordionToggle","","type","button"],[1,"section-title"],["ngbAccordionCollapse",""],["ngbAccordionBody",""],["ngbAccordionItem","grantGuidelines",3,"collapsed"],["ngbAccordionItem","holdayHrs",3,"collapsed"],[1,"giving-season-promotions"],[1,"container"],[1,"row"],[1,"h2","col","text-center"]],template:function(n,o){if(n&1&&(s(0,"div",4),C(1,"div",5),s(2,"div",6,0)(4,"div",7,1)(6,"div",8)(7,"button",9)(8,"span",10),p(9,"Contribution Deadlines"),l(),C(10,"i"),l()(),s(11,"div",11)(12,"div",12),R(13,zg,1,1,"ng-template"),l()()()(),s(14,"div",6,0)(16,"div",13,2)(18,"div",8)(19,"button",9)(20,"span",10),p(21,"Grant Guidelines"),l(),C(22,"i"),l()(),s(23,"div",11)(24,"div",12),R(25,Kg,1,1,"ng-template"),l()()()(),s(26,"div",6,0)(28,"div",14,3)(30,"div",8)(31,"button",9)(32,"span",10),p(33,"Need Help?"),l(),C(34,"i"),l()(),s(35,"div",11)(36,"div",12),R(37,Wg,1,1,"ng-template"),l()()()()(),s(38,"div",15)(39,"div",16)(40,"div",17)(41,"div",18),p(42,"Giving Resources"),l(),C(43,"div",5),l()()()),n&2){let r=j(5),a=j(17),d=j(29);c(),f("contentId",o.StsContent.GIVING_SEASON_HEADER_INFO),c(3),f("collapsed",!0),c(6),Xe(Nt(11,Ka,r.collapsed,!r.collapsed)),c(6),f("collapsed",!0),c(6),Xe(Nt(14,Ka,a.collapsed,!a.collapsed)),c(6),f("collapsed",!0),c(6),Xe(Nt(17,Ka,d.collapsed,!d.collapsed)),c(9),f("contentId",o.StsContent.GIVING_SEASON_PROMOTIONS);}},dependencies:[Wn,Kn,zn,Gn,$n,jn,Ui],styles:[".giving-season-promotions[_ngcontent-%COMP%]{padding-top:60px;padding-bottom:60px;background:#e2f7fa;background:linear-gradient(180deg,#e2faf7 70%,#fff 70%)}"]});}}return i;})();var qg=[{path:"403",component:xp,data:{pageTitle:"Permission Denied"}},{path:"fund-activity",component:Eo,canActivate:[At],data:{pageTitle:"Fund Activity",scope:"api_access",action:se.FUND_ACTIVITY_VIEW}},{path:"grant-activity/:id",component:Yo,canActivate:[At],data:{pageTitle:"Grant Charity Activity",scope:"api_access",action:se.FUND_AC_DETAIL_VIEW}},{path:"account",component:Jo,canActivate:[At],data:{pageTitle:"Account Details",scope:"api_access",action:se.ACCOUNT_DETAIL_VIEW}},{path:"update-account",component:er,canActivate:[At],canDeactivate:[Ge],data:{pageTitle:"Update Account: Account Name",scope:"api_access",action:se.ACCOUNT_UPDATE_VIEW}},{path:"update-account/primary-advisor",component:tr,canActivate:[At],canDeactivate:[Ge],data:{pageTitle:"Update Account: Primary Advisor",scope:"api_access",action:se.ACCOUNT_DPA_VIEW}},{path:"update-account/legacy-plan",component:ir,canActivate:[At],canDeactivate:[Ge],data:{pageTitle:"Update Account: Legacy Plan",scope:"api_access",action:se.ACCOUNT_LEGACY_PLAN_VIEW}},{path:"sign-pending-document",component:Sp,canActivate:[At],data:{pageTitle:"Pending Documents",scope:"api_access",canRedirect:!0}},{path:"password-setup",component:sd,canActivate:[At],data:{pageTitle:"Reset or Create Password",except:"api_access"}},{path:"forgot-user",component:ld,canActivate:[At],data:{pageTitle:"Forgot User ID",except:"api_access"}},{path:"year-end-deadlines",component:Ap,data:{pageTitle:"Giving Season"}},{path:"sso",component:nr,data:{pageTitle:"Logging in..."}},{path:"callback",component:or,data:{pageTitle:"Logging in..."}}],Yg=[...Object.entries(wr).map(([i,t])=>i!=="**"?t:null).filter(Se).map(mo),...qg.map(mo),...Object.entries(wr).map(([i,t])=>i==="**"?t:null).filter(Se).map(mo)],wp=(()=>
5{class i{static{this.ɵfac=function(n){return new(n||i)();};}static{this.ɵmod=ue({type:i});}static{this.ɵinj=me({imports:[nn.forRoot(Yg),nn]});}}return i;})();var Ep=(()=>{class i{static forRoot(e){return{ngModule:i,providers:[{provide:Sr,useValue:e}]};}static{this.ɵfac=function(n){return new(n||i)();};}static{this.ɵmod=ue({type:i});}static{this.ɵinj=me({providers:[Os,Ls,Rs,Fs,Sr,Dn(Nn())]});}}return i;})();var Tp=(()=>{class i{static ɵfac=function(n){return new(n||i)();};static ɵmod=ue({type:i});static ɵinj=me({});}return i;})();var Pp=(()=>{class i{static{this.ɵfac=function(n){return new(n||i)();};}static{this.ɵmod=ue({type:i});}static{this.ɵinj=me({imports:[Ht,nn]});}}return i;})();var Dp=(()=>{class i{static{this.ɵfac=function(n){return new(n||i)();};}static{this.ɵmod=ue({type:i});}static{this.ɵinj=me({imports:[Ht,Yn,oo,no]});}}return i;})();var Np=(()=>{class i{static{this.ɵfac=function(n){return new(n||i)();};}static{this.ɵmod=ue({type:i});}static{this.ɵinj=me({imports:[Ht,ao,ro,Qn]});}}return i;})();var Ip=[Ht,Zs,ol,Ep.forRoot({rootUrl:""}),Pn,ap,wp,...(le.auth0.domain?[Sl.forRoot({domain:le.auth0.domain,clientId:le.auth0.clientId,useRefreshTokens:!0,cacheLocation:"localstorage",authorizationParams:Y({redirect_uri:window.location.origin+"/callback",audience:le.auth0.audience},le.auth0.organization?{organization:le.auth0.organization}:{})})]:[]),Ns.forRoot([U,pe,rn,hl,Hc,Hn,_l,jl],{developmentMode:!le.production}),gl.forRoot(),fp.forRoot({keys:["auth.token","auth.deviceRegistrations","auth.requiresPrimaryEmail","persistingApp"]}),dp.forRoot({disabled:le.production,maxAge:10}),_p.forRoot({disabled:!0}),sl,Gs,Ll,Tp,oo,Rl,Ul,Fl,Yn,qn,zs,Il,Dl,ao,Al,wl,no,Qn,Jl,Pp,$l,nc,Gl,Yl,ql,Ql,Xl,ro,Dp,Pl,El,Tl,Ol,Zl,Nl,kl,ac,$s,Np,oc,Ml,co];var ar=(()=>{class i{constructor(e,n){this.store=e,this.interceptedCallService=n,this.ongoingCount=0,this.onNoCurrentRequests=()=>{let{logout:o,requireAntiforgeryChange:r}=this.store.selectSnapshot(a=>a.auth);r&&this.store.dispatch(new As()),o&&this.store.dispatch(new bs());};}intercept(e,n){let o={},r=this.store.selectSnapshot(Hn.getCurrentAccountId);if(o["X-AccountId"]=`${r??0}`,H.name==="npttransatlantic"){let d=this.store.selectSnapshot(U.alternateCurrency);d&&(o["X-Currency"]=`${d}`);}let a=this.store.selectSnapshot(d=>d.auth.token);return a&&(o.Authorization="Bearer "+a),e.url===this.interceptedCallService.url?(this.ongoingCount===0&&this.onNoCurrentRequests(),Ja(new hr())):(e=e.clone({setHeaders:o,withCredentials:!0}),this.ongoingCount++,n.handle(e).pipe(J({next:d=>{if(d instanceof hr){let m=d.headers.get("Authorization");m&&this.store.dispatch(new kn(m));}},error:d=>{if(d.status===401&&this.shouldLogoutOn401(d)&&this.store.dispatch(new je()),d.status>=500){let m=d.error?.traceId||d.error?.extensions?.traceId,h=d.error?.detail;typeof m=="string"&&m&&this.store.dispatch(new ho(m,h));}if(d.status===400&&br(d.error))if(ks(d.error,"Access denied.")){let m=d.error?.traceId;!m&&br(d.error?.extensions)&&(m=d.error?.extensions?.traceId),typeof m=="string"?this.store.dispatch(new ho(m,"Access denied.")):this.store.dispatch(new ho("","Access denied."));}else this.store.dispatch(new Uc(e.url,d.error));console.error(`Error performing request, status code = ${d.status}`);}}),ts(()=>{this.ongoingCount--,this.ongoingCount===0&&this.onNoCurrentRequests();})));}shouldLogoutOn401(e){let n=e.url??"";return n?!["/api/DafAccounts"].some(r=>n.includes(r)):!0;}static{this.ɵfac=function(n){return new(n||i)(re(B),re(Bc));};}static{this.ɵprov=oe({token:i,factory:i.ɵfac,providedIn:"root"});}}return i;})();var kp=(()=>{class i{constructor(e){this.overlay=e,this.disposed$=new Sn();}attach(e,n){let o=null;n.pipe(ie(),wi(this.disposed$),J(r=>{if(!r){o&&(o.detach(),o.dispose(),o=null);return;}if(!o){let a=this.overlay.position().flexibleConnectedTo(e).withPositions([{originX:"start",offsetX:0,originY:"top",offsetY:0,overlayX:"start",overlayY:"top"}]).withFlexibleDimensions(!0),d=new rl({positionStrategy:a});o=this.overlay.create(d);let m=new js(vl);setTimeout(()=>{o&&o.attach(m);},1);}})).subscribe(),this.disposed$.pipe(wi(this.disposed$),J(r=>{o&&(o.detach(),o.dispose());}));}ngOnDestroy(){this.disposed$.next(!0),this.disposed$.unsubscribe();}static{this.ɵfac=function(n){return new(n||i)(re(al));};}static{this.ɵprov=oe({token:i,factory:i.ɵfac,providedIn:"root"});}}return i;})();var Mp=(()=>{class i{constructor(e,n,o){this.title=e,this.router=n,this.ngZone=o,this.body=document.getElementById("body");}init(){this.router.events.subscribe(e=>{if(e instanceof Rn){let n=e.snapshot.data?.pageTitle;n&&(this.title.setTitle(`${n}`),this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{window.scroll(0,0);},0);}));}});}static{this.ɵfac=function(n){return new(n||i)(re(gs),re(xt),re(vt));};}static{this.ɵprov=oe({token:i,factory:i.ɵfac,providedIn:"root"});}}return i;})();var Wa=1e3*60*20,Op=1e3*60*3,lr=class sr{constructor(t,e,n,o,r,a){this.document=t,this.store=e,this.actions=n,this.toastService=o,this.injector=r,this.ngZone=a,this.hasAccess=!1,this.lastInteraction=Date.now(),this.skipInterval=!1,this.refreshLogin=()=>{this.store.dispatch(new fo({cacheStrategy:"network-first",cacheTimeout:18e5})),this.skipInterval=!0,this.toastService.hasActive(-1)&&this.toastService.remove(-1);},this.token$=this.store.select(U.token),this.auth$=this.store.select(U.hasAccess),this.window=this.document.defaultView;}initialize(){this.ngZone.runOutsideAngular(()=>{this.document.addEventListener("mousemove",()=>{this.lastInteraction=Date.now(),this.hasAccess&&this.toastService.hasActive(-1,-2)&&this.ngZone.run(()=>{this.toastService.removeAll(-1,-2);});}),this.document.addEventListener("visibilitychange",()=>{!this.window?.localStorage.getItem("auth.token")&&this.hasAccess&&this.ngZone.run(()=>{this.store.dispatch(new je());});});}),this.auth$.pipe(ie(),S(this)).subscribe(t=>{this.hasAccess=t,t&&this.toastService.removeAll(-1,-2);}),this.actions.pipe(ge(an)).subscribe(()=>{this.skipInterval=!1;}),this.idlePoll().subscribe();}idlePoll(){return es(1e3).pipe(J(()=>{!this.window?.localStorage.getItem("auth.token")&&this.hasAccess&&this.ngZone.run(()=>{this.store.dispatch(new je());});}),Ft(()=>this.token$),z(U.parseToken),z(t=>(t?.exp??0)*1e3),is(),Ei(this.store.select(U.logout)),J(([[t,e],n])=>{if(this.skipInterval||n||e===0&&t===0)return;let o=!1,r=Date.now();if(r-this.lastInteraction>Wa)console.log("Logging out due to 15 minutes of user inactivity."),o=!0;else if(r>e-Op){this.hasAccess=void 0;let a=e-r;this.toastService.show({message:"**You will be logged out due to inactivity in**",header:"Inactivity Warning",autoHide:!1,idleWarning:a,index:Ke.InactivityWarning,buttons:[{function:()=>{this.refreshLogin();},text:"I'm still here"},{function:()=>{this.logout();},text:"Log me out"}],focus:!0,disableClose:!0});}else if(r-this.lastInteraction>Wa-Op){let a=Wa-(r-this.lastInteraction);this.toastService.show({message:"You will be logged out due to inactivity in",header:"Inactivity Warning",autoHide:!1,idleWarning:a,index:Ke.InactivityWarning});}r>e&&(console.log("Logging out due to going 30 minutes without making a request to the server."),o=!0),o&&this.logout();}));}logout(){this.toastService.clear(),this.toastService.show({message:"You have been logged out due to inactivity",header:"Logged out",autoHide:!1,index:Ke.InactivityLogout,focus:!0}),this.injector.get(Oi).dismissAll(),this.store.dispatch(new je());}
5static{this.ɵfac=function(e){return new(e||sr)(re(Vt),re(B),re(ae),re(rt),re(Ut),re(vt));};}static{this.ɵprov=oe({token:sr,factory:sr.ɵfac,providedIn:"root"});}};lr=$([G()],lr);function Qg(i,t){return i==="Service Unavailable: Docusign"?{header:"Service Unavailable: Docusign",message:"We're sorry, there is currently an issue with Docusign and the service is temporarily unavailable. Please refresh and try again."}:i==="Service Unavailable: Recaptcha"?{header:"Service Unavailable: Recaptcha",message:"We're sorry, there is currently an issue with the recaptcha and the service is temporarily unavailable.\nPlease refresh and try again."}:i==="Access denied."?{header:"Access denied.",message:"You do not have access to submit this form. Please contact your administrator.\nID: "+t.traceId+""}:{header:"An error occurred.",message:"We apologize for the inconvenience. Our staff has been notified of the error.\nPlease refresh and try again.\nID: "+t.traceId+""};}var Xg={"/api/User/ValidateSsoId":!1,"/api/Authentication/SsoVerify":!1,"/api/Authentication/Login":{"Data.Attributes.Username":{"Invalid Username or Password":""}}},dr=class cr{constructor(t,e){this.store=t,this.toastService=e;}lookupValidationErrorText(t,e,n){let o=Xg[t];if(o===!1)return"";let r=o?.[e];return r===!1?"":r?.[n]??`${e} - ${n}`;}initialize(){this.store.select(pe.errorTrace).pipe(ve(Se),xe(),S(this)).subscribe(t=>{let e=Qg(t.detail,{traceId:t.traceId});this.toastService.show(Te(Y({},e),{className:"bg-primary text-light",index:Ke.ApiError}));}),this.store.select(pe.serverValidationError).pipe(ve(Se),xe(),S(this)).subscribe(t=>{if(t.errors){let e=Object.entries(t.errors).flatMap(([n,o])=>o.map(r=>this.lookupValidationErrorText(t.apiPath,n,r))).filter(n=>n);e.length&&this.toastService.show({header:"An error occurred.",message:"Sorry, something went wrong:",list:e,lowerMessage:"Please reach out to support via the [Contact Page](/contact) for assistance:\nTraceid: "+t.traceId+"",className:"bg-primary text-light",index:Ke.ApiValidationError});}});}static{this.ɵfac=function(e){return new(e||cr)(re(B),re(rt));};}static{this.ɵprov=oe({token:cr,factory:cr.ɵfac,providedIn:"root"});}};dr=$([G()],dr);var Lp=[...(le.auth0.domain?[]:[{provide:to,useValue:null}]),{provide:Di,useClass:ar,multi:!0},kp,xr,{provide:Yi,useClass:Ar},Ge,Ar,Qi(()=>(t=>()=>t.init())(he(Mp))()),Qi(()=>(t=>()=>t.initialize())(he(lr))()),Qi(()=>(t=>()=>t.initialize())(he(dr))()),Qi(()=>(t=>()=>t.init())(he(xr))()),...sc];var Rp=(()=>{class i{constructor(e){this.currencySvc=e;}intercept(e,n){let o=e.headers.get("X-Currency");o&&["USD","GBP"].includes(o)&&this.currencySvc.set(o);let a=e.headers.delete("X-Currency"),d=e.clone({headers:a});return n.handle(d);}static{this.ɵfac=function(n){return new(n||i)(re(Bn));};}static{this.ɵprov=oe({token:i,factory:i.ɵfac});}}return i;})();var Fp=(()=>{class i{intercept(e,n){if(!e.url.startsWith("/api"))return n.handle(e);let{overrides:o,forceAll:r}=eo(),a={};r!==null&&(a["X-GVP-Force-All"]=r?"true":"false");let d=Object.keys(o);return d.length>0&&(a["X-GVP-Flags"]=d.map(m=>`${m}=${o[m]}`).join(",")),Object.keys(a).length===0?n.handle(e):n.handle(e.clone({setHeaders:a}));}static{this.ɵfac=function(n){return new(n||i)();};}static{this.ɵprov=oe({token:i,factory:i.ɵfac});}}return i;})();var Up=(()=>{class i{static{this.ɵfac=function(n){return new(n||i)();};}static{this.ɵmod=ue({type:i,bootstrap:[wo]});}static{this.ɵinj=me({providers:[...Lp,{provide:Di,useClass:Rp,multi:!0},{provide:Di,useClass:Fp,multi:!0},{provide:Di,useClass:ar,multi:!0},Dn(Nn())],imports:[Ip]});}}return i;})();le.production&&void 0;us().bootstrapModule(Up).catch(i=>console.error(i));/**i18n:2cf59dfd4d34f7a21465834448c0cf1615d7d283343ca78988cf02f1dfaa03bf*/

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.