import{$ as l,l as i,k as o,c as s,a0 as f}from"./PrefsViewStore-B9QxYjkz.js";import"./sentry-common-2nFGZClv.js";import{e as c}from"./index-F0fMEJXd.js";import{bg as w,bh as k,bi as y,aL as m}from"./App-CSvRzCsn.js";import{D as E}from"./load-stores-Dcoe61kP.js";import"./main-process-state-jW3BbbTQ.js";import"./index-jPDAJ20a.js";import"./index-CZYymlJf.js";import"./report-dialog-DCdDPy0Y.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"4.2.860"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="91f9bc8d-90aa-402c-8cab-87c4a91cb805",e._sentryDebugIdIdentifier="sentry-dbid-91f9bc8d-90aa-402c-8cab-87c4a91cb805")})()}catch{}const A={role:"windowMenu",submenu:[{role:"zoom"},{role:"minimize"},{role:"front"}]};function N(e){const a=[{role:"toggleDevTools",visible:!1},{label:"Report a Problem",accelerator:l.REPORT_A_PROBLEM.key,click:()=>e.focusedWSS?.setVisibleModal(i.REPORT_PROBLEM)},{label:"Open Beeper Help",click:w},{type:"separator"},{label:"Open Beeper.com",click:k},{label:"Follow @Beeper on X",click:y},{type:"separator"},{label:"Changelog",click:()=>e.openChangelogWindow()},{label:"Privacy && Security",click:()=>e.openPrivacyWindow()},{label:"Keyboard Shortcuts",accelerator:l.TOGGLE_HOTKEYS_MODAL.key,click:()=>e.focusedWSS?.setVisibleModal(i.HOTKEYS,void 0,!1)}];e.beeperClientStore.loggedInUser&&a.push({type:"separator"},{label:`Logout of ${c.BRAND_NAME}...`,click:()=>e.beeperClientStore.logout()});const n=e.updateProgress.render,r=n===E?"Check for Updates…":n,t=[{label:`About ${c.APP_NAME}`,click:()=>e.focusedWSS?.openPrefs(o.PREFS_ABOUT)},{label:r,click:()=>e.autoUpdate.checkForUpdates()},{type:"separator"},...e.beeperClientStore.isAuthenticated?[{label:"Accounts…",click:()=>e.focusedWSS?.openPrefs(o.ACCOUNTS)},{label:"Preferences",click:()=>e.windowsStore.openPrefsInNewWindow(e.mainWSS),accelerator:l.TOGGLE_PREFS_PANE.key},{type:"separator"},{label:"Command Bar…",click:()=>e.focusedWSS?.cmdBarViewStore.showInNormalMode(),accelerator:l.TOGGLE_COMMAND_BAR.key},{label:"Search...",click:()=>e.focusedWSS?.cmdBarViewStore.showSearch(),accelerator:l.SEARCH.key}]:[],{type:"separator"},m.isTrayIconShown()&&{label:"Minimize to "+c.TRAY_NAME,accelerator:l.MINIMIZE_TO_TRAY.key,click:()=>{s.hideAllWindows()}},{type:"separator"},...e.touchIDSupported?[{label:"Lock App",click:()=>e.setAppUnlocked(!1)}]:[],{label:`Logout of ${c.BRAND_NAME}...`,click:e.beeperClientStore.logout},{accelerator:l.QUIT_APP.key,click(){s.quitApp()},label:`Quit ${c.APP_NAME}`}].filter(Boolean),p={role:"help",submenu:a},d={label:"View",submenu:[{label:(e.prefsStore.showSpaceSwitcher?"Hide":"Show")+" Space Bar",click:()=>e.prefsStore.toggleSpaceSwitcher(),accelerator:l.TOGGLE_FILTER_BAR.key},{label:(e.mainWSS.sidebarHidden?"Show":"Hide")+" Sidebar",click:e.mainWSS.toggleSidebar,accelerator:l.TOGGLE_SIDEBAR.key}]},b={label:c.APP_NAME,submenu:t},u={label:"File",submenu:[{label:"Open...",accelerator:l.SEND_FILE.key,click:e.openFile},{label:"New Chat",accelerator:l.CREATE_NEW_CHAT.key,click:e.showCreateNewChatMode},{type:"separator"},{role:"close"},{label:"Open Chat in New Window",click:e.openChatInNewWindow}]};return f.setMenuBar([b,u,{role:"editMenu"},d,A,p])}export{N as default};
//# sourceMappingURL=menubar-B1_6JM__.js.map
