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