import{r as v}from"./chunk-5FJ7S7BS.js";import{a as H}from"./chunk-A62DV3ZS.js";import{Ab as f,Bb as D,Da as T,Db as S,Eb as h,Ha as d,Na as O,Ob as N,Pb as L,Sa as A,Za as R,ba as c,ga as P,gb as E,ha as r,ia as l,lc as y,pb as a,qb as p,rb as u,ta as s,ug as w,vb as C,zb as g}from"./chunk-OX24XL2F.js";import{i as m}from"./chunk-FQ4ILEWG.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="Mdel";let _;return _="Tallalt n "+"\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:93ef1b86561141301263c1f349fa8abb749523958c3a6dfaf46ed36d22b0a506*///# sourceMappingURL=chunk-XOGEYBDK.js.map