import{s as v}from"./chunk-SIHEBH6V.js";import{a as H}from"./chunk-IM5O2N5E.js";import{Bb as S,Cb as h,Da as T,Ha as d,Mb as N,Na as O,Nb as L,Sa as A,Ya as R,Yh as w,aa as c,eb as E,ga as P,ha as r,ia as l,nb as a,nc as y,ob as p,pb as u,ta as s,tb as C,xb as g,yb as f,zb as D}from"./chunk-EWB56PWF.js";import{i as m}from"./chunk-2T7OYDCL.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="\u3053\u306E\u30E2\u30FC\u30C0\u30EB\u30A6\u30A3\u30F3\u30C9\u30A6\u3092\u9589\u3058\u308B";let e;e="\u9589\u3058\u308B";let _;return _=""+"\uFFFD0\uFFFD"+"\u3092\u5FDC\u63F4\u3059\u308B",[["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:85d030b7fdd36d163c6d41dcef9178681a6baa573eb199e8b12fe27dbb057a98*///# sourceMappingURL=chunk-NDM6PBTR.js.map