import{o as s}from"./rolldown-runtime-iuO8RvI4.js";import{Mi as r,ki as e}from"./vendor-frame-CwiylG4Y.js";import{Xl as a}from"./shared-1-3-6x7RKF.js";import{ks as o}from"./shared-4-6CEyRAHb.js";import{er as i,tr as m}from"./shared-7-VxUxSmVa.js";var n=s(r()),t=e(),d=(0,n.memo)(({enabled:s,onDismiss:r})=>{const{conversation:e}=o(),d=m({conversationUuid:e?.id,isStreaming:!1}),{dismiss:l}=a(),f=(0,n.useCallback)(()=>{l("cowork_guest_pass_upsell_banner"),r()},[l,r]);return s&&d?(0,t.jsx)(i,{referralLink:d.referralLink,remainingPasses:d.remainingPasses,formattedRewardAmount:d.formattedRewardAmount,onDismiss:f}):null});export{d as CoworkGuestPassUpsellChatBanner};