import{a as p}from"./chunk-4VVWYKLX.js";import{a as s}from"./chunk-TTBMNJPA.js";import{a as o}from"./chunk-KXX3UDJ3.js";import{j as a}from"./chunk-GQAU5ACB.js";import{S as e,la as n,pa as r}from"./chunk-ISMRT7VU.js";var u=(()=>{class i{constructor(t){this._http=t}getBanks(){return this._http.get("/api/bank")}syncBank(){return this._http.post("/api/bank/sync",{},{headers:o})}static{this.\u0275fac=function(c){return new(c||i)(r(a))}}static{this.\u0275prov=n({token:i,factory:i.\u0275fac})}}return i})();var k=(()=>{class i{constructor(t,c,A){this._accountsServiceApi=t,this._operationBaseServiceApi=c,this._bankServiceApi=A}getAccounts(t){return this._accountsServiceApi.getAccounts(t).pipe(e(1))}getById(t){return this._accountsServiceApi.getAccount(t).pipe(e(1))}create(t){return this._accountsServiceApi.create(t).pipe(e(1))}edit(t,c){return this._accountsServiceApi.edit(t,c).pipe(e(1))}getBanks(){return this._bankServiceApi.getBanks().pipe(e(1))}syncBank(){return this._bankServiceApi.syncBank().pipe(e(1))}getAccountOperationBases(){return this._operationBaseServiceApi.getAccountOperationBases().pipe(e(1))}getAllAccountOperations(t,c){return this._accountsServiceApi.getAllAccountOperations(t,c).pipe(e(1))}getAccountOperationByOperationId(t){return this._accountsServiceApi.getAccountOperationByOperationId(t).pipe(e(1))}getDefaultCashAccount(t){return this._accountsServiceApi.getDefaultCashAccount(t).pipe(e(1))}syncAccount(t=!1){return this._accountsServiceApi.syncAccount(t).pipe(e(1))}static{this.\u0275fac=function(c){return new(c||i)(r(s),r(p),r(u))}}static{this.\u0275prov=n({token:i,factory:i.\u0275fac})}}return i})();export{u as a,k as b};
//# sourceMappingURL=chunk-FPPI3MSY.js.map
