import{g,aB as vg,r as rr,K as qp,x as xpe,b as Pa,T as Tr,ad as ti,w as w0,p as px,c as IV,F as F2,s as sp,v as vV,d as lb,e as Fp,f as Pp,G as GI,z as zI,S as SV,W as WB,n as cx,E as EV,a3 as H0,I as I$,au as iw}from'./main-DEZ5cZzu.js';var y=["modal"];function w(o,H){if(o&1){let e=F2();sp(0,"div",2)(1,"h4",3),vV(2,1),lb(),sp(3,"button",4),Fp("click",function(){let n=GI(e).close;return zI(n());}),Pp(4,"my-global-icon",5),lb()(),Pp(5,"div",6),sp(6,"div",7)(7,"input",8),Fp("click",function(){let n=GI(e).close;return zI(n());})("key.enter",function(){let n=GI(e).close;return zI(n());}),lb()();}if(o&2){let e=SV();WB(2),cx(e.name()),EV(2),WB(3),H0("innerHTML",e.htmlSupport,iw);}}var G=(()=>{class o{markdownService=g(vg);modalService=g(rr);name=qp.required();content=qp.required();modal=xpe("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&&px(n.modal,y,5),t&2&&IV();},inputs:{name:[1,"name"],content:[1,"content"]},features:[ti],decls:2,vars:0,consts:()=>{let e;e="weka e poki toki ni";let t;t="o weka";let n;return n="o pana e pona tawa \""+"\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&&w0(0,w,8,2,"ng-template",null,0,I$);},dependencies:[Tr],encapsulation:2,changeDetection:1});}return o;})();/**i18n:c8855ca17fb20171aa9dd43d012e42547cb1f0cfd9c21d4dc05679bbbdf5ccb8*/export{G};//# sourceMappingURL=chunk-YC9S0pL5.js.map