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{o as t,C as n,N as r,c as i,u as d,O as m,B as l,T as c}from"./c6eedc03a-CsEFTfjy.js";import{Y as j,Z as p}from"./index-DhMXk6CR.js";import{B as h,I as v}from"./vendor-ant-cds-bBedrtIN.js";import"./vendor-base-5_f7mmWg.js";import"./vendor-base-ui-DNypCIlh.js";import"./vendor-radix-Ch96tRrt.js";import"./vendor-zod-0xcuG3aM.js";import"./vendor-zustand-BeF8W8xk.js";import"./vendor-icons-CokWnmlw.js";import"./vendor-lodash-BvMLws5K.js";import"./vendor-router-qG5OCEmI.js";import"./vendor-query-BwvgHhJ1.js";import"./vendor-zod-v3-CZy0YPWu.js";import"./vendor-motion-EDlUw66k.js";import"./vendor-luxon-CZxT8ieM.js";import"./vendor-growthbook-C66YtMMX.js";import"./vendor-infra-DayZK7Ds.js";import"./caf7c7e06-DJYXCm3T.js";import"./c5669b8e4-DFSq88jr.js";import"./c5f4e1303-CiyIFgnl.js";import"./cbaad2c48-DaP34LG2.js";import"./vendor-virtual-DRz8lJfQ.js";const x=s.memo(({saffronSearchEnabled:s,onDismiss:t,onStartNewChat:n,onNever:r})=>{const i=a();return e.jsx(l,{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(h,{variant:"secondary",onClick:t,children:i.formatMessage({defaultMessage:"Not now",id:"dUCA4Khx0S"})}),e.jsx(h,{variant:"primary",onClick:n,children:i.formatMessage({defaultMessage:"Start new chat",id:"KcA+xo4hhh"})})]}),e.jsx(c,{onClick:r,className:"text-xs text-text-400",children:e.jsx(o,{defaultMessage:"Don\u2019t show again",id:"MWjOMpKsd7"})})]})]})})});x.displayName="LongConversationChatBannerContent";const f=s.memo(({enabled:a,onDismiss:o,onAction:l})=>{const c=t(),h=n(),v=r(),{dismiss:f}=i(),{conversation:u}=d(),g=m(s=>u?.id?s.pathUuidsByConversation[u.id]?.length??0:0),w=s.useCallback(()=>{l({action:"start_new_chat"}),c.push(h?`/project/${h}`:"/new")},[l,h,c]),C=s.useCallback(()=>{f(j),o()},[f,o]);return!a||g<p?null:e.jsx(x,{saffronSearchEnabled:v,onDismiss:o,onStartNewChat:w,onNever:C})});f.displayName="LongConversationChatBanner";export{f as LongConversationChatBanner,x as LongConversationChatBannerContent};
