import{Bn as Ow,Br as Ux,Eo as kb,Fo as l$,Go as m5,Gr as Va,Ia as f$,Is as rh,J as EI,Ls as rx,Uo as m$,Wa as g,Yi as bI,Za as gx,_s as ph,ci as Xc,ec as th,ga as ci,it as FB,rc as u$,s as $x,u as AV,vc as wp,vr as She}from"./chunk-B_pj7Jpm.js";import{t as X1}from"./chunk-CgIzqGPc.js";import{O as sr}from"./chunk-CR0lnyBO.js";var b=[`modal`];function w(i,n){if(i&1){let e=AV();wp(0,`div`,2)(1,`h4`,3),l$(2,1),kb(),wp(3,`button`,4),rh(`click`,function(){let o=EI(e).close;return bI(o())}),th(4,`my-global-icon`,5),kb()(),th(5,`div`,6),wp(6,`div`,7)(7,`input`,8),rh(`click`,function(){let o=EI(e).close;return bI(o())})(`key.enter`,function(){let o=EI(e).close;return bI(o())}),kb()()}if(i&2){let e=f$();FB(2),Ux(e.name()),u$(2),FB(3),gx(`innerHTML`,e.htmlSupport,Ow)}}var L=class i{markdownService=g(Xc);modalService=g(sr);name=ph.required();content=ph.required();modal=She(`modal`);htmlSupport=``;ngOnChanges(){this.markdownService.enhancedMarkdownToHTML({markdown:this.content(),withEmoji:!0,withHtml:!0}).then(n=>this.htmlSupport=n)}show(){return this.modalService.open(this.modal(),{centered:!0})}static ɵfac=function(e){return new(e||i)};static ɵcmp=Va({type:i,selectors:[[`my-support-modal`]],viewQuery:function(e,t){e&1&&$x(t.modal,b,5),e&2&&m$()},inputs:{name:[1,`name`],content:[1,`content`]},features:[ci],decls:2,vars:0,consts:()=>{let n;n="Close this modal";let e;e="بستن";let t;return t=`پشتیبانی از ${`�0�`}`,[[`modal`,``],t,[1,`modal-header`],[1,`modal-title`],[`title`,n,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,t){e&1&&rx(0,w,8,2,`ng-template`,null,0,m5)},dependencies:[X1],encapsulation:2,changeDetection:1})};export{L as t};
//# debugId=c09046fd-99c6-5ab0-870d-43153a4a5e4c
//# sourceMappingURL=chunk-C7SW0vOU.js.map