import{r as s,j as a}from"./vendor--leCAzSo.js";import{a as e,i as o,j as r,m as i,d as n,n as t}from"./index-DZuQva-j.js";import"./c723dd3dd-58n3MxoB.js";import"./ca9c256b9-7brFE8T2.js";import"./c57c2877c-dpgWZiV5.js";import"./cb5cdda9a-CSfiLIa6.js";import"./c51e217b4-KUwQQl_W.js";import"./tree-sitter-BFuuT2ac.js";const c=()=>{},d=s.memo(({enabled:d,onDismiss:m,onAction:l})=>{const{conversation:p}=e(),u=p?.id,j=o()?"cowork":"chat",{lastMessage:b,previousMessage:g}=r({conversationUuid:u,isStreaming:!1}),_=s.useMemo(()=>i({lastMessage:b,previousMessage:g}),[b,g]),{dismiss:h}=n(),v=s.useCallback(()=>{h("c4word_chat_banner_upsell"),m()},[h,m]),M=s.useCallback(()=>{h("c4word_chat_banner_upsell"),l()},[h,l]);return d?a.jsx(t,{triggerType:_??"upload",surface:j,onShown:c,onDismiss:v,onAction:M}):null});d.displayName="C4WordUpsellChatBanner";export{d as C4WordUpsellChatBanner};
