import{a as i}from"./chunk-P5XIDEFS.js";import{e as o,i as c}from"./chunk-CO3WTSA4.js";import{ea as n,ja as a}from"./chunk-DYUFV4HF.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-L2GBFYSY.js.map
