import{r as v}from"./chunk-YLQIMX27.js";import{a as w}from"./chunk-NIY7P74G.js";import{$a as R,Ba as P,Db as D,Eb as h,Fa as m,Fb as N,Ga as d,La as T,Sa as O,bc as L,gg as y,ha as M,ia as l,ib as c,ja as a,jb as s,kb as u,ob as A,sb as E,tb as C,ub as f,wb as S,xb as g}from"./chunk-4JM6MIZ5.js";import{i as p}from"./chunk-QJQRWPYR.js";var H=["modal"];function $(o,n){if(o&1){let i=A();c(0,"div",2)(1,"h4",3),E(2,1),s(),c(3,"button",4),S("click",function(){let e=l(i).close;return a(e());}),u(4,"my-global-icon",5),s()(),u(5,"div",6),c(6,"div",7)(7,"input",8),S("click",function(){let e=l(i).close;return a(e());})("key.enter",function(){let e=l(i).close;return a(e());}),s()();}if(o&2){let i=g();m(2),C(i.name),f(2),m(3),R("innerHTML",i.htmlSupport,P);}}var U=(()=>{let n=class n{markdownService;modalService;name;content;modal;htmlSupport="";constructor(t,e){this.markdownService=t,this.modalService=e;}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});}};p(n,"\u0275fac",function(e){return new(e||n)(d(y),d(v));}),p(n,"\u0275cmp",T({type:n,selectors:[["my-support-modal"]],viewQuery:function(e,r){if(e&1&&D(H,7),e&2){let _;h(_=N())&&(r.modal=_.first);}},inputs:{name:"name",content:"content"},features:[M],decls:2,vars:0,consts:()=>{let t;t="Close this modal";let e;e="o weka";let r;return r="o pana e pona tawa \""+"\uFFFD0\uFFFD"+"\"",[["modal",""],r,[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,r){e&1&&O(0,$,8,2,"ng-template",null,0,L);},dependencies:[w],encapsulation:2}));let o=n;return o;})();export{U as a};/**i18n:68865f44f2a527c44cf5136a17c76a0ff8308c2bae5c7c8d50070a5fb9847c44*///# sourceMappingURL=chunk-CQS4Y77V.js.map