import{D as S}from"./chunk-SIHEBH6V.js";import{Cb as x,Db as M,Eb as _,Ha as p,Ob as T,Pb as a,Qb as y,Sa as f,Tc as v,We as R,Xe as L,Ya as u,eb as h,ga as d,kb as k,lb as g,mb as w,nb as o,nc as C,ob as r,sc as E,ta as c}from"./chunk-EWB56PWF.js";import{i as m}from"./chunk-2T7OYDCL.js";var $=["*"];function z(e,t){if(e&1&&(o(0,"li"),a(1),r()),e&2){let s=t.$implicit;p(),y(s);}}function N(e,t){if(e&1&&(a(0," Supported markdown formats: "),o(1,"ul"),g(2,z,2,1,"li",null,k),o(4,"li")(5,"a",2),a(6,"Mastodon verification link"),r()()(),o(7,"a",3),a(8,"Learn more about Markdown"),r()),e&2){let s=x();p(2),w(s.markdownRules);}}var H=(()=>{let t=class t{helpType=c.required();supportRelMe=c(!1,{transform:E});markdownRules=[];ngOnInit(){this.init();}ngOnChanges(){this.init();}init(){let n=this.helpType();if(n==="markdownText"){this.markdownRules=this.createMarkdownList(R);return;}if(n==="markdownEnhanced"){this.markdownRules=this.createMarkdownList(L);return;}}createMarkdownList(n){let i={emphasis:"Emphasis: *text*",link:"Links: [title](https://example.com)",newline:"New lines",list:"Lista",image:"Images: ![description](https://example.com/image.png)"};return n.map(l=>i[l]).filter(l=>!!l);}};m(t,"\u0275fac",function(i){return new(i||t)();}),m(t,"\u0275cmp",f({type:t,selectors:[["my-markdown-hint"]],inputs:{helpType:[1,"helpType"],supportRelMe:[1,"supportRelMe"]},features:[d],ngContentSelectors:$,decls:4,vars:1,consts:[["tooltipTemplate",""],[1,"root","fake-link",3,"ngbPopover"],["href","https://docs.joinmastodon.org/user/profile/#verification","target","_blank","rel","noopener noreferrer"],["href","https://wikipedia.org/wiki/Markdown#Example","target","_blank","rel","noopener noreferrer",1,"pt"]],template:function(i,l){if(i&1&&(M(),u(0,N,9,0,"ng-template",null,0,C),o(2,"span",1),_(3),r()),i&2){let b=T(1);p(2),h("ngbPopover",b);}},dependencies:[v,S],styles:[`.root[_ngcontent-%COMP%]{cursor:help}
/*# sourceMappingURL=markdown-hint.component-MC74J34G.css.map */`]}));let e=t;return e;})();export{H as a};/**i18n:85d030b7fdd36d163c6d41dcef9178681a6baa573eb199e8b12fe27dbb057a98*///# sourceMappingURL=chunk-ZE653MYA.js.map