import{s as v}from"./chunk-PMIZVEYT.js";import{a as H}from"./chunk-MJV6N5M3.js";import{Ab as S,Bb as h,Ca as T,Ga as d,Lb as N,Ma as O,Mb as L,Ng as w,Ra as A,Xa as R,aa as c,db as E,fa as P,ga as r,ha as l,ic as y,mb as a,nb as p,ob as u,sa as s,sb as C,wb as g,xb as f,yb as D}from"./chunk-WVVK4EBY.js";import{i as m}from"./chunk-LV2JZWXA.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="\u0625\u063A\u0644\u0627\u0642 \u0647\u0630\u0627 \u0627\u0644\u0645\u0648\u062F\u0644";let e;e="\u0625\u063A\u0644\u0627\u0642";let _;return _="\u0627\u062F\u0639\u0645 "+"\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:b046b42d3b2db5c4a6153f28081b96130c38e9218feb7118271ff63b274934c4*///# sourceMappingURL=chunk-Z4QQJN4T.js.map