import{u as y}from"./chunk-K6U64Q72.js";import{a as H}from"./chunk-KZ26MFAT.js";import{Aa as c,Bb as f,Jb as N,Ka as g,Kb as h,Qa as O,aa as p,eb as A,fa as r,fb as a,ga as l,gb as m,hb as s,hi as w,oa as P,qc as v,rb as R,vb as E,wa as T,wb as C,xb as D,yc as S,zb as u,zc as L}from"./chunk-R4Z6ZI3L.js";import{i as d}from"./chunk-P6NJDXIL.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="Chiudi questa finestra";let e;e="Chiudi";let _;return _="Supporto "+"\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:138e9aba5923606215625ab5641fbdc103d8a34cfe13ae910386f40f27aea675*///# sourceMappingURL=chunk-VYFP724A.js.map