1import{b as J}from"./chunk-BIUA5J76.js";import{G as d}from"./chunk-CB3JCW4H.js";import{a as X}from"./chunk-UH4MXPIF.js";import{a as k}from"./chunk-4K55WUTD.js";import{l as F,m as Y,n as w,v as G}from"./chunk-USU6ZRYS.js";import{a as Z,b as W}from"./chunk-QM6VFJ6C.js";import{k as z}from"./chunk-662VOVT2.js";import{P as b,_ as R,aa as E}from"./chunk-RGTBMA6J.js";import{A as g,C as S,Ea as f,Fa as q,Ha as N,Ja as a,M as H,R as y,Sb as V,T as D,X as j,aa as O,fa as A,fc as B,h as T,l as h,m as U,n as C,p as ie,s as v,t as M,ua as L,xa as I,za as _}from"./chunk-JPSGLHZF.js";var ne=[],$=(()=>{let e=class e{constructor(r){this.router=r,this.trees=ne}add(r){this.trees.push(r)}shouldPrefetch(r){let n=this.router.parseUrl(r);return this.trees.some(oe.bind(null,n))}};e.\u0275fac=function(n){return new(n||e)(a(R))},e.\u0275prov=f({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function se(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>e[i]===t[i])}function oe(t,e){return se(e.queryParams,t.queryParams)&&P(e.root,t.root,t.root.segments)}function P(t,e,i){if(t.segments.length>i.length){let r=t.segments.slice(0,i.length);return!(!x(r,i)||e.hasChildren())}else if(t.segments.length===i.length){if(!x(t.segments,i))return!1;if(!e.hasChildren())return!0;for(let r in e.children){if(!t.children[r])break;if(P(t.children[r],e.children[r],e.children[r].segments))return!0}return!1}else{let r=i.slice(0,t.segments.length),n=i.slice(t.segments.length);return!x(t.segments,r)||!t.children[b]?!1:P(t.children[b],e,n)}}function x(t,e){return t.length!==e.length?!1:t.every((i,r)=>i.path===e[r].path||i.path.startsWith(":")||e[r].path.startsWith(":"))}var te=typeof window<"u"?window.requestIdleCallback||function(t){let e=Date.now();return setTimeout(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1)}:()=>{},K=()=>typeof window<"u"?!!window.IntersectionObserver:!1,Q=new N("LinkHandler"),ae=(()=>{let e=class e{constructor(r,n,s){this.loader=r,this.registry=n,this.ngZone=s,this.elementLink=new Map,this.observer=K()?new IntersectionObserver(o=>{o.forEach(u=>{if(this.observer&&u.isIntersecting){let m=u.target,c=this.elementLink.get(m);if(!c||!c.urlTree)return;this.registry.add(c.urlTree),this.observer.unobserve(m),te(()=>{this.loader.preload().subscribe(()=>{})})}})}):null}register(r){this.elementLink.set(r.element,r),this.ngZone.runOutsideAngular(()=>{this.observer&&this.observer.observe(r.element)})}unregister(r){this.observer&&this.elementLink.has(r.element)&&(this.observer.unobserve(r.element),this.elementLink.delete(r.element))}supported(){return K()}};e.\u0275fac=function(n){return new(n||e)(a(E),a($),a(V))},e.\u0275prov=f({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ue=(()=>{let e=class e{constructor(r,n){this.loader=r,this.registry=n}register(r){this.registry.add(r.urlTree),te(()=>this.loader.preload().subscribe(()=>{}))}unregister(r){}supported(){return!0}};e.\u0275fac=function(n){return new(n||e)(a(E),a($))},e.\u0275prov=f({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var ce=(t,e)=>{t=t.slice();let i=new Map,r=new Set;for(;t.length;){let o=t.shift();if(!o)continue;if(r.add(o),o===e)break;let u=o.children||[],m=o._loadedRoutes||[];for(let c of m)c&&c.children&&(u=u.concat(c.children));u.forEach(c=>{r.has(c)||(i.set(c,o),t.push(c))})}let n="",s=e;for(;s;)de(s)?n=`/${s.path}${n}`:n=`/(${s.outlet}:${s.path}${n})`,s=i.get(s);return n.replace(/[\/]+/,"/")};function de(t){return t.outlet===b||!t.outlet}var le=(()=>{let e=class e{constructor(r,n){this.registry=r,this.router=n,this.loading=new Set}preload(r,n){if(this.loading.has(r))return h;let s=typeof navigator<"u"?navigator.connection:void 0;if(s&&((s.effectiveType||"").includes("2g")||s.saveData))return h;if(r.data&&r.data.preload===!1)return h;let o=ce(this.router.config,r);return this.registry.shouldPrefetch(o)?(this.loading.add(r),n()):h}};e.\u0275fac=function(n){return new(n||e)(a($),a(R))},e.\u0275prov=f({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),pe=[{provide:Q,useClass:ae,multi:!0},{provide:Q,useClass:ue,multi:!0},$,le],je=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=B({type:e}),e.\u0275inj=q({providers:pe});let t=e;return t})();var qe=(()=>{let e=class e{constructor(r,n,s){this._actions$=r,this.managedFundsService=n,this.store=s,this.initialiseFunds$=F(()=>this._actions$.pipe(w(d.getManagedFunds),S(o=>this.store.select(G.selectRegionalFeatureActive(X.Accumulate)).pipe(D(u=>u?this.managedFundsService.getManagedFunds().pipe(g(m=>d.getManagedFundsSucess({payload:{managedFunds:m}})),y(m=>v(d.getManagedFundsFailure()))):h))))),this.userFunds$=F(()=>this._actions$.pipe(w(d.getUserManagedFunds),S(o=>this.managedFundsService.getUserManagedFundsConfig().pipe(g(u=>d.getUserManagedFundsSuccess({payload:{userManagedFund:u}})),y(u=>v(d.getUserManagedFundsFailure())))))),this.refreshUserFundValue$=F(()=>this._actions$.pipe(w(d.refreshUserManagedFundValue),S(o=>this.managedFundsService.getFundValueById(o.payload.userManagedFundId).pipe(g(u=>d.refreshUserManagedFundValueSuccess({payload:{userManagedFundId:o.payload.userManagedFundId,userManagedFundValue:u}})),y(u=>v(d.getUserManagedFundsFailure()))))))}};e.\u0275fac=function(n){return new(n||e)(a(Y),a(J),a(z))},e.\u0275prov=f({token:e,factory:e.\u0275fac});let t=e;return t})();function ze(t){return D(e=>{let i=t(e),r=Array.isArray(i)?i:[i];return v(e).pipe(_(...r))})}ie();var l=(function(t){return t.Pending="PENDING",t.InProgress="IN_PROGRESS",t.Failed="FAILED",t.Expired="EXPIRED",t})(l||{});var p,re=(p=class{constructor(e){this._httpService=e,this._microDepositStatus$$=new T(void 0),this.microDepositStatus$=this._microDepositStatus$$.asObservable().pipe(H(i=>i!==void 0),O()),this.microDepositVerificationModalShouldShow$=this.microDepositStatus$.pipe(g(i=>{if(i===null)return!1;switch(i.status){case l.Pending:case l.InProgress:return!0;case l.Failed:case l.Expired:default:return!1}}
1)),this.microDepositBlockerModalShouldShow$=this.microDepositStatus$.pipe(g(i=>{if(i===null)return!1;switch(i.status){case l.Failed:case l.Expired:return!0;case l.InProgress:case l.Pending:default:return!1}})),this._microDepositStatusIsLoading=!1}_getMicroDepositStatus(){return this._httpService.get("/api/bank/micro-deposit")}_getAndUpdateMicroDepositStatus(){this._microDepositStatusIsLoading=!0,this._getMicroDepositStatus().pipe(A(()=>this._microDepositStatusIsLoading=!1),W(this)).subscribe(e=>this._microDepositStatus$$.next(e))}getMicroDepositStatus(e){return(this._microDepositStatus$$.value===void 0&&!this._microDepositStatusIsLoading||e)&&this._getAndUpdateMicroDepositStatus(),this.microDepositStatus$}getMicroDepositVerificationModalShouldShow(e){return(this._microDepositStatus$$.value===void 0&&!this._microDepositStatusIsLoading||e)&&this._getAndUpdateMicroDepositStatus(),this.microDepositVerificationModalShouldShow$}getMicroDepositBlockerModalShouldShow(e){return(this._microDepositStatus$$.value===void 0&&!this._microDepositStatusIsLoading||e)&&this._getAndUpdateMicroDepositStatus(),this.microDepositBlockerModalShouldShow$}clearMicroDepositStatus(){this._microDepositStatus$$.next(void 0)}_initiateMicroDeposit(e){return this._httpService.post(`/api/bank/account/${e}/micro-deposit`,{})}initiateMicroDeposit(){return this.getMicroDepositStatus().pipe(j(1),L(e=>e?!e.bankAccountId||!e.bankAccountId.length?M(()=>"No bank account ID was found"):this._initiateMicroDeposit(e.bankAccountId):M(()=>"Micro deposit status is null - no micro deposit is required")),I(e=>this._microDepositStatus$$.next(e)))}_verifyMicroDeposit(e,i){return this._httpService.post(`/api/bank/account/${e}/micro-deposit/verify`,{amount:i})}verifyMicroDeposit(e){return e==null?M(()=>"No Amount value provided"):this.getMicroDepositStatus().pipe(j(1),L(i=>i?!i.bankAccountId||!i.bankAccountId.length?M(()=>"No bank account ID was found"):this._verifyMicroDeposit(i.bankAccountId,e.toString()):M(()=>"Micro deposit status is null - no micro deposit is required")),I(i=>this._microDepositStatus$$.next(i)))}},p.\u0275fac=function(i){return new(i||p)(a(k))},p.\u0275prov=f({token:p,factory:p.\u0275fac,providedIn:"root"}),p);re=U([Z(),C("design:paramtypes",[k])],re);export{le as a,je as b,ze as c,qe as d,l as e,re as f};
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.