import{g,aB as yg,r as rr,L as qp,w as wpe,b as Pa,T as Tr,ad as ti,_ as _0,f as fx,c as DV,k as k2,s as sp,y as yV,u as ub,F as Fp,e as Pp,d as $I,G as GI,o as bV,z as zB,v as ax,x as vV,a3 as B0,D as D$,au as ow}from'./main-BiUBeaMj.js';var y=["modal"];function w(o,H){if(o&1){let e=k2();sp(0,"div",2)(1,"h4",3),yV(2,1),ub(),sp(3,"button",4),Fp("click",function(){let n=$I(e).close;return GI(n());}),Pp(4,"my-global-icon",5),ub()(),Pp(5,"div",6),sp(6,"div",7)(7,"input",8),Fp("click",function(){let n=$I(e).close;return GI(n());})("key.enter",function(){let n=$I(e).close;return GI(n());}),ub()();}if(o&2){let e=bV();zB(2),ax(e.name()),vV(2),zB(3),B0("innerHTML",e.htmlSupport,ow);}}var G=(()=>{class o{markdownService=g(yg);modalService=g(rr);name=qp.required();content=qp.required();modal=wpe("modal");htmlSupport="";ngOnChanges(){this.markdownService.enhancedMarkdownToHTML({markdown:this.content(),withEmoji:true,withHtml:true}).then(e=>this.htmlSupport=e);}show(){return this.modalService.open(this.modal(),{centered:true});}static ɵfac=function(t){return new(t||o)();};static ɵcmp=Pa({type:o,selectors:[["my-support-modal"]],viewQuery:function(t,n){t&1&&fx(n.modal,y,5),t&2&&DV();},inputs:{name:[1,"name"],content:[1,"content"]},features:[ti],decls:2,vars:0,consts:()=>{let e;e="St\xE4ng dialogrutan";let t;t="St\xE4ng";let n;return n="St\xF6d "+"\uFFFD0\uFFFD"+"",[["modal",""],n,[1,"modal-header"],[1,"modal-title"],["title",e,1,"border-0","p-0",3,"click"],["iconName","cross"],[1,"modal-body",3,"innerHTML"],[1,"modal-footer","inputs"],["type","button","role","button","value",t,1,"peertube-button","secondary-button",3,"click","key.enter"]];},template:function(t,n){t&1&&_0(0,w,8,2,"ng-template",null,0,D$);},dependencies:[Tr],encapsulation:2,changeDetection:1});}return o;})();/**i18n:fad79908930cbb4c308e7550a5fe49bb3841dbb330066a6429aebaa006173605*/export{G};//# sourceMappingURL=chunk-CREea9f0.js.map