import{r as e,j as s}from"./vendor-react-Dp9pL_Wn.js";import{aa as a,af as o,w as r,X as d,A as t}from"./c6eedc03a-CsEFTfjy.js";import{ax as i,ay as n,az as l}from"./index-CBEPphRm.js";import{M as c}from"./vendor-intl-D2wGIp4M.js";import{C as p}from"./cf419d9f3-5TOAWwUl.js";import"./vendor-ant-cds-bBedrtIN.js";import"./vendor-base-ui-DNypCIlh.js";import"./vendor-radix-Ch96tRrt.js";import"./vendor-base-5_f7mmWg.js";import"./vendor-virtual-DRz8lJfQ.js";import"./vendor-zod-0xcuG3aM.js";import"./vendor-zustand-BeF8W8xk.js";import"./vendor-icons-CokWnmlw.js";import"./vendor-lodash-BvMLws5K.js";import"./vendor-router-qG5OCEmI.js";import"./vendor-query-BwvgHhJ1.js";import"./vendor-zod-v3-CZy0YPWu.js";import"./vendor-motion-EDlUw66k.js";import"./vendor-luxon-CZxT8ieM.js";import"./vendor-growthbook-C66YtMMX.js";import"./vendor-infra-DayZK7Ds.js";import"./caf7c7e06-DJYXCm3T.js";import"./c5669b8e4-DFSq88jr.js";import"./c5f4e1303-CiyIFgnl.js";import"./cbaad2c48-DaP34LG2.js";import"./c57c2877c-CDK50aMX.js";const m=e.memo(({variant:m})=>{const u=a(),j=o(),[x,v]=e.useState(!1),{track:f}=r(),b=e.useCallback(()=>{const e=u?"win-x64":j?"linux":"mac";f({event_key:"apps.download_button_clicked",platform:e,source:"settings_claude_code"}),j?window.location.assign(i(e)):n(i(e))},[f,u,j]);let h,g;switch(m){case"desktop":h=s.jsx(c,{defaultMessage:"Claude understands your codebase and helps you build, debug, and ship faster. Get started in the desktop app.",id:"EoAEryzLKC"}),g=s.jsx(d,{variant:"primary",size:"default",onClick:b,prepend:s.jsx(t,{size:16}),children:u?s.jsx(c,{defaultMessage:"Download for Windows",id:"B1kbGgSfbf"}):j?s.jsx(c,{defaultMessage:"Download for Linux",id:"bELf2s68U0"}):s.jsx(c,{defaultMessage:"Download for macOS",id:"xPocsFdsxB"})});break;case"terminal":h=s.jsx(c,{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"}),g=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(l,{size:16}),children:s.jsx(c,{defaultMessage:"Install Claude Code",id:"0qoy4tuNtT"})});break;case"upgrade":h=s.jsx(c,{defaultMessage:"Claude understands your codebase and helps you build, debug, and ship faster. Upgrade your plan to get started.",id:"ABbr43jXlD"}),g=s.jsx(d,{variant:"primary",size:"default",href:"/upgrade",webBehavior:"new-tab",append:s.jsx(l,{size:16}),children:s.jsx(c,{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:()=>v(!0),onMouseLeave:()=>v(!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(c,{defaultMessage:"Claude Code",id:"vKMj39KhGw"})}),s.jsx("p",{className:"font-base text-text-300 mb-4",children:h})]}),s.jsx("div",{className:"mt-auto",children:g})]}),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(p,{isHovered:x})]})]})})});m.displayName="ClaudeCodeOverviewCard";export{m as ClaudeCodeOverviewCard};
