import{la as $}from"./chunk-REIN2YD7.js";import{$ as g,Aa as l,Ca as i,Ib as I,Jb as P,Ka as a,La as c,Na as b,Oa as v,Ob as w,Qa as y,Rc as T,Sa as C,Ta as h,W as s,_ as f,ea as _,eb as S,fa as u,fb as x,ra as d,sa as k,tb as p,ub as m,vc as D,wc as M,ya as F,yc as B}from"./chunk-JVZYLTZ6.js";function E(e,o){if(e&1){let t=y();a(0,"ladok-alert",4),C("stang",function(){let r=_(t).$implicit,N=h(2);return u(N.taBortFelmeddelande(r))}),a(1,"span",5),S(2),p(3,"i18n"),c()()}if(e&2){let t=o.$implicit;i("typ","alert-danger")("stangbar",!0),d(2),x(m(3,3,t))}}function O(e,o){if(e&1&&(b(0),a(1,"div",1)(2,"div",2),l(3,E,4,5,"ladok-alert",3),c()(),v()),e&2){let t=o.ngIf;d(3),i("ngForOf",t)}}var G=(()=>{class e extends M{constructor(t){super(),this.feedbackService=t,this.felmeddelanden$=this.feedbackService.felmeddelanden$}taBortFelmeddelande(t){this.feedbackService.taBortFelmeddelande(t)}static{this.\u0275fac=function(n){return new(n||e)(k(T))}}static{this.\u0275cmp=f({type:e,selectors:[["ladok-feedback-panel"]],features:[F],decls:2,vars:3,consts:[[4,"ngIf"],[1,"row","mt-2"],[1,"col-12"],[3,"typ","stangbar","stang",4,"ngFor","ngForOf"],[3,"stang","typ","stangbar"],[1,"ladok-alert-content"]],template:function(n,r){n&1&&(l(0,O,4,1,"ng-container",0),p(1,"async")),n&2&&i("ngIf",m(1,1,r.felmeddelanden$))},dependencies:[I,P,B,w,D],encapsulation:2,changeDetection:0})}}return e})();var R=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=g({type:e})}static{this.\u0275inj=s({imports:[$]})}}return e})();export{G as a,R as b};