import{r as s,j as e}from"./vendor-react-Dp9pL_Wn.js";import{u as o,M as a}from"./vendor-intl-BDR1NhN_.js";import{n as t,M as r,Q as i,c as n,u as c,R as d,B as m,T as j}from"./c4b350ac1-KLFM4jkb.js";import{O as p,P as l}from"./index-CSvjYuL_.js";import{B as f,I as h}from"./vendor-ant-cds-DvTmcYA1.js";import"./vendor-base-5_f7mmWg.js";import"./vendor-base-ui-CdQU4JQh.js";import"./vendor-radix-D3USJ4lr.js";import"./vendor-zod-DIcz3Rbr.js";import"./vendor-zustand-CI9omAwJ.js";import"./vendor-icons-BBStP_8q.js";import"./vendor-lodash-CIro4mst.js";import"./vendor-router-qG5OCEmI.js";import"./vendor-query-DgCRID2b.js";import"./vendor-motion-D7Z1qgzM.js";import"./vendor-luxon-Y8l99kBI.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-growthbook-C66YtMMX.js";import"./c40b9b8f5-CcFpJKg-.js";import"./c393cb7f5-HUvLXarC.js";import"./ca8998c31-P9hjFFxa.js";import"./cbf215181-Bsdk_iVX.js";import"./c82022b5f-v1T93ITZ.js";import"./c627fcdb6-v1yU0Z6G.js";import"./c85adc124-DaXgLnIc.js";import"./c4b43b0ae-CSVSIKUp.js";import"./ce61829b3-0upsP-GZ.js";import"./c0632795f-DFHAnV4h.js";import"./c1f96d614-CNpmgQ8l.js";import"./c2591c98b-B0JYd9Jp.js";import"./c9bba154c-Bw59591Y.js";import"./c2a658aad-Db1B4w67.js";import"./c0e977562-B_Zbx8nl.js";import"./c9f4bb49e-CrIVzJHt.js";import"./cc2dfdfd3-BrnuP9el.js";import"./c6a992d55-BgxzHrh5.js";import"./c9e81e7b9-CQ79hI5E.js";import"./cdd5b9598-DXIbe6ku.js";import"./cf57f6351-BOW8NPIt.js";import"./c5669b8e4-B4xCGVen.js";import"./c93f725a0-BmtJGQGk.js";import"./c26148d62-Db4ihZzY.js";import"./vendor-virtual-DRz8lJfQ.js";import"./c3a36db6f-BVEOyI7C.js";import"./cc2e285cb-ERZJd0nP.js";import"./c4526f334-DmmtJSHf.js";import"./cb59e2e62-DU7B8aps.js";import"./c009a87a0-BdYPxNaw.js";import"./c8c15d455-BRkvbsON.js";import"./c0f96d0e0-DGUPaEDS.js";const v=s.memo(({saffronSearchEnabled:s,onDismiss:t,onStartNewChat:r,onNever:i})=>{const n=o();return e.jsx(m,{variant:"neutral",icon:e.jsx(h,{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(a,{defaultMessage:"Longer chats draw down your usage faster",id:"+qUX/WZTjT"})}),e.jsx("div",{className:"text-text-300",children:s?e.jsx(a,{defaultMessage:"Claude can search past conversations, so you won't lose the thread.",id:"hDaae5uGSs"}):e.jsx(a,{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(f,{variant:"secondary",onClick:t,children:n.formatMessage({defaultMessage:"Not now",id:"dUCA4Khx0S"})}),e.jsx(f,{variant:"primary",onClick:r,children:n.formatMessage({defaultMessage:"Start new chat",id:"KcA+xo4hhh"})})]}),e.jsx(j,{onClick:i,className:"text-xs text-text-400",children:e.jsx(a,{defaultMessage:"Don't show again",id:"OfQY5FgDMl"})})]})]})})});v.displayName="LongConversationChatBannerContent";const x=s.memo(({enabled:o,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(p),a()},[x,a]);return!o||b<l?null:e.jsx(v,{saffronSearchEnabled:h,onDismiss:a,onStartNewChat:g,onNever:w})});x.displayName="LongConversationChatBanner";export{x as LongConversationChatBanner,v as LongConversationChatBannerContent};
