import{r as e,j as s}from"./vendor-react-Dp9pL_Wn.js";import{u as o,C as i,c as t}from"./vendor-ant-cds-bBedrtIN.js";import{M as a}from"./vendor-intl-D2wGIp4M.js";import{H as r}from"./index-CBEPphRm.js";import"./vendor-base-ui-DNypCIlh.js";import"./vendor-radix-Ch96tRrt.js";import"./vendor-base-5_f7mmWg.js";import"./vendor-virtual-DRz8lJfQ.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-zod-0xcuG3aM.js";import"./c6eedc03a-CsEFTfjy.js";import"./vendor-zustand-BeF8W8xk.js";import"./vendor-icons-CokWnmlw.js";import"./vendor-lodash-BvMLws5K.js";import"./vendor-router-qG5OCEmI.js";import"./vendor-query-BwvgHhJ1.js";import"./vendor-zod-v3-CZy0YPWu.js";import"./vendor-motion-EDlUw66k.js";import"./vendor-luxon-CZxT8ieM.js";import"./vendor-growthbook-C66YtMMX.js";import"./caf7c7e06-DJYXCm3T.js";import"./c5669b8e4-DFSq88jr.js";import"./c5f4e1303-CiyIFgnl.js";import"./cbaad2c48-DaP34LG2.js";const n={shown:"claudeai.CCD_nudge.shown",dismissed:"claudeai.CCD_nudge.dismissed",clicked:"claudeai.CCD_nudge.clicked",hovered:"claudeai.CCD_nudge.hovered"};function d({onDismiss:d,onClick:l,onVisibilityChange:c}){const[m,u]=e.useState(!1),[j,p]=e.useState(!1),v=o(50),[x,f]=e.useState(!1);e.useEffect(()=>{if(j){const e=setTimeout(()=>{f(!0)},700);return()=>clearTimeout(e)}f(!1)},[j]);const g=e.useCallback(()=>{u(!0)},[]),h=e.useCallback(()=>{u(!1)},[]),b=e.useCallback(e=>{p(e),c?.(e)},[c]);return s.jsx("div",{className:"fixed bottom-10 right-10",style:{zIndex:v},onMouseEnter:g,onMouseLeave:h,children:s.jsxs(i,{children:[s.jsx(r,{title:s.jsx(a,{defaultMessage:"Claude Code, now in Desktop preview",id:"cNdxENxTHM"}),body:s.jsx(a,{defaultMessage:"Build features, fix bugs, and prototype right in your codebase",id:"pYflfVS1RI"}),actionText:s.jsx(a,{defaultMessage:"Get started",id:"/aBLH2Kytu"}),actionHref:"/epitaxy",onDismiss:d,onClick:l,openInNewTab:!1,variant:"always-visible",analyticsEvents:n,onVisibilityChange:b}),x&&s.jsx("div",{className:t("absolute bottom-4 right-[174px] w-16 h-16 transition-transform duration-300 ease-out z-0",m?"translate-x-0":"translate-x-full"),children:s.jsx("img",{loading:"lazy",src:"/images/spotlights/clawd.svg",alt:"",width:64,height:64,className:"object-contain"})})]})})}const l=e.memo(({onDismiss:e,onAction:o})=>s.jsx(d,{onDismiss:e,onClick:o}));l.displayName="ChillingSlothHomeNudge";export{l as ChillingSlothHomeNudge};
