import{o as e}from"./rolldown-runtime-iuO8RvI4.js";import{Mi as s,ki as i}from"./vendor-frame-CwiylG4Y.js";import{nn as a}from"./vendor-all-2-BJdkbLSj.js";import{J as t,X as o}from"./shared-frame-DbQbH4Yr.js";import{X as n}from"./index-C9LAU4f-.js";var r=e(s()),d=i(),l={shown:"claudeai.CCD_nudge.shown",dismissed:"claudeai.CCD_nudge.dismissed",clicked:"claudeai.CCD_nudge.clicked",hovered:"claudeai.CCD_nudge.hovered"};function c({onDismiss:e,onClick:s,onVisibilityChange:i}){const[c,u]=(0,r.useState)(!1),m=o(50),[f,g]=(0,r.useState)(!1);(0,r.useEffect)(()=>{if(c){const e=setTimeout(()=>{g(!0)},700);return()=>clearTimeout(e)}g(!1)},[c]);const x=(0,r.useCallback)(e=>{u(e),i?.(e)},[i]);return(0,d.jsx)("div",{className:"group/clawd fixed bottom-10 right-10",style:{zIndex:m},children:(0,d.jsxs)(t,{children:[(0,d.jsx)(n,{title:(0,d.jsx)(a,{defaultMessage:"Claude Code, now in Desktop preview",id:"cNdxENxTHM"}),body:(0,d.jsx)(a,{defaultMessage:"Build features, fix bugs, and prototype right in your codebase",id:"pYflfVS1RI"}),actionText:(0,d.jsx)(a,{defaultMessage:"Get started",id:"/aBLH2Kytu"}),actionHref:"/epitaxy",onDismiss:e,onClick:s,openInNewTab:!1,variant:"always-visible",analyticsEvents:l,onVisibilityChange:x}),f&&(0,d.jsx)("div",{className:"absolute bottom-4 right-[174px] w-16 h-16 transition-transform duration-300 ease-out z-0 translate-x-full group-hover/clawd:translate-x-0",children:(0,d.jsx)("img",{loading:"lazy",src:"/images/spotlights/clawd.svg",alt:"",width:64,height:64,className:"object-contain"})})]})})}var u=(0,r.memo)(({onDismiss:e,onAction:s})=>(0,d.jsx)(c,{onDismiss:e,onClick:s}));export{u as ChillingSlothHomeNudge};