import{n as e}from"./rolldown-runtime-BG2f4sTM.js";import{Dvt as t,Lft as n,Mvt as r,Rft as i,Vft as a,Ydt as o,dft as s,gft as c}from"./app-initial-BHB6SClA.js";function l(e){let t=(0,f.c)(6),{isTemporaryChat:n,locationKey:r}=e,i;t[0]!==n||t[1]!==r?(i=n?m.temporaryChat:d(r),t[0]=n,t[1]=r,t[2]=i):i=t[2];let a=i,o;return t[3]!==a||t[4]!==n?(o=(0,p.jsx)(`div`,{className:`mx-auto w-[min(100%,var(--thread-content-max-width))] min-w-0 px-panel`,children:(0,p.jsx)(u,{headline:a,isTemporaryChat:n})}),t[3]=a,t[4]=n,t[5]=o):o=t[5],o}function u(e){let t=(0,f.c)(9),{headline:n,isTemporaryChat:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={viewTransitionName:`var(--vt-splash-screen-headline)`},t[0]=i):i=t[0];let o;t[1]===n?o=t[2]:(o=(0,p.jsx)(`h1`,{"aria-hidden":!0,className:`heading-xl invisible font-normal whitespace-pre-wrap`,children:(0,p.jsx)(a,{...n})}),t[1]=n,t[2]=o);let l;t[3]!==n||t[4]!==r?(l=(0,p.jsx)(c,{initial:!1,mode:`wait`,children:r?(0,p.jsx)(s.div,{animate:{opacity:1},className:`absolute inset-x-0 bottom-0 flex min-w-0 flex-col items-center gap-4`,exit:{opacity:0},initial:{opacity:0},transition:{duration:.2,ease:`easeInOut`},children:(0,p.jsxs)(s.div,{animate:{y:0},className:`flex min-w-0 flex-col items-center gap-3`,exit:{y:24},initial:{y:24},transition:{duration:.2,ease:`easeInOut`},children:[(0,p.jsx)(`h1`,{className:`heading-xl font-normal whitespace-pre-wrap text-token-foreground`,children:(0,p.jsx)(a,{...n})}),(0,p.jsx)(`p`,{className:`text-base leading-6 text-token-text-secondary`,children:(0,p.jsx)(a,{id:`chatgptConversations.home.temporaryDescription`,defaultMessage:`This chat won't appear in your conversation history`,description:`Short explanatory text shown on the ChatGPT temporary chat home page in Codex Desktop`})})]})},`temporary-chat-content`):(0,p.jsx)(s.div,{animate:{opacity:1,y:0},className:`absolute inset-x-0 bottom-0`,exit:{opacity:0,y:-4,transition:{duration:0}},initial:{opacity:0,y:-4},transition:{duration:.2,ease:`easeInOut`},children:(0,p.jsx)(`h1`,{className:`heading-xl font-normal whitespace-pre-wrap text-token-foreground`,children:(0,p.jsx)(a,{...n})})},`chat-home-headline`)}),t[3]=n,t[4]=r,t[5]=l):l=t[5];let u;return t[6]!==o||t[7]!==l?(u=(0,p.jsxs)(`div`,{className:`relative w-full min-w-0 text-center select-none`,style:i,children:[o,l]}),t[6]=o,t[7]=l,t[8]=u):u=t[8],u}function d(e){return e!==g&&(g=e,_=(_+1)%h.length),h[_]}var f,p,m,h,g,_;e((()=>{f=r(),o(),i(),p=t(),m=n({temporaryChat:{id:`chatgptConversations.home.temporaryHero`,defaultMessage:`Temporary Chat`,description:`Primary heading on the ChatGPT temporary chat home page in Codex Desktop`},readyWhenYouAre:{id:`chatgptConversations.home.hero.readyWhenYouAre`,defaultMessage:`Ready when you are.`,description:`One of four rotating headlines on the Chat home page in Codex Desktop. It invites an end user to begin a chat and should remain a short, friendly single-line headline.`},onYourMind:{id:`chatgptConversations.home.hero.onYourMind`,defaultMessage:`What’s on your mind today?`,description:`One of four rotating headlines on the Chat home page in Codex Desktop. It invites an end user to begin a chat and should remain a short, friendly single-line headline.`},agendaToday:{id:`chatgptConversations.home.hero.agendaToday`,defaultMessage:`What’s on the agenda today?`,description:`One of four rotating headlines on the Chat home page in Codex Desktop. It invites an end user to begin a chat and should remain a short, friendly single-line headline.`},shouldWeBegin:{id:`chatgptConversations.home.hero.shouldWeBegin`,defaultMessage:`Where should we begin?`,description:`One of four rotating headlines on the Chat home page in Codex Desktop. It invites an end user to begin a chat and should remain a short, friendly single-line headline.`}}),h=[m.readyWhenYouAre,m.onYourMind,m.agendaToday,m.shouldWeBegin],_=-1}))();export{l as ChatHomeHero};
//# sourceMappingURL=chat-home-hero-KqWkwIzn.js.map