import{o as e}from"./rolldown-runtime-iuO8RvI4.js";import{Wr as s,bi as a}from"./shared-0-C4kdVF7Y.js";import{Mi as d,ki as r}from"./vendor-frame-CwiylG4Y.js";import{Fg as o,Qf as t,iv as i,tv as n}from"./shared-1-3-6x7RKF.js";import{mo as l,vo as c}from"./shared-6-Cf_fMhRZ.js";import{nn as u}from"./vendor-all-2-BJdkbLSj.js";import{t as p}from"./c4b73011a-DSiLBZc6.js";var x=e(d()),m=r(),f=(0,x.memo)(({variant:e})=>{const d=i(),r=n(),[f,b]=(0,x.useState)(!1),{track:h}=a(),g=(0,x.useCallback)(()=>{const e=d?"win-x64":r?"linux":"mac";h({event_key:"apps.download_button_clicked",platform:e,source:"settings_claude_code"}),r?window.location.assign(l(e)):c(l(e))},[h,d,r]);let j,v;switch(e){case"desktop":j=(0,m.jsx)(u,{defaultMessage:"Claude understands your codebase and helps you build, debug, and ship faster. Get started in the desktop app.",id:"EoAEryzLKC"}),v=(0,m.jsx)(t,{variant:"primary",size:"default",onClick:g,prepend:(0,m.jsx)(o,{size:16}),children:d?(0,m.jsx)(u,{defaultMessage:"Download for Windows",id:"B1kbGgSfbf"}):r?(0,m.jsx)(u,{defaultMessage:"Download for Linux",id:"bELf2s68U0"}):(0,m.jsx)(u,{defaultMessage:"Download for macOS",id:"xPocsFdsxB"})});break;case"terminal":j=(0,m.jsx)(u,{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"}),v=(0,m.jsx)(t,{variant:"primary",size:"default",href:"https://code.claude.com/docs/en/overview",webBehavior:"new-tab",desktopBehavior:"open-in-browser",append:(0,m.jsx)(s,{size:16}),children:(0,m.jsx)(u,{defaultMessage:"Install Claude Code",id:"0qoy4tuNtT"})});break;case"upgrade":j=(0,m.jsx)(u,{defaultMessage:"Claude understands your codebase and helps you build, debug, and ship faster. Upgrade your plan to get started.",id:"ABbr43jXlD"}),v=(0,m.jsx)(t,{variant:"primary",size:"default",href:"/upgrade",webBehavior:"new-tab",append:(0,m.jsx)(s,{size:16}),children:(0,m.jsx)(u,{defaultMessage:"Upgrade to Max or Pro",id:"t0/eJhOYNF"})})}return(0,m.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:()=>b(!0),onMouseLeave:()=>b(!1),children:(0,m.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:[(0,m.jsxs)("div",{className:"p-7 flex flex-col",children:[(0,m.jsxs)("div",{className:"max-w-[300px]",children:[(0,m.jsx)("h2",{className:"font-large-bold text-text-100 mb-2",children:(0,m.jsx)(u,{defaultMessage:"Claude Code",id:"vKMj39KhGw"})}),(0,m.jsx)("p",{className:"font-base text-text-300 mb-4",children:j})]}),(0,m.jsx)("div",{className:"mt-auto",children:v})]}),(0,m.jsxs)("div",{className:"relative overflow-hidden min-h-[240px] flex flex-col",children:[(0,m.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%)"}}),(0,m.jsx)(p,{isHovered:f})]})]})})});export{f as ClaudeCodeOverviewCard};