import{D as L}from"./chunk-V2M57NO3.js";import{Eb as x,Fb as T,Gb as _,Ha as p,Me as R,Ne as S,Qb as M,Qc as C,Rb as a,Sa as f,Sb as E,Za as u,ga as d,gb as h,lc as y,mb as k,nb as g,ob as w,pb as o,pc as v,qb as r,ta as c}from"./chunk-7W5IJG57.js";import{i as m}from"./chunk-RB5FWREQ.js";var $=["*"];function z(e,t){if(e&1&&(o(0,"li"),a(1),r()),e&2){let s=t.$implicit;p(),E(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:v});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(S);return;}}createMarkdownList(n){let i={emphasis:"Emphasis: *text*",link:"Links: [title](https://example.com)",newline:"tu e linja",list:"pana e sike lili lon open pi linja mute",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&&(T(),u(0,N,9,0,"ng-template",null,0,y),o(2,"span",1),_(3),r()),i&2){let b=M(1);p(2),h("ngbPopover",b);}},dependencies:[C,L],styles:[`.root[_ngcontent-%COMP%]{cursor:help}
/*# sourceMappingURL=markdown-hint.component-EW5FTVWS.css.map */`]}));let e=t;return e;})();export{H as a};/**i18n:3558f4fa3a6acf6a8a484a0589828971efacd00f9f89386e64ec00a5fc269cc5*///# sourceMappingURL=chunk-DRN2GOMC.js.map