import{n as e}from"./rolldown-runtime-Czos8NxU.js";import{Bt as t,Tl as n,Xs as r,di as i,ec as a,nc as o,or as s,tc as c,ur as l,vl as u}from"./app-initial~app-main~worktree-init-v2-page~appgen-settings-page~page~appgen-publication-ter~fzo5ij6p-BKVLyD1q.js";import{Tb as d,wb as f}from"./app-initial~app-main~onboarding-page-CNHnOMz8.js";import{Ln as p,Rs as m,Us as h,Yn as g,as as _,ec as v,ts as y,wx as b,yx as x}from"./app-initial~app-main~new-thread-panel-page-BZHGOlMi.js";import{c as S,l as C}from"./app-initial~app-main~automations-page-BcHjEK7e.js";import{a as w,o as T}from"./app-initial~app-main~remote-conversation-page~new-thread-panel-page~projects-index-page~app~edtlcz4n-mS0BVrSi.js";import{n as E,r as D}from"./use-hotkey-window-detail-layout-DU_YwjmY.js";import{i as O,n as k,r as A,t as j}from"./local-conversation-stream-role-product-event-CjXTNmen.js";import{D as M,E as N,a as P,i as F}from"./local-conversation-thread-DhV7q0nP.js";function I(){let e=(0,L.c)(20),t=c(y),n=b(),{conversationId:r}=v(),{data:u}=o(S),f=u==null||u.configuredHotkey!=null,m;e[0]===f?m=e[1]:(m=l(f),e[0]=f,e[1]=m);let g=m,_=a(d,r??null),x=a(p,r??null),C;e[2]===x?C=e[3]:(C=w(x?i(x):null),e[2]=x,e[3]=C);let T=C;M(t);let E;if(e[4]!==r||e[5]!==n||e[6]!==T||e[7]!==_?(E=r==null?null:{title:(0,R.jsxs)(`div`,{className:`flex max-w-full min-w-0 items-baseline gap-2`,children:[(0,R.jsx)(`div`,{className:`min-w-0 shrink-[999] truncate text-token-foreground`,children:_??n.formatMessage({id:`hotkeyWindow.defaultTitle`,defaultMessage:`Codex`,description:`Fallback title for hotkey window thread header`})}),T==null?null:(0,R.jsx)(`div`,{className:`flex shrink-0 items-center gap-1 whitespace-nowrap text-token-description-foreground`,children:(0,R.jsx)(`span`,{className:`truncate`,children:T})})]}),mainWindowPath:s(r)},e[4]=r,e[5]=n,e[6]=T,e[7]=_,e[8]=E):E=e[8],D(E),!r){let t;return e[9]===g?t=e[10]:(t=(0,R.jsx)(h,{to:g,replace:!0}),e[9]=g,e[10]=t),t}let O,k;e[11]===r?(O=e[12],k=e[13]):(O=(0,R.jsx)(j,{conversationId:r}),k=(0,R.jsx)(A,{conversationId:r}),e[11]=r,e[12]=O,e[13]=k);let N;e[14]===r?N=e[15]:(N=(0,R.jsx)(`div`,{className:`h-full [--padding-panel:calc(var(--padding-panel-base)/2)]`,children:(0,R.jsx)(F,{conversationId:r,allowMissingConversation:!0,showExternalFooter:!0})}),e[14]=r,e[15]=N);let P;return e[16]!==O||e[17]!==k||e[18]!==N?(P=(0,R.jsxs)(R.Fragment,{children:[O,k,N]}),e[16]=O,e[17]=k,e[18]=N,e[19]=P):P=e[19],P}var L,R;e((()=>{L=n(),r(),t(),x(),m(),g(),O(),k(),P(),f(),_(),T(),N(),C(),E(),R=u()}))();export{I as HotkeyWindowThreadPage};
//# sourceMappingURL=hotkey-window-thread-page-DO0TBWSI.js.map