import{u as y}from"./chunk-YIKPDULQ.js";import{a as H}from"./chunk-XTZ2Q6VE.js";import{Bb as u,Da as c,Db as f,La as g,Lb as N,Mb as h,Ra as O,aa as p,fa as r,ga as l,gb as A,hb as a,ib as m,jb as s,mi as w,ra as P,sc as v,tb as R,xb as E,xc as S,yb as C,yc as L,za as T,zb as D}from"./chunk-HJJWL6RD.js";import{i as d}from"./chunk-H2BCKOF6.js";var $=["modal"];function b(o,n){if(o&1){let i=R();a(0,"div",2)(1,"h4",3),E(2,1),m(),a(3,"button",4),u("click",function(){let e=r(i).close;return l(e());}),s(4,"my-global-icon",5),m()(),s(5,"div",6),a(6,"div",7)(7,"input",8),u("click",function(){let e=r(i).close;return l(e());})("key.enter",function(){let e=r(i).close;return l(e());}),m()();}if(o&2){let i=f();c(2),C(i.name()),D(2),c(3),A("innerHTML",i.htmlSupport,T);}}var V=(()=>{let n=class n{markdownService=p(w);modalService=p(y);name=S.required();content=S.required();modal=L("modal");htmlSupport="";ngOnChanges(){this.markdownService.enhancedMarkdownToHTML({markdown:this.content(),withEmoji:!0,withHtml:!0}).then(t=>this.htmlSupport=t);}show(){return this.modalService.open(this.modal(),{centered:!0});}};d(n,"\u0275fac",function(e){return new(e||n)();}),d(n,"\u0275cmp",g({type:n,selectors:[["my-support-modal"]],viewQuery:function(e,_){e&1&&N(_.modal,$,5),e&2&&h();},inputs:{name:[1,"name"],content:[1,"content"]},features:[P],decls:2,vars:0,consts:()=>{let t;t="Itxi laster-leiho hau";let e;e="Itxi";let _;return _="Lagundu "+"\uFFFD0\uFFFD"+" erabiltzaileari",[["modal",""],_,[1,"modal-header"],[1,"modal-title"],["title",t,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,_){e&1&&O(0,b,8,2,"ng-template",null,0,v);},dependencies:[H],encapsulation:2}));let o=n;return o;})();export{V as a};/**i18n:671d995daee9c68b73ac729b7ab2c3cf3be32c7f1a24d9dfa94e261c45ee5241*///# sourceMappingURL=chunk-V3ZZNADA.js.map