import{c as a,r as p,y as h,i as l,a as c,t as r,$ as e,a1 as d,u as s}from"./app-JmgyQoR0.js";import{X as g}from"./MkTutorialDialog-jfmweelM.js";import{r as u,c as t}from"./vue-y3KLWBaS.js";function b(o){var i,n;a([{text:(i=p.name)!=null?i:h,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(p.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()=>{c.set("tutorial",0),r(g,{},{},"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"}]}],(n=o.currentTarget)!=null?n:o.target)}const v=u({notifications:{title:"notifications",icon:"ph-bell ph-bold ph-lg",show:t(()=>e!=null),indicated:t(()=>{var o;return(o=e)==null?void 0:o.hasUnreadNotification}),to:"/my/notifications"},messaging:{title:"messaging",icon:"ph-chats-teardrop ph-bold ph-lg",show:t(()=>e!=null),indicated:t(()=>{var o;return(o=e)==null?void 0:o.hasUnreadMessagingMessage}),to:"/my/messaging"},drive:{title:"drive",icon:"ph-cloud ph-bold ph-lg",show:t(()=>e!=null),to:"/my/drive"},followRequests:{title:"followRequests",icon:"ph-hand-waving ph-bold ph-lg",show:t(()=>{var o,i;return((o=e)==null?void 0:o.isLocked)||((i=e)==null?void 0:i.hasPendingReceivedFollowRequest)}),indicated:t(()=>{var o;return(o=e)==null?void 0: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:t(()=>{var o;return(o=e)==null?void 0: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:t(()=>e!=null),to:"/my/lists"},antennas:{title:"antennas",icon:"ph-flying-saucer ph-bold ph-lg",show:t(()=>e!=null),to:"/my/antennas"},favorites:{title:"favorites",icon:"ph-bookmark-simple ph-bold ph-lg",show:t(()=>e!=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:t(()=>e!=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:o=>{d==="default"?(localStorage.setItem("ui","deck"),s()):(localStorage.setItem("ui","default"),s())}},help:{title:"help",icon:"ph-info ph-bold ph-lg",action:o=>{m(o)}},reload:{title:"reload",icon:"ph-arrows-clockwise ph-bold ph-lg",action:()=>{location.reload()}}});function m(o){b(o)}export{v as n};
