import{g2 as s}from"./index-DdWwwZXu.js";import{a as e}from"./vendor-utils-BveVE6Uf.js";const E=()=>({addPurchaseFactorAsync:async a=>(await e.post("PurchaseFactor",a)).data,addSaleFactor:async a=>(await e.post("SaleFactor",a)).data,getPurchaseFactorAsync:async a=>(await e.get("PurchaseFactor",{params:{...a}})).data,getPurchaseFactorByIdAsync:async a=>(await e.get(`PurchaseFactor/${a}`)).data,getSaleFactorsAsync:async a=>(await e.get("SaleFactor",{params:a})).data,getSaleFactorByIdAsync:async a=>(await e.get(`SaleFactor/${a}`)).data,getPurchaseFactorTypeAsync:async()=>(await e.get("PurchaseFactor/FactorType")).data,updatePurchaseFactorAsync:async a=>(await e.put(`PurchaseFactor/${a.id}`,a)).data,updateSaleFactorAsync:async a=>(await e.put(`SaleFactor/${a.id}`,a)).data,deletePurchaseFactorAsync:async a=>{await e.delete(`PurchaseFactor/${a}`)},deleteSaleFactorAsync:async a=>{await e.delete(`SaleFactor/${a}`)},getSaleFactorByIdDetailsAsync:async a=>(await e.get(`Factor/GetSaleFactorDetails/${a}`)).data,exportSaleFactorsToExcel:async a=>{await s("SaleFactor/Export/Excel",a)},exportPurchaseFactorsToExcel:async a=>await s("PurchaseFactor/Export/Excel",a),calculateSaleFactorPriceAsync:async a=>(await e.post("SaleFactor/CalculatePrice",a)).data,calculateFactorDetailPurchaseFactorAsync:async a=>(await e.post("PurchaseFactor/CalculateFactorDetail",a)).data,getCustomerSalesOverviewAsync:async a=>(await e.get("SaleFactor/SalesOverview/Customer",{params:a})).data,getMaterialSalesOverviewAsync:async a=>(await e.get("SaleFactor/SalesOverview/Material",{params:a})).data,getProfitAndLossSalesOverviewAsync:async a=>(await e.get("SaleFactor/SalesOverview/ProfitAndLoss",{params:a})).data});export{E as u};
