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-C_tZnXTW.js";import"./vendor-infra-CFC-WJ8N.js";import"./vendor-zod-CMvj0_Fd.js";import"./cec18ad9a-DiLjrOUd.js";import"./vendor-radix-glKlawmm.js";import"./vendor-zustand-CcZsBpBq.js";import"./vendor-icons-Dy3Nea9p.js";import"./vendor-lodash-BKAXkXVe.js";import"./vendor-motion-0BJMgYoH.js";import"./vendor-router-BSYVf8By.js";import"./vendor-query-D7SPXjZv.js";import"./vendor-growthbook-XJcBFzji.js";import"./cdd5b9598-juLasKsB.js";import"./c2591c98b-9UrrTnB9.js";import"./vendor-luxon-D0OkDiyb.js";import"./c51f8bc6d-BS9P5nN1.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};
