const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SessionGraphPage-DDI7f8Sr.js","assets/rolldown-runtime-B1FJdls4.js","assets/index-Dzmo3iV3.js","assets/preload-helper-Bf_JiD2A.js","assets/axisEvents-Dhd0R1o7.js","assets/issueStore-B3ra7txM.js","assets/vendor-dnd-C1cICjTT.js","assets/vendor-zustand-XkaRs3NT.js","assets/browserWindowFocus-CmAEq05h.js","assets/sessionStore-DVOX7Q2x.js","assets/queryKeys-CqjQpLLd.js","assets/api-DwzfFfgX.js","assets/vendor-misc-D1uXP2P6.js","assets/vendor-markdown-Db1-9wH7.js","assets/serverStorage-7ZBX37kd.js","assets/posthog-B2WbfR0W.js","assets/projectPaths-CJsPUl9Q.js","assets/terminalPreloader-Cdc78bb2.js","assets/vendor-react-RfPYMgDE.js","assets/index-DH5fKre3.css","assets/sessionGraph-9neduIs0.js"])))=>i.map(i=>d[i]);
import{i as e}from"./rolldown-runtime-B1FJdls4.js";import{m as t}from"./vendor-dnd-C1cICjTT.js";import{s as n}from"./vendor-markdown-Db1-9wH7.js";import{t as r}from"./preload-helper-Bf_JiD2A.js";import{L as i,x as a,y as o}from"./index-Dzmo3iV3.js";import{t as s}from"./FloatingWindowPane-lv32P65i.js";var c=e(t(),1),l=n(),u=(0,c.lazy)(()=>r(()=>import(`./SessionGraphPage-DDI7f8Sr.js`).then(e=>({default:e.SessionGraphPage})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20])));function d(){return typeof window>`u`?{w:1200,h:800}:{w:Math.round(window.visualViewport?.width??window.innerWidth),h:Math.round(window.visualViewport?.height??window.innerHeight)}}function f(){return(0,l.jsx)(`div`,{className:`flex h-full items-center justify-center bg-terminal-bg font-mono text-xs text-terminal-muted`,children:`Loading lightweight graph…`})}function p(){let e=a(e=>e.isOpen),t=a(e=>e.projectPath),n=i(),r=d(),p={w:Math.round(Math.min(1500,r.w*.88)),h:Math.round(Math.min(940,r.h*.88))};return(0,l.jsx)(s,{isOpen:e,onClose:o,storageKey:`mc-session-graph-window`,title:`Session Graph`,icon:`🕸️`,subtitle:t?t.split(`/`).filter(Boolean).pop():`All projects`,defaultSize:p,defaultPosition:{x:Math.max(24,Math.round((r.w-p.w)/2)),y:Math.max(24,Math.round((r.h-p.h)/2))},minWidth:720,minHeight:520,zIndex:54,bodyClassName:`flex flex-col overflow-hidden`,testId:`session-graph-modal`,children:(0,l.jsx)(c.Suspense,{fallback:(0,l.jsx)(f,{}),children:(0,l.jsx)(u,{projectPath:t,embedded:!0,modalChrome:!0,lightweight:!0,limitOverride:n?72:110})})})}export{p as SessionGraphModal};