import{o as e}from"./rolldown-runtime-iuO8RvI4.js";import{Fl as a,Tu as s,Vi as n,bi as r}from"./shared-0-C4kdVF7Y.js";import{Mi as t,ki as u}from"./vendor-frame-CwiylG4Y.js";import{nn as i}from"./vendor-all-2-BJdkbLSj.js";var l=e(t()),c=u();function o(){return(0,c.jsx)(n,{variant:"neutral",size:"xxs",children:(0,c.jsx)(i,{defaultMessage:"Team plan",id:"idguOo+PzU"})})}function d(e,a=!0){const{track:n}=r(),t=s(),u=(0,l.useRef)(!1);return(0,l.useEffect)(()=>{a&&!u.current&&(u.current=!0,n({event_key:"claudeai.team_share_upsell_nudge.shown",surface:e}))},[a,n,e]),{handleUpgradeClick:(0,l.useCallback)(()=>{n({event_key:"claudeai.team_share_upsell_nudge.clicked",surface:e,trigger:"cta_button"}),t.push("/upgrade?initialPlanType=team")},[n,e,t]),handleOptionSelected:(0,l.useCallback)(a=>{n({event_key:"claudeai.team_share_upsell_nudge.option_selected",surface:e,option:a})},[n,e]),handleDismissed:(0,l.useCallback)(()=>{n({event_key:"claudeai.team_share_upsell_nudge.dismissed",surface:e})},[n,e])}}function m(){return a()}function _(e){const s=a();return e&&s}export{d as i,m as n,o as r,_ as t};