import{n as e,s as t}from"./rolldown-runtime-BG2f4sTM.js";import{D as n,E as r,O as i,dn as a,un as o,x as s,zt as c}from"./app-initial~avatarOverlayCompositionSurface~index-9fQ9wihu~index-BFCcxPM5~mapbox-gl-DVWlwqb~kppdhley-CabsBVhy.js";import{An as l,Fn as ee,Zo as u,jn as d,pi as f,w as p}from"./app-initial~avatarOverlayCompositionSurface~artifact-tab-content.electron~notebook-preview-~ngwudnyz-D_QFwR2V.js";import{g as m,o as h}from"./app-initial~avatarOverlayCompositionSurface~artifact-tab-content.electron~notebook-preview-~dejrazf4-CyNQP50P.js";import{a as g,i as _}from"./app-initial~avatarOverlayCompositionSurface~artifact-tab-content.electron~notebook-preview-~l16cgjx9-XwSLyHyz.js";import{X as v,Y as y}from"./app-initial~avatarOverlayCompositionSurface~artifact-tab-content.electron~app-main~appgen-s~j5d6n91g-CY67lkbg.js";import{C as b,I as x}from"./app-initial~artifact-tab-content.electron~notebook-preview-panel~app-main~business-checkout~oxnpxkxc-CRvN_72X.js";import{P as S,Q as C,U as w,f as T,g as E,gt as D,rt as O}from"./app-initial~artifact-tab-content.electron~notebook-preview-panel~app-main~business-checkout~c1u3yp5s-gStRzqf8.js";import{Et as k,Tt as A}from"./app-initial~artifact-tab-content.electron~notebook-preview-panel~app-main~settings-command-~muf4xbuf-eMAurh0Y.js";import{c as j,l as M}from"./app-initial~app-main~new-thread-panel-page~onboarding-page~projects-index-page~appgen-libra~h58kqoyf-D-V_D4ep.js";import{n as N,r as P}from"./app-initial~app-main~onboarding-page~hotkey-window-thread-page~debug-window-page~appearance~o4fm6wvw-oaY214fy.js";import{r as F,t as I}from"./use-thread-summary-panel-D5QrNsO3.js";import{n as L,r as R}from"./use-hotkey-window-detail-layout-BIfbOsY8.js";import{i as z,n as B,r as V,t as H}from"./local-conversation-stream-role-product-event-DyggSJom.js";import{a as U,i as W}from"./local-conversation-thread-DW9e-ZKK.js";function G(){let e=(0,K.c)(31),t=n(T),a=m(),{conversationId:o}=D(),{clientThreadId:s}=t.value,c=i(w),p;e[0]!==s||e[1]!==c?(p=c==null&&u(s)?s:null,e[0]=s,e[1]=c,e[2]=p):p=e[2];let h=p,g=r(v,h),{data:y}=i(N),x=y==null||y.configuredHotkey!=null,S;e[3]===x?S=e[4]:(S=ee(x),e[3]=x,e[4]=S);let C=S,E=r(k,c),A=r(b,c),M;e[5]===A?M=e[6]:(M=j(A?f(A):null),e[5]=A,e[6]=M);let P=M,I=c??h,L;e[7]===I?L=e[8]:(L=I==null?`/`:d(I),e[7]=I,e[8]=L);let z=L,B;e[9]!==s||e[10]!==c?(B=()=>{!u(s)||c==null||_.hotkeyWindowHotkeys?.open({path:l(c)})},e[9]=s,e[10]=c,e[11]=B):B=e[11];let U=(0,q.useEffectEvent)(B),G;e[12]===U?G=e[13]:(G=()=>{U()},e[12]=U,e[13]=G);let Y;e[14]!==s||e[15]!==c?(Y=[s,c],e[14]=s,e[15]=c,e[16]=Y):Y=e[16],(0,q.useEffect)(G,Y),F(t);let X;if(e[17]!==a||e[18]!==z||e[19]!==g?.label||e[20]!==P||e[21]!==o||e[22]!==E?(X=o==null?null:{title:(0,J.jsxs)(`div`,{className:`flex max-w-full min-w-0 items-baseline gap-2`,children:[(0,J.jsx)(`div`,{className:`min-w-0 shrink-[999] truncate text-token-foreground`,children:g?.label??E??a.formatMessage({id:`hotkeyWindow.defaultTitle`,defaultMessage:`Codex`,description:`Fallback title for hotkey window thread header`})}),P==null?null:(0,J.jsx)(`div`,{className:`flex shrink-0 items-center gap-1 whitespace-nowrap text-token-description-foreground`,children:(0,J.jsx)(`span`,{className:`truncate`,children:P})})]}),mainWindowPath:z},e[17]=a,e[18]=z,e[19]=g?.label,e[20]=P,e[21]=o,e[22]=E,e[23]=X):X=e[23],R(X),o==null){let t;return e[24]===C?t=e[25]:(t=(0,J.jsx)(O,{to:C,replace:!0}),e[24]=C,e[25]=t),t}let Z;e[26]===c?Z=e[27]:(Z=c==null?null:(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(H,{conversationId:c}),(0,J.jsx)(V,{conversationId:c})]}),e[26]=c,e[27]=Z);let Q;e[28]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,J.jsx)(`div`,{className:`h-full [--padding-panel:calc(var(--padding-panel-base)/2)]`,children:(0,J.jsx)(W,{allowMissingConversation:!0,showUtilityBar:!0})}),e[28]=Q):Q=e[28];let $;return e[29]===Z?$=e[30]:($=(0,J.jsxs)(J.Fragment,{children:[Z,Q]}),e[29]=Z,e[30]=$),$}var K,q,J;e((()=>{K=o(),s(),p(),q=t(a(),1),h(),C(),x(),z(),B(),U(),A(),g(),E(),S(),M(),I(),y(),P(),L(),J=c()}))();export{G as HotkeyWindowThreadPage};
//# sourceMappingURL=hotkey-window-thread-page-C_Hc08xX.js.map