import{a as f}from"./chunk-O5KTKJCH.js";import{n as m,o}from"./chunk-DQKXTCBX.js";import{o as u}from"./chunk-AEEDSABA.js";import{J as c,_ as a,fa as p,ka as r}from"./chunk-4HRPSKID.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-SSTH2PMG.js.map
