import{r as s,j as o}from"./vendor-react-DcxrbCFs.js";import{u as e,M as a}from"./vendor-intl-C0z7gCkr.js";import{q as t,R as r,W as i,b as n,u as c,X as d,B as m,V as j}from"./c4b350ac1-BTR_0NaM.js";import{T as l,U as p}from"./index-BSvCx8kl.js";import{B as f,I as h}from"./vendor-ant-cds-BOj-tX6j.js";import"./vendor-base-ui-dYhdtXSh.js";import"./vendor-radix-BZeqcGXH.js";import"./vendor-zod-Zyr3BDtu.js";import"./vendor-zustand-BLLlCrLG.js";import"./vendor-icons-ChFdOXlJ.js";import"./vendor-lodash--OmUGVwS.js";import"./vendor-router-DD4soP8u.js";import"./vendor-query-DdY22HAU.js";import"./vendor-luxon-Y8l99kBI.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-motion-HFQQEH7Z.js";import"./vendor-growthbook-Bq25eETo.js";import"./ca8998c31-6H5Q4Fd2.js";import"./c40b9b8f5-Da-ryo1W.js";import"./c4b43b0ae-760Yu4sg.js";import"./cbf215181-C3oidXTA.js";import"./c009a87a0-DXB61_5D.js";import"./c82022b5f-DK6eLSBd.js";import"./cc61d0d63-kW48LhDF.js";import"./c93f725a0-DejUT30N.js";import"./c85adc124-DNLst9Jo.js";import"./c26148d62-BlLiyl5z.js";import"./c0e977562-BYJ_xmcc.js";import"./c9f4bb49e-95JsAiB2.js";import"./cc2dfdfd3-C4WlGtCV.js";import"./c6a992d55-Bg3ygTzd.js";import"./c9e81e7b9-l4IaiKjm.js";import"./c5669b8e4-B184INBD.js";import"./cf57f6351-ChXug4Hw.js";import"./c0632795f-CL3ffsDQ.js";import"./cc2e285cb-B9NgZcZ2.js";import"./c1f96d614-DAkctE43.js";import"./cac5c74b6-D2snV6_H.js";import"./c627fcdb6-Cc-7gsFT.js";import"./c590fc197--sY4eEEU.js";import"./cbaad2c48-DRCBJU3Q.js";import"./vendor-virtual-sigx4wjL.js";import"./c1d7d8319-yi8QLBnY.js";import"./cdd5b9598-Bh6YyBPI.js";import"./c393cb7f5-JWhvNgWh.js";import"./c4526f334-Ddtc7W1k.js";import"./c8c7c4e8f-DoGfpMPz.js";import"./c1d96b207-D0fAg0jr.js";import"./c9bba154c-DdQs_cXE.js";const v=s.memo(({saffronSearchEnabled:s,onDismiss:t,onStartNewChat:r,onNever:i})=>{const n=e();return o.jsx(m,{variant:"neutral",icon:o.jsx(h,{name:"ChatAdd",size:"md"}),className:"w-full mb-3 !items-start",children:o.jsxs("div",{className:"flex w-full items-start justify-between gap-4",children:[o.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[o.jsx("div",{className:"font-bold",children:o.jsx(a,{defaultMessage:"Longer chats draw down your usage faster",id:"+qUX/WZTjT"})}),o.jsx("div",{className:"text-text-300",children:s?o.jsx(a,{defaultMessage:"Claude can search past conversations, so you won't lose the thread.",id:"hDaae5uGSs"}):o.jsx(a,{defaultMessage:"You can ask Claude to summarize this conversation first, then paste into a new one.",id:"cmzXoKdwPd"})})]}),o.jsxs("div",{className:"flex shrink-0 flex-col items-end gap-2",children:[o.jsxs("div",{className:"flex gap-2",children:[o.jsx(f,{variant:"secondary",onClick:t,children:n.formatMessage({defaultMessage:"Not now",id:"dUCA4Khx0S"})}),o.jsx(f,{variant:"primary",onClick:r,children:n.formatMessage({defaultMessage:"Start new chat",id:"KcA+xo4hhh"})})]}),o.jsx(j,{onClick:i,className:"text-xs text-text-400",children:o.jsx(a,{defaultMessage:"Don't show again",id:"OfQY5FgDMl"})})]})]})})});v.displayName="LongConversationChatBannerContent";const x=s.memo(({enabled:e,onDismiss:a,onAction:m})=>{const j=t(),f=r(),h=i(),{dismiss:x}=n(),{conversation:u}=c(),b=d(s=>u?.id?s.pathUuidsByConversation[u.id]?.length??0:0),g=s.useCallback(()=>{m({action:"start_new_chat"}),j.push(f?`/project/${f}`:"/new")},[m,f,j]),w=s.useCallback(()=>{x(l),a()},[x,a]);return!e||b<p?null:o.jsx(v,{saffronSearchEnabled:h,onDismiss:a,onStartNewChat:g,onNever:w})});x.displayName="LongConversationChatBanner";export{x as LongConversationChatBanner,v as LongConversationChatBannerContent};
