import{Ao as jx,Br as T$,Ja as g,Jn as Nhe,Ki as _5,Kt as Hw,Nr as S$,Ns as rh,So as jV,V as CI,Wi as _$,X as D$,Xo as lx,Zs as th,_s as ph,bi as Xc,et as DI,gt as Ex,hi as Wx,k as Bb,n as $B,s as $a,ya as ci,yc as wp}from"./chunk-b0nJCs5_.js";import{t as X1}from"./chunk-CDRFWLLW.js";import{O as sr}from"./chunk-DcB590Yc.js";var b=[`modal`];function w(i,n){if(i&1){let e=jV();wp(0,`div`,2)(1,`h4`,3),S$(2,1),Bb(),wp(3,`button`,4),rh(`click`,function(){let o=CI(e).close;return DI(o())}),th(4,`my-global-icon`,5),Bb()(),th(5,`div`,6),wp(6,`div`,7)(7,`input`,8),rh(`click`,function(){let o=CI(e).close;return DI(o())})(`key.enter`,function(){let o=CI(e).close;return DI(o())}),Bb()()}if(i&2){let e=D$();$B(2),jx(e.name()),T$(2),$B(3),Ex(`innerHTML`,e.htmlSupport,Hw)}}var L=class i{markdownService=g(Xc);modalService=g(sr);name=ph.required();content=ph.required();modal=Nhe(`modal`);htmlSupport=``;ngOnChanges(){this.markdownService.enhancedMarkdownToHTML({markdown:this.content(),withEmoji:!0,withHtml:!0}).then(n=>this.htmlSupport=n)}show(){return this.modalService.open(this.modal(),{centered:!0})}static ɵfac=function(e){return new(e||i)};static ɵcmp=$a({type:i,selectors:[[`my-support-modal`]],viewQuery:function(e,t){e&1&&Wx(t.modal,b,5),e&2&&_$()},inputs:{name:[1,`name`],content:[1,`content`]},features:[ci],decls:2,vars:0,consts:()=>{let n;n="Close this modal";let e;e="Dùin";let t;return t=`Thoir taic dha ${`�0�`}`,[[`modal`,``],t,[1,`modal-header`],[1,`modal-title`],[`title`,n,1,`border-0`,`p-0`,3,`click`],[`iconName`,`cross`],[1,`modal-body`,3,`innerHTML`],[1,`modal-footer`,`inputs`],[`type`,`button`,`role`,`button`,`value`,e,1,`peertube-button`,`secondary-button`,3,`click`,`key.enter`]]},template:function(e,t){e&1&&lx(0,w,8,2,`ng-template`,null,0,_5)},dependencies:[X1],encapsulation:2,changeDetection:1})};export{L as t};
//# debugId=8b971bb0-f162-58de-8c32-181bda0670ee
//# sourceMappingURL=chunk-Daoi0dOp2.js.map