import{a as f}from"./chunk-SB6MPPMF.js";import{t as m,u as o}from"./chunk-O5FUBBHI.js";import{p}from"./chunk-JBWPPKX4.js";import{$ as a,K as c,fa as u,ka as s}from"./chunk-PVUKHE45.js";var v=(()=>{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.selectSignal(o.units)().find(r=>r.id===t)?.hasWeight??!1}unitName(t){return this._store.selectSignal(o.units)().find(r=>r.id===t)?.name??"\u0448\u0442"}};i.\u0275fac=function(e){return new(e||i)(s(f),s(p))},i.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"});let n=i;return n})();export{v as a};
//# sourceMappingURL=chunk-56RFQ7NA.js.map
