import{r as s,j as a}from"./vendor-react-AXa6hZO5.js";import{Q as e,a4 as o,d as t,a as r,a5 as n,a6 as i,a7 as d,s as c,Y as l,Z as m}from"./index-C_tZnXTW.js";import{a as j,B as p}from"./cec18ad9a-DiLjrOUd.js";import{u as x,M as h}from"./vendor-intl-BdADXLLt.js";import"./vendor-infra-CFC-WJ8N.js";import"./vendor-zod-CMvj0_Fd.js";import"./vendor-router-BSYVf8By.js";import"./cdd5b9598-juLasKsB.js";import"./vendor-lodash-BKAXkXVe.js";import"./vendor-motion-0BJMgYoH.js";import"./vendor-query-D7SPXjZv.js";import"./vendor-zustand-CcZsBpBq.js";import"./vendor-growthbook-XJcBFzji.js";import"./vendor-radix-glKlawmm.js";import"./c2591c98b-9UrrTnB9.js";import"./vendor-luxon-D0OkDiyb.js";import"./c51f8bc6d-BS9P5nN1.js";import"./vendor-icons-Dy3Nea9p.js";import"./tree-sitter-BFuuT2ac.js";const u=s.memo(({enabled:u,onDismiss:v,onAction:f})=>{const g=j(),w=x(),C=e(),b=o(),{dismiss:M}=t(),{conversation:N}=r(),k=n(s=>N?.id?s.pathUuidsByConversation[N.id]?.length??0:0),y=s.useCallback(()=>{f({action:"start_new_chat"}),g.push(C?`/project/${C}`:"/new")},[f,C,g]),z=s.useCallback(()=>{M(i),v()},[M,v]);return!u||k<d?null:a.jsx(c,{variant:"main",icon:l,className:"w-full mb-3",message:a.jsxs("div",{className:"flex flex-col gap-0.5",children:[a.jsx("div",{className:"font-bold",children:a.jsx(h,{defaultMessage:"Longer chats draw down your usage faster",id:"+qUX/WZTjT"})}),a.jsx("div",{className:"text-text-300",children:b?a.jsx(h,{defaultMessage:"Claude can search past conversations, so you won't lose the thread.",id:"hDaae5uGSs"}):a.jsx(h,{defaultMessage:"You can ask Claude to summarize this conversation first, then paste into a new one.",id:"cmzXoKdwPd"})})]}),customAction:a.jsxs("div",{className:"flex flex-col gap-2 items-end",children:[a.jsxs("div",{className:"flex gap-2",children:[a.jsx(p,{size:"sm",variant:"secondary",onClick:v,children:w.formatMessage({defaultMessage:"Not now",id:"dUCA4Khx0S"})}),a.jsx(p,{size:"sm",variant:"primary",onClick:y,children:w.formatMessage({defaultMessage:"Start new chat",id:"KcA+xo4hhh"})})]}),a.jsx(m,{onClick:z,className:"text-xs text-text-400",children:a.jsx(h,{defaultMessage:"Don't show again",id:"OfQY5FgDMl"})})]})})});u.displayName="LongConversationChatBanner";export{u as LongConversationChatBanner};
