import{s as v}from"./chunk-V2M57NO3.js";import{a as H}from"./chunk-L4RULAQQ.js";import{Ab as f,Bb as D,Da as T,Db as S,Eb as h,Ha as d,Lg as w,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,vb as C,zb as g}from"./chunk-7W5IJG57.js";import{i as m}from"./chunk-RB5FWREQ.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="Lukk";let _;return _="St\xF8tt "+"\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:3558f4fa3a6acf6a8a484a0589828971efacd00f9f89386e64ec00a5fc269cc5*///# sourceMappingURL=chunk-WIR4DRTY.js.map