import{r as e,j as s}from"./vendor-react-AXa6hZO5.js";import{$ as o,a0 as i,a1 as n,H as t,a2 as a}from"./index-D35RxkWr.js";import{j as r}from"./c6eedc03a-C8LSdtro.js";import{M as d}from"./vendor-intl-BdADXLLt.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-zod-1gcJXWab.js";import"./vendor-router-B4CxQ1po.js";import"./c365fd3fe-Dmpsm876.js";import"./vendor-lodash-D-zrMTUO.js";import"./vendor-motion-DGh7M6mr.js";import"./vendor-query-B8PP3rYl.js";import"./vendor-growthbook-XJcBFzji.js";import"./vendor-zustand-CcZsBpBq.js";import"./c70a3d12b-BI7Bbafv.js";import"./vendor-luxon-Y8l99kBI.js";import"./vendor-radix-jAWPQP1f.js";import"./vendor-icons-DsiQAprm.js";import"./tree-sitter-BFuuT2ac.js";const l={shown:"claudeai.desktop_upsell_nudge.shown",dismissed:"claudeai.desktop_upsell_nudge.dismissed",clicked:"claudeai.desktop_upsell_nudge.clicked",hovered:"claudeai.desktop_upsell_nudge.hovered"},p=({onDismiss:a,onClick:p,onVisibilityChange:u})=>{const c=o(),[j,v]=e.useState(null);e.useEffect(()=>{i().then(e=>v(e))},[]);const[f,g]=e.useState(!1),{downloadAndOpenModal:h,modal:k}=n("desktop_upsell_nudge",{onClose:()=>{g(!1),p()}}),x=e.useCallback(e=>{e.preventDefault(),h(j),g(!0)},[j,h]);return c?s.jsxs(s.Fragment,{children:[!f&&s.jsx(t,{actionHref:"#",openInNewTab:!1,imageUrl:"/images/spotlights/desktop-upsell-nudge.svg",onDismiss:a,onClick:x,analyticsEvents:l,variant:"always-visible",onVisibilityChange:u,body:r()?s.jsx(d,{defaultMessage:"Type, speak, or screenshot with Claude from anywhere on your Mac.",id:"t9IS+AYBWW"}):s.jsx(d,{defaultMessage:"Chat with Claude from anywhere on your PC",id:"Cq5BjwFvd7"}),title:s.jsx(d,{defaultMessage:"Claude for Desktop is here",id:"d8ef3pvwg/"}),actionText:s.jsx(m,{children:s.jsx(d,{defaultMessage:"Download",id:"5q3qC0sC3r"})})}),k]}):null};function m({children:e}){return s.jsxs("span",{className:"flex items-center gap-1.5",children:[s.jsx(a,{size:12}),e]})}const u=e.memo(({onDismiss:e,onAction:o})=>s.jsx(p,{onDismiss:e,onClick:o}));u.displayName="DesktopUpsellNudge";export{u as DesktopUpsellNudge};
