import{r as o,j as r}from"./vendor-react-Dp9pL_Wn.js";import{u as s}from"./vendor-intl-D2wGIp4M.js";import{J as e}from"./index-XoaBlZfC.js";import{H as t}from"./cd27d5348-DPZVK3vw.js";import"./vendor-base-5_f7mmWg.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-zod-B8MhECV7.js";import"./c2ee0272b-DPDuX889.js";import"./vendor-ant-cds-BLsR_p72.js";import"./vendor-base-ui-N1VQ4ctE.js";import"./vendor-radix-Dv3qPI0v.js";import"./vendor-virtual-DRz8lJfQ.js";import"./vendor-zustand-BeF8W8xk.js";import"./vendor-icons-DGChWNxR.js";import"./vendor-lodash-BvMLws5K.js";import"./vendor-router-qG5OCEmI.js";import"./vendor-query-CRl6sF7K.js";import"./vendor-zod-v3-CZy0YPWu.js";import"./vendor-motion-EDlUw66k.js";import"./vendor-luxon-CZxT8ieM.js";import"./vendor-growthbook-HDTqppl-.js";import"./c9a5287df-D_Z7ffFR.js";import"./c51e217b4-CQax1dv1.js";import"./c627fcdb6-1_bsVTpt.js";import"./c62933a29-BTmwOnJk.js";import"./caf7c7e06-DiSIOZ2Y.js";import"./ca4e68303-2GEI1XEE.js";import"./ce5824dc6-DCrxq2nV.js";import"./cb3073067-VsOwq8wi.js";import"./c1e35bcba-VJ15EpPv.js";import"./c80791b3a-C9RrC3yS.js";import"./c7d6fc21a-XgEBZrGw.js";import"./c86a1b907-DGD2pwio.js";import"./c33b2042a-BXM4oh1L.js";import"./c6a992d55-BwJodww6.js";import"./cba0eac33-DiCKjNP1.js";const i=o.memo(({onDismiss:i,onAction:a})=>{const m=s(),[n,d]=o.useState(!1),[j,p]=o.useState(!1),c=o.useRef(!1),l=o.useCallback(o=>{o.preventDefault(),c.current=!0,p(!0),d(!0)},[]),u=o.useCallback(()=>{d(!1),c.current&&a()},[a]),v=o.useCallback(()=>{p(!0),i()},[i]);return r.jsxs(r.Fragment,{children:[!j&&r.jsx(t,{href:"#",imageUrl:"/images/spotlights/discoverability-nudge.png",title:m.formatMessage({defaultMessage:"Join your team on Claude",id:"B8DvdutP6y"}),body:m.formatMessage({defaultMessage:"A workspace matching your email is available to join.",id:"i1gh+K538Q"}),buttonText:m.formatMessage({defaultMessage:"View teams",id:"bY1U+Iziei"}),onDismiss:v,onClick:l}),r.jsx(e,{isOpen:n,onClose:u})]})});export{i as JoinDiscoverableOrgNudge};
