import{r as e,j as s,M as a}from"./vendor--leCAzSo.js";import{O as i,P as o,Q as t,H as d,R as n}from"./index-DZuQva-j.js";import{i as l}from"./ca9c256b9-7brFE8T2.js";import"./c723dd3dd-58n3MxoB.js";import"./c57c2877c-dpgWZiV5.js";import"./cb5cdda9a-CSfiLIa6.js";import"./c51e217b4-KUwQQl_W.js";import"./tree-sitter-BFuuT2ac.js";const r={shown:"claudeai.desktop_upsell_nudge.shown",dismissed:"claudeai.desktop_upsell_nudge.dismissed",clicked:"claudeai.desktop_upsell_nudge.clicked",hovered:"claudeai.desktop_upsell_nudge.hovered"},c=({onDismiss:n,onClick:c,onVisibilityChange:p})=>{const m=i(),[g,j]=e.useState(null);e.useEffect(()=>{o().then(e=>j(e))},[]);const[h,f]=e.useState(!1),{downloadAndOpenModal:k,modal:C}=t("desktop_upsell_nudge",{onClose:()=>{f(!1),c()}}),x=e.useCallback(e=>{e.preventDefault(),k(g),f(!0)},[g,k]);return m?s.jsxs(s.Fragment,{children:[!h&&s.jsx(d,{actionHref:"#",openInNewTab:!1,imageUrl:"/images/spotlights/desktop-upsell-nudge.svg",onDismiss:n,onClick:x,analyticsEvents:r,variant:"always-visible",onVisibilityChange:p,body:l()?s.jsx(a,{defaultMessage:"Type, speak, or screenshot with Claude from anywhere on your Mac.",id:"t9IS+AYBWW"}):s.jsx(a,{defaultMessage:"Chat with Claude from anywhere on your PC",id:"Cq5BjwFvd7"}),title:s.jsx(a,{defaultMessage:"Claude for Desktop is here",id:"d8ef3pvwg/"}),actionText:s.jsx(u,{children:s.jsx(a,{defaultMessage:"Download",id:"5q3qC0sC3r"})})}),C]}):null};function u({children:e}){return s.jsxs("span",{className:"flex items-center gap-1.5",children:[s.jsx(n,{size:12}),e]})}const p=e.memo(({onDismiss:e,onAction:a})=>s.jsx(c,{onDismiss:e,onClick:a}));p.displayName="DesktopUpsellNudge";export{p as DesktopUpsellNudge};
