PageSourceSearch

https://app.storfund.com/670.ef3e1dfb52538822.js

js storfund.com collected 2026-10-03 21:20:53 UTC 27,886 bytes, 4 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c0ad03ec-6506-5f16-8861-3cd55d522e87")}catch(e){}}();
3(self.webpackChunkapp=self.webpackChunkapp||[]).push([[670],{1670:(lt,M,r)=>{r.r(M),r.d(M,{BankConnectionsModule:()=>rt});var nn=r(3887),m=r(1606),s=r(1439),E=r(7369),tn=r(4205),en=r(2575),on=r(1817),sn=r(8764),h=r(1318),G=r(9400);const S=(0,s.VP)("[Bank connections] Reset bank connect"),y=(0,s.VP)("[Bank connections] Try get country banks",(0,s.xk)()),$=(0,s.VP)("[Bank connections] Get country banks",(0,s.xk)()),O=(0,s.VP)("[Bank connections] Get country banks failed",(0,s.xk)()),P=(0,s.VP)("[Bank connections] Reset country banks"),v=(0,s.VP)("[Bank connections] Try connect bank",(0,s.xk)()),V=(0,s.VP)("[Bank connections] Connect bank",(0,s.xk)()),T=(0,s.VP)("[Bank connections] Connect bank failed",(0,s.xk)()),C=(0,s.VP)("[Bank connections] Try connect plaid bank",(0,s.xk)()),N=(0,s.VP)("[Bank connections] Connect plaid bank",(0,s.xk)()),an=(0,s.VP)("[Bank connections] Connect plaid bank failed",(0,s.xk)()),B=(0,s.VP)("[Bank connections] Poll bank connection",(0,s.xk)()),L=(0,s.VP)("[Bank connections] Bank connection finished",(0,s.xk)()),cn=(0,s.VP)("[Bank connections] Bank connection finished failed",(0,s.xk)()),A="connect",Y={banks:{loading:!1,error:null,banks:[]},connect:{loading:!1,error:null,connectUrl:null,sessionId:null,finished:!1,plaidToken:null}},rn=(0,s.vy)(Y,(0,s.on)(S,t=>({...t,...Y})),(0,s.on)(y,t=>({...t,banks:{...t.banks,loading:!0,error:null,banks:[]}})),(0,s.on)($,(t,{banks:a})=>({...t,banks:{...t.banks,loading:!1,banks:[...a]}})),(0,s.on)(O,(t,{error:a})=>({...t,banks:{...t.banks,loading:!1,error:a,banks:[]}})),(0,s.on)(P,t=>({...t,banks:{...t.banks,loading:!1,error:null,banks:[]}})),(0,s.on)(v,C,t=>({...t,connect:{...t.connect,loading:!0,error:null}})),(0,s.on)(V,(t,{connectUrl:a,sessionId:e})=>({...t,connect:{...t.connect,loading:!1,connectUrl:a,sessionId:e}})),(0,s.on)(N,(t,{token:a})=>({...t,connect:{...t.connect,loading:!1,plaidToken:a,finished:!0}})),(0,s.on)(T,an,(t,{error:a})=>({...t,connect:{...t.connect,loading:!1,error:a}})),(0,s.on)(L,(t,{finished:a})=>({...t,connect:{...t.connect,finished:a}}))),R=(0,s.VP)("[Bank connections] Try get bank accounts",(0,s.xk)()),w=(0,s.VP)("[Bank connections] Get bank accounts",(0,s.xk)()),D=(0,s.VP)("[Bank connections] Get bank accounts failed",(0,s.xk)()),X="list",dn=(0,s.vy)({stateObj:{loading:!1,error:null,prev:null,next:null,accounts:[],nameFilter:null}},(0,s.on)(R,(t,{nameFilter:a})=>({...t,stateObj:{...t.stateObj,loading:!0,error:null,nameFilter:a}})),(0,s.on)(w,(t,{accounts:a,prev:e,next:i})=>({...t,stateObj:{...t.stateObj,loading:!1,accounts:[...a],prev:e,next:i}})),(0,s.on)(D,(t,{error:a})=>({...t,stateObj:{...t.stateObj,loading:!1,error:a,accounts:[]}}))),U="bank_connections",pn={[X]:dn,[A]:rn},H=(0,s.UX)(U),mn=(0,s.Mz)(H,t=>t[X]),J=(0,s.Mz)(H,t=>t[A]),un=(0,s.Mz)(mn,t=>t.stateObj);var hn=r(1229),n=r(8559),K=r(9264),fn=r(8149),u=r(316),p=r(4456),gn=r(473);const kn=(0,s.Mz)(J,t=>t.banks),W=(0,s.Mz)(J,t=>t.connect);var F=r(6485),_n=r(9981),f=r(198),z=r(913),j=r(852);const Q=t=>({"is-invalid":t});function bn(t,a){if(1&t&&(n.j41(0,"div",21),n.nrm(1,"span",22),n.j41(2,"span"),n.EFF(3),n.k0s()()),2&t){const e=n.XpG().item;n.R7$(),n.Y8G("ngClass",e.icon),n.R7$(2),n.JRh(e.name)}}function vn(t,a){1&t&&n.DNE(0,bn,4,2,"div",20),2&t&&n.Y8G("ngIf",a.item)}function Cn(t,a){if(1&t&&(n.j41(0,"div",21),n.nrm(1,"span",22),n.j41(2,"span"),n.EFF(3),n.k0s()()),2&t){const e=a.item;n.R7$(),n.Y8G("ngClass",e.icon),n.R7$(2),n.JRh(e.name)}}function Bn(t,a){1&t&&(n.j41(0,"div",27),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&t&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"home_open_banking.no_banks_foun
3d")," "))}function In(t,a){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=a.item;n.R7$(),n.JRh(e.name)}}function yn(t,a){1&t&&n.nrm(0,"i",28)}function Tn(t,a){if(1&t&&(n.j41(0,"div",11)(1,"label",23),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"ng-select",24),n.nI1(5,"translate"),n.DNE(6,Bn,3,3,"ng-template",25)(7,In,2,1,"ng-template",15)(8,yn,1,0,"ng-template",26),n.k0s(),n.j41(9,"div",16),n.EFF(10),n.nI1(11,"translate"),n.k0s()()),2&t){const e=n.XpG(3);n.R7$(2),n.JRh(n.bMT(3,7,"home_open_banking.bank")),n.R7$(2),n.Y8G("clearable",!1)("items",e.banks)("ngClass",n.eq3(13,Q,e.isSubmited&&e.f.bank.errors))("loading",e.bankLoading)("placeholder",n.bMT(5,9,"home_open_banking.select_bank")),n.R7$(6),n.SpI(" ",n.bMT(11,11,"validator.field_required"),"")}}function Rn(t,a){if(1&t&&n.nrm(0,"app-error",29),2&t){const e=n.XpG(3);n.Y8G("error",e.error)}}function Fn(t,a){1&t&&n.nrm(0,"div",33)}function jn(t,a){if(1&t&&(n.j41(0,"div",30)(1,"button",31),n.EFF(2),n.nI1(3,"translate"),n.DNE(4,Fn,1,0,"div",32),n.k0s()()),2&t){const e=n.XpG(3);n.R7$(2),n.JRh(n.bMT(3,2,"home_open_banking.connect")),n.R7$(2),n.Y8G("ngIf",e.loading)}}function xn(t,a){if(1&t){const e=n.RV6();n.j41(0,"form",10),n.bIt("ngSubmit",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onConnect())}),n.j41(1,"div",11)(2,"label",12),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.j41(5,"ng-select",13),n.nI1(6,"translate"),n.bIt("change",function(o){n.eBV(e);const c=n.XpG(2);return n.Njj(c.onCountryChange(o))}),n.DNE(7,vn,1,1,"ng-template",14)(8,Cn,4,2,"ng-template",15),n.k0s(),n.j41(9,"div",16),n.EFF(10),n.nI1(11,"translate"),n.k0s()(),n.DNE(12,Tn,12,15,"div",17)(13,Rn,1,1,"app-error",18)(14,jn,5,4,"div",19),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("formGroup",e.connectForm),n.R7$(3),n.JRh(n.bMT(4,11,"home_open_banking.bank_country")),n.R7$(2),n.Y8G("clearable",!1)("items",e.countries)("readonly",e.bankLoading)("ngClass",n.eq3(17,Q,e.isSubmited&&e.f.country.errors))("placeholder",n.bMT(6,13,"home_open_banking.select_country")),n.R7$(5),n.SpI(" ",n.bMT(11,15,"validator.field_required"),""),n.R7$(2),n.Y8G("ngIf",e.showBankInput),n.R7$(),n.Y8G("ngIf",e.error),n.R7$(),n.Y8G("ngIf",e.showConnectButton)}}function Mn(t,a){1&t&&(n.j41(0,"div",11)(1,"div",36),n.EFF(2),n.nI1(3,"translate"),n.k0s()()),2&t&&(n.R7$(2),n.SpI(" ",n.bMT(3,1,"home_open_banking.plaid_reconnect_info")," "))}function En(t,a){if(1&t&&n.nrm(0,"app-error",29),2&t){const e=n.XpG(3);n.Y8G("error",e.error)}}function Gn(t,a){1&t&&n.nrm(0,"div",33)}function Sn(t,a){if(1&t){const e=n.RV6();n.j41(0,"div",11)(1,"label",34),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"div"),n.EFF(5),n.k0s()(),n.DNE(6,Mn,4,3,"div",17)(7,En,1,1,"app-error",18),n.j41(8,"div",30)(9,"button",35),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onReconnectBank())}),n.EFF(10),n.nI1(11,"translate"),n.DNE(12,Gn,1,0,"div",32),n.k0s()()}if(2&t){const e=n.XpG(2);n.R7$(2),n.JRh(n.bMT(3,6,"home_open_banking.bank")),n.R7$(3),n.SpI(" ",e.reconnectBank," "),n.R7$(),n.Y8G("ngIf",e.isPlaid),n.R7$(),n.Y8G("ngIf",e.error),n.R7$(3),n.JRh(n.bMT(11,8,"home_open_banking.reconnect_account")),n.R7$(2),n.Y8G("ngIf",e.loading)}}function $n(t,a){if(1&t&&(n.qex(0),n.DNE(1,xn,15,19,"form",9)(2,Sn,13,10,"ng-template",null,1,n.C5r),n.bVm()),2&t){const e=n.sdS(3),i=n.XpG();n.R7$(),n.Y8G("ngIf",!i.reconnectBankId)("ngIfElse",e)}}function On(t,a){1&t&&(n.j41(0,"p"),n.EFF(1),n.nI1(2,"translate"),n.k0s(),n.j41(3,"p"),n.EFF(4),n.nI1(5,"translate"),n.k0s(),n.j41(6,"div",37)(7,"div",38),n.EFF(8),n.nI1(9,"translate"),n.k0s(),n.j41(10,"div",39),n.nrm(11,"div",40),n.k0s()()),2&t&&(n.R7$(),n.SpI(" ",n.bMT(2,3,"home_open_banking.session_active_desc_1")," "),n.R7$(3),n.SpI(" ",n.bMT(5,5,"home_open_banking.session_active_desc_2")," "),n.R7$(4),n.SpI(" ",n.bMT(9,7,"home_open_banking.authorisation_in_progress")," "))}function Pn(t,a){if(1&t){const e=n.RV6();n.j41(0,"div",41)(1,"span",42),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"img",43),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onOpenBankProcessor())}),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(2),n.JRh(n.bMT(3,2,"home_transactions.powered_by")),n.R7$(2),n.Y8G("src",e.processorLogo,n.B4B)}}let Vn=(()=>
3{class t{constructor(e,i,o,c,d,l){this.store=e,this.activeModal=i,this.document=o,this.countryService=c,this.changeDetector=d,this.errorHandlingService=l,this.reconnectBankId=null,this.reconnectBank=null,this.reconnectProvider=null,this.connectForm=new p.gE({}),this.subscriptions=[],this.error=null,this.bankLoading=!1,this.banks=[],this.loading=!1,this.isSubmited=!1,this.countries=[],this.hasSessionActive=!1,this.plaidCountries=["US","CA"],this.showBankInput=!1,this.showConnectButton=!1,this.isPlaid=!1,this.processorLogo=null}ngOnInit(){this.countries=this.countryService.getBankSyncingCountryList(),this.reconnectBankId?this.isPlaid=this.reconnectProvider==gn.cR.Plaid:this.setupForm(null),this.subscriptions.push(this.store.select(kn).subscribe(e=>{this.bankLoading=e.loading,this.banks=e.banks,this.error=this.errorHandlingService.process(e.error),this.changeDetector.detectChanges()})),this.subscriptions.push(this.store.select(W).subscribe(e=>{this.loading=e.loading,this.error=this.errorHandlingService.process(e.error),this.hasSessionActive=null!=e.sessionId,e.finished&&this.closeWithSuccess(e.plaidToken),this.changeDetector.detectChanges()}))}ngOnDestroy(){this.subscriptions.forEach(e=>e&&e.unsubscribe()),this.store.dispatch(B({start:!1})),this.store.dispatch(S())}setupForm(e){const i={country:new p.MJ(e,[p.k0.required])};e&&(this.isPlaid=-1!=this.plaidCountries.indexOf(e),this.showBankInput=!this.isPlaid,this.processorLogo=this.isPlaid?"../../../../assets/img/plaid.svg":"../../../../assets/img/gocardless.svg"),this.showBankInput&&(i.bank=new p.MJ(null,[p.k0.required])),this.connectForm=new p.gE(i)}onCountryChange(e){this.bankLoading||this.loading||(this.isSubmited=!1,this.setupForm(e.code),this.showConnectButton=!0,this.store.dispatch(P()),this.showBankInput&&this.store.dispatch(y({countryCode:e.code})))}onConnect(){this.bankLoading||this.loading||(this.isSubmited=!0,this.connectForm.valid&&this.store.dispatch(this.isPlaid?C({countryCode:this.connectForm.get("country")?.value}):v({bankId:this.connectForm.get("bank")?.value})))}onReconnectBank(){this.loading||this.store.dispatch(this.isPlaid?C({bankId:this.reconnectBankId}):v({bankId:this.reconnectBankId}))}onOpenBankProcessor(){this.document.defaultView?.open(this.isPlaid?"https://plaid.com/":"https://gocardless.com/","_blank")}get f(){return this.connectForm.controls}closeWithSuccess(e){this.store.dispatch(B({start:!1})),this.activeModal.close({isPlaid:this.isPlaid,token:e,refresh:!this.isPlaid})}close(){!this.bankLoading&&!this.loading&&this.activeModal.close(!1)}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(s.il),n.rXU(F.Lw),n.rXU(u.qQ),n.rXU(_n.ot),n.rXU(n.gRc),n.rXU(K.X))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-bank-connection-modal"]],inputs:{reconnectBankId:"reconnectBankId",reconnectBank:"reconnectBank",reconnectProvider:"reconnectProvider"},decls:11,vars:6,consts:[["sessionActive",""],["reconnectTmp",""],[1,"modal-header"],["ngbAutofocus","",1,"modal-title"],["type","button",1,"btn-close",3,"click"],[1,"modal-content"],[1,"modal-body","py-4"],[4,"ngIf","ngIfElse"],["class","d-flex align-items-end justify-content-end pt-3",4,"ngIf"],[3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],[3,"ngSubmit","formGroup"],[1,"form-group"],["for","inputCountry",1,"form-label"],["id","inputCountry","bindLabel","name","bindValue","code","formControlName","country",3,"change","clearable","items","readonly","ngClass","placeholder"],["ng-label-tmp",""],["ng-option-tmp",""],[1,"invalid-feedback"],["class","form-group",4,"ngIf"],[3,"error",4,"ngIf"],["class","form-footer",4,"ngIf"],["class","d-flex align-items-center",4,"ngIf"],[1,"d-flex","align-items-center"],[1,"me-2",3,"ngClass"],["for","inputBank",1,"form-label"],["id","inputBank","bindLabel","name","bindValue","code","formControlName","bank",3,"clearable","items","ngClass","loading","placeholder"],["ng-notfound-tmp",""],["ng-loadingspinner-tmp",""],[1,"ng-option","ng-option-disabled"],[1,"fa-regular","fa-circle-notch","fa-spin","me-2","text-secondary"],[3,"error"],[1,"form-footer"],["type","submit",1,"btn","btn-primary","w-100"],["class","spinner-border text-white spinner-border-x-sm ms-2",4,"ngIf"],[1,"spinner-border","text-white","spinner-border-x-sm","ms-2"],[1,"form-label"],["type","button",1,"btn","btn-primary","w-100",3,"click"],[1,"w-100","alert","alert-primary","bg-primary-lt"],[1,"container-slim","py-2"],[1,"text-center","small","text-secondary","mb-3"],[1,"progress","progress-sm"],[1,"progress-bar","progress-bar-indeterminate"],[1,"d-flex","align-items-end","justify-content-end","pt-3"],[1,"text-secondary","small","me-2","poweredBy"],["height","20px",1,"curs
3or-pointer",3,"click","src"]],template:function(i,o){if(1&i){const c=n.RV6();n.j41(0,"div",2)(1,"h5",3),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"button",4),n.bIt("click",function(){return n.eBV(c),n.Njj(o.close())}),n.k0s()(),n.j41(5,"div",5)(6,"div",6),n.DNE(7,$n,4,2,"ng-container",7)(8,On,12,9,"ng-template",null,0,n.C5r)(10,Pn,5,4,"div",8),n.k0s()()}if(2&i){const c=n.sdS(9);n.R7$(2),n.JRh(n.bMT(3,4,o.reconnectBankId?"home_open_banking.reconnect_account":"home_open_banking.connect_account")),n.R7$(5),n.Y8G("ngIf",!o.hasSessionActive)("ngIfElse",c),n.R7$(3),n.Y8G("ngIf",o.showConnectButton)}},dependencies:[u.YU,u.bT,f.vr,f.Uq,f.ZZ,f.y2,f.QQ,p.qT,p.BC,p.cb,p.j4,p.JD,z.A,j.D9],styles:[".poweredBy[_ngcontent-%COMP%]{line-height:.875em!important}"],changeDetection:0})}}return t})(),Z=(()=>{class t{constructor(e){this.modalService=e}show(e,i,o){const c=this.modalService.open(Vn,{backdrop:"static",keyboard:!1,modalDialogClass:"modal-dialog modal-dialog-centered"});return c.componentInstance.reconnectBankId=e,c.componentInstance.reconnectBank=i,c.componentInstance.reconnectProvider=o,c.result}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(F.Bq))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac})}}return t})();var Nn=r(2325),x=r(6853),Ln=r(90);function An(t,a){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.SpI(" - ",e.account.name,"")}}function Yn(t,a){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Lme("",n.bMT(2,2,"home_open_banking.ending")," ",e.account.tail,"")}}function wn(t,a){if(1&t){const e=n.RV6();n.j41(0,"a",12),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onConnectBank())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}2&t&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"home_open_banking.reconnect"),""))}function Dn(t,a){if(1&t&&(n.j41(0,"div",13)(1,"span",14),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"div"),n.EFF(5),n.nI1(6,"dateStructConvert"),n.nI1(7,"date"),n.k0s()()),2&t){const e=n.XpG();n.R7$(2),n.SpI(" ",n.bMT(3,2,"home_open_banking.expiry"),""),n.R7$(3),n.JRh(n.i5U(7,6,n.bMT(6,4,e.account.expiry),"MMM d, yyyy"))}}let Xn=(()=>{class t{constructor(){this.account=null,this.viewOnly=!1,this.onAccountReconnect=(0,n.CGW)()}onConnectBank(){this.onAccountReconnect.emit({id:this.account.institutionId,bankName:this.account.bankName,provider:this.account.provider})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-bank-connection-list-item"]],inputs:{account:"account",viewOnly:"viewOnly"},outputs:{onAccountReconnect:"onAccountReconnect"},decls:16,vars:9,consts:[[1,"card"],[1,"card-body"],[1,"row","gx-2","align-items-center"],[1,"col-auto"],[1,"fa-regular","fa-building-columns","h1","mb-0","me-3"],[1,"col"],[1,"card-title","mb-1"],[4,"ngIf"],[1,"text-secondary"],[1,"col-auto","d-flex","align-items-center"],["class","btn btn-sm me-4 d-none d-md-flex",3,"click",4,"ngIf"],["class","text-end",4,"ngIf"],[1,"btn","btn-sm","me-4","d-none","d-md-flex",3,"click"],[1,"text-end"],[1,"subheader"]],template:function(i,o){1&i&&(n.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.nrm(4,"i",4),n.k0s(),n.j41(5,"div",5)(6,"h2",6),n.EFF(7),n.DNE(8,An,2,1,"span",7),n.k0s(),n.j41(9,"div",8),n.EFF(10),n.nI1(11,"translate"),n.DNE(12,Yn,3,4,"span",7),n.k0s()(),n.j41(13,"div",9),n.DNE(14,wn,3,3,"a",10)(15,Dn,8,9,"div",11),n.k0s()()()()),2&i&&(n.R7$(7),n.SpI(" ",o.account.bankName,""),n.R7$(),n.Y8G("ngIf",o.account.name),n.R7$(2),n.Lme(" ",o.account.currency," ",n.bMT(11,7,"home_collection.account")," "),n.R7$(2),n.Y8G("ngIf",o.account.tail),n.R7$(2),n.Y8G("ngIf",!o.viewOnly&&o.account.requiresReconnect),n.R7$(),n.Y8G("ngIf",o.account.expiry))},dependencies:[u.bT,u.vh,j.D9,Ln.$],changeDetection:0})}}return t})();const q=t=>({disabled:t}),Un=()=>[];function Hn(t,a){if(1&t){const e=n.RV6();n.j41(0,"a",34),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onConnectBank())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}2&t&&(n.R7$(),n.JRh(n.bMT(2,1,"home_open_banking.connect_account")))}function Jn(t,a){1&t&&(n.j41(0,"div",37)(1,"div",38)(2,"div",39)(3,"div",40),n.nrm(4,"div",41),n.k0s(),n.j41(5,"div",42),n.nrm(6,"div",43),n.j41(7,"div"),n.nrm(8,"div",44),n.k0s()()()()())}function Kn(t,a){1&t&&(n.qex(0),n.j41(1,"div",35),n.DNE(2,Jn,9,0,"div",36),n.k0s(),n.bVm()),2&t&&(n.R7$(2),n.Y8G("ngForOf",n.lJ4(1,Un).constructor(3)))}function Wn(t,a){if(1&t){const e=n.RV6();n.j41(0,"div",47)(1,"app-bank-connection-list-item",48),n.bIt("onAccountReconnect",function(o){n.eBV(e);const c=n.XpG(2);return n.Njj(c.onAccountReconnect(o))}),n.k0s()()}if(2&t){const e=a.$implicit,i=n.XpG(2);n.R7$(),n.Y8G("account",e)("viewOnly",i.viewOnly)}}function zn(t,a){if(1&t&&(n.j41(0,"div",45),n.DNE(1,Wn,2,2,"div",46),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngForOf",e.accounts)}}function Qn(t,a){if(1&t&&n.nrm(0,"app-error",49),2&t){const e=n.XpG();n.Y8G("error",e.error)}}function Zn(t,a){1&t&&(n.j41(0,"div",37)(1,"div",38)(2,"div",50),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.j41(5,"div",51),n.EFF(6),n.nI1(7,"translate"),n.k0s()()()),2&t&&(n.R7$(3),n.SpI(" ",n.bMT(4,2,"no_data")," "),n.R7$(3),n.JRh(n.bMT(7,4,"home_open_banking.no_data_description")))}const qn=[{path:"",component:(()=>
3{class t{constructor(e,i,o,c,d,l,_,b){this.store=e,this.changeDetector=i,this.errorHandlingService=o,this.appRightService=c,this.bankConnectionService=d,this.customModalService=l,this.paymentsService=_,this.renderer=b,this.viewOnly=!1,this.filtersVisible=!0,this.searchKeyUp=new tn.B,this.plaidLinkHandler=null,this.subscriptions=[],this.loading=!1,this.prevOffset=null,this.nextOffset=null,this.error=null,this.nameFilter=null,this.accounts=[],this.inited=!1}ngOnInit(){this.viewOnly=this.appRightService.viewOnly,this.subscriptions.push(this.searchKeyUp.pipe((0,en.B)(500),(0,on.F)()).subscribe(e=>{const i=e.trim();this.getAccounts({offset:0,nameFilter:0==i.length?null:i})})),this.subscriptions.push(this.store.select(un).subscribe(e=>{this.loading=e.loading,this.error=this.errorHandlingService.process(e.error),this.prevOffset=e.prev,this.nextOffset=e.next,this.nameFilter=e.nameFilter,this.loading||(this.accounts=[...e.accounts]),this.inited||(this.inited=!0,0==this.accounts.length&&this.getAccounts({offset:0})),this.inited=!0,this.changeDetector.detectChanges()}))}ngOnDestroy(){this.subscriptions.forEach(e=>e&&e.unsubscribe())}toggleFilters(){this.filtersVisible=!this.filtersVisible}onNext(){null!=this.nextOffset&&this.getAccounts({offset:this.nextOffset})}onPrevious(){null!=this.prevOffset&&this.getAccounts({offset:this.prevOffset})}refresh(){this.getAccounts({offset:(this.prevOffset??-1)+1})}getAccounts(e){this.loading||this.store.dispatch(R({offset:e.offset,nameFilter:void 0===e.nameFilter?this.nameFilter:e.nameFilter}))}onConnectBank(){this.loading||this.openBankConnectionModal(null,null,null)}onAccountReconnect(e){this.loading||this.openBankConnectionModal(e.id,e.bankName,e.provider)}openBankConnectionModal(e,i,o){this.bankConnectionService.show(e,i,o).then(c=>{c&&(c.isPlaid?this.initiatePlaid(c.token):c.refresh&&this.getAccounts({offset:0}))},c=>{})}initiatePlaid(e){if(!e||!Plaid)return;const i={token:e,onSuccess:(o,c)=>{this.handlePlaidSuccess(o,c)},onExit:(o,c)=>{this.handlePlaidExit(o,c)}};this.destroyPlaidLinkHandler(!1),setTimeout(()=>{this.plaidLinkHandler=Plaid.create(i),this.plaidLinkHandler.open()},300)}handlePlaidSuccess(e,i){this.destroyPlaidLinkHandler(),this.paymentsService.setPlaidBankAccounts(e,i).pipe((0,sn.M)(()=>{this.refresh()}),(0,h.W)(o=>(this.showPlaidErrorDialog(),G.w))).subscribe()}handlePlaidExit(e,i){if(this.destroyPlaidLinkHandler(),!e)return;const o={link_session_id:i?.link_session_id||"unknown",institution_id:i?.institution?.institution_id||"N/A",institution_name:i?.institution?.name||"N/A",status:i?.status||"unknown",request_id:i?.request_id||"N/A"};hn.Cp(e,{tags:{feature:"plaid_link",institution_id:o.institution_id,plaid_error_type:e.error_type||"unknown"},extra:{...o,full_error:e},level:"error"}),this.showPlaidErrorDialog()}destroyPlaidLinkHandler(e=!0){this.plaidLinkHandler?.destroy(),this.plaidLinkHandler=null,e&&this.restoreBodyOverflow()}restoreBodyOverflow(){setTimeout(()=>{this.renderer.removeStyle(document.body,"overflow")},100)}showPlaidErrorDialog(){this.customModalService.showInformation({key:"home_open_banking.plaid_error_title"},{key:"home_open_banking.plaid_error_desc"},null)}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(s.il),n.rXU(n.gRc),n.rXU(K.X),n.rXU(fn.U),n.rXU(Z),n.rXU(Nn.M),n.rXU(x.h),n.rXU(n.sFG))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-bank-connections-list"]],decls:49,vars:42,consts:[["searchInput",""],[1,"page-header"],[1,"container-xl"],[1,"d-flex","align-items-end"],[1,"page-title","mb-2"],[1,"text-secondary","mb-0"],[1,"flex-fill"],["class","btn btn-primary me-3 d-none d-md-flex",3,"click",4,"ngIf"],[1,"pagination","m-0"],[1,"page-item",3,"ngClass"],["placement","bottom auto",1,"page-link",3,"click","ngbTooltip"],[1,"fa-regular","fa-chevron-left"],[1,"page-item"],[1,"fa-regular","fa-arrows-rotate",3,"ngClass"],[1,"fa-regular","fa-chevron-right"],[1,"page-body"],[1,"container-xl","filter-layout"],[1,"row","g-6"],[1,"col-auto","d-none","d-md-flex","flex-column"],[1,"mb-3","d-flex","align-items-center","justify-content-between","cursor-pointer",3,"click"],[1,"subheader"],[1,"fa-regular","fa-filter"],["placement","bottom",1,"btn-action","ms-3",3,"ngbTooltip"],[1,"fa-regular","fa-arrow-left-long-to-line"],[1,"filter-content"],[1,"input-icon",2,"min-width","300px"],["type","text",1,"form-control","no-shadow",3,"input","ngModel","disabled","placeholder"],[1,"input-icon-addon"],[1,"fa-regular","fa-magnifying-glass"],[1,"col-12","col-md"],[4,"ngIf"],["class","row row-cards",4,"ngIf"],[3,"error",4,"ngIf"],["class","card",4,"ngIf"],[1,"btn","btn-primary","me-3","d-none","d-md-flex",3,"click"],[1,"row","row-cards","placeholder-glow"],["class","card",4,"ngFor","ngForOf"],[1,"card"],[1,"card-body"],[1,"row","g-2","align-items-center"],[1,"col-auto"],[1,"avatar","avatar-xs","avatar-rounded","placeholder","me-3"],[1,"col"],[1,"placeholder","placeholder-xs","col-6"],[1,"placeholder","placeholder-xs","col-4"],[1,"row","row-cards"],["class","col-12",4,"ngFor","ngForOf"],[1,"col-12"],[3,"onAccountReconnect","account","viewOnly"],[3,"error"],[1,"card-title","mb-2"],[1,"text-secondary"]],template:function(i,o){if(1&i){const c=n.RV6();n.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"div")(4,"h2",4),n.EFF(5),n.nI1(6,"translate"),n.k0s(),n.j41(7,"p",5),n.EFF(8),n.nI1(9,"translate"),n.k0s()(),n.nrm(10,"div",6),n.DNE(11,Hn,3,3,"a",7),n.j41(12,"ul",8)(13,"li",9)(14,"a",10),n.nI1(15,"translate"),n.bIt("click",function(){return n.eBV(c),n.Njj(o.onPrevious())}),n.nrm(16,"i",11),n.k0s()(),n.j41(17,"li",12)(18,"a",10),n.nI1(19,"translate"),n.bIt("click",function(){return n.eBV(c),n.Njj(o.refresh())}),n.nrm(20,"i",13),n.k0s()(),n.j41(21,"li",9)(22,"a",10),n.nI1(23,"translate"),n.bIt("click",function(){return n.eBV(c),n.Njj(o.onNext())}),n.nrm(24,"i",14),n.k0s()()()()()(),n.j41(25,"div",15)(26,"div",16)(27,"div",17)(28,"div",18)(29,"div",19),n.bIt("click",function(){return n.eBV(c),n.Njj(o.toggleFilters())}),n.j41(30,"div",20),n.nrm(31,"i",21),n.EFF(32),n.nI1(33,"translate"),n.k0s(),n.j41(34,"a",22),n.nI1(35,"translate"),n.nrm(36,"i",23),n.k0s()(),n.j41(37,"div",24)(38,"div",25)(39,"input",26,0),n.nI1(41,"translate"),n.bIt("input",function(){n.eBV(c);const l=n.sdS(40);return n.Njj(o.searchKeyUp.next(l.value))}),n.k0s(),n.j41(42,"span",27),n.nrm(43,"i",28),n.k0s()()()(),n.j41(44,"div",29),n.DNE(45,Kn,3,2,"ng-container",30)(46,zn,2,1,"div",31)(47,Qn,1,1,"app-error",32)(48,Zn,8,6,"div",33),n.k0s()()()()}
32&i&&(n.R7$(5),n.JRh(n.bMT(6,22,"home_open_banking.title")),n.R7$(3),n.SpI(" ",n.bMT(9,24,"home_open_banking.subtitle")," "),n.R7$(3),n.Y8G("ngIf",!o.viewOnly),n.R7$(2),n.Y8G("ngClass",n.eq3(38,q,null==o.prevOffset)),n.R7$(),n.Y8G("ngbTooltip",n.bMT(15,26,"newer")),n.R7$(4),n.Y8G("ngbTooltip",n.bMT(19,28,"refresh")),n.R7$(2),n.Y8G("ngClass",o.loading?"fa-spin":""),n.R7$(),n.Y8G("ngClass",n.eq3(40,q,null==o.nextOffset)),n.R7$(),n.Y8G("ngbTooltip",n.bMT(23,30,"older")),n.R7$(10),n.SpI(" ",n.bMT(33,32,"filters"),""),n.R7$(2),n.Y8G("ngbTooltip",n.bMT(35,34,o.filtersVisible?"collapse":"expand")),n.R7$(2),n.AVh("rotate-180",!o.filtersVisible),n.R7$(),n.AVh("filter-hidden",!o.filtersVisible),n.R7$(2),n.Y8G("ngModel",o.nameFilter)("disabled",o.loading)("placeholder",n.bMT(41,36,"search")+"..."),n.R7$(6),n.Y8G("ngIf",o.loading&&0==o.accounts.length),n.R7$(),n.Y8G("ngIf",o.accounts.length>0),n.R7$(),n.Y8G("ngIf",o.error),n.R7$(),n.Y8G("ngIf",0==o.accounts.length&&!o.error&&!o.loading))},dependencies:[u.YU,u.Sq,u.bT,F.md,p.me,p.BC,p.vS,z.A,Xn,j.D9],changeDetection:0})}}return t})()}];let nt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=n.$C({type:t})}static{this.\u0275inj=n.G2t({imports:[E.iI.forChild(qn),E.iI]})}}return t})();var g=r(6647),I=r(271),k=r(9452);let tt=(()=>{class t{constructor(e,i){this.paymentsService=e,this.actions=i,this.tryGetWallletStatemetns$=(0,m.EH)(()=>this.actions.pipe((0,m.gp)(R),(0,g.n)(o=>this.paymentsService.getBankConnectionAccounts(o.offset,o.nameFilter).pipe((0,I.T)(c=>w(c)),(0,h.W)(c=>(0,k.of)(D({error:c})))))))}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(x.h),n.KVO(m.En))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac})}}return t})();var et=r(1365),ot=r(5842),it=r(1567),st=r(7953),at=r(4876);let ct=(()=>{class t{constructor(e,i,o,c){this.document=e,this.paymentsService=i,this.actions=o,this.store=c,this.tryGetCountryBanks$=(0,m.EH)(()=>this.actions.pipe((0,m.gp)(y),(0,g.n)(d=>this.paymentsService.getCountryBanks(d.countryCode).pipe((0,I.T)(l=>$(l)),(0,h.W)(l=>(0,k.of)(O({error:l}))))))),this.tryConnectBank$=(0,m.EH)(()=>this.actions.pipe((0,m.gp)(v),(0,g.n)(d=>this.paymentsService.connectBank(d.bankId).pipe((0,et.Z)(l=>(this.document.defaultView?.open(l.connectUrl,"_blank"),[V(l),B({start:!0})])),(0,h.W)(l=>(0,k.of)(T({error:l}))))))),this.tryConnectPlaidBank$=(0,m.EH)(()=>this.actions.pipe((0,m.gp)(C),(0,g.n)(d=>this.paymentsService.connectPlaidBank(d.countryCode,d.bankId).pipe((0,I.T)(l=>N(l)),(0,h.W)(l=>(0,k.of)(T({error:l}))))))),this.pollConnection$=(0,m.EH)(()=>this.actions.pipe((0,m.gp)(B),(0,g.n)(d=>d.start?(0,at.O)(1e4,5e3).pipe((0,ot.E)(this.store.select(W)),(0,it.p)(([l,_])=>null!=_),(0,st.p)(([l,_])=>this.paymentsService.checkBankConnectionFinished(_.sessionId).pipe((0,I.T)(b=>L(b)),(0,h.W)(b=>(0,k.of)(cn({error:b})))))):G.w)))}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(u.qQ),n.KVO(x.h),n.KVO(m.En),n.KVO(s.il))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac})}}return t})(),rt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=n.$C({type:t})}static{this.\u0275inj=n.G2t({providers:[Z],imports:[nn.G,nt,s.md.forFeature(U,pn),m.Vm.forFeature([tt,ct])]})}}return t})()}}]);
4//# debugId=c0ad03ec-6506-5f16-8861-3cd55d522e87

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.