1import{e as m}from"./chunk-V5UNYABO.js";import{f as a}from"./chunk-JI5SUK7K.js";import{P as s,T as r,Xd as c,Yd as n,da as o,dh as h,jd as f}from"./chunk-SCIFG7YC.js";var T=(()=>{class e{constructor(){this.dynamicTariffService=r(f),this.authService=r(a),this.objectSelectionService=r(m),this.currentTariff=o(mkNone()),this.fetchTariffs=()=>{if(!this.authService.isLoggedIn())return;let i=this.objectSelectionService.selectedObjects();isUndefined(i)||i.length===0||this.dynamicTariffService.getDynamicTariff({leistkats:i[0].leistkats,group:h.Power}).subscribe(t=>{t.length>0&&this.currentTariff.set(mkSome(t[0]))})},this.objectSelectionService.objektDevicesChanged.pipe(c()).subscribe(this.fetchTariffs),this.objectSelectionService.objektIdsChanged.pipe(c()).subscribe(this.fetchTariffs),n(this.authService.isLoggedIn).pipe(c()).subscribe(()=>this.fetchTariffs()),this.fetchTariffs()}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275prov=s({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();export{T as a};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.