import{r as s,j as e}from"./vendor-react-AXa6hZO5.js";import{c as a,a as o,T as t}from"./c70a3d12b-BI7Bbafv.js";import{b as r,B as n}from"./c6eedc03a-C8LSdtro.js";import{U as i,d,a as c,a5 as l,a6 as m,a7 as j,_ as x}from"./index-D35RxkWr.js";import{u as p,M as h}from"./vendor-intl-BdADXLLt.js";import"./vendor-query-B8PP3rYl.js";import"./vendor-luxon-Y8l99kBI.js";import"./vendor-zod-1gcJXWab.js";import"./vendor-radix-jAWPQP1f.js";import"./vendor-lodash-D-zrMTUO.js";import"./vendor-zustand-CcZsBpBq.js";import"./vendor-icons-DsiQAprm.js";import"./vendor-motion-DGh7M6mr.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-router-B4CxQ1po.js";import"./vendor-growthbook-XJcBFzji.js";import"./c365fd3fe-Dmpsm876.js";import"./tree-sitter-BFuuT2ac.js";const f=s.memo(({enabled:f,onDismiss:u,onAction:v})=>{const g=r(),w=p(),C=i(),M=a(),{dismiss:b}=d(),{conversation:N}=c(),k=l(s=>N?.id?s.pathUuidsByConversation[N.id]?.length??0:0),y=s.useCallback(()=>{v({action:"start_new_chat"}),g.push(C?`/project/${C}`:"/new")},[v,C,g]),z=s.useCallback(()=>{b(m),u()},[b,u]);return!f||k<j?null:e.jsx(o,{variant:"main",icon:x,className:"w-full mb-3",message:e.jsxs("div",{className:"flex flex-col gap-0.5",children:[e.jsx("div",{className:"font-bold",children:e.jsx(h,{defaultMessage:"Longer chats draw down your usage faster",id:"+qUX/WZTjT"})}),e.jsx("div",{className:"text-text-300",children:M?e.jsx(h,{defaultMessage:"Claude can search past conversations, so you won't lose the thread.",id:"hDaae5uGSs"}):e.jsx(h,{defaultMessage:"You can ask Claude to summarize this conversation first, then paste into a new one.",id:"cmzXoKdwPd"})})]}),customAction:e.jsxs("div",{className:"flex flex-col gap-2 items-end",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(n,{size:"sm",variant:"secondary",onClick:u,children:w.formatMessage({defaultMessage:"Not now",id:"dUCA4Khx0S"})}),e.jsx(n,{size:"sm",variant:"primary",onClick:y,children:w.formatMessage({defaultMessage:"Start new chat",id:"KcA+xo4hhh"})})]}),e.jsx(t,{onClick:z,className:"text-xs text-text-400",children:e.jsx(h,{defaultMessage:"Don't show again",id:"OfQY5FgDMl"})})]})})});f.displayName="LongConversationChatBanner";export{f as LongConversationChatBanner};
