// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-3.0-or-later
// @source: https://gitlab.com/soapbox-pub/ditto/-/tree/f0a3877c
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{$ as t,Ai as n,C as r,Di as i,Dr as a,Dt as ee,Fn as te,Gr as ne,Jr as re,Jt as ie,Kt as o,Mt as ae,Ni as oe,Or as s,Ot as c,P as se,Pt as l,Q as u,Rr as ce,Si as le,St as ue,Ti as de,Ui as fe,Ut as d,V as f,Wn as p,Zr as m,Zt as h,an as g,bt as _,cn as v,dr as y,en as b,er as x,et as S,gi as C,gt as w,ir as T,ki as E,m as D,on as O,pi as k,pt as A,qi as j,r as M,ui as N,vr as P,wi as pe,xi as F,xt as I}from"./lucide-icons-BdRF0moN.js";import{t as L}from"./jsx-runtime-By8HlURe.js";import{o as R}from"./react-intl-eZirkCBg.js";import{t as z}from"./WikipediaIcon-Dvm9f9D4.js";import{t as B}from"./BlueskyIcon-BZ9o1lYL.js";var V=e(j(),1),H=L(),U=V.forwardRef(({className:e,...t},n)=>(0,H.jsx)(`svg`,{ref:n,xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`currentColor`,stroke:`none`,className:e,...t,children:(0,H.jsx)(`path`,{d:`M11.19,2.25C10.93,2.25 10.67,2.31 10.42,2.4L3.06,5.45C2.04,5.87 1.55,7.04 1.97,8.05L6.93,20C7.24,20.77 7.97,21.23 8.74,21.25C9,21.25 9.27,21.22 9.53,21.1L16.9,18.05C17.65,17.74 18.11,17 18.13,16.25C18.14,16 18.09,15.71 18,15.45L13,3.5C12.71,2.73 11.97,2.26 11.19,2.25M14.67,2.25L18.12,10.6V4.25A2,2 0 0,0 16.12,2.25M20.13,3.79V12.82L22.56,6.96C22.97,5.94 22.5,4.78 21.47,4.36M11.19,4.22L16.17,16.24L8.78,19.3L3.8,7.29`})}));U.displayName=`CardsIcon`;var W=V.forwardRef(({className:e,strokeWidth:t=2,...n},r)=>(0,H.jsxs)(`svg`,{ref:r,xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t,strokeLinecap:`round`,strokeLinejoin:`round`,className:e,...n,children:[(0,H.jsx)(`path`,{d:`M8 19a2 2 0 0 0 2-2V9a4 4 0 0 0-8 0v8a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a4 4 0 0 0-4-4H6`}),(0,H.jsx)(`path`,{d:`M2 11h20`}),(0,H.jsx)(`path`,{d:`M16 11v3`})]}));W.displayName=`ChestIcon`;var G=V.forwardRef(({className:e,strokeWidth:t=2,...n},r)=>(0,H.jsxs)(`svg`,{ref:r,xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t,strokeLinecap:`round`,strokeLinejoin:`round`,className:e,...n,children:[(0,H.jsx)(`circle`,{cx:`12`,cy:`12`,r:`8`}),(0,H.jsx)(`path`,{d:`M4.05 13c-1.7 1.8-2.5 3.5-1.8 4.5c1.1 1.9 6.4 1 11.8-2s8.9-7.1 7.7-9c-.6-1-2.4-1.2-4.7-.7`})]}));G.displayName=`PlanetIcon`;var K=V.forwardRef(({className:e,strokeWidth:t=2,...n},r)=>(0,H.jsxs)(`svg`,{ref:r,xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t,strokeLinecap:`round`,strokeLinejoin:`round`,className:e,...n,children:[(0,H.jsx)(`path`,{d:`M20 5.5A4 4 0 0 1 22 9v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a4 4 0 0 1 8 0v8a2 2 0 0 1-2 2M6 5h4`}),(0,H.jsx)(`path`,{d:`M14 9V5h2v1h-2`})]}));K.displayName=`MailboxIcon`;var q=`divider`;function me(e){return e===q}function J(e){return e.startsWith(`nostr:`)}function Y(e){return e.startsWith(`nsite://`)}function he(e){return e.slice(8)}function X(e){return e.startsWith(`nostr:`)?e.slice(6):e}function Z(e){return e.startsWith(`https://`)||e.startsWith(`http://`)||e.startsWith(`iso3166:`)||e.startsWith(`isbn:`)}var ge=[`yours`,`app`,`social`,`media`,`reading`,`fun`,`personalize`,`tools`],Q=[{id:`feed`,label:`Feed`,path:`/feed`,icon:G,section:`app`},{id:`notifications`,label:`Notifications`,path:`/notifications`,icon:n,requiresAuth:!0,section:`yours`},{id:`search`,label:`Search`,path:`/search`,icon:_,section:`app`},{id:`trends`,label:`Trends`,path:`/trends`,icon:se,section:`app`},{id:`bookmarks`,label:`Bookmarks`,path:`/bookmarks`,icon:le,requiresAuth:!0,section:`yours`},{id:`profile`,label:`Profile`,path:`/profile`,icon:r,requiresAuth:!0,section:`yours`},{id:`lists`,label:`Lists`,path:`/lists`,icon:ue,requiresAuth:!0,section:`yours`},{id:`settings`,label:`Settings`,path:`/settings`,icon:w,section:`app`},{id:`wallet`,label:`Wallet`,path:`/wallet`,icon:D,requiresAuth:!0,section:`yours`},{id:`changelog`,label:`Changelog`,path:`/changelog`,icon:I,section:`app`},{id:`letters`,label:`Letters`,path:`/letters`,icon:K,requiresAuth:!0,section:`social`},{id:`ai-chat`,label:`AI Chat`,path:`/ai-chat`,icon:F,requiresAuth:!0,section:`tools`},{id:`blobbi`,label:`Blobbi`,path:`/blobbi`,icon:a,requiresAuth:!0,section:`fun`},{id:`help`,label:`Help`,path:`/help`,icon:m,section:`app`},{id:`events`,label:`Events`,path:`/events`,icon:C,section:`social`},{id:`photos`,label:`Photos`,path:`/photos`,icon:k,section:`media`},{id:`videos`,label:`Videos`,path:`/videos`,icon:y,section:`media`},{id:`articles`,label:`Articles`,path:`/articles`,icon:pe,section:`reading`},{id:`highlights`,label:`Highlights`,path:`/highlights`,icon:ae,section:`reading`},{id:`books`,label:`Books`,path:`/books`,icon:de,section:`reading`},{id:`vines`,label:`Shorts`,path:`/shorts`,icon:re,section:`media`},{id:`music`,label:`Music`,path:`/music`,icon:h,section:`media`},{id:`podcasts`,label:`Podcasts`,path:`/podcasts`,icon:l,section:`media`},{id:`webxdc`,label:`Webxdc`,path:`/webxdc`,icon:i,section:`tools`},{id:`themes`,label:`Themes`,path:`/themes`,icon:u,section:`personalize`},{id:`polls`,label:`Polls`,path:`/polls`,icon:N,section:`social`},{id:`packs`,label:`Follow Packs`,path:`/packs`,icon:d,section:`social`},{id:`colors`,label:`Color Moments`,path:`/colors`,icon:o,section:`fun`},{id:`decks`,label:`Magic Decks`,path:`/decks`,icon:U,section:`fun`},{id:`tarot`,label:`Tarot`,path:`/tarot`,icon:b,section:`fun`},{id:`treasures`,label:`Treasures`,path:`/treasures`,icon:W,section:`fun`},{id:`quizzes`,label:`Quizzes`,path:`/quizzes`,icon:ne,section:`fun`},{id:`cards`,label:`Memory Cards`,path:`/memory-cards`,icon:T,section:`fun`},{id:`emojis`,label:`Emojis`,path:`/emojis`,icon:S,section:`personalize`},{id:`development`,label:`Development`,path:`/development`,icon:ce,section:`tools`},{id:`badges`,label:`Badges`,path:`/badges`,icon:oe,section:`fun`},{id:`world`,label:`World`,path:`/world`,icon:s,section:`social`},{id:`archive`,label:`Archive`,path:`/archive`,icon:fe,section:`reading`},{id:`wikipedia`,label:`Wikipedia`,path:`/wikipedia`,icon:z,section:`reading`},{id:`bluesky`,label:`Bluesky`,path:`/bluesky`,icon:B,section:`social`}],_e=new Set(Q.map(e=>e.id)),$=new Map(Q.map(e=>[e.id,e])),ve={posts:O,comments:v,reposts:c,"generic-reposts":c,reactions:S,zaps:M,voice:g,"custom-emojis":t,statuses:S,"bird-detections":E,constellations:u,"custom-nips":P,nsites:ee,zapstore:ie,"app-handlers":i,vanish:x,"love-lists":te,campaigns:p,attestations:A,"classified-listings":f,...Object.fromEntries(Q.filter(e=>e.icon).map(e=>[e.id,e.icon]))};function ye(e){return $.get(e)}function be(e,t=`size-6`){return(0,H.jsx)($.get(e)?.icon??o,{className:t})}function xe(e){let t=R(),n=$.get(e)?.label;return n?t.formatMessage({id:`nav.${e}`,defaultMessage:n}):e}function Se(e,t,n){return e===`profile`&&t?t:n&&e===n?`/`:$.get(e)?.path??`/${e}`}function Ce(e){let t=e.trim().toLowerCase();if(t.length===0)return[];let n=[],r=[];for(let e of Q){let i=e.label.toLowerCase();i.startsWith(t)?n.push(e):i.split(/\s+/).some(e=>e.startsWith(t))&&r.push(e)}return[...n,...r]}function we(e,t,n,r,i){if(J(e))return t===`/${X(e)}`;if(Y(e))return!1;if(Z(e))return t===`/i/${encodeURIComponent(e)}`||t===`/i/${e}`;if(e===`profile`)return!!r&&t===r;if(e===`settings`)return t.startsWith(`/settings`);let a=$.get(e)?.path??`/${e}`;return i&&e===i&&t===`/`||t===a}export{xe as _,ge as a,U as b,we as c,me as d,Se as f,be as g,Ce as h,_e as i,J as l,he as m,q as n,ye as o,X as p,Q as r,Z as s,ve as t,Y as u,K as v,W as y};
// @license-end
