import{F as D}from"./chunk-FLBT2JX3.js";import{a as E}from"./chunk-CR4K7T5L.js";import{Da as a,Ec as p,Hb as C,Jb as m,Kb as w,Lb as k,Mc as P,Na as _,Tb as y,Ua as M,Yb as x,Zb as H,cb as T,gb as c,hb as u,mb as s,mf as L,nb as h,nf as S,ob as g,pb as f,ra as v,xc as N,za as b}from"./chunk-ZSQR4KTU.js";import{i as d}from"./chunk-IQVXR75E.js";var z=["*"];function O(e,o){if(e&1&&(h(0,"strong",3),x(1),g()),e&2){let r=m(2);a(),H(r.helpTitle());}}function R(e,o){if(e&1&&f(0,"p",4),e&2){let r=m(2);s("innerHTML",r.markdownHTML,b);}}function $(e,o){if(e&1&&(c(0,O,2,1,"strong",3),c(1,R,1,1,"p",4),k(2)),e&2){let r=m();u(r.helpTitle()?0:-1),a(),u(r.markdownHTML?1:-1);}}var K=(()=>{let o=class o{helpTitle=p("");helpType=p("custom");iconName=p("help");supportRelMe=p(!1,{transform:P});title=p("S\xFAg\xF3");tooltipPlacement=p("right auto");autoClose=p("outside");container=p(void 0);isPopoverOpened=!1;markdownHTML="";ngOnInit(){this.init();}ngOnChanges(){this.init();}onPopoverHidden(){this.isPopoverOpened=!1;}onPopoverShown(){this.isPopoverOpened=!0;}init(){let l=this.helpType();if(l==="markdownText"){this.markdownHTML=this.formatMarkdownSupport(L);return;}if(l==="markdownEnhanced"){this.markdownHTML=this.formatMarkdownSupport(S);return;}}formatMarkdownSupport(l){let t="<a href=\"https://en.wikipedia.org/wiki/Markdown#Example\" target=\"_blank\" rel=\"noopener noreferrer\">Markdown</a>-kompatibilis, \xE9s a k\xF6vetkez\u0151ket t\xE1mogatja:"+this.createMarkdownList(l);return this.supportRelMe()&&(t+="<a href=\"https://docs.joinmastodon.org/user/profile/#verification\" target=\"_blank\" rel=\"noopener noreferrer\">Mastodon verification link</a> is also supported."),t;}createMarkdownList(l){let t={emphasis:"Kiemel\xE9s",link:"Hivatkoz\xE1sok",newline:"\xDAj sorok",list:"List\xE1k",image:"K\xE9pek"};return"<ul>"+l.map(i=>t[i]).filter(i=>i).map(i=>"<li>"+i+"</li>").join("")+"</ul>";}};d(o,"\u0275fac",function(t){return new(t||o)();}),d(o,"\u0275cmp",_({type:o,selectors:[["my-help"]],inputs:{helpTitle:[1,"helpTitle"],helpType:[1,"helpType"],iconName:[1,"iconName"],supportRelMe:[1,"supportRelMe"],title:[1,"title"],tooltipPlacement:[1,"tooltipPlacement"],autoClose:[1,"autoClose"],container:[1,"container"]},features:[v],ngContentSelectors:z,decls:4,vars:7,consts:[["tooltipTemplate",""],["popoverClass","help-popover","type","button",1,"help-tooltip-button","p-0","border-0","mx-1",3,"onHidden","onShown","title","ngbPopover","placement","autoClose","container"],[3,"iconName"],[1,"help-title"],[3,"innerHTML"]],template:function(t,n){if(t&1&&(w(),M(0,$,3,2,"ng-template",null,0,N),h(2,"button",1),C("onHidden",function(){return n.onPopoverHidden();})("onShown",function(){return n.onPopoverShown();}),f(3,"my-global-icon",2),g()),t&2){let i=y(1);a(2),s("title",n.title())("ngbPopover",i)("placement",n.tooltipPlacement())("autoClose",n.autoClose())("container",n.container()),T("aria-pressed",n.isPopoverOpened),a(),s("iconName",n.iconName());}},dependencies:[D,E],styles:[`.help-tooltip-button[_ngcontent-%COMP%]   my-global-icon[_ngcontent-%COMP%]{color:var(--fg-400);display:inline-block;width:18px;height:18px;line-height:18px}  .help-popover{border:0;min-width:200px;max-width:300px}  .help-popover .popover-body{padding:1rem;border-radius:14px}  .help-popover .popover-body .help-title{display:block;margin-bottom:.5rem;font-size:1.25rem}  .help-popover .popover-body p{margin-bottom:0}  .help-popover .popover-body ul{margin-bottom:0;padding-inline-start:1.25rem}
/*# sourceMappingURL=help.component-YO44KHTK.css.map */`]}));let e=o;return e;})();export{K as a};/**i18n:347eeb695970c32bc275618edc2e751c67145d9fc3012e70543c114a99b9e016*///# sourceMappingURL=chunk-WXHFMTIX.js.map