import{N as o,V as u,Y as r,Yc as d,gd as l,id as s,l as m,r as a}from"./chunk-JVZYLTZ6.js";var g=(()=>{class t{constructor(e,i){this.studentSerivce=e,this.linkService=i,this.fakturor$=this.studentSerivce.aktuellAhStudent$.pipe(a(c=>{let n=this.linkService.findByRel(c,d.avgiftshantering.faktura,"GET");return n?this.linkService.foljLank(n):m({})}),o(1))}betaldMedUndantag(e){return!!e.RegleradDatum&&!!e.HarBeslutUndantag}betaldMedEndastStipendium(e){return!!e.RegleradDatum&&Number(e.StipendiumSumma)>0&&Number(e.StipendiumSumma)>=Number(e.Belopp)}betaltMedInbetalningarOchStipendium(e){return!!e.RegleradDatum&&Number(e.StipendiumSumma)>0&&Number(e.BetaldSumma)>0}static{this.\u0275fac=function(i){return new(i||t)(r(s),r(l))}}static{this.\u0275prov=u({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();export{g as a};