import{r as e,j as s}from"./vendor-react-AXa6hZO5.js";import{r as a,e as r,B as d}from"./cec18ad9a-DiLjrOUd.js";import{an as o,ao as t,ap as i,a1 as n}from"./index-C_tZnXTW.js";import{M as l}from"./vendor-intl-BdADXLLt.js";import{C as c}from"./c4b73011a-mbM08IOP.js";import"./vendor-radix-glKlawmm.js";import"./vendor-zod-CMvj0_Fd.js";import"./vendor-zustand-CcZsBpBq.js";import"./vendor-icons-Dy3Nea9p.js";import"./vendor-lodash-BKAXkXVe.js";import"./vendor-motion-0BJMgYoH.js";import"./vendor-infra-CFC-WJ8N.js";import"./vendor-router-BSYVf8By.js";import"./vendor-query-D7SPXjZv.js";import"./vendor-growthbook-XJcBFzji.js";import"./cdd5b9598-juLasKsB.js";import"./c2591c98b-9UrrTnB9.js";import"./vendor-luxon-D0OkDiyb.js";import"./c51f8bc6d-BS9P5nN1.js";import"./tree-sitter-BFuuT2ac.js";import"./cbf688cef-vOanPwNn.js";const p=e.memo(({variant:p})=>{const m=a(),[u,x]=e.useState(!1),{track:j}=r(),b=e.useCallback(()=>{const e=m?"win-x64":"mac";j({event_key:"apps.download_button_clicked",platform:e,source:"settings_claude_code"}),o(t(e))},[j,m]);let v,f;switch(p){case"desktop":v=s.jsx(l,{defaultMessage:"Claude understands your codebase and helps you build, debug, and ship faster. Get started in the desktop app.",id:"EoAEryzLKC"}),f=s.jsx(d,{variant:"primary",size:"default",onClick:b,prepend:s.jsx(n,{size:16}),children:m?s.jsx(l,{defaultMessage:"Download for Windows",id:"B1kbGgSfbf"}):s.jsx(l,{defaultMessage:"Download for macOS",id:"xPocsFdsxB"})});break;case"terminal":v=s.jsx(l,{defaultMessage:"Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster through natural language commands.",id:"fOXm32nDnC"}),f=s.jsx(d,{variant:"primary",size:"default",href:"https://code.claude.com/docs/en/overview",webBehavior:"new-tab",desktopBehavior:"open-in-browser",append:s.jsx(i,{size:16}),children:s.jsx(l,{defaultMessage:"Install Claude Code",id:"0qoy4tuNtT"})});break;case"upgrade":v=s.jsx(l,{defaultMessage:"Claude understands your codebase and helps you build, debug, and ship faster. Upgrade your plan to get started.",id:"ABbr43jXlD"}),f=s.jsx(d,{variant:"primary",size:"default",href:"/upgrade",webBehavior:"new-tab",append:s.jsx(i,{size:16}),children:s.jsx(l,{defaultMessage:"Upgrade to Max or Pro",id:"t0/eJhOYNF"})})}return s.jsx("div",{className:"rounded-[32px] overflow-hidden bg-bg-000 border-0.5 border-border-300 shadow-[0_4px_20px_hsl(var(--always-black)/4%)] p-2.5",onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),children:s.jsxs("div",{className:"rounded-3xl border-0.5 border-border-300 bg-bg-100 overflow-hidden grid grid-cols-1 min-[840px]:grid-cols-2",children:[s.jsxs("div",{className:"p-7 flex flex-col",children:[s.jsxs("div",{className:"max-w-[300px]",children:[s.jsx("h2",{className:"font-large-bold text-text-100 mb-2",children:s.jsx(l,{defaultMessage:"Claude Code",id:"vKMj39KhGw"})}),s.jsx("p",{className:"font-base text-text-300 mb-4",children:v})]}),s.jsx("div",{className:"mt-auto",children:f})]}),s.jsxs("div",{className:"relative overflow-hidden min-h-[240px] flex flex-col",children:[s.jsx("div",{className:"absolute inset-0 z-10 hidden min-[840px]:block pointer-events-none",style:{background:"linear-gradient(243deg, transparent -6.78%, hsl(var(--bg-100)) 65%)"}}),s.jsx(c,{isHovered:u})]})]})})});p.displayName="ClaudeCodeOverviewCard";export{p as ClaudeCodeOverviewCard};
