import{b as c}from"./chunk-GFBZ65JI.js";import{c as m}from"./chunk-Z7UPUZED.js";import{a as u}from"./chunk-DKT5LASJ.js";import{q as t,r as y,u as p,v as S}from"./chunk-ISCRPPFS.js";import{A as s,a,la as d,od as g,qa as n,va as v}from"./chunk-EBMUBP7P.js";y();d();g();S();var A=(()=>{class r extends u{constructor(e){super(),this.apiService=e}fetchNeighour(e,i,o=!0){return this.apiService.get(t.move[o?"getPreviousNeighbour":"getNextNeighbour"](e,i))}fetch(e){return this.apiService.get(t.move.fetch(e))}saveInvoice(e){return e?this.apiService.put(t.move.putInvoice,a({},e)):s()}fetchDocumentLinks(e){return this.apiService.get(t.move.getDocumentLinks(e))}fetchDocTypeData(e){return this.apiService.get(t.move.docTypeData(e))}fiscalizeInvoice(e,i,o=null){return this.apiService.post(t.move.fiscalize(e,i,o))}deleteInvoice(e){return this.apiService.delete(t.move.delete(e))}checkClosedVatPeriod(e){return this.apiService.post(t.move.checkClosedVatPeriod,{date:e})}recalculateInvoiceItems(e){return this.apiService.post(t.move.recalculateInvoiceItems,e)}getAdvancePayments(e,i,o,h,l){let f={acKey:i,docType:o,date:h,subject:l,vat:"",type:"O",invoiceType:e===m.Wholesale?c.Wholesale:c.ReceivedBills};return this.apiService.post(t.move.getAdvancePaymentLinks,f)}static{this.\u0275fac=function(i){return new(i||r)(v(p))}}static{this.\u0275prov=n({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{A as a};
