import{r as s,j as a}from"./vendor--leCAzSo.js";import{a as e,i as o,j as t,k as i,d as r,l as n}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=()=>{},p=s.memo(({enabled:p,onDismiss:l,onAction:m})=>{const{conversation:d}=e(),u=d?.id,j=o()?"cowork":"chat",{lastMessage:b,previousMessage:g}=t({conversationUuid:u,isStreaming:!1}),_=s.useMemo(()=>i({lastMessage:b,previousMessage:g}),[b,g]),{dismiss:h}=r(),v=s.useCallback(()=>{h("c4ppt_chat_banner_upsell"),l()},[h,l]),M=s.useCallback(()=>{h("c4ppt_chat_banner_upsell"),m()},[h,m]);return p?a.jsx(n,{triggerType:_??"upload",surface:j,onShown:c,onDismiss:v,onAction:M}):null});p.displayName="C4PptUpsellChatBanner";export{p as C4PptUpsellChatBanner};
