import{a as s}from"./chunk-KFDEPCY3.js";import{f as o}from"./chunk-GYAYEJFB.js";import{L as n,ea as i,ka as a,r as c}from"./chunk-LEOKSAW2.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};
