import{n as e}from"./rolldown-runtime-BG2f4sTM.js";import{A5 as t,Bh as n,Dvt as r,Lm as i,M5 as a,Mvt as o,O_t as s,P_t as c,QU as l,Rft as u,Rm as d,Wft as f,ZU as p,bft as m,bh as h,dh as g,nT as _,oO as v,ph as y,sO as b,tT as x,vh as S,xft as C,zh as w}from"./app-initial-BHB6SClA.js";import{r as T,t as E}from"./codex-home-announcements-BA0P68Pe.js";function D(){let e=(0,k.c)(14),t=f(),n=c(l);{let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,A.jsx)(a,{to:`/`,replace:!0}),e[0]=t):t=e[0],t}let r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=S.isRecording()?(0,A.jsx)(v,{onPaint:O}):null,e[1]=r):r=e[1];let o;e[2]===t?o=e[3]:(o=t.formatMessage({id:`homePage.mainContent`,defaultMessage:`Main content`,description:`Main landmark label for the home page`}),e[2]=t,e[3]=o);let s;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,A.jsx)(`div`,{className:`mx-auto flex w-full max-w-3xl flex-col gap-3 px-panel`,children:(0,A.jsx)(`div`,{className:`flex-1`})}),e[4]=s):s=e[4];let u;e[5]===o?u=e[6]:(u=(0,A.jsx)(`div`,{className:`[container-type:size] relative flex w-full flex-1 flex-col items-center justify-center overflow-hidden [container-name:home-main-content]`,role:`main`,"aria-label":o,children:s}),e[5]=o,e[6]=u);let d;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(d=m(g,`z-10 -mt-[var(--thread-footer-overlap)] flex flex-col gap-2 pb-2`),e[7]=d):d=e[7];let p;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,A.jsx)(`div`,{className:`home-banners mt-2 flex flex-col gap-2 empty:hidden`,children:(0,A.jsx)(E,{})}),e[8]=p):p=e[8];let h;e[9]===n?h=e[10]:(h=(0,A.jsxs)(`div`,{className:d,children:[p,(0,A.jsx)(x,{children:(0,A.jsx)(w,{className:`electron:hidden`,selectedProject:n})})]}),e[9]=n,e[10]=h);let _;return e[11]!==u||e[12]!==h?(_=(0,A.jsxs)(i,{children:[r,(0,A.jsx)(`div`,{className:`flex h-full flex-col`,"data-vscode-context":`{"chatgpt.supportsNewChatMenu": true}`,tabIndex:0,children:(0,A.jsxs)(`div`,{className:`relative flex h-full flex-col`,children:[u,h]})})]}),e[11]=u,e[12]=h,e[13]=_):_=e[13],_}function O(){return S.markHomeVisible()}var k,A;e((()=>{k=o(),C(),s(),u(),t(),T(),n(),_(),h(),b(),p(),d(),y(),A=r()}))();export{D as NewThreadPanelPage};
//# sourceMappingURL=new-thread-panel-page-Xl0DC1bk.js.map