import{r,j as o}from"./vendor-react-AXa6hZO5.js";import{a as s,b as e,d as n,e as i}from"./index-D35RxkWr.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-zod-1gcJXWab.js";import"./c6eedc03a-C8LSdtro.js";import"./vendor-intl-BdADXLLt.js";import"./vendor-lodash-D-zrMTUO.js";import"./vendor-zustand-CcZsBpBq.js";import"./vendor-icons-DsiQAprm.js";import"./vendor-motion-DGh7M6mr.js";import"./vendor-radix-jAWPQP1f.js";import"./vendor-router-B4CxQ1po.js";import"./vendor-query-B8PP3rYl.js";import"./vendor-growthbook-XJcBFzji.js";import"./c365fd3fe-Dmpsm876.js";import"./c70a3d12b-BI7Bbafv.js";import"./vendor-luxon-Y8l99kBI.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}=n(),j=r.useCallback(()=>{p("cowork_guest_pass_upsell_banner"),a()},[p,a]);return t&&d?o.jsx(i,{referralLink:d.referralLink,remainingPasses:d.remainingPasses,formattedRewardAmount:d.formattedRewardAmount,onDismiss:j}):null});t.displayName="CoworkGuestPassUpsellChatBanner";export{t as CoworkGuestPassUpsellChatBanner};
