import{u as e,r as s,j as a,M as r,h as l}from"./vendor--leCAzSo.js";import{ah as i,ai as t,_ as d,aj as n,ak as c,al as o,S as m}from"./index-DZuQva-j.js";import{j as f,B as x,S as h}from"./ca9c256b9-7brFE8T2.js";import{C as g}from"./c57c2877c-dpgWZiV5.js";import"./c723dd3dd-58n3MxoB.js";import"./c51e217b4-KUwQQl_W.js";import"./tree-sitter-BFuuT2ac.js";import"./cb5cdda9a-CSfiLIa6.js";const j=({handleDismiss:m,handleAction:h})=>{const g=e(),j=s.useRef(!1),u=!f(),v=i(),{toggleSaffronSearch:w}=t();return s.useEffect(()=>{j.current||(j.current=!0,w(!0))},[w]),a.jsxs("div",{className:"grid grid-rows-2 md:grid-rows-1 grid-cols-1 md:grid-cols-2 h-full",children:[a.jsx("div",{className:"md:hidden overflow-hidden flex items-center justify-center relative w-full h-full",children:a.jsx(p,{})}),a.jsxs("div",{className:"flex flex-col gap-4 h-full md:p-6 p-8",children:[a.jsxs("div",{className:"flex flex-col gap-4 grow",children:[u&&a.jsx(d,{variant:"PREVIEW",className:"!bg-brand-100/10 !text-brand-000 !normal-case !border-none",children:a.jsx(r,{defaultMessage:"Preview",id:"TJo5E6JuIN"})}),a.jsx(n,{children:a.jsx(r,{defaultMessage:"Claude never loses the thread",id:"I6AR9sgEDr"})}),a.jsx("div",{className:"flex flex-col gap-3 grow",children:a.jsx(c,{children:a.jsx(r,{defaultMessage:"Now Claude can reference past chats for relevant context.",id:"RJqydHS5V6"})})})]}),a.jsxs("div",{className:"flex md:flex-col flex-row-reverse justify-start gap-2 mt-8 md:mt-12",children:[a.jsx(o,{className:"md:w-full",size:"default",variant:"primary",onClick:()=>{h({actionName:"tryNow"}),v({prompt:g.formatMessage({defaultMessage:"Hi Claude, what were some highlights from our recent conversations?",id:"CAi2RY/j4J"}),attachments:[],files:[],syncSources:[]})},children:a.jsx(r,{defaultMessage:"Try now",id:"d8L6MQv7gO"})}),a.jsx(o,{className:"md:w-full",size:"default",variant:"secondary",onClick:()=>{h({actionName:"managePermissions"})},href:"/settings/capabilities",children:a.jsx(r,{defaultMessage:"Manage permissions",id:"bzaykhSB2a"})})]})]}),a.jsx("div",{className:"overflow-hidden flex items-center justify-center relative w-full h-full max-md:hidden",children:a.jsx(p,{})}),a.jsx("div",{className:"absolute top-4 right-4",children:a.jsx(x,{size:"icon",onClick:m,variant:"ghost",className:"z-10 hover:bg-transparent text-text-300 hover:text-text-100","aria-label":g.formatMessage({defaultMessage:"Close",id:"rbrahOGMC3"}),children:a.jsx(l,{size:16})})})]})};function u(e){return a.jsx("div",{...e,className:"font-large px-4 py-2 rounded-xl border self-start text-text-000 shadow-[0_40px_80px_hsl(var(--always-black)/10%)] dark:bg-always-white/[6%] dark:border-always-white/[9%] bg-always-white/50 border-always-white"})}const p=()=>a.jsx("div",{className:"w-full h-full flex items-center justify-center",style:{backgroundImage:"radial-gradient(200% 80% at 50% 100%,hsl(var(--brand-200)/0.25) 0%, hsl(var(--brand-200)/0.1) 80%, hsl(var(--bg-100)) 100%)"},children:a.jsxs("div",{className:"flex flex-col gap-2 p-8",children:[a.jsx(u,{children:a.jsx(r,{defaultMessage:"Hey Claude",id:"oysDdVgKFB"})}),a.jsx(u,{children:a.jsx(r,{defaultMessage:"Back from PTO... where did I leave off?",id:"DD7a29OOxp"})}),a.jsxs("div",{className:"flex flex-row items-center gap-2.5 mt-2",children:[a.jsx(g,{width:26,height:26,className:"fill-accent-brand"}),a.jsx(h,{className:"font-claude-response italic text-sm -translate-y-0.5",colorOverrides:"bg-accent-brand from-accent-brand to-accent-brand",children:a.jsx(r,{defaultMessage:"Referencing past chats...",id:"5e9/6HMpoI"})})]})]})}),v=s.memo(({onDismiss:e,onAction:s})=>a.jsx(m,{modalSize:"2lg",modalClassName:"!p-0 !bg-bg-000 max-md:max-w-[23.5rem]",onDismiss:e,onAction:s,render:({handleAction:e,handleDismiss:s})=>a.jsx(j,{handleDismiss:s,handleAction:e})}));v.displayName="MemorySearchSpotlight";export{v as MemorySearchSpotlight};
