import{a as f}from"./chunk-7WWMJJCX.js";import{n as m,o}from"./chunk-KU6XVD6U.js";import{p as u}from"./chunk-7WGMNLRJ.js";import{$ as a,K as c,ga as p,la as r}from"./chunk-I3FGJX2C.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-OADXDN3T.js.map
