1import{F as L}from"./chunk-UME7L37K.js";import{a as O}from"./chunk-R76LZEZS.js";import{Ca as r,Dc as i,Gb as C,Ib as s,Jb as T,Kb as M,Lc as H,Ma as v,Sb as w,Ta as y,Xb as k,Yb as N,bb as _,fb as d,gb as c,lb as p,lf as P,mb as u,mf as D,nb as h,ob as g,qa as b,wc as x,ya as f}from"./chunk-HVCWS4IF.js";import{j as m}from"./chunk-KJ7W2O2B.js";var E=["*"];function z(a,o){if(a&1&&(u(0,"strong",3),k(1),h()),a&2){let e=s(2);r(),N(e.helpTitle());}}function I(a,o){if(a&1&&g(0,"p",4),a&2){let e=s(2);p("innerHTML",e.markdownHTML,f);}}function R(a,o){if(a&1&&(d(0,z,2,1,"strong",3),d(1,I,1,1,"p",4),M(2)),a&2){let e=s();c(e.helpTitle()?0:-1),r(),c(e.markdownHTML?1:-1);}}var l=class l{helpTitle=i("");helpType=i("custom");iconName=i("help");supportRelMe=i(!1,{transform:H});title=i("Get help");tooltipPlacement=i("right auto");autoClose=i("outside");container=i(void 0);isPopoverOpened=!1;markdownHTML="";ngOnInit(){this.init();}ngOnChanges(){this.init();}onPopoverHidden(){this.isPopoverOpened=!1;}onPopoverShown(){this.isPopoverOpened=!0;}init(){let o=this.helpType();if(o==="markdownText"){this.markdownHTML=this.formatMarkdownSupport(P);return;}if(o==="markdownEnhanced"){this.markdownHTML=this.formatMarkdownSupport(D);return;}}formatMarkdownSupport(o){let e="<a href=\"https://en.wikipedia.org/wiki/Markdown#Example\" target=\"_blank\" rel=\"noopener noreferrer\">Markdown</a> compatible that supports:"+this.createMarkdownList(o);return this.supportRelMe()&&(e+="<a href=\"https://docs.joinmastodon.org/user/profile/#verification\" target=\"_blank\" rel=\"noopener noreferrer\">Mastodon verification link</a> is also supported."),e;}createMarkdownList(o){let e={emphasis:"Emphasis",link:"Links",newline:"New lines",list:"Lists",image:"Images"};return"<ul>"+o.map(n=>e[n]).filter(n=>n).map(n=>"<li>"+n+"</li>").join("")+"</ul>";}};m(l,"\u0275fac",function(e){return new(e||l)();}),m(l,"\u0275cmp",v({type:l,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:[b],ngContentSelectors:E,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(e,t){if(e&1&&(T(),y(0,R,3,2,"ng-template",null,0,x),u(2,"button",1),C("onHidden",function(){return t.onPopoverHidden();})("onShown",function(){return t.onPopoverShown();}),g(3,"my-global-icon",2),h()),e&2){let n=w(1);r(2),p("title",t.title())("ngbPopover",n)("placement",t.tooltipPlacement())("autoClose",t.autoClose())("container",t.container()),_("aria-pressed",t.isPopoverOpened),r(),p("iconName",t.iconName());}},dependencies:[L,O],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;
1min-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}"]}));var S=l;export{S as a};/**i18n:347eeb695970c32bc275618edc2e751c67145d9fc3012e70543c114a99b9e016*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.