import{r as e,j as a,M as s}from"./vendor--leCAzSo.js";import{n as d,f as r,B as o}from"./ca9c256b9-7brFE8T2.js";import{a0 as t,a1 as i,a2 as n,R as l}from"./index-DZuQva-j.js";import{C as c}from"./c4b73011a-544wAs1r.js";import"./c723dd3dd-58n3MxoB.js";import"./c57c2877c-dpgWZiV5.js";import"./cb5cdda9a-CSfiLIa6.js";import"./c51e217b4-KUwQQl_W.js";import"./tree-sitter-BFuuT2ac.js";const p=e.memo(({variant:p})=>{const u=d(),[x,m]=e.useState(!1),{track:b}=r(),h=e.useCallback(()=>{const e=u?"win-x64":"mac";b({event_key:"apps.download_button_clicked",platform:e,source:"settings_claude_code"}),t(i(e))},[b,u]);let f,j;switch(p){case"desktop":f=a.jsx(s,{defaultMessage:"Claude understands your codebase and helps you build, debug, and ship faster. Get started in the desktop app.",id:"EoAEryzLKC"}),j=a.jsx(o,{variant:"primary",size:"default",onClick:h,prepend:a.jsx(l,{size:16}),children:u?a.jsx(s,{defaultMessage:"Download for Windows",id:"B1kbGgSfbf"}):a.jsx(s,{defaultMessage:"Download for macOS",id:"xPocsFdsxB"})});break;case"terminal":f=a.jsx(s,{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"}),j=a.jsx(o,{variant:"primary",size:"default",href:"https://code.claude.com/docs/en/overview",webBehavior:"new-tab",desktopBehavior:"open-in-browser",append:a.jsx(n,{size:16}),children:a.jsx(s,{defaultMessage:"Install Claude Code",id:"0qoy4tuNtT"})});break;case"upgrade":f=a.jsx(s,{defaultMessage:"Claude understands your codebase and helps you build, debug, and ship faster. Upgrade your plan to get started.",id:"ABbr43jXlD"}),j=a.jsx(o,{variant:"primary",size:"default",href:"/upgrade",webBehavior:"new-tab",append:a.jsx(n,{size:16}),children:a.jsx(s,{defaultMessage:"Upgrade to Max or Pro",id:"t0/eJhOYNF"})})}return a.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:()=>m(!0),onMouseLeave:()=>m(!1),children:a.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:[a.jsxs("div",{className:"p-7 flex flex-col",children:[a.jsxs("div",{className:"max-w-[300px]",children:[a.jsx("h2",{className:"font-large-bold text-text-100 mb-2",children:a.jsx(s,{defaultMessage:"Claude Code",id:"vKMj39KhGw"})}),a.jsx("p",{className:"font-base text-text-300 mb-4",children:f})]}),a.jsx("div",{className:"mt-auto",children:j})]}),a.jsxs("div",{className:"relative overflow-hidden min-h-[240px] flex flex-col",children:[a.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%)"}}),a.jsx(c,{isHovered:x})]})]})})});p.displayName="ClaudeCodeOverviewCard";export{p as ClaudeCodeOverviewCard};
