import{r as e,j as s,M as a}from"./vendor--leCAzSo.js";import{H as i,J as t}from"./index-DZuQva-j.js";import"./c723dd3dd-58n3MxoB.js";import"./ca9c256b9-7brFE8T2.js";import"./c57c2877c-dpgWZiV5.js";import"./cb5cdda9a-CSfiLIa6.js";import"./c51e217b4-KUwQQl_W.js";import"./tree-sitter-BFuuT2ac.js";const o=e.memo(({onDismiss:o,onAction:r})=>{const[n,c]=e.useState(!1),[l,d]=e.useState(!1),m=e.useRef(!1),u=e.useCallback(e=>{e.preventDefault(),m.current=!0,d(!0),c(!0)},[]),j=e.useCallback(()=>{c(!1),m.current&&r()},[r]),p=e.useCallback(()=>{d(!0),o()},[o]);return s.jsxs(s.Fragment,{children:[!l&&s.jsx(i,{variant:"always-visible",actionHref:"#",openInNewTab:!1,imageUrl:"/images/spotlights/discoverability-nudge.png",title:s.jsx(a,{defaultMessage:"Join your team on Claude",id:"B8DvdutP6y"}),body:s.jsx(a,{defaultMessage:"A workspace matching your email is available to join.",id:"i1gh+K538Q"}),actionText:s.jsx(a,{defaultMessage:"View teams",id:"bY1U+Iziei"}),onDismiss:p,onClick:u}),s.jsx(t,{isOpen:n,onClose:j})]})});o.displayName="JoinDiscoverableOrgNudge";export{o as JoinDiscoverableOrgNudge};
