import{r as y}from"./chunk-CKNOD7HV.js";import{a as H}from"./chunk-ZJ7WKAH3.js";import{Ab as N,Da as m,Ea as d,Lb as L,Oa as O,Wa as R,Zb as v,ba as M,db as c,eb as p,fb as u,jb as A,ka as P,la as a,ma as s,mg as w,nb as E,ob as C,pb as f,rb as S,sb as g,yb as D,za as T,zb as h}from"./chunk-QXV2GR6R.js";import{i as n}from"./chunk-JJ4RDTEF.js";var $=["modal"];function k(i,o){if(i&1){let r=A();c(0,"div",2)(1,"h4",3),E(2,1),p(),c(3,"button",4),S("click",function(){let e=a(r).close;return s(e());}),u(4,"my-global-icon",5),p()(),u(5,"div",6),c(6,"div",7)(7,"input",8),S("click",function(){let e=a(r).close;return s(e());})("key.enter",function(){let e=a(r).close;return s(e());}),p()();}if(i&2){let r=g();m(2),C(r.name),f(2),m(3),R("innerHTML",r.htmlSupport,T);}}var x=(()=>{let o=class o{constructor(t,e){n(this,"markdownService");n(this,"modalService");n(this,"name");n(this,"content");n(this,"modal");n(this,"htmlSupport","");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});}};n(o,"\u0275fac",function(e){return new(e||o)(d(w),d(y));}),n(o,"\u0275cmp",M({type:o,selectors:[["my-support-modal"]],viewQuery:function(e,_){if(e&1&&D($,7),e&2){let l;h(l=N())&&(_.modal=l.first);}},inputs:{name:"name",content:"content"},standalone:!0,features:[P,L],decls:2,vars:0,consts:()=>{let t;t="Close this modal";let e;e="\u0628\u0633\u062A\u0646";let _;return _="\u067E\u0634\u062A\u06CC\u0628\u0627\u0646\u06CC \u0627\u0632 "+"\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,k,8,2,"ng-template",null,0,v);},dependencies:[H],encapsulation:2}));let i=o;return i;})();export{x as a};/**i18n:224bcada6943fe8b17ea60808c2d370cec9507c3bd670ebe71692d099a3befa1*///# sourceMappingURL=chunk-KZQ763SW.js.map