import{n as e}from"./rolldown-runtime-BG2f4sTM.js";import{Dvt as t,Ect as n,Mft as r,Mvt as i,N_t as a,Nh as o,O_t as s,P_t as c,Ph as l,QS as u,Rft as d,Tct as f,Vft as p,Wft as m,XS as h,iC as g,jft as _,nC as v,tC as y}from"./app-initial-BHB6SClA.js";import{n as b,t as x}from"./onboarding-banner-x8BEylhu.js";function S(e){let t=(0,w.c)(8),{entryPoint:n}=e,r=a(_),i=c(o),s=u(n),l=g();if(s==null||i||l!==!0)return null;let d;t[0]===r?d=t[1]:(d=()=>v(r),t[0]=r,t[1]=d);let f;t[2]===s?f=t[3]:(f=()=>void s(),t[2]=s,t[3]=f);let p;return t[4]!==n||t[5]!==d||t[6]!==f?(p=(0,T.jsx)(C,{entryPoint:n,onDismiss:d,onStart:f}),t[4]=n,t[5]=d,t[6]=f,t[7]=p):p=t[7],p}function C(e){let t=(0,w.c)(18),{entryPoint:n,onDismiss:r,onStart:i,orbSrc:a}=e,o=a===void 0?E:a,s=m(),c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,T.jsx)(p,{id:`realtimeVoice.homeAnnouncement.title`,defaultMessage:`Try ChatGPT Voice`,description:`Title shown in the Home banner introducing realtime voice`}),t[0]=c):c=t[0];let l;t[1]===n?l=t[2]:(l=n===`chatgpt`?(0,T.jsx)(p,{id:`realtimeVoice.homeAnnouncement.description.chatgpt`,defaultMessage:`Coordinate tasks, connect tools, and explore ideas`,description:`Description shown in the ChatGPT Home banner introducing realtime voice`}):(0,T.jsx)(p,{id:`realtimeVoice.homeAnnouncement.description.codex`,defaultMessage:`Orchestrate tasks, connect tools, and explore code`,description:`Description shown in the Codex Home banner introducing realtime voice`}),t[1]=n,t[2]=l);let u;t[3]===o?u=t[4]:(u=(0,T.jsx)(`img`,{alt:``,className:`size-full`,src:o}),t[3]=o,t[4]=u);let d;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,T.jsx)(p,{id:`realtimeVoice.homeAnnouncement.action`,defaultMessage:`Start Voice`,description:`Button label in the Home banner that opens realtime voice onboarding`}),t[5]=d):d=t[5];let h;t[6]===i?h=t[7]:(h={label:d,onClick:i},t[6]=i,t[7]=h);let g;t[8]===s?g=t[9]:(g=s.formatMessage({id:`realtimeVoice.homeAnnouncement.dismiss`,defaultMessage:`Dismiss voice chat banner`,description:`Accessible label for dismissing the realtime voice Home banner`}),t[8]=s,t[9]=g);let _;t[10]!==r||t[11]!==g?(_={ariaLabel:g,icon:f,onClick:r},t[10]=r,t[11]=g,t[12]=_):_=t[12];let v;return t[13]!==l||t[14]!==u||t[15]!==h||t[16]!==_?(v=(0,T.jsx)(x,{title:c,description:l,leadingVisual:u,primaryAction:h,dismissAction:_}),t[13]=l,t[14]=u,t[15]=h,t[16]=_,t[17]=v):v=t[17],v}var w,T,E;e((()=>{w=i(),s(),d(),b(),l(),n(),r(),h(),y(),T=t(),E=`https://persistent.oaistatic.com/voice/bidi-homepage-banner-orb.21107572.webp`}))();export{S as RealtimeVoiceHomeAnnouncement};
//# sourceMappingURL=realtime-voice-home-announcement-9PsedpOG.js.map