import{a as p}from"./chunk-P5XIDEFS.js";import{i as s}from"./chunk-CO3WTSA4.js";import{I as o,ea as a,ja as l,q as n}from"./chunk-DYUFV4HF.js";var u=(()=>{let t=class t{constructor(e){this._http=e}getAll(e){return this._http.post("/api/scale-nomenclature/all",e,{headers:p})}edit(e){return this._http.put("/api/scale-nomenclature",e)}};t.\u0275fac=function(i){return new(i||t)(l(s))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let r=t;return r})();var y=(()=>{let t=class t{constructor(e){this._scaleNomenclatureServiceApi=e}getAllScaleNomenclature(e){return this._scaleNomenclatureServiceApi.getAll(e).pipe(o(1))}editScaleNomenclature(e){return this._scaleNomenclatureServiceApi.edit(e).pipe(o(1))}getScaleNomenclatureByHotkey(e){let i={criteria:{filter:null,search:{name:null,barcode:null,hotKey:e,pluCode:null}},take:1,skip:0,orderBy:"id",isAscending:!0};return this._scaleNomenclatureServiceApi.getAll(i).pipe(n(c=>c.data))}getScaleNomenclatureByPluCode(e){let i={criteria:{filter:null,search:{name:null,barcode:null,hotKey:null,pluCode:e}},take:1,skip:0,orderBy:"id",isAscending:!0};return this._scaleNomenclatureServiceApi.getAll(i).pipe(n(c=>c.data))}};t.\u0275fac=function(i){return new(i||t)(l(u))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let r=t;return r})();export{u as a,y as b};
//# sourceMappingURL=chunk-LP5CYJBJ.js.map
