import{r as s,j as e}from"./vendor-react-Dp9pL_Wn.js";import{u as a,M as o}from"./vendor-intl-D2wGIp4M.js";import{w as r,J as t,N as n,h as i,u as d,O as l,B as m,T as c}from"./c2ee0272b-DPDuX889.js";import{_ as j,$ as h}from"./index-XoaBlZfC.js";import{B as p,I as v}from"./vendor-ant-cds-BLsR_p72.js";import"./vendor-base-5_f7mmWg.js";import"./vendor-base-ui-N1VQ4ctE.js";import"./vendor-radix-Dv3qPI0v.js";import"./vendor-zod-B8MhECV7.js";import"./vendor-zustand-BeF8W8xk.js";import"./vendor-icons-DGChWNxR.js";import"./vendor-lodash-BvMLws5K.js";import"./vendor-router-qG5OCEmI.js";import"./vendor-query-CRl6sF7K.js";import"./vendor-zod-v3-CZy0YPWu.js";import"./vendor-motion-EDlUw66k.js";import"./vendor-luxon-CZxT8ieM.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-growthbook-HDTqppl-.js";import"./c9a5287df-D_Z7ffFR.js";import"./c51e217b4-CQax1dv1.js";import"./c627fcdb6-1_bsVTpt.js";import"./vendor-virtual-DRz8lJfQ.js";const x=s.memo(({saffronSearchEnabled:s,onDismiss:r,onStartNewChat:t,onNever:n})=>{const i=a();return e.jsx(m,{variant:"neutral",icon:e.jsx(v,{name:"ChatAdd",size:"md"}),className:"w-full mb-3 !items-start",children:e.jsxs("div",{className:"flex w-full items-start justify-between gap-4",children:[e.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[e.jsx("div",{className:"font-bold",children:e.jsx(o,{defaultMessage:"Longer chats draw down your usage faster",id:"+qUX/WZTjT"})}),e.jsx("div",{className:"text-text-300",children:s?e.jsx(o,{defaultMessage:"Claude can search past conversations, so you won\u2019t lose the thread.",id:"TWDnT/16To"}):e.jsx(o,{defaultMessage:"You can ask Claude to summarize this conversation first, then paste into a new one.",id:"cmzXoKdwPd"})})]}),e.jsxs("div",{className:"flex shrink-0 flex-col items-end gap-2",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(p,{variant:"secondary",onClick:r,children:i.formatMessage({defaultMessage:"Not now",id:"dUCA4Khx0S"})}),e.jsx(p,{variant:"primary",onClick:t,children:i.formatMessage({defaultMessage:"Start new chat",id:"KcA+xo4hhh"})})]}),e.jsx(c,{onClick:n,className:"text-xs text-text-400",children:e.jsx(o,{defaultMessage:"Don\u2019t show again",id:"MWjOMpKsd7"})})]})]})})}),f=s.memo(({enabled:a,onDismiss:o,onAction:m})=>{const c=r(),p=t(),v=n(),{dismiss:f}=i(),{conversation:u}=d(),w=l(s=>u?.id?s.pathUuidsByConversation[u.id]?.length??0:0),g=s.useCallback(()=>{m({action:"start_new_chat"}),c.push(p?`/project/${p}`:"/new")},[m,p,c]),b=s.useCallback(()=>{f(j),o()},[f,o]);return!a||w<h?null:e.jsx(x,{saffronSearchEnabled:v,onDismiss:o,onStartNewChat:g,onNever:b})});export{f as LongConversationChatBanner,x as LongConversationChatBannerContent};
