import{al as h,r as i,am as s,an as e}from"./index-CipWZKo_.js";const d=h("postings",()=>{const o=i(null),c=i(null),u=i(null);async function r(){await s.post(e.postings).then(t=>{o.value=t.data})}async function l(){await s.post(e.services).then(t=>{c.value=t.data})}async function f(){await s.post(e.invoices).then(t=>{u.value=t.data})}async function v(t){let n=null;return await s.post(e.InvoiceDocument,t).then(a=>{a.data?.Status==="Ok"&&(n=a.data?.DOM)}),n}async function p(t){let n="ERROR";return await s.post(e.InvoicesReject,t).then(a=>{a.data?.Status!=="Exception"&&(n="SUCCESS")}),n}return{postingsList:o,servicesList:c,invoicesList:u,fetchPostings:r,fetchServices:l,fetchInvoices:f,InvoiceDocument:v,InvoicesReject:p}});export{d as u};
