import{r as s,j as o}from"./vendor-react-Dp9pL_Wn.js";import{u as i,C as t,c as e}from"./vendor-ant-cds-DvTmcYA1.js";import{M as r}from"./vendor-intl-BDR1NhN_.js";import{H as a}from"./index-CSvjYuL_.js";import"./vendor-base-ui-CdQU4JQh.js";import"./vendor-radix-D3USJ4lr.js";import"./vendor-base-5_f7mmWg.js";import"./vendor-virtual-DRz8lJfQ.js";import"./c4b350ac1-KLFM4jkb.js";import"./vendor-zod-DIcz3Rbr.js";import"./vendor-zustand-CI9omAwJ.js";import"./vendor-icons-BBStP_8q.js";import"./vendor-lodash-CIro4mst.js";import"./vendor-router-qG5OCEmI.js";import"./vendor-query-DgCRID2b.js";import"./vendor-motion-D7Z1qgzM.js";import"./vendor-luxon-Y8l99kBI.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-growthbook-C66YtMMX.js";import"./c40b9b8f5-CcFpJKg-.js";import"./c393cb7f5-HUvLXarC.js";import"./ca8998c31-P9hjFFxa.js";import"./cbf215181-Bsdk_iVX.js";import"./c82022b5f-v1T93ITZ.js";import"./c627fcdb6-v1yU0Z6G.js";import"./c85adc124-DaXgLnIc.js";import"./c4b43b0ae-CSVSIKUp.js";import"./ce61829b3-0upsP-GZ.js";import"./c0632795f-DFHAnV4h.js";import"./c1f96d614-CNpmgQ8l.js";import"./c2591c98b-B0JYd9Jp.js";import"./c9bba154c-Bw59591Y.js";import"./c2a658aad-Db1B4w67.js";import"./c0e977562-B_Zbx8nl.js";import"./c9f4bb49e-CrIVzJHt.js";import"./cc2dfdfd3-BrnuP9el.js";import"./c6a992d55-BgxzHrh5.js";import"./c9e81e7b9-CQ79hI5E.js";import"./cdd5b9598-DXIbe6ku.js";import"./cf57f6351-BOW8NPIt.js";import"./c5669b8e4-B4xCGVen.js";import"./c93f725a0-BmtJGQGk.js";import"./c26148d62-Db4ihZzY.js";import"./c3a36db6f-BVEOyI7C.js";import"./cc2e285cb-ERZJd0nP.js";import"./c4526f334-DmmtJSHf.js";import"./cb59e2e62-DU7B8aps.js";import"./c009a87a0-BdYPxNaw.js";import"./c8c15d455-BRkvbsON.js";import"./c0f96d0e0-DGUPaEDS.js";const c={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:n,onVisibilityChange:m}){const[j,p]=s.useState(!1),[l,u]=s.useState(!1),b=i(50),[f,v]=s.useState(!1);s.useEffect(()=>{if(l){const s=setTimeout(()=>{v(!0)},700);return()=>clearTimeout(s)}v(!1)},[l]);const x=s.useCallback(()=>{p(!0)},[]),g=s.useCallback(()=>{p(!1)},[]),h=s.useCallback(s=>{u(s),m?.(s)},[m]);return o.jsx("div",{className:"fixed bottom-10 right-10",style:{zIndex:b},onMouseEnter:x,onMouseLeave:g,children:o.jsxs(t,{children:[o.jsx(a,{title:o.jsx(r,{defaultMessage:"Claude Code, now in Desktop preview",id:"cNdxENxTHM"}),body:o.jsx(r,{defaultMessage:"Build features, fix bugs, and prototype right in your codebase",id:"pYflfVS1RI"}),actionText:o.jsx(r,{defaultMessage:"Get started",id:"/aBLH2Kytu"}),actionHref:"/epitaxy",onDismiss:d,onClick:n,openInNewTab:!1,variant:"always-visible",analyticsEvents:c,onVisibilityChange:h}),f&&o.jsx("div",{className:e("absolute bottom-4 right-[174px] w-16 h-16 transition-transform duration-300 ease-out z-0",j?"translate-x-0":"translate-x-full"),children:o.jsx("img",{loading:"lazy",src:"/images/spotlights/clawd.svg",alt:"",width:64,height:64,className:"object-contain"})})]})})}const n=s.memo(({onDismiss:s,onAction:i})=>o.jsx(d,{onDismiss:s,onClick:i}));n.displayName="ChillingSlothHomeNudge";export{n as ChillingSlothHomeNudge};
