import{a as s}from"./chunk-NHAEOK7K.js";import{x as o}from"./chunk-OIJW4GMG.js";import{J as n,ca as i,ia as a,r as c}from"./chunk-3FIHWXA5.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};
