import{r as o,j as r}from"./vendor-react-Dp9pL_Wn.js";import{m as s,n as e,q as n,r as i}from"./index-DhMXk6CR.js";import{u as t,c as a}from"./c6eedc03a-CsEFTfjy.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-zod-0xcuG3aM.js";import"./vendor-router-qG5OCEmI.js";import"./vendor-intl-D2wGIp4M.js";import"./vendor-base-5_f7mmWg.js";import"./vendor-ant-cds-bBedrtIN.js";import"./vendor-base-ui-DNypCIlh.js";import"./vendor-radix-Ch96tRrt.js";import"./vendor-virtual-DRz8lJfQ.js";import"./vendor-query-BwvgHhJ1.js";import"./vendor-zustand-BeF8W8xk.js";import"./caf7c7e06-DJYXCm3T.js";import"./vendor-lodash-BvMLws5K.js";import"./vendor-icons-CokWnmlw.js";import"./vendor-motion-EDlUw66k.js";import"./c5669b8e4-DFSq88jr.js";import"./vendor-luxon-CZxT8ieM.js";import"./c5f4e1303-CiyIFgnl.js";import"./cbaad2c48-DaP34LG2.js";import"./vendor-growthbook-C66YtMMX.js";import"./vendor-zod-v3-CZy0YPWu.js";function m(){}const d=o.memo(({enabled:d,onDismiss:p,onAction:c})=>{const{conversation:j}=t(),v=j?.id,l=s()?"cowork":"chat",{lastMessage:u,previousMessage:b}=e({conversationUuid:v,isStreaming:!1}),f=o.useMemo(()=>n({lastMessage:u,previousMessage:b}),[u,b]),{dismiss:g}=a(),h=o.useCallback(()=>{g("c4word_chat_banner_upsell"),p()},[g,p]),w=o.useCallback(()=>{g("c4word_chat_banner_upsell"),c()},[g,c]);return d?r.jsx(i,{triggerType:f??"upload",surface:l,onShown:m,onDismiss:h,onAction:w}):null});d.displayName="C4WordUpsellChatBanner";export{d as C4WordUpsellChatBanner};
