import{n as e,s as t}from"./rolldown-runtime-BG2f4sTM.js";import{dn as n,un as r,zt as i}from"./app-initial~avatarOverlayCompositionSurface~index-9fQ9wihu~index-BFCcxPM5~mapbox-gl-DVWlwqb~kppdhley-CabsBVhy.js";import{bo as a,h as o,p as s,w as c}from"./app-initial~avatarOverlayCompositionSurface~artifact-tab-content.electron~notebook-preview-~ngwudnyz-D_QFwR2V.js";import{Q as l,rt as u}from"./app-initial~artifact-tab-content.electron~notebook-preview-panel~app-main~business-checkout~c1u3yp5s-gStRzqf8.js";import{n as d,t as f}from"./app-initial~artifact-tab-content.electron~notebook-preview-panel~app-main~settings-command-~kt7wj8fo-CamRq96C.js";import{b as p,y as m}from"./app-initial~artifact-tab-content.electron~notebook-preview-panel~app-main~business-checkout~h49w84u1-C22DF0k3.js";import{n as h,r as g}from"./debug-modal-CsulB0AJ.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],o(`debug-window-origin-conversation-changed`,r),!a.allowDebugMenu(f())){let t;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,x.jsx)(u,{to:`/`,replace:!0}),e[1]=t):t=e[1],t}let i;return e[2]===t?i=e[3]:(i=(0,x.jsx)(m,{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=r(),c(),b=t(n(),1),l(),p(),s(),d(),g(),x=i()}))();export{_ as DebugWindowPage};
//# sourceMappingURL=debug-window-page-DDqoe2NQ.js.map