import{a as p}from"./chunk-JUPKAJPM.js";import{i as s}from"./chunk-Z2AWIQRI.js";import{L as o,ia as a,na as l,q as n}from"./chunk-C2QKZJOP.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-RQ2TONIG.js.map
