import{a as f}from"./chunk-CNLLUIKN.js";import{o as m,p as o}from"./chunk-YICJB6GR.js";import{o as u}from"./chunk-GW2OL5S3.js";import{I as c,Z as a,ea as p,ja as r}from"./chunk-DYUFV4HF.js";var j=(()=>{let i=class i{constructor(t,e){this._unitServiceApi=t,this._store=e}getUnits(){return this._unitServiceApi.getUnits().pipe(a(t=>this._store.dispatch(new m({units:t}))),c(1))}syncUnit(){return this._unitServiceApi.suncUnit()}isWeight(t){return this._store.selectSnapshot(o.units).find(s=>s.id===t)?.hasWeight??!1}unitName(t){return this._store.selectSnapshot(o.units).find(s=>s.id===t)?.name??"\u0448\u0442"}};i.\u0275fac=function(e){return new(e||i)(r(f),r(u))},i.\u0275prov=p({token:i,factory:i.\u0275fac});let n=i;return n})();export{j as a};
//# sourceMappingURL=chunk-OCRIYW6Z.js.map
