import{o as e}from"./rolldown-runtime-iuO8RvI4.js";import{Dd as s}from"./shared-0-C4kdVF7Y.js";import{Ei as i,Mi as o,ki as a}from"./vendor-frame-CwiylG4Y.js";import{Bg as t,iv as n,nv as l}from"./shared-1-3-6x7RKF.js";import{ho as r}from"./shared-6-Cf_fMhRZ.js";import{$t as c,nn as d}from"./vendor-all-2-BJdkbLSj.js";import{V as m}from"./shared-frame-DbQbH4Yr.js";import{r as h}from"./vendor-all-6-BsAVZMtu.js";import{Bt as u,zt as p}from"./shared-8-C1HP2d2B.js";var g=e(o()),j=a(),x="curl -fsSL https://claude.ai/install.sh | bash",b="https://marketplace.visualstudio.com/items?itemName=anthropic.claude-code",f="https://plugins.jetbrains.com/plugin/27310-claude-code-beta-",k="https://slack.com/marketplace/A08SF47R6P4-claude",v="https://code.claude.com/docs/en/overview",w=c({vscode:{defaultMessage:"See every change before it lands. Accept, tweak, or redirect Claude without leaving your editor.",id:"u4GrqXcR2/"},jetbrains:{defaultMessage:"Claude Code works inside the IDE you already know. No workflow changes needed.",id:"DC5XFpX01K"},desktop:{defaultMessage:"Get the full Claude Code experience in a native window. No terminal required.",id:"3bs/L1f60D"},terminal:{defaultMessage:"Run Claude Code directly from the command line. Works in any shell.",id:"PRZrOGhThN"},mobile:{defaultMessage:"Monitor progress, get notified when you\u2019re needed, and review changes on the go.",id:"2cgv2OxXLv"},slack:{defaultMessage:"Turn a bug report into a pull request without leaving your team chat.",id:"Ksa5WnooAs"}});function C({iconSrc:e,iconSrcDark:s,iconNode:o,iconWidth:a=20,iconHeight:t=20,onClick:n,children:l,tooltip:r}){const c={width:a,height:t},d=(0,j.jsxs)("button",{type:"button",onClick:n,className:"border-0.5 mb-2 me-2 inline-flex items-center gap-2 rounded-xl border-border-200 bg-transparent p-2 align-top text-text-100 transition-colors hover:border-transparent hover:bg-bg-400",children:[e?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("img",{loading:"lazy",src:e,alt:"",width:a,height:t,style:c,className:i("object-contain",s&&"dark:hidden")}),s&&(0,j.jsx)("img",{loading:"lazy",src:s,alt:"",width:a,height:t,style:c,className:"hidden object-contain dark:block"})]}):(0,j.jsx)("span",{className:"flex items-center justify-center",style:c,children:o}),(0,j.jsx)("span",{className:"text-sm",children:l})]});return r?(0,j.jsx)(m,{multiline:!0,content:r,side:"bottom",className:"!max-w-[17rem] text-center",children:d}):d}function M({showTerminal:e=!0,showDesktop:o=!0,onPlatformClick:a,className:c}){const m=l(),x=n(),v=s(),M=m||x,[N,S]=(0,g.useState)(!1),y=(0,g.useCallback)((e,s)=>{a(e),window.open(s,"_blank","noopener,noreferrer")},[a]),D=(0,g.useCallback)(()=>{a("desktop"),window.location.assign(r(x?"win-x64":"mac"))},[a,x]),W=(0,g.useCallback)(()=>{a("mobile"),S(!0)},[a]);return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)("div",{className:i("-mb-2 -me-2 text-balance",c),children:[e&&(0,j.jsx)(C,{iconNode:(0,j.jsx)(t,{size:16}),onClick:()=>y("terminal","https://code.claude.com/docs/en/overview"),tooltip:(0,j.jsx)(d,{...w.terminal}),children:(0,j.jsx)(d,{defaultMessage:"Terminal",id:"GAHVEi8lHA"})}),(0,j.jsx)(C,{iconSrc:"/images/home-page-assets/vscode.svg",iconWidth:16,iconHeight:16,onClick:()=>y("vscode",b),tooltip:(0,j.jsx)(d,{...w.vscode}),children:(0,j.jsx)(d,{defaultMessage:"VS Code",id:"Ma0wJFlsrr"})}),(0,j.jsx)(C,{iconSrc:"/images/install-hub/jetbrains-icon.svg",iconWidth:16,iconHeight:16,onClick:()=>y("jetbrains",f),tooltip:(0,j.jsx)(d,{...w.jetbrains}),children:(0,j.jsx)(d,{defaultMessage:"JetBrains",id:"wDQllQfqj7"})}),o&&M&&!v&&(0,j.jsx)(C,{iconSrc:m?"/images/install-hub/apple-icon.svg":void 0,iconSrcDark:m?"/images/install-hub/apple-icon-white.svg":void 0,iconNode:m?void 0:(0,j.jsx)(h,{size:16,weight:"fill"}),iconWidth:m?14:16,iconHeight:m?17:16,onClick:D,tooltip:(0,j.jsx)(d,{...w.desktop}),children:(0,j.jsx)(d,{defaultMessage:"Desktop app",id:"SR19nKO/BD"})}),(0,j.jsx)(C,{iconNode:(0,j.jsx)(p,{}),onClick:W,tooltip:(0,j.jsx)(d,{...w.mobile}),children:(0,j.jsx)(d,{defaultMessage:"Mobile",id:"GWtmtuCmOx"})}),(0,j.jsx)(C,{iconSrc:"/images/install-hub/slack-icon.svg",iconWidth:18,iconHeight:18,onClick:()=>y("slack",k),tooltip:(0,j.jsx)(d,{...w.slack}),children:(0,j.jsx)(d,{defaultMessage:"Slack",id:"sjzDbuQbES"})})]}),(0,j.jsx)(u,{isOpen:N,onClose:()=>S(!1),onAppStoreClick:a})]})}export{C as a,b as c,w as i,M as n,f as o,x as r,k as s,v as t};