import{i as M}from"./chunk-REIN2YD7.js";import{A as y,Ca as B,Ka as c,La as u,N as f,Q as s,T as b,V as d,Y as l,Yc as v,_ as g,eb as h,ga as I,gb as k,gd as T,h as S,hd as C,id as D,l as x,p as a,ra as m,tb as o,ub as p,vc as F,wc as L,ya as j}from"./chunk-JVZYLTZ6.js";var O=(()=>{class e{constructor(){this.laddarSubject=new S(!1)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var H=(()=>{class e{constructor(n,r,i){this.indexService=n,this.studentService=r,this.linkService=i,this.studentsIspLankar$=this.studentService.aktuelltStudentUid$.pipe(s(t=>this.ispLankarForStudent(t)),b(t=>console.log("Orginal ispLankarForStudent ",t)),f(1)),this.harEnIndividuellStudieplan$=this.studentsIspLankar$.pipe(a(t=>this.linkService.findByRel(t,v.isp.studieplaner,"GET")),y(t=>!!t),s(t=>this.linkService.foljLank(t)),a(t=>t.StudieplanOversikt),a(t=>t!=null&&t.length>0),f(1))}ispLankarForStudent(n){return this.indexService.ispIndex$.pipe(s(r=>{let i=this.linkService.findByRel(r,v.isp.index,"GET");if(i){let t=this.linkService.skapaL\u00E4nk(i.uri.replace("{studentuid}",n),i.method,i.mediaType);return this.linkService.foljLank(t).pipe(a($=>$.link))}else return x([])}))}static{this.\u0275fac=function(r){return new(r||e)(l(C),l(D),l(T))}}static{this.\u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var V=(()=>{class e extends L{static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=I(e)))(i||e)}})()}static{this.\u0275cmp=g({type:e,selectors:[["ladok-osparade-uppgifter"]],features:[j],decls:9,vars:12,consts:[[3,"labelOkText","labelAvbrytText"],[1,"ladok-modal-header"],[1,"ladok-modal-body"]],template:function(r,i){r&1&&(c(0,"ladok-bekrafta-modal",0),o(1,"i18n"),o(2,"i18n"),c(3,"span",1),h(4),o(5,"i18n"),u(),c(6,"div",2),h(7),o(8,"i18n"),u()()),r&2&&(B("labelOkText",p(1,4,i.texter.osparade_uppgifter.ok))("labelAvbrytText",p(2,6,i.texter.osparade_uppgifter.avbryt)),m(4),k(" ",p(5,8,i.texter.osparade_uppgifter.rubrik)," "),m(3),k(" ",p(8,10,i.texter.osparade_uppgifter.innehall)," "))},dependencies:[M,F],changeDetection:0})}}return e})();export{H as a,O as b,V as c};