import{r as e,j as o}from"./vendor-react-AXa6hZO5.js";import{M as s}from"./vendor-intl-BdADXLLt.js";import{H as r,J as i}from"./index-D35RxkWr.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-zod-1gcJXWab.js";import"./c6eedc03a-C8LSdtro.js";import"./vendor-lodash-D-zrMTUO.js";import"./vendor-zustand-CcZsBpBq.js";import"./vendor-icons-DsiQAprm.js";import"./vendor-motion-DGh7M6mr.js";import"./vendor-radix-jAWPQP1f.js";import"./vendor-router-B4CxQ1po.js";import"./vendor-query-B8PP3rYl.js";import"./vendor-growthbook-XJcBFzji.js";import"./c365fd3fe-Dmpsm876.js";import"./c70a3d12b-BI7Bbafv.js";import"./vendor-luxon-Y8l99kBI.js";import"./tree-sitter-BFuuT2ac.js";const t=e.memo(({onDismiss:t,onAction:a})=>{const[n,d]=e.useState(!1),[m,l]=e.useState(!1),j=e.useRef(!1),p=e.useCallback(e=>{e.preventDefault(),j.current=!0,l(!0),d(!0)},[]),c=e.useCallback(()=>{d(!1),j.current&&a()},[a]),u=e.useCallback(()=>{l(!0),t()},[t]);return o.jsxs(o.Fragment,{children:[!m&&o.jsx(r,{variant:"always-visible",actionHref:"#",openInNewTab:!1,imageUrl:"/images/spotlights/discoverability-nudge.png",title:o.jsx(s,{defaultMessage:"Join your team on Claude",id:"B8DvdutP6y"}),body:o.jsx(s,{defaultMessage:"A workspace matching your email is available to join.",id:"i1gh+K538Q"}),actionText:o.jsx(s,{defaultMessage:"View teams",id:"bY1U+Iziei"}),onDismiss:u,onClick:p}),o.jsx(i,{isOpen:n,onClose:c})]})});t.displayName="JoinDiscoverableOrgNudge";export{t as JoinDiscoverableOrgNudge};
