1import{Ag as et,Bf as $,Bg as it,Cc as o,Cf as G,Cg as rt,Dc as L,Df as J,Dg as st,Ec as R,Ee as w,Ef as V,Eg as at,Ff as z,Fg as ot,G as M,Gf as q,Hc as H,I as N,K as p,Kb as F,Ke as f,Lb as m,Le as c,M as s,Me as d,N as D,Nd as E,Od as C,Qb as S,ce as B,cg as Q,dg as Z,eg as tt,i as v,j as g,je as k,m as h,p as _,rd as u,tf as O,uf as U,vf as x,wf as X,x as y,xd as j,xf as K,yf as W,zf as Y}from"./chunk-YMFY75IU.js";var _t=(()=>{class e{constructor(){this.http=D(S),this.cardsApi=D(H)}getLimitList(t){return t?this.http.post(at,t):h()}hasCardLimits(t){let i=new m().set("cardId",t.toString());return this.http.get(ot,{params:i})}updateAuthOperation(t,i){return{prepare:()=>this.cardsApi.limitsUpdatePrepare(t,i).pipe(_(r=>r.authMethodInfo)),perform:r=>this.cardsApi.limitsUpdatePerform(r),cancel:()=>this.cardsApi.limitsUpdateCancel()}}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=p({token:e,factory:e.\u0275fac})}}return e})();var pt={headers:new F({"Content-Type":"application/json",Accept:"application/json"})},Nt=(()=>{class e{constructor(t){this.http=t,this.emptyCard={cardId:0,number:"",cardName:"",ownerName:"",productName:"",typeEnum:"",accountPayment:"",validityDate:new Date,statusEnum:""},this.card=new v(this.emptyCard)}findAll(){return this.http.get(et,pt)}getCard(){return this.card.asObservable()}setCard(t){this.card.next(t)}getAvailableStatementDates(t){return this.http.post(st,t)}getStatementFile(t,i){let r=new m().set("date",i.toString()).set("cardId",t.toString());return this.http.post(rt,"",{params:r,responseType:o})}static{this.\u0275fac=function(i){return new(i||e)(s(S))}}static{this.\u0275prov=p({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Mt=(()=>{class e{constructor(t){this.http=t}getCardsLocks(t){return this.http.post(it,t)}static{this.\u0275fac=function(i){return new(i||e)(s(S))}}static{this.\u0275prov=p({token:e,factory:e.\u0275fac})}}return e})();var b=(function(e){return e[e.STATEMENT_PLUS=0]="STATEMENT_PLUS",e[e.STATEMENT=1]="STATEMENT",e})(b||{});var I=(()=>{class e{constructor(){let t={accounts:[],statementType:b.STATEMENT};this._bankStatementsParams=new v(t),this.bankStatementsParams$=this._bankStatementsParams.asObservable()}setBankStatementsParams(t){this._bankStatementsParams.next(t)}setBankStatementsPlusParams(t){this._bankStatementsParams.next(t)}isBankStatementsPlus(){return this._bankStatementsParams.getValue().statementType===b.STATEMENT_PLUS}getParamsWithIdsAndDateRange(t,i){let r=this._bankStatementsParams.getValue();return new m().set("accountIds",r.accounts.map(a=>a.accountId).join(B)).set("startDate",t).set("endDate",i)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=p({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Wt=(()=>{class e{constructor(t,i,r,a,n,l){this.http=t,this.notificationService=i,this.paramsDataService=r,this.errorProviderService=a,this.spinnerService=n,this.bankStatementApiService=l}getBankStatements(t,i){let r=this.paramsDataService.isBankStatementsPlus()?$:O,a=this.paramsDataService.getParamsWithIdsAndDateRange(t,i);return this.http.get(r,{params:a}).pipe(N(n=>{n.length===0&&this.notificationService.default("Nie znaleziono pasuj\u0105cych wyci\u0105g\xF3w")}),_(n=>(this.paramsDataService.isBankStatementsPlus()||n.forEach(l=>l.id=this.getStatementId(l)),n)),this.errorProviderService.processError("Wyst\u0105pi\u0142 b\u0142\u0105d podczas pobierania wyci\u0105g\xF3w",h([])))}getBankStatementOperations(t,i,r){return this.spinnerService.showSpinner(),this.bankStatementApiService.getBankStatementOperations(t,i,r).pipe(N(a=>{a.totalItems===0&&this.notificationService.default(u.NO_DETAILS_FOR_SELECTED_EXECUTION),this.spinnerService.hide
1Spinner()}),this.errorProviderService.processError(u.FETCHING_DATA_ERROR))}getStatementId(t){if(typeof t.session>"u")throw new w("statement session");return{accountId:t.accountId,date:j(t.startDate),session:t.session}}static{this.\u0275fac=function(i){return new(i||e)(s(S),s(E),s(I),s(k),s(C),s(L))}}static{this.\u0275prov=p({token:e,factory:e.\u0275fac})}}return e})();var te=(()=>{class e{constructor(t,i,r,a,n){this.http=t,this.paramsDataService=i,this.plusStatementApiService=r,this.fileService=a,this.notificationService=n}openBankStatementFile(t){let i=this.paramsDataService.isBankStatementsPlus()?J:x;this.http.post(i,t,{responseType:o}).pipe(this.fileService.open(c.PDF)).subscribe()}saveHomenetFile(t){let i=new m().set("statementId",t.toString());(this.paramsDataService.isBankStatementsPlus()?this.http.get(z,{params:i,responseType:o}):this.http.post(K,t,{responseType:o}))?.pipe(this.fileService.save(`wyci\u0105gi-${f.getTodayWithTime()}.xml`,c.XML)).subscribe()}saveMT940PlusStatement(t,i=!1,r=!1){return this.plusStatementApiService.getMT940(t,i,r).pipe(M(({name:a,data:n})=>!r||t.length===1?this.fileService.save(a,c.TXT)(h(n)):this.fileService.save(a,c.ZIP)(h(n))),y(a=>{if(a.status===400)return this.notificationService.error(u.TOO_LONG_REQUEST_MT940),g;{let n=new TextDecoder("utf-8").decode(a.error),l=JSON.parse(n);return this.notificationService.error(l.messageToShow||u.FETCHING_DATA_ERROR),g}}))}saveMT940(t){this.http.post(W,t,{responseType:o}).pipe(this.fileService.save(`wyci\u0105gi-${f.getTodayWithTime()}.txt`,c.TXT)).subscribe()}saveMT940AllDay(t){let i=new m().set("statementId",t.toString());(this.paramsDataService.isBankStatementsPlus()?this.http.get(q,{params:i,responseType:o}):this.http.post(Y,t,{responseType:o}))?.pipe(this.fileService.save(`wyci\u0105gi-${f.getTodayWithTime()}.txt`,c.TXT)).subscribe()}saveXMLFile(t){let i=new m().set("statementId",t.toString());(this.paramsDataService.isBankStatementsPlus()?this.http.get(V,{params:i,responseType:o}):this.http.post(X,t,{responseType:o}))?.pipe(this.fileService.save(`wyci\u0105gi-${f.getTodayWithTime()}.xml`,c.XML)).subscribe()}openListFile(t,i){let r=this.paramsDataService.isBankStatementsPlus()?G:U,a=this.paramsDataService.getParamsWithIdsAndDateRange(t,i);this.http.get(r,{params:a,responseType:o}).pipe(this.fileService.open(c.PDF)).subscribe()}static{this.\u0275fac=function(i){return new(i||e)(s(S),s(I),s(R),s(d),s(E))}}static{this.\u0275prov=p({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ne=(()=>{class e{constructor(t,i){this.http=t,this.fileService=i}getPrint(t){return this.http.post(Q,t,{responseType:o})}getCsv(t){return this.http.post(Z,t,{responseType:o})}openCSV(t){this.getCsv(t).pipe(this.fileService.open(c.TXT)).subscribe()}saveCSVFile(t){this.getCsv(t).pipe(this.fileService.save(`operacje-bie\u017C\u0105ce-${f.getTodayWithTime()}.csv`,c.TXT)).subscribe()}getDuplicate(t,i){let r=new m().set("accountId",t.accountId.toString()).set("operationList",i.toString());return this.http.get(tt,{params:r,responseType:o})}openDuplicate(t,i){this.getDuplicate(t,i).pipe(this.fileService.open(c.PDF)).subscribe()}static{this.\u0275fac=function(i){return new(i||e)(s(S),s(d))}}static{this.\u0275prov=p({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();export{_t as a,Nt as b,Mt as c,b as d,I as e,Wt as f,te as g,ne as h};
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.