import{u as y}from"./chunk-TLVZZXDH.js";import{a as H}from"./chunk-RJPQLN64.js";import{Bb as u,Da as c,Db as f,La as g,Lb as N,Mb as h,Ra as O,aa as p,fa as r,ga as l,gb as A,hb as a,ib as m,jb as s,mi as w,ra as P,sc as v,tb as R,xb as E,xc as S,yb as C,yc as L,za as T,zb as D}from"./chunk-WSBGJRUM.js";import{i as d}from"./chunk-PMOLICDQ.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="\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&&O(0,b,8,2,"ng-template",null,0,v);},dependencies:[H],encapsulation:2}));let o=n;return o;})();export{V as a};/**i18n:3907c1bc44ea3b180445250ac6c616b106e81f719372623351dcd73c005dc65a*///# sourceMappingURL=chunk-PHHLGRKR.js.map