import{D as S}from"./chunk-6B2INHH4.js";import{Bb as x,Cb as M,Db as _,Ga as p,Nb as T,Nc as v,Ne as R,Ob as a,Oe as L,Pb as y,Ra as f,Xa as u,db as h,fa as d,ic as C,jb as k,kb as g,lb as w,mb as o,nb as r,nc as E,sa as c}from"./chunk-IDYB4NXF.js";import{i as m}from"./chunk-AI7IVZV2.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:"\u5F3A\u8C03: *\u6587\u672C*",link:"\u94FE\u63A5: [\u6807\u9898](https://example.com)",newline:"\u6362\u884C",list:"\u5217\u8868",image:"\u56FE\u7247: ![\u63CF\u8FF0](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:1cf7c077143c4c267fdafbe5508f191afcef21bad6aba22a3a8dc180e1003753*///# sourceMappingURL=chunk-43PBW7A5.js.map