import{n as e,s as t}from"./rolldown-runtime-BG2f4sTM.js";import{A5 as n,Dvt as r,H1 as i,M5 as a,Mvt as o,Nvt as s,U7 as c,V1 as l,W7 as u,Wht as d,adt as f,npt as p,rdt as m}from"./app-initial-BHB6SClA.js";import{n as h,r as g}from"./debug-modal-DYDgh1V1.js";function _(){let e=(0,y.c)(4),[t,n]=(0,b.useState)(null),r;if(e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=e=>{let{conversationId:t}=e;n(t)},e[0]=r):r=e[0],f(`debug-window-origin-conversation-changed`,r),!d.allowDebugMenu(c())){let t;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,x.jsx)(a,{to:`/`,replace:!0}),e[1]=t):t=e[1],t}let i;return e[2]===t?i=e[3]:(i=(0,x.jsx)(l,{electron:!0,children:(0,x.jsx)(`main`,{className:`h-dvh w-full overflow-hidden bg-token-main-surface-primary text-token-foreground`,children:(0,x.jsx)(h,{conversationIdOverride:t,onClose:v,showHeader:!1,showPopOutButton:!1})})}),e[2]=t,e[3]=i),i}function v(){return window.close()}var y,b,x;e((()=>{y=o(),p(),b=t(s(),1),n(),i(),m(),u(),g(),x=r()}))();export{_ as DebugWindowPage};
//# sourceMappingURL=debug-window-page-sa-p93GC.js.map