import{r as e,j as s,M as i}from"./vendor--leCAzSo.js";import{I as t,c as a}from"./ca9c256b9-7brFE8T2.js";import{H as o}from"./index-DZuQva-j.js";import"./c723dd3dd-58n3MxoB.js";import"./c57c2877c-dpgWZiV5.js";import"./cb5cdda9a-CSfiLIa6.js";import"./c51e217b4-KUwQQl_W.js";import"./tree-sitter-BFuuT2ac.js";const n={shown:"claudeai.CCD_nudge.shown",dismissed:"claudeai.CCD_nudge.dismissed",clicked:"claudeai.CCD_nudge.clicked",hovered:"claudeai.CCD_nudge.hovered"},d=({onDismiss:d,onClick:c,onVisibilityChange:l})=>{const[r,u]=e.useState(!1),[m,g]=e.useState(!1),[p,x]=e.useState(!1);e.useEffect(()=>{if(m){const e=setTimeout(()=>{x(!0)},700);return()=>clearTimeout(e)}x(!1)},[m]);const C=e.useCallback(()=>{u(!0)},[]),b=e.useCallback(()=>{u(!1)},[]),h=e.useCallback(e=>{g(e),l?.(e)},[l]);return s.jsxs("div",{className:"fixed bottom-10 right-10 z-50",onMouseEnter:C,onMouseLeave:b,children:[s.jsx(o,{title:s.jsx(i,{defaultMessage:"Claude Code, now in Desktop preview",id:"cNdxENxTHM"}),body:s.jsx(i,{defaultMessage:"Build features, fix bugs, and prototype right in your codebase",id:"pYflfVS1RI"}),actionText:s.jsx(i,{defaultMessage:"Get started",id:"/aBLH2Kytu"}),actionHref:"/epitaxy",onDismiss:d,onClick:c,openInNewTab:!1,variant:"always-visible",analyticsEvents:n,onVisibilityChange:h}),p&&s.jsx("div",{className:a("absolute bottom-4 right-[174px] w-16 h-16 transition-transform duration-300 ease-out z-0",r?"translate-x-0":"translate-x-full"),children:s.jsx(t,{src:"/images/spotlights/clawd.svg",alt:"",width:64,height:64,className:"object-contain"})})]})},c=e.memo(({onDismiss:e,onAction:i})=>s.jsx(d,{onDismiss:e,onClick:i}));c.displayName="ChillingSlothHomeNudge";export{c as ChillingSlothHomeNudge};
