import{a as i}from"./chunk-7N232KV6.js";import{e as o,i as c}from"./chunk-NDLDFKR2.js";import{fa as n,ka as a}from"./chunk-PVUKHE45.js";var u=(()=>{let t=class t{constructor(r){this.discounts=r}};t.type="[NomenclatureDiscount] Set NomenclatureDiscount";let e=t;return e})(),l=(()=>{let t=class t{};t.type="[NomenclatureDiscount] Clear NomenclatureDiscount";let e=t;return e})();var j=(()=>{let t=class t{constructor(r){this._http=r,this.defaultFilter={take:100,skip:0,orderBy:"id",isAscending:!0,criteria:null}}getAll(r=this.defaultFilter){return this._http.post("/api/nomenclature-discount/all",r,{headers:i})}upsert(r){return this._http.post("/api/nomenclature-discount",r)}delete(r){let s=new o;return r.forEach(p=>s=s.append("DiscountIds",p)),this._http.delete("/api/nomenclature-discount",{params:s})}sync(){return this._http.post("/api/nomenclature-discount/sync",{},{headers:i})}};t.\u0275fac=function(s){return new(s||t)(a(c))},t.\u0275prov=n({token:t,factory:t.\u0275fac});let e=t;return e})();export{u as a,l as b,j as c};
//# sourceMappingURL=chunk-QOLYJUM7.js.map
