import{a as s}from"./chunk-KXX3UDJ3.js";import{j as o}from"./chunk-GQAU5ACB.js";import{S as n,la as i,pa as a,x as c}from"./chunk-ISMRT7VU.js";var u=(()=>{class t{constructor(e){this._http=e}getAll(e){return this._http.post("/api/scale-nomenclature/all",e,{headers:s})}edit(e){return this._http.put("/api/scale-nomenclature",e)}static{this.\u0275fac=function(r){return new(r||t)(a(o))}}static{this.\u0275prov=i({token:t,factory:t.\u0275fac})}}return t})();var A=(()=>{class t{constructor(e){this._scaleNomenclatureServiceApi=e}getAllScaleNomenclature(e){return this._scaleNomenclatureServiceApi.getAll(e).pipe(n(1))}editScaleNomenclature(e){return this._scaleNomenclatureServiceApi.edit(e).pipe(n(1))}getScaleNomenclatureByHotkey(e){let r={criteria:{filter:null,search:{name:null,barcode:null,hotKey:e,pluCode:null}},take:1,skip:0,orderBy:"id",isAscending:!0};return this._scaleNomenclatureServiceApi.getAll(r).pipe(c(l=>l.data))}getScaleNomenclatureByPluCode(e){let r={criteria:{filter:null,search:{name:null,barcode:null,hotKey:null,pluCode:e}},take:1,skip:0,orderBy:"id",isAscending:!0};return this._scaleNomenclatureServiceApi.getAll(r).pipe(c(l=>l.data))}static{this.\u0275fac=function(r){return new(r||t)(a(u))}}static{this.\u0275prov=i({token:t,factory:t.\u0275fac})}}return t})();export{u as a,A as b};
//# sourceMappingURL=chunk-KY6KKU4N.js.map
