import{r as o,j as s}from"./vendor-react-Dp9pL_Wn.js";import{p as r,q as e,r as n,s as i}from"./index-XoaBlZfC.js";import{u as t,h as a}from"./c2ee0272b-DPDuX889.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-zod-B8MhECV7.js";import"./vendor-router-qG5OCEmI.js";import"./vendor-intl-D2wGIp4M.js";import"./vendor-base-5_f7mmWg.js";import"./vendor-ant-cds-BLsR_p72.js";import"./vendor-base-ui-N1VQ4ctE.js";import"./vendor-radix-Dv3qPI0v.js";import"./vendor-virtual-DRz8lJfQ.js";import"./vendor-query-CRl6sF7K.js";import"./vendor-zustand-BeF8W8xk.js";import"./c9a5287df-D_Z7ffFR.js";import"./vendor-icons-DGChWNxR.js";import"./vendor-motion-EDlUw66k.js";import"./vendor-lodash-BvMLws5K.js";import"./vendor-luxon-CZxT8ieM.js";import"./c51e217b4-CQax1dv1.js";import"./c627fcdb6-1_bsVTpt.js";import"./vendor-growthbook-HDTqppl-.js";import"./vendor-zod-v3-CZy0YPWu.js";function m(){}const p=o.memo(({enabled:p,onDismiss:d,onAction:j})=>{const{conversation:c}=t(),v=c?.id,u=r()?"cowork":"chat",{lastMessage:l,previousMessage:b}=e({conversationUuid:v,isStreaming:!1}),f=o.useMemo(()=>n({lastMessage:l,previousMessage:b}),[l,b]),{dismiss:g}=a(),h=o.useCallback(()=>{g("c4ppt_chat_banner_upsell"),d()},[g,d]),_=o.useCallback(()=>{g("c4ppt_chat_banner_upsell"),j()},[g,j]);return p?s.jsx(i,{triggerType:f??"upload",surface:u,onShown:m,onDismiss:h,onAction:_}):null});export{p as C4PptUpsellChatBanner};
