import{u as y}from"./chunk-FLBT2JX3.js";import{a as H}from"./chunk-CR4K7T5L.js";import{Da as c,Db as E,Eb as C,Ec as S,Fb as D,Fc as L,Hb as u,Jb as f,Mh as w,Na as g,Rb as N,Sb as h,Ua as O,ba as p,ga as r,ha as l,mb as A,nb as a,ob as m,pb as s,ra as P,xc as v,za as T,zb as R}from"./chunk-ZSQR4KTU.js";import{i as d}from"./chunk-IQVXR75E.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="Pechar a emerxente";let e;e="Pechar";let _;return _="Axuda a "+"\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&&O(0,b,8,2,"ng-template",null,0,v);},dependencies:[H],encapsulation:2}));let o=n;return o;})();export{V as a};/**i18n:347eeb695970c32bc275618edc2e751c67145d9fc3012e70543c114a99b9e016*///# sourceMappingURL=chunk-XUTEGA5M.js.map