import{D as L}from"./chunk-H56GXXGB.js";import{Eb as x,Fb as _,Gb as M,Ha as p,Ne as R,Oe as S,Qb as T,Qc as v,Rb as a,Sa as f,Sb as y,Za as u,ga as d,gb as h,lc as C,mb as k,nb as g,ob as w,pb as o,pc as E,qb as r,ta as c}from"./chunk-YAKH5Q6V.js";import{i as m}from"./chunk-DM5LJ7VI.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 F=(()=>{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(S);return;}}createMarkdownList(n){let i={emphasis:"Emphasis: *text*",link:"Links: [title](https://example.com)",newline:"\u062E\u0637\u0648\u0637 \u062C\u062F\u06CC\u062F",list:"\u0644\u06CC\u0633\u062A\u200C\u0647\u0627",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&&(_(),u(0,N,9,0,"ng-template",null,0,C),o(2,"span",1),M(3),r()),i&2){let b=T(1);p(2),h("ngbPopover",b);}},dependencies:[v,L],styles:[`.root[_ngcontent-%COMP%]{cursor:help}
/*# sourceMappingURL=markdown-hint.component-RCASLA6S.css.map */`]}));let e=t;return e;})();export{F as a};/**i18n:197837fef124041a3f31333a5ea4afa44db030645e23ee7031f32704e8696a1d*///# sourceMappingURL=chunk-J7GKVHKJ.js.map