import{a as f}from"./chunk-7WWMJJCX.js";import{n as m,o}from"./chunk-ZGNWQ25U.js";import{o as p}from"./chunk-M6NTKB7A.js";import{$ as a,K as c,ga as u,la as s}from"./chunk-I3FGJX2C.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-5GLAE4J2.js.map
