import{r as e,j as s}from"./vendor-react-AXa6hZO5.js";import{b as a}from"./c2591c98b-9UrrTnB9.js";import{k as r,B as l,w as i}from"./cec18ad9a-DiLjrOUd.js";import{e as t}from"./vendor-icons-Dy3Nea9p.js";import{u as d,M as o}from"./vendor-intl-BdADXLLt.js";import{av as n,al as c,aw as m,ax as f,ay as x,S as h}from"./index-C_tZnXTW.js";import{C as j}from"./cdd5b9598-juLasKsB.js";import"./vendor-radix-glKlawmm.js";import"./vendor-luxon-D0OkDiyb.js";import"./vendor-query-D7SPXjZv.js";import"./vendor-lodash-BKAXkXVe.js";import"./vendor-zod-CMvj0_Fd.js";import"./c51f8bc6d-BS9P5nN1.js";import"./vendor-zustand-CcZsBpBq.js";import"./vendor-motion-0BJMgYoH.js";import"./vendor-infra-CFC-WJ8N.js";import"./vendor-router-BSYVf8By.js";import"./vendor-growthbook-XJcBFzji.js";import"./tree-sitter-BFuuT2ac.js";const g=({handleDismiss:i,handleAction:h})=>{const j=d(),g=e.useRef(!1),u=!r(),p=a(),{toggleSaffronSearch:w}=n();return e.useEffect(()=>{g.current||(g.current=!0,w(!0))},[w]),s.jsxs("div",{className:"grid grid-rows-2 md:grid-rows-1 grid-cols-1 md:grid-cols-2 h-full",children:[s.jsx("div",{className:"md:hidden overflow-hidden flex items-center justify-center relative w-full h-full",children:s.jsx(v,{})}),s.jsxs("div",{className:"flex flex-col gap-4 h-full md:p-6 p-8",children:[s.jsxs("div",{className:"flex flex-col gap-4 grow",children:[u&&s.jsx(c,{variant:"PREVIEW",className:"!bg-brand-100/10 !text-brand-000 !normal-case !border-none",children:s.jsx(o,{defaultMessage:"Preview",id:"TJo5E6JuIN"})}),s.jsx(m,{children:s.jsx(o,{defaultMessage:"Claude never loses the thread",id:"I6AR9sgEDr"})}),s.jsx("div",{className:"flex flex-col gap-3 grow",children:s.jsx(f,{children:s.jsx(o,{defaultMessage:"Now Claude can reference past chats for relevant context.",id:"RJqydHS5V6"})})})]}),s.jsxs("div",{className:"flex md:flex-col flex-row-reverse justify-start gap-2 mt-8 md:mt-12",children:[s.jsx(x,{className:"md:w-full",size:"default",variant:"primary",onClick:()=>{h({actionName:"tryNow"}),p({prompt:j.formatMessage({defaultMessage:"Hi Claude, what were some highlights from our recent conversations?",id:"CAi2RY/j4J"}),attachments:[],files:[],syncSources:[]})},children:s.jsx(o,{defaultMessage:"Try now",id:"d8L6MQv7gO"})}),s.jsx(x,{className:"md:w-full",size:"default",variant:"secondary",onClick:()=>{h({actionName:"managePermissions"})},href:"/settings/capabilities",children:s.jsx(o,{defaultMessage:"Manage permissions",id:"bzaykhSB2a"})})]})]}),s.jsx("div",{className:"overflow-hidden flex items-center justify-center relative w-full h-full max-md:hidden",children:s.jsx(v,{})}),s.jsx("div",{className:"absolute top-4 right-4",children:s.jsx(l,{size:"icon",onClick:i,variant:"ghost",className:"z-10 hover:bg-transparent text-text-300 hover:text-text-100","aria-label":j.formatMessage({defaultMessage:"Close",id:"rbrahOGMC3"}),children:s.jsx(t,{size:16})})})]})};function u(e){return s.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 v=()=>s.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:s.jsxs("div",{className:"flex flex-col gap-2 p-8",children:[s.jsx(u,{children:s.jsx(o,{defaultMessage:"Hey Claude",id:"oysDdVgKFB"})}),s.jsx(u,{children:s.jsx(o,{defaultMessage:"Back from PTO... where did I leave off?",id:"DD7a29OOxp"})}),s.jsxs("div",{className:"flex flex-row items-center gap-2.5 mt-2",children:[s.jsx(j,{width:26,height:26,className:"fill-accent-brand"}),s.jsx(i,{className:"font-claude-response italic text-sm -translate-y-0.5",colorOverrides:"bg-accent-brand from-accent-brand to-accent-brand",children:s.jsx(o,{defaultMessage:"Referencing past chats...",id:"5e9/6HMpoI"})})]})]})}),p=e.memo(({onDismiss:e,onAction:a})=>s.jsx(h,{modalSize:"2lg",modalClassName:"!p-0 !bg-bg-000 max-md:max-w-[23.5rem]",onDismiss:e,onAction:a,render:({handleAction:e,handleDismiss:a})=>s.jsx(g,{handleDismiss:a,handleAction:e})}));p.displayName="MemorySearchSpotlight";export{p as MemorySearchSpotlight};
