import{f as p,c as i,h as s,b as l,v as a,a as h,ad as c,u as n,$ as o}from"./app-QjDgb7aF.js";import{X as d}from"./MkTutorialDialog-CFZyQ5Bw.js";import{r,f as e}from"./vue-Cm77DuTi.js";function g(t){p([{text:i.name??s,type:"label"},{type:"link",text:l.ts.instanceInfo,icon:"ph-info ph-bold ph-lg",to:"/about"},{type:"link",text:l.ts.aboutIceshrimp,icon:"ph-shrimp ph-bold ph-lg",to:"/about-iceshrimp"},{type:"button",text:l.ts.tos,icon:"ph-scroll ph-bold ph-lg",action:()=>{window.open(i.tosUrl,"_blank")}},{type:"button",text:l.ts.apps,icon:"ph-device-mobile ph-bold ph-lg",action:()=>{window.open("https://iceshrimp.dev/iceshrimp/iceshrimp/src/branch/dev/APPS.md","_blank")}},{type:"button",action:async()=>{a.set("tutorial",0),h(d,{},{},"closed")},text:l.ts.replayTutorial,icon:"ph-circle-wavy-question ph-bold ph-lg"},null,{type:"parent",text:l.ts.developer,icon:"ph-code ph-bold ph-lg",children:[{type:"link",to:"/api-console",text:"API Console",icon:"ph-terminal-window ph-bold ph-lg"},{text:l.ts.document,icon:"ph-file-doc ph-bold ph-lg",action:()=>{window.open("/api-doc","_blank")}},{type:"link",to:"/scratchpad",text:"AiScript Scratchpad",icon:"ph-scribble-loop ph-bold ph-lg"}]}],t.currentTarget??t.target)}const y=r({notifications:{title:"notifications",icon:"ph-bell ph-bold ph-lg",show:e(()=>o!=null),indicated:e(()=>o?.hasUnreadNotification),to:"/my/notifications"},messaging:{title:"messaging",icon:"ph-chats-teardrop ph-bold ph-lg",show:e(()=>o!=null),indicated:e(()=>o?.hasUnreadMessagingMessage),to:"/my/messaging"},drive:{title:"drive",icon:"ph-cloud ph-bold ph-lg",show:e(()=>o!=null),to:"/my/drive"},followRequests:{title:"followRequests",icon:"ph-hand-waving ph-bold ph-lg",show:e(()=>o?.isLocked||o?.hasPendingReceivedFollowRequest),indicated:e(()=>o?.hasPendingReceivedFollowRequest),to:"/my/follow-requests"},explore:{title:"explore",icon:"ph-hash ph-bold ph-lg",to:"/explore"},announcements:{title:"announcements",icon:"ph-megaphone-simple ph-bold ph-lg",indicated:e(()=>o?.hasUnreadAnnouncement),to:"/announcements"},search:{title:"search",icon:"ph-magnifying-glass ph-bold ph-lg",to:"/search"},lists:{title:"lists",icon:"ph-list-bullets ph-bold ph-lg",show:e(()=>o!=null),to:"/my/lists"},antennas:{title:"antennas",icon:"ph-flying-saucer ph-bold ph-lg",show:e(()=>o!=null),to:"/my/antennas"},favorites:{title:"favorites",icon:"ph-bookmark-simple ph-bold ph-lg",show:e(()=>o!=null),to:"/my/favorites"},pages:{title:"pages",icon:"ph-file-text ph-bold ph-lg",to:"/pages"},gallery:{title:"gallery",icon:"ph-image-square ph-bold ph-lg",to:"/gallery"},clips:{title:"clips",icon:"ph-paperclip ph-bold ph-lg",show:e(()=>o!=null),to:"/my/clips"},channels:{title:"channel",icon:"ph-television ph-bold ph-lg",to:"/channels"},groups:{title:"groups",icon:"ph-users-three ph-bold ph-lg",to:"/my/groups"},ui:{title:"switchUi",icon:"ph-layout ph-bold ph-lg",action:t=>{c==="default"?(localStorage.setItem("ui","deck"),n()):(localStorage.setItem("ui","default"),n())}},help:{title:"help",icon:"ph-info ph-bold ph-lg",action:t=>{u(t)}},reload:{title:"reload",icon:"ph-arrows-clockwise ph-bold ph-lg",action:()=>{location.reload()}}});function u(t){g(t)}export{y as n};
//# sourceMappingURL=navbar-D_XQl0kT.js.map
