import{a as m}from"./chunk-TQHYVBKB.js";import{t as p,u as s}from"./chunk-3WWEFG5Z.js";import{m as u}from"./chunk-OWZ5YAMH.js";import{S as o,fa as c,la as a,pa as r}from"./chunk-ISMRT7VU.js";var g=(()=>{class i{constructor(t,e){this._unitServiceApi=t,this._store=e}getUnits(){return this._unitServiceApi.getUnits().pipe(c(t=>this._store.dispatch(new p({units:t}))),o(1))}syncUnit(){return this._unitServiceApi.suncUnit()}isWeight(t){return this._store.selectSignal(s.units)().find(n=>n.id===t)?.hasWeight??!1}unitName(t){return this._store.selectSignal(s.units)().find(n=>n.id===t)?.name??"\u0448\u0442"}static{this.\u0275fac=function(e){return new(e||i)(r(m),r(u))}}static{this.\u0275prov=a({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();export{g as a};
//# sourceMappingURL=chunk-ZPV2H4CY.js.map
