const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SessionGraphPage-DJM3XHsU.js","assets/rolldown-runtime-B1FJdls4.js","assets/index-BvvB7abB.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-DocB1wnw.js","assets/queryKeys-1VqzQyJo.js","assets/api-DwzfFfgX.js","assets/vendor-misc-z3YbaCT0.js","assets/vendor-markdown-Db1-9wH7.js","assets/serverStorage-7ZBX37kd.js","assets/posthog-DWJXNaJG.js","assets/projectPaths-CJsPUl9Q.js","assets/terminalPreloader-0zGxxbOd.js","assets/vendor-react-DKm7cazq.js","assets/index-Bx5DM-63.css","assets/sessionGraph-CxPio9Fg.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-BvvB7abB.js";import{t as s}from"./FloatingWindowPane-Cag3zbbg.js";var c=e(t(),1),l=n(),u=(0,c.lazy)(()=>r(()=>import(`./SessionGraphPage-DJM3XHsU.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};