import{r as e,j as s}from"./vendor-react-Dp9pL_Wn.js";import{a9 as r,ag as o,w as a,ah as d,ai as t,U as i,E as n}from"./c4b350ac1-KLFM4jkb.js";import{a4 as c}from"./index-CSvjYuL_.js";import{M as l}from"./vendor-intl-BDR1NhN_.js";import{C as p}from"./cf419d9f3-HEowtuYY.js";import"./vendor-ant-cds-DvTmcYA1.js";import"./vendor-base-ui-CdQU4JQh.js";import"./vendor-radix-D3USJ4lr.js";import"./vendor-base-5_f7mmWg.js";import"./vendor-virtual-DRz8lJfQ.js";import"./vendor-zod-DIcz3Rbr.js";import"./vendor-zustand-CI9omAwJ.js";import"./vendor-icons-BBStP_8q.js";import"./vendor-lodash-CIro4mst.js";import"./vendor-router-qG5OCEmI.js";import"./vendor-query-DgCRID2b.js";import"./vendor-motion-D7Z1qgzM.js";import"./vendor-luxon-Y8l99kBI.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-growthbook-C66YtMMX.js";import"./c40b9b8f5-CcFpJKg-.js";import"./c393cb7f5-HUvLXarC.js";import"./ca8998c31-P9hjFFxa.js";import"./cbf215181-Bsdk_iVX.js";import"./c82022b5f-v1T93ITZ.js";import"./c627fcdb6-v1yU0Z6G.js";import"./c85adc124-DaXgLnIc.js";import"./c4b43b0ae-CSVSIKUp.js";import"./ce61829b3-0upsP-GZ.js";import"./c0632795f-DFHAnV4h.js";import"./c1f96d614-CNpmgQ8l.js";import"./c2591c98b-B0JYd9Jp.js";import"./c9bba154c-Bw59591Y.js";import"./c2a658aad-Db1B4w67.js";import"./c0e977562-B_Zbx8nl.js";import"./c9f4bb49e-CrIVzJHt.js";import"./cc2dfdfd3-BrnuP9el.js";import"./c6a992d55-BgxzHrh5.js";import"./c9e81e7b9-CQ79hI5E.js";import"./cdd5b9598-DXIbe6ku.js";import"./cf57f6351-BOW8NPIt.js";import"./c5669b8e4-B4xCGVen.js";import"./c93f725a0-BmtJGQGk.js";import"./c26148d62-Db4ihZzY.js";import"./c3a36db6f-BVEOyI7C.js";import"./cc2e285cb-ERZJd0nP.js";import"./c4526f334-DmmtJSHf.js";import"./cb59e2e62-DU7B8aps.js";import"./c009a87a0-BdYPxNaw.js";import"./c8c15d455-BRkvbsON.js";import"./c0f96d0e0-DGUPaEDS.js";const m=e.memo(({variant:m})=>{const j=r(),b=o(),[u,f]=e.useState(!1),{track:x}=a(),v=e.useCallback(()=>{const e=j?"win-x64":b?"linux":"mac";x({event_key:"apps.download_button_clicked",platform:e,source:"settings_claude_code"}),b?window.location.assign(d(e)):t(d(e))},[x,j,b]);let h,g;switch(m){case"desktop":h=s.jsx(l,{defaultMessage:"Claude understands your codebase and helps you build, debug, and ship faster. Get started in the desktop app.",id:"EoAEryzLKC"}),g=s.jsx(i,{variant:"primary",size:"default",onClick:v,prepend:s.jsx(n,{size:16}),children:j?s.jsx(l,{defaultMessage:"Download for Windows",id:"B1kbGgSfbf"}):b?s.jsx(l,{defaultMessage:"Download for Linux",id:"bELf2s68U0"}):s.jsx(l,{defaultMessage:"Download for macOS",id:"xPocsFdsxB"})});break;case"terminal":h=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"}),g=s.jsx(i,{variant:"primary",size:"default",href:"https://code.claude.com/docs/en/overview",webBehavior:"new-tab",desktopBehavior:"open-in-browser",append:s.jsx(c,{size:16}),children:s.jsx(l,{defaultMessage:"Install Claude Code",id:"0qoy4tuNtT"})});break;case"upgrade":h=s.jsx(l,{defaultMessage:"Claude understands your codebase and helps you build, debug, and ship faster. Upgrade your plan to get started.",id:"ABbr43jXlD"}),g=s.jsx(i,{variant:"primary",size:"default",href:"/upgrade",webBehavior:"new-tab",append:s.jsx(c,{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:()=>f(!0),onMouseLeave:()=>f(!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: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:u})]})]})})});m.displayName="ClaudeCodeOverviewCard";export{m as ClaudeCodeOverviewCard};
