1import{o as p}from"./rolldown-runtime-BNNRdYrd.js";import{b,r as h}from"./react-vendor-BqQF_9sx.js";import{n as y}from"./ellipsis-CzcEz1DH.js";import{t as f}from"./file-text-BvTH-aDN.js";import{t as u}from"./keyboard-D5hm60Y0.js";import{t as k}from"./sparkles-HKQN2J4g.js";import{Ft as j,Ht as v}from"./index-BQuIkJiK.js";import{t as c}from"./proxy-BaIM4JZ0.js";import{t as w}from"./AnimatePresence-qoTgOQeg.js";var m={name:"navigation",size:24,node:[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]]};m.node;var g=v(m),N=p(b(),1),e=h();function H({isOpen:i,onClose:r}){if((0,N.useEffect)(()=>{const a=o=>{i&&o.key==="Escape"&&(o.preventDefault(),r())};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[i,r]),!i)return null;const n=typeof navigator<"u"&&/Mac|iPod|iPhone|iPad/.test(navigator.platform||navigator.userAgent),t=n?"â":"Ctrl",s=n?"â§":"Shift",x=[{title:"2.0 Navigation Shortcuts",icon:g,shortcuts:[{keys:[t,s,"D"],label:"Open Daily Note"},{keys:[t,s,"P"],label:"Open Pulse Briefing"},{keys:[t,s,"F"],label:"Open Forge Automations"},{keys:[t,s,"M"],label:"Open Meeting Memory"},{keys:[t,s,"A"],label:"Open Vault Health Audit"}]},{title:"Global Tools & Command Palette",icon:y,shortcuts:[{keys:[t,"K"],label:"Open Command Palette"},{keys:["?"],label:"Open Hotkey Cheat Sheet"},{keys:[t,"/"],label:"Toggle Hotkey Overlay"},{keys:["Esc"],label:"Close Active Overlay / Modal"}]},{title:"Editor & Workspace Actions",icon:f,shortcuts:[{keys:[t,"S"],label:"Save Active Note Locally"},{keys:[t,"N"],label:"Create New Blank Note"},{keys:[t,s,"E"],label:"Open Share & Export"}]}];return(0,e.jsx)(w,{children:(0,e.jsx)(c.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-basalt-950/80 backdrop-blur-md",onClick:r,children:(0,e.jsxs)(c.div,{initial:{scale:.95,opacity:0,y:10},animate:{scale:1,opacity:1,y:0},exit:{scale:.95,opacity:0,y:10},transition:{type:"spring",damping:22,stiffness:320},role:"dialog","aria-modal":"true","aria-labelledby":"hotkey-modal-title",className:"relative w-full max-w-2xl overflow-hidden rounded-2xl border border-white/10 bg-basalt-900/90 p-6 shadow-2xl backdrop-blur-xl",onClick:a=>a.stopPropagation(),children:[(0,e.jsxs)("header",{className:"flex items-center justify-between border-b border-white/10 pb-4",children:[(0,e.jsxs)("div",{className:"flex items-center gap-3",children:[(0,e.jsx)("div",{className:"flex h-9 w-9 items-center justify-center rounded-xl border border-cyan-300/20 bg-cyan-300/10 text-cyan-300",children:(0,e.jsx)(u,{size:18})}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h2",{id:"hotkey-modal-title",className:"font-outfit text-lg font-semibold text-white",children:"Keyboard Shortcuts & Hotkeys"}),(0,e.jsx)("p",{className:"text-[10px] text-basalt-500 font-mono",children:"Phasoric 2.0 Power User Cheatsheet"})]})]}),(0,e.jsx)("button",{type:"button",onClick:r,className:"rounded-lg border border-white/10 p-2 text-basalt-400 hover:bg-white/5 hover:text-white","aria-label":"Close hotkey modal",children:(0,e.jsx)(j,{size:15})})]}),(0,e.jsx)("div",{className:"mt-5 space-y-5",children:x.map(a=>{const o=a.icon;return(0,e.jsxs)("section",{className:"rounded-xl border border-white/[0.06] bg-black/20 p-4",children:[(0,e.jsxs)("h3",{className:"flex items-center gap-2 text-xs font-semibold text-basalt-200",children:[(0,e.jsx)(o,{size:14,className:"text-cyan-300"}),a.title]}),(0,e.jsx)("div",{className:"mt-3 grid gap-2.5 sm:grid-cols-2",children:a.shortcuts.map(l=>(0,e.jsxs)("div",{className:"flex items-center justify-between rounded-lg border border-white/[0.04] bg-basalt-950/50 px-3 py-2 text-xs",children:[(0,e.jsx)("span",{className:"text-basalt-300 text-[11px] font-mono",children:l.label}),(0,e.jsx)("div",{className:"flex items-center gap-1",children:l.keys.map(d=>(0,e.jsx)("kbd",{className:"rounded border border-white/15 bg-white/[0.08] px-1.5 py-0.5 font-mono text-[9px] font-bold text-cyan-200 shadow-sm",children:d},d))})]},l.label))})]},a.title)})}),(0,e.jsxs)("footer",{className:"mt-5 flex items-center justify-between border-t border-white/10 pt-4 text-[10px] text-basalt-500 font-mono",children:[(0,e.jsxs)("span",{className:"flex items-center gap-1 text-cyan-300",children:[(0,e.jsx)(k,{size:11})," Pro Tip: Press ",(0,e.jsxs)("kbd",{className:"rounded border border-white/15 px-1 py-0.2 text-[9px]",children:[t,"+K"]})," anywhere to launch the command palette."]}),(0,e.jsxs)("span",{children:["Press ",(0,e.jsx)("kbd",{className:"rounded border border-white/15 px-1 py-0.2 text-[9px]",children:"ESC"})," to exit"]})]})]})})})}export{H as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.