phanpy/assets/main-O03IOhxZ.js

23 lines
186 KiB
JavaScript
Raw Permalink Normal View History

import{s as k,a as B,b as Ae,u as En,c as me,o as ys,I as w,M as $e,d as ne,A as Qe,N as It,e as Fe,f as ze,L as ee,g as ot,h as Pn,l as ws,t as en,R as $t,i as vs,p as et,j as qe,k as Nn,m as Pt,E as Dn,n as Ue,q as Ke,r as Ss,v as Ie,w as tn,T as Un,x as ht,y as Fn,z as nn,B as ks,C as Is,D as On,F as _e,G as Ts,S as Le,H as Cs,J as $s,K as je,O as zn,P as Nt,Q as xs,U as ct,V as Bn,W as Re,X as Hn,Y as As,Z as Ls,_ as Ms,$ as gt,a0 as Rs,a1 as sn,a2 as _s,a3 as on,a4 as an}from"./useTitle-zvzl1Hla.js";import{_ as D,p as z,h as C,u as Me,w as Be,a as e,b as ke,g as A,s as xt,c as qt,M as ie,d as Pe,e as rt,F as he,T as Ve,S as Es,I as lt,y as Ge,f as qn,l as cn,i as Vn,j as Gn,k as He,A as Ps,N as Ns,q as Ds,J as Us,C as jn,m as Yn,n as tt,o as Wn,r as Fs,t as Os,v as zs,x as pt,z as Kn,B as rn,D as Bs,R as Vt,E as Ce,H as Hs,G as qs}from"./vendor--8C7Txey.js";function at(t=()=>{},n=[]){const i=D(t);z(()=>{i.current=t},[n]),z(()=>{const o=()=>{const a=document.hidden||document.visibilityState==="hidden";i.current(!a)};return document.addEventListener("visibilitychange",o),()=>document.removeEventListener("visibilitychange",o)},[])}const Vs=1e3*3,Gs=15e3,js=Be(function({isLoggedIn:n}){const[i,o]=C(!0);at(o);const a=async(l,r,d)=>{var h;if(k.notificationsLast){const c=l.v1.notifications.list({limit:1,sinceId:k.notificationsLast.id}),{value:p}=await c.next();if(p!=null&&p.length)if(d)k.notificationsShowNew=!0;else{let f;try{const b=await l.v1.markers.fetch({timeline:"notifications"});f=(h=b==null?void 0:b.notifications)==null?void 0:h.lastReadId}catch{}f?k.notificationsShowNew=p[0].id!==f:k.notificationsShowNew=!0}}};z(()=>{let l,r;if(n&&i){const{masto:d,streaming:h,instance:c}=B();(async()=>{await a(d,c);let p=!1;h&&(r=setTimeout(()=>{(async()=>{try{p=!0,l=h.user.notification.subscribe();for await(const f of l){if(!l||!i)break;f.event==="notification"&&Ae(f.payload,c,{skipThreading:!0}),k.notificationsShowNew=!0}}catch{p=!1}p||(r=setInterval(()=>{a(d,c,!0)},Gs))})()},Vs))})()}return()=>{var d;(d=l==null?void 0:l.unsubscribe)==null||d.call(l),l=null,clearTimeout(r),clearInterval(r)}},[i,n]);const s=D(),u=()=>{s.current=Date.now(),fetch("./version.json").then(l=>l.json()).then(l=>{l&&(k.appVersion=l)}).catch(l=>{})};return En(u,i&&1e3*60*30),at(l=>{l&&(s.current?Date.now()-s.current>1e3*60*60&&u():u())}),Me("shift+alt+k",()=>{const l=k.settings.cloakMode;k.settings.cloakMode=!l,me({text:`Cloak mode ${l?"disabled":"enabled"}`})}),null});function Ys(){function t(n){n.shiftKey?ys()||(k.showCompose=!0):k.showCompose=!0}return Me("c, shift+c",t,{ignoreEventWhen:n=>!!document.querySelector("#modal-container > *")}),e("button",{type:"button",id:"compose-button",onClick:t,children:e(w,{icon:"quill",size:"xl",alt:"Compose"})})}const Ws=Be(function(){const n=ke(k);function i(){k.showKeyboardShortcutsHelp=!1}return Me("?, shift+?",o=>{k.showKeyboardShortcutsHelp=!0},{ignoreEventWhen:o=>!!document.querySelector("#modal-container > *")}),!!n.showKeyboardShortcutsHelp&&e($e,{class:"light",onClose:i,children:e("div",{id:"keyboard-shortcuts-help-container",class:"sheet",tabindex:"-1",children:[e("button",{type:"button",class:"sheet-close",onClick:i,children:e(w,{icon:"x"})}),e("header",{children:e("h2",{children:"Keyboard shortcuts"})}),e("main",{children:e("table",{children:[{action:"Keyboard shortcuts help",keys:e("kbd",{children:"?"})},{action:"Next post",keys:e("kbd",{children:"j"})},{action:"Previous post",keys:e("kbd",{children:"k"})},{action:"Skip carousel to next post",keys:e(A,{children:[e("kbd",{children:"Shift"})," + ",e("kbd",{children:"j"})]})},{action:"Skip carousel to previous post",keys:e(A,{children:[e("kbd",{children:"Shift"})," + ",e("kbd",{children:"k"})]})},{action:"Open post details",keys:e(A,{children:[e("kbd",{children:"Enter"})," or ",e("kbd",{children:"o"})]})},{action:e(A,{children:["Expand content warning or",e("br",{}),"toggle expanded/collapsed thread"]}),keys:e("kbd",{children:"x"})},{action:"Close post or dialogs",keys:e(A,{children:[e("kbd",{children:"Esc"})," or ",e("kbd",{children:"Backspace"})]})},{act
${de.daysSinceLastPost} day${de.daysSinceLastPost>1?"s":""}`:`
Last ${de.total} posts in the past year(s)
`}),e("div",{class:"posting-stats-bar",style:{"--originals-percentage":`${de.originals/de.total*100}%`,"--replies-percentage":`${(de.originals+de.replies)/de.total*100}%`}}),e("div",{class:"posting-stats-legends",children:[e("span",{class:"ib",children:[e("span",{class:"posting-stats-legend-item posting-stats-legend-item-originals"})," ","Original"]})," ",e("span",{class:"ib",children:[e("span",{class:"posting-stats-legend-item posting-stats-legend-item-replies"})," ","Replies"]})," ",e("span",{class:"ib",children:[e("span",{class:"posting-stats-legend-item posting-stats-legend-item-boosts"})," ","Boosts"]})]})]}):e("div",{class:"posting-stats",children:"Post stats unavailable."})})})}),e("div",{class:"account-metadata-box",children:e("div",{class:"shazam-container no-animation",hidden:!!de,children:e("div",{class:"shazam-container-inner",children:e("button",{type:"button",class:"posting-stats-button",disabled:H==="loading",onClick:()=>{xe()},children:[e("div",{class:`posting-stats-bar posting-stats-icon ${H==="loading"?"loading":""}`,style:{"--originals-percentage":"33%","--replies-percentage":"66%"}}),"View post stats"," "]})})})})]}),e("footer",{children:e(hi,{info:c,instance:o,authenticated:a,onRelationshipChange:Te})})]})]})}const ui=3;function hi({info:t,instance:n,authenticated:i,onRelationshipChange:o=()=>{}}){var we;if(!t)return null;const{masto:a,instance:s,authenticated:u}=B(),l=n===s,[r,d]=C("default"),[h,c]=C(null),{id:p,acct:f,url:b,username:g,locked:v,lastStatusAt:m,note:y,fields:S,moved:I}=t,T=D(p),{following:$,showingReblogs:L,notifying:F,followedBy:O,blocking:U,blockedBy:P,muting:M,mutingNotifications:E,requested:x,domainBlocking:N,endorsed:j,note:se}=h||{},[V,ye]=C(null),[ce,X]=C(!1);z(()=>{if(t){const Y=ne.session.get("currentAccount");let K;(async()=>{if(l&&i)K=p;else if(!l&&u){const pe=t.acct.includes("@");try{const ge=await a.v2.search.fetch({q:pe?t.acct:`${t.username}@${n}`,type:"accounts",limit:1,resolve:!0});ge.accounts.length&&(K=ge.accounts[0].id,ye(ge.accounts[0]))}catch{}}if(!K)return;if(Y===K){X(!0);return}if(T.current=K,I)return;d("loading");const ae=a.v1.accounts.relationships.fetch({id:[K]});try{const pe=await ae;if(d("default"),pe.length){const ge=pe[0];c(ge),o({relationship:ge,currentID:K})}}catch{d("error")}})()}},[t,i]),z(()=>{t&&ce&&Ss(t)},[t,ce]);const _=r==="loading",[W,te]=C(!1),[le,G]=C(!1),[oe,Q]=C(!1);return e(A,{children:[e("div",{class:"actions",children:[e("span",{children:[O?e("span",{class:"tag",children:"Follows you"}):m?e("small",{class:"insignificant",children:["Last post:"," ",e("span",{class:"ib",children:Ke(m,{hideTime:!0})})]}):e("span",{}),M&&e("span",{class:"tag danger",children:"Muted"}),U&&e("span",{class:"tag danger",children:"Blocked"})]})," ",e("span",{class:"buttons",children:[!!se&&e("button",{type:"button",class:"private-note-tag",title:"Private note",onClick:()=>{Q(!0)},dir:"auto",children:e("span",{children:se})}),e(Fe,{portal:{target:document.body},containerProps:{style:{zIndex:1001}},align:"center",position:"anchor",overflow:"auto",menuButton:e("button",{type:"button",title:"More",class:"plain",disabled:_,children:e(w,{icon:"more",size:"l",alt:"More"})}),children:[u&&!ce&&e(A,{children:[e(ie,{onClick:()=>{k.showCompose={draftStatus:{status:`@${(V==null?void 0:V.acct)||f} `}}},children:[e(w,{icon:"at"}),e("span",{children:["Mention @",g]})]}),e(ie,{onClick:()=>{te(!0)},children:[e(w,{icon:"translate"}),e("span",{children:"Translate bio"})]}),e(ie,{onClick:()=>{Q(!0)},children:[e(w,{icon:"pencil"}),e("span",{children:se?"Edit private note":"Add private note"})]}),$&&e(ie,{onClick:()=>{G(!0)},children:[e(w,{icon:"list"}),e("span",{children:"Add/remove from Lists"})]}),e(Pe,{})]}),e(ie,{href:b,target:"_blank",children:[e(w,{icon:"external"}),e("small",{class:"menu-double-lines",children:pi(b)})]}),e("div",{class:"menu-horizontal",children:[e(ie,{onClick:()=>{try{navigator.clipboard.writeText(b),me("Link copied")}catch{me("Unable to copy link")}},children:[e(w,{icon:"link"}),e("span",{children:"Copy"})]}),(navigator==null?void 0:navi
${tn(u)}`).join(`
`))||"",a=tn(t)+(o?`
${o}`:"");return e("div",{class:"sheet",children:[!!i&&e("button",{type:"button",class:"sheet-close",onClick:i,children:e(w,{icon:"x"})}),e("header",{children:e("h2",{children:"Translated Bio"})}),e("main",{children:[e("p",{style:{whiteSpace:"pre-wrap"},children:a}),e(Un,{forceTranslate:!0,text:a})]})]})}function gi({accountID:t,onClose:n}){const{masto:i}=B(),[o,a]=C("default"),[s,u]=C([]),[l,r]=C([]),[d,h]=xt(f=>f+1,0);z(()=>{a("loading"),(async()=>{try{const f=await i.v1.lists.list();f.sort((g,v)=>g.title.localeCompare(v.title));const b=await i.v1.accounts.$select(t).lists.list();u(f),r(b),a("default")}catch{a("error")}})()},[d]);const[c,p]=C(!1);return e("div",{class:"sheet",id:"list-add-remove-container",children:[!!n&&e("button",{type:"button",class:"sheet-close",onClick:n,children:e(w,{icon:"x"})}),e("header",{children:e("h2",{children:"Add/Remove from Lists"})}),e("main",{children:[s.length>0?e("ul",{class:"list-add-remove",children:s.map(f=>{const b=l.some(g=>g.id===f.id);return e("li",{children:e("button",{type:"button",class:`light ${b?"checked":""}`,disabled:o==="loading",onClick:()=>{a("loading"),(async()=>{try{b?await i.v1.lists.$select(f.id).accounts.remove({accountIds:[t]}):await i.v1.lists.$select(f.id).accounts.create({accountIds:[t]}),h()}catch{a("error"),alert(b?"Unable to remove from list.":"Unable to add to list.")}})()},children:[e(w,{icon:"check-circle"}),e("span",{children:f.title})]})})})}):o==="loading"?e("p",{class:"ui-state",children:e(Ie,{abrupt:!0})}):o==="error"?e("p",{class:"ui-state",children:"Unable to load lists."}):e("p",{class:"ui-state",children:"No lists."}),e("button",{type:"button",class:"plain2",onClick:()=>p(!0),disabled:o!=="default",children:[e(w,{icon:"plus",size:"l"})," ",e("span",{children:"New list"})]})]}),c&&e($e,{class:"light",onClick:f=>{f.target===f.currentTarget&&p(!1)},children:e(Yt,{list:c==null?void 0:c.list,onClose:f=>{f.state==="success"&&h(),p(!1)}})})]})}function bi({account:t,note:n,onRelationshipChange:i=()=>{},onClose:o=()=>{}}){const{masto:a}=B(),[s,u]=C("default"),l=D(null);return z(()=>{let r;return l.current&&!n&&(r=setTimeout(()=>{var d,h;(h=(d=l.current).focus)==null||h.call(d)},100)),()=>{clearTimeout(r)}},[]),e("div",{class:"sheet",id:"private-note-container",children:[!!o&&e("button",{type:"button",class:"sheet-close",onClick:o,children:e(w,{icon:"x"})}),e("header",{children:e("b",{children:["Private note about @",(t==null?void 0:t.username)||(t==null?void 0:t.acct)]})}),e("main",{children:e("form",{onSubmit:r=>{r.preventDefault();const h=new FormData(r.target).get("note");(h==null?void 0:h.trim())!==(n==null?void 0:n.trim())&&(u("loading"),(async()=>{try{const c=await a.v1.accounts.$select(t==null?void 0:t.id).note.create({comment:h});u("default"),i(c),o()}catch(c){u("error"),alert((c==null?void 0:c.message)||"Unable to update private note.")}})())},children:[e("textarea",{ref:l,name:"note",disabled:s==="loading",children:n}),e("footer",{children:[e("button",{type:"button",class:"light",disabled:s==="loading",onClick:()=>{o==null||o()},children:"Cancel"}),e("span",{children:[e(Ie,{abrupt:!0,hidden:s!=="loading"}),e("button",{disabled:s==="loading",type:"submit",children:"Save & close"})]})]})]})})]})}function yi({account:t,instance:n,onClose:i}){const{masto:o,instance:a,authenticated:s}=B({instance:n}),u=typeof t=="string";return z(()=>{u||(k.accounts[`${t.id}@${a}`]=t)},[t]),Jn(i),e("div",{class:"sheet",children:[!!i&&e("button",{type:"button",class:"sheet-close outer",onClick:i,children:e(w,{icon:"x"})}),e(Qn,{instance:a,authenticated:s,account:t,fetchAccount:async()=>{if(u)try{return await o.v1.accounts.lookup({acct:t,skip_webfinger:!1})}catch{const r=await o.v2.search.fetch({q:t,type:"accounts",limit:1,resolve:s});if(r.accounts.length)return r.accounts[0];if(/https?:\/\/[^/]+\/@/.test(t)){const h=new URL(t).pathname.replace(/^\//,""),c=await o.v2.search.fetch({q:h,type:"accounts",limit:1,resolve:s});if(c.accounts.length)return c.accounts[0]}}else return t}})]})}function wi({onClose:t}){const{masto:n}=B(),[i,o]=C("default"),[a,s]=C([]),[u,l]=x
rgba(${L==null?void 0:L.join(",")}, 0.4) ${O}%,
rgba(${L==null?void 0:L.join(",")}, 0.4) ${U}%
`:`
transparent ${O}%,
transparent ${U}%
`}))==null?void 0:$.join(", "))||"transparent"},[g]);let m=D(null);return z(()=>()=>{var I,T;(T=(I=m.current)==null?void 0:I.hideToast)==null||T.call(I)},[]),e("div",{class:`media-modal-container media-modal-count-${t==null?void 0:t.length}`,children:[e("div",{ref:r,tabIndex:"0","data-swipe-threshold":"44",class:"carousel",onClick:I=>{(I.target.classList.contains("carousel-item")||I.target.classList.contains("media")||I.target.classList.contains("media-zoom"))&&s()},style:t.length>1?{backgroundAttachment:"local",backgroundImage:`linear-gradient(
to right, ${v})`}:{},children:t==null?void 0:t.map((I,T)=>{const $=t.length===1?g[T]:null;return e("div",{class:"carousel-item",style:$?{"--accent-color":`rgb(${$==null?void 0:$.join(",")})`,"--accent-alpha-color":`rgba(${$==null?void 0:$.join(",")}, 0.4)`}:{},tabindex:"0",ref:T===d?c:null,onClick:L=>{L.target.classList.contains("media")||b(!f)},children:[!!I.description&&e("button",{type:"button",class:"media-alt",hidden:!f,onClick:()=>{k.showMediaAlt={alt:I.description,lang:o}},children:[e("span",{class:"alt-badge",children:"ALT"}),e("span",{class:"media-alt-desc",lang:o,dir:"auto",children:I.description})]}),e(On,{media:I,showOriginal:!0,lang:o})]},I.id)})}),e("div",{class:"carousel-top-controls",hidden:!f,children:[e("span",{children:e("button",{type:"button",class:"carousel-button",onClick:()=>s(),children:e(w,{icon:"x"})})}),(t==null?void 0:t.length)>1?e("span",{class:"carousel-dots",children:t==null?void 0:t.map((I,T)=>e("button",{type:"button",disabled:T===d,class:`carousel-dot ${T===d?"active":""}`,onClick:$=>{$.preventDefault(),$.stopPropagation(),r.current.scrollTo({left:r.current.clientWidth*T,behavior:"smooth"}),r.current.focus()},children:e(w,{icon:"round",size:"s"})},I.id))}):e("span",{}),e("span",{children:[e(Fe,{overflow:"auto",align:"end",position:"anchor",gap:4,menuClassName:"glass-menu",menuButton:e("button",{type:"button",class:"carousel-button",children:e(w,{icon:"more",alt:"More"})}),children:[e(_e,{href:((y=t[d])==null?void 0:y.remoteUrl)||((S=t[d])==null?void 0:S.url),class:"carousel-button",target:"_blank",title:"Open original media in new window",children:[e(w,{icon:"popout"}),e("span",{children:"Open original media"})]}),!1]})," ",e(ee,{to:`${i?`/${i}`:""}/s/${n}${window.matchMedia("(min-width: calc(40em + 350px))").matches?`?media=${d+1}`:""}`,class:"button carousel-button media-post-link",children:[e("span",{class:"button-label",children:"View post "}),"»"]})]})]}),(t==null?void 0:t.length)>1&&e("div",{class:"carousel-controls",hidden:!f,children:[e("button",{type:"button",class:"carousel-button",hidden:d===0,onClick:I=>{I.preventDefault(),I.stopPropagation(),r.current.focus(),r.current.scrollTo({left:r.current.clientWidth*(d-1),behavior:"smooth"})},children:e(w,{icon:"arrow-left"})}),e("button",{type:"button",class:"carousel-button",hidden:d===t.length-1,onClick:I=>{I.preventDefault(),I.stopPropagation(),r.current.focus(),r.current.scrollTo({left:r.current.clientWidth*(d+1),behavior:"smooth"})},children:e(w,{icon:"arrow-right"})})]})]})}const Ti="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2084%2062'%3e%3crect%20width='64'%20height='48'%20x='18'%20y='2'%20fill='%23fff'%20stroke='%23999'%20stroke-width='3'%20rx='4'/%3e%3crect%20width='32'%20height='48'%20x='2'%20y='12'%20fill='%23fff'%20stroke='%23999'%20stroke-width='3'%20rx='4'/%3e%3cpath%20fill='%234169E1'%20d='M14%2052a4%204%200%201%201-8%200%204%204%200%200%201%208%200Zm64-42a4%204%200%201%201-8%200%204%204%200%200%201%208%200Z'/%3e%3c/svg%3e",Ci="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2082%2062'%3e%3crect%20width='78'%20height='58'%20x='2'%20y='2'%20fill='%23999'%20fill-opacity='.3'%20stroke='%23999'%20stroke-width='3'%20rx='4'/%3e%3crect%20width='18'%20height='46'%20x='8'%20y='8'%20fill='%23fff'%20stroke='%23999'%20stroke-width='2'%20rx='1'/%3e%3crect%20width='18'%20height='46'%20x='32'%20y='8'%20fill='%23fff'%20stroke='%23999'%20stroke-width='2'%20rx='1'/%3e%3crect%20width='18'%20height='46'%20x='56'%20y='8'%20fill='%23fff'%20stroke='%23999'%20stroke-width='2'%20rx='1'/%3e%3c/svg%3e",$i="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2084%2062'%3e%3crect%20width='64'%20height='48'%20x='18'%20y='2'%20fill='%23fff'%20stroke='%23999'%20stroke-width='3'%20rx='4'/%3e%3cpath%20fill='%23999'%20fill-opacity='.3'%20d='M19%203h62v10H19z'/%3e%3cpath%20stroke='%234169E1'%20stroke-width='2'%20d='M43%208a2%202%200%201%201-4%200%202%202%200%200%201%204%200Z'/%3e%3cpath%20stroke='%23999
media-post
${ge?"filtered":""}
${de?"has-spoiler":""}
${H?"show-media":""}
`,children:e(On,{class:t,media:re,lang:x,to:`/${o}/s/${y}?media-only=${be+1}`,onClick:s?q=>s(q,be,re,i):void 0})},xe)})}const Sn=Be(Zi);function mt(t){var S,I,T,$,L;const n=ke(k),{masto:i,instance:o,authenticated:a}=B(),[s,u]=C(),[l,r]=C(!1);z(()=>{const F=ne.local.getJSON("accounts")||[],O=F.find(U=>U.info.id===ne.session.get("currentAccount"));O&&u(O),r(F.length>1)},[]);const d=(n.settings.shortcutsViewMode==="multi-column"||!n.settings.shortcutsViewMode&&n.settings.shortcutsColumnsMode)&&!n.shortcuts.find(F=>F.type==="following"),h=Us(()=>{k.showAccounts=!0},{threshold:600,detect:"touch",cancelOnMovement:!0}),c=D(),[p,f]=C(void 0),b=xs([0,0,n.settings.shortcutsViewMode==="tab-menu-bar"?50:0,0]),g=D();async function v(F){return(F||!g.current)&&(g.current=i.v1.mutes.list({limit:80})),await g.current.next()}const m=D();async function y(F){return(F||!m.current)&&(m.current=i.v1.blocks.list({limit:80})),await m.current.next()}return e(A,{children:[e("button",{ref:c,type:"button",class:`button plain nav-menu-button ${l?"with-avatar":""} ${open?"active":""}`,style:{position:"relative"},onClick:()=>{f(F=>F?void 0:"open")},onContextMenu:F=>{F.preventDefault(),k.showAccounts=!0},...h(),children:[l&&e(Qe,{url:((S=s==null?void 0:s.info)==null?void 0:S.avatar)||((I=s==null?void 0:s.info)==null?void 0:I.avatarStatic),size:"l",squircle:(T=s==null?void 0:s.info)==null?void 0:T.bot}),e(w,{icon:"menu",size:l?"s":"l"})]}),e(jn,{menuClassName:"nav-menu",state:p,anchorRef:c,onClose:()=>{f(void 0)},containerProps:{style:{zIndex:10},onClick:()=>{f(void 0)}},portal:{target:document.body},...t,overflow:"auto",viewScroll:"close",position:"anchor",align:"center",boundingBoxPadding:b,unmountOnClose:!0,children:[!!(($=n.appVersion)!=null&&$.commitHash)&&n.appVersion.commitHash!=="8aa0542"&&e("div",{class:"top-menu",children:[e(ie,{onClick:()=>{confirm("Reload page now to update?")&&(async()=>{try{location.reload()}catch{}})()},children:[e(w,{icon:"sparkles",class:"sparkle-icon",size:"l"})," ",e("span",{children:"New update available…"})]}),e(Pe,{})]}),e("section",{children:[e(_e,{to:"/",children:[e(w,{icon:"home",size:"l"})," ",e("span",{children:"Home"})]}),a&&e(A,{children:[d&&e(_e,{to:"/following",children:[e(w,{icon:"following",size:"l"})," ",e("span",{children:"Following"})]}),e(_e,{to:"/mentions",children:[e(w,{icon:"at",size:"l"})," ",e("span",{children:"Mentions"})]}),e(_e,{to:"/notifications",children:[e(w,{icon:"notification",size:"l"})," ",e("span",{children:"Notifications"}),n.notificationsShowNew&&e("sup",{title:"New",style:{opacity:.5},children:[" ","•"]})]}),e(Pe,{}),e(_e,{to:"/l",children:[e(w,{icon:"list",size:"l"})," ",e("span",{children:"Lists"})]}),e(_e,{to:"/ft",children:[e(w,{icon:"hashtag",size:"l"})," ",e("span",{children:"Followed Hashtags"})]}),e(_e,{to:"/b",children:[e(w,{icon:"bookmark",size:"l"})," ",e("span",{children:"Bookmarks"})]}),e(_e,{to:"/f",children:[e(w,{icon:"heart",size:"l"})," ",e("span",{children:"Likes"})]})]}),e(Pe,{}),e(_e,{to:"/search",children:[e(w,{icon:"search",size:"l"})," ",e("span",{children:"Search"})]}),e(_e,{to:`/${o}/p/l`,children:[e(w,{icon:"building",size:"l"})," ",e("span",{children:"Local"})]}),e(_e,{to:`/${o}/p`,children:[e(w,{icon:"earth",size:"l"})," ",e("span",{children:"Federated"})]}),e(_e,{to:`/${o}/trending`,children:[e(w,{icon:"chart",size:"l"})," ",e("span",{children:"Trending"})]})]}),e("section",{children:a?e(A,{children:[e(Pe,{}),((L=s==null?void 0:s.info)==null?void 0:L.id)&&e(_e,{to:`/${o}/a/${s.info.id}`,children:[e(w,{icon:"user",size:"l"})," ",e("span",{children:"Profile"})]}),e(ie,{onClick:()=>{k.showAccounts=!0},children:[e(w,{icon:"group",size:"l"})," ",e("span",{children:"Accounts…"})]}),e(ie,{onClick:()=>{k.showGenericAccounts={id:"mute",heading:"Muted users",fetchAccounts:v,excludeRelationshipAttrs:["muting"]}},children:[e(w,{icon:"mute",size:"l"})," Muted users…"]}),e(ie,{onClick:()=>{k.showGenericAccounts={id:"block",heading:"Blocked users",fetchAccounts:y,excludeRelationshipAttrs:["blocking"]}},children:[e(w,{icon:"block",size:"l"}),"Blocked u
//# sourceMappingURL=main-O03IOhxZ.js.map