import{r,j as o}from"./vendor-react-AXa6hZO5.js";import{a as s,b as e,d as i,e as n}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-intl-BdADXLLt.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=r.memo(({enabled:t,onDismiss:a})=>{const{conversation:m}=s(),d=e({conversationUuid:m?.id,isStreaming:!1}),{dismiss:p}=i(),j=r.useCallback(()=>{p("cowork_guest_pass_upsell_banner"),a()},[p,a]);return t&&d?o.jsx(n,{referralLink:d.referralLink,remainingPasses:d.remainingPasses,formattedRewardAmount:d.formattedRewardAmount,onDismiss:j}):null});t.displayName="CoworkGuestPassUpsellChatBanner";export{t as CoworkGuestPassUpsellChatBanner};
