import{s as v}from"./chunk-V6J7QVDD.js";import{a as H}from"./chunk-QYZO4RSP.js";import{Ab as D,Cb as S,Da as T,Db as h,Ha as d,Na as O,Nb as N,Ob as L,Sa as A,Xh as w,Ya as R,aa as c,eb as E,ga as P,ha as r,ia as l,ob as a,oc as y,pb as p,qb as u,ta as s,ub as C,yb as g,zb as f}from"./chunk-GKQGDBUU.js";import{i as m}from"./chunk-QVFSZZWQ.js";var $=["modal"];function k(o,n){if(o&1){let i=C();a(0,"div",2)(1,"h4",3),g(2,1),p(),a(3,"button",4),S("click",function(){let e=r(i).close;return l(e());}),u(4,"my-global-icon",5),p()(),u(5,"div",6),a(6,"div",7)(7,"input",8),S("click",function(){let e=r(i).close;return l(e());})("key.enter",function(){let e=r(i).close;return l(e());}),p()();}if(o&2){let i=h();d(2),f(i.name()),D(2),d(3),E("innerHTML",i.htmlSupport,T);}}var V=(()=>{let n=class n{markdownService=c(w);modalService=c(v);name=s.required();content=s.required();modal=O("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});}};m(n,"\u0275fac",function(e){return new(e||n)();}),m(n,"\u0275cmp",A({type:n,selectors:[["my-support-modal"]],viewQuery:function(e,_){e&1&&N(_.modal,$,5),e&2&&L();},inputs:{name:[1,"name"],content:[1,"content"]},features:[P],decls:2,vars:0,consts:()=>{let t;t="Close this modal";let e;e="Tampar";let _;return _="Support "+"\uFFFD0\uFFFD"+"",[["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&&R(0,k,8,2,"ng-template",null,0,y);},dependencies:[H],encapsulation:2}));let o=n;return o;})();export{V as a};/**i18n:42345378061bf3c93df67acfa161b751a7b03cc91f3ede7c1f1cdf2bba62fe26*///# sourceMappingURL=chunk-IIP5GZAO.js.map