import{a as s}from"./chunk-YO44C22F.js";import{f as o}from"./chunk-6VC7H3CZ.js";import{K as n,da as i,ja as a,r as c}from"./chunk-QMYHTLAJ.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};
