import{o as e}from"./rolldown-runtime-iuO8RvI4.js";import{Mi as s,ki as a}from"./vendor-frame-CwiylG4Y.js";import{rn as o}from"./vendor-all-2-BJdkbLSj.js";import{q as t}from"./shared-14-BNdP3DJt.js";import{t as r}from"./cd27d5348-DDEB43kT.js";var i=e(s()),m=a(),n=(0,i.memo)(({onDismiss:e,onAction:s})=>{const a=o(),[n,l]=(0,i.useState)(!1),[u,d]=(0,i.useState)(!1),f=(0,i.useRef)(!1),g=(0,i.useCallback)(e=>{e.preventDefault(),f.current=!0,d(!0),l(!0)},[]),c=(0,i.useCallback)(()=>{l(!1),f.current&&s()},[s]),p=(0,i.useCallback)(()=>{d(!0),e()},[e]);return(0,m.jsxs)(m.Fragment,{children:[!u&&(0,m.jsx)(r,{href:"#",imageUrl:"/images/spotlights/discoverability-nudge.png",title:a.formatMessage({defaultMessage:"Join your team on Claude",id:"B8DvdutP6y"}),body:a.formatMessage({defaultMessage:"A workspace matching your email is available to join.",id:"i1gh+K538Q"}),buttonText:a.formatMessage({defaultMessage:"View teams",id:"bY1U+Iziei"}),onDismiss:p,onClick:g}),(0,m.jsx)(t,{isOpen:n,onClose:c})]})});export{n as JoinDiscoverableOrgNudge};