import{r as e,j as s}from"./vendor-react-AXa6hZO5.js";import{I as o,n as i}from"./cec18ad9a-DiLjrOUd.js";import{M as t}from"./vendor-intl-BdADXLLt.js";import{H as a}from"./index-C_tZnXTW.js";import"./vendor-radix-glKlawmm.js";import"./vendor-zod-CMvj0_Fd.js";import"./vendor-zustand-CcZsBpBq.js";import"./vendor-icons-Dy3Nea9p.js";import"./vendor-lodash-BKAXkXVe.js";import"./vendor-motion-0BJMgYoH.js";import"./vendor-infra-CFC-WJ8N.js";import"./vendor-router-BSYVf8By.js";import"./vendor-query-D7SPXjZv.js";import"./vendor-growthbook-XJcBFzji.js";import"./cdd5b9598-juLasKsB.js";import"./c2591c98b-9UrrTnB9.js";import"./vendor-luxon-D0OkDiyb.js";import"./c51f8bc6d-BS9P5nN1.js";import"./tree-sitter-BFuuT2ac.js";const r={shown:"claudeai.CCD_nudge.shown",dismissed:"claudeai.CCD_nudge.dismissed",clicked:"claudeai.CCD_nudge.clicked",hovered:"claudeai.CCD_nudge.hovered"},n=({onDismiss:n,onClick:d,onVisibilityChange:l})=>{const[c,m]=e.useState(!1),[u,p]=e.useState(!1),[j,v]=e.useState(!1);e.useEffect(()=>{if(u){const e=setTimeout(()=>{v(!0)},700);return()=>clearTimeout(e)}v(!1)},[u]);const f=e.useCallback(()=>{m(!0)},[]),x=e.useCallback(()=>{m(!1)},[]),g=e.useCallback(e=>{p(e),l?.(e)},[l]);return s.jsxs("div",{className:"fixed bottom-10 right-10 z-50",onMouseEnter:f,onMouseLeave:x,children:[s.jsx(a,{title:s.jsx(t,{defaultMessage:"Claude Code, now in Desktop preview",id:"cNdxENxTHM"}),body:s.jsx(t,{defaultMessage:"Build features, fix bugs, and prototype right in your codebase",id:"pYflfVS1RI"}),actionText:s.jsx(t,{defaultMessage:"Get started",id:"/aBLH2Kytu"}),actionHref:"/epitaxy",onDismiss:n,onClick:d,openInNewTab:!1,variant:"always-visible",analyticsEvents:r,onVisibilityChange:g}),j&&s.jsx("div",{className:i("absolute bottom-4 right-[174px] w-16 h-16 transition-transform duration-300 ease-out z-0",c?"translate-x-0":"translate-x-full"),children:s.jsx(o,{src:"/images/spotlights/clawd.svg",alt:"",width:64,height:64,className:"object-contain"})})]})},d=e.memo(({onDismiss:e,onAction:o})=>s.jsx(n,{onDismiss:e,onClick:o}));d.displayName="ChillingSlothHomeNudge";export{d as ChillingSlothHomeNudge};
